*,*::before,*::after{box-sizing:border-box;}
:root{
  --brand:#0b63ce;
  --brand-weak:#eaf3ff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --panel:#ffffff;
  --success:#059669;
  --warning:#d97706;
  --danger:#dc2626;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04),0 1px 1px rgba(15,23,42,.03);
  --shadow-md:0 10px 28px rgba(15,23,42,.08);
}
html,body{height:100%;margin:0;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:#f4f7fb;color:var(--ink);}
/* LAYOUT */
#app{display:flex;flex-direction:column;height:100vh;}
#topbar{height:56px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 18px;gap:14px;flex-shrink:0;z-index:40;box-shadow:0 1px 0 rgba(15,23,42,.02);}
#workspace{flex:1;display:flex;min-height:0;overflow:hidden;}
/* LEFT NAV */
#left-nav{width:204px;min-width:204px;background:#fff;border-right:1px solid var(--line);padding:16px 12px;overflow-y:auto;flex-shrink:0;}
.snav{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;cursor:pointer;transition:all .15s;margin-bottom:1px;position:relative;}
.snav:hover{background:#f8fafc;}
.snav.active{background:var(--brand-weak);}
.snav.locked{cursor:not-allowed;opacity:.55;}
.snav.locked:hover{background:transparent;}
.snav.locked .snum{background:#f8fafc;border-color:#dbe5f2;color:#b7c3d2;}
.snav.locked .slabel{color:#94a3b8;}
.snav.done .snum{background:#10b981;color:#fff;border-color:#10b981;}
.snav.active .snum{background:var(--brand);color:#fff;border-color:var(--brand);}
.snav.active .slabel{color:var(--brand);font-weight:700;}
.snav.done .slabel{color:#64748b;}
.snum{width:24px;height:24px;border-radius:50%;border:2px solid #cbd5e1;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#94a3b8;flex-shrink:0;transition:all .2s;background:#fff;}
.slabel{font-size:12.5px;color:#64748b;white-space:nowrap;}
.sconn{width:2px;height:15px;background:#e2e8f0;margin-left:21px;margin-bottom:1px;border-radius:2px;}
.sconn.done{background:#10b981;}
/* CENTER */
#center{flex:1;min-width:0;overflow-y:auto;padding:28px 30px;background:linear-gradient(180deg,#f7faff 0,#f4f7fb 260px,#f8fafc 100%);}
.panel{display:none;}
.panel.active{display:block;}
.ptitle{font-size:22px;font-weight:850;color:#0f172a;margin-bottom:6px;line-height:1.25;}
.psub{font-size:13.5px;color:#64748b;margin-bottom:24px;line-height:1.7;max-width:860px;}
/* RIGHT PANEL */
#right{width:308px;min-width:308px;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0;}
.rtabs{display:flex;border-bottom:1px solid var(--line);padding:0 14px;flex-shrink:0;background:#fbfdff;}
.rtab{padding:11px 12px;font-size:12.5px;color:#64748b;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;transition:all .15s;}
.rtab:hover{color:var(--brand);}
.rtab.active{color:var(--brand);font-weight:700;border-bottom-color:var(--brand);}
.rcontent{flex:1;overflow-y:auto;padding:14px;}
.rpanel{display:none;}
.rpanel.active{display:block;}
.right-detail-block{margin-top:14px;padding-top:12px;border-top:1px solid #e6edf6;}
.right-detail-title{font-size:12px;font-weight:850;color:#334155;margin-bottom:8px;}
.right-detail-list{display:flex;flex-direction:column;gap:7px;}
.right-empty{border:1px dashed #dbe5f2;background:#f8fbff;border-radius:8px;padding:10px;color:#94a3b8;font-size:11.5px;line-height:1.5;text-align:center;}
.right-feature-item{display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;align-items:flex-start;font-size:11.5px;line-height:1.55;color:#475569;background:#fff;border:1px solid #e6edf6;border-radius:8px;padding:8px;box-shadow:var(--shadow-sm);}
.right-feature-num{height:18px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:10px;font-weight:900;display:flex;align-items:center;justify-content:center;}
.right-image-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow:auto;padding-right:2px;}
.right-image-item{background:#fff;border:1px solid #e6edf6;border-radius:8px;padding:8px;box-shadow:var(--shadow-sm);}
.right-image-head{display:flex;gap:7px;align-items:flex-start;}
.right-image-num{width:20px;height:20px;border-radius:7px;background:#eff6ff;color:#155ec2;font-size:10px;font-weight:900;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.right-image-name{font-size:11.8px;font-weight:850;color:#172033;line-height:1.35;word-break:break-word;}
.right-image-meta{font-size:10.5px;color:#7b8ba0;line-height:1.45;margin-top:3px;}
.right-credit-chip{margin-left:auto;flex-shrink:0;font-size:10px;font-weight:900;color:#c2410c;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:3px 6px;white-space:nowrap;}
.right-credit-box{margin-top:14px;border:1px solid #fed7aa;background:linear-gradient(135deg,#fff7ed,#fff);border-radius:10px;padding:10px;box-shadow:0 10px 24px rgba(249,115,22,.08);}
.right-credit-row{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:#9a3412;line-height:1.55;}
.right-credit-row+.right-credit-row{margin-top:5px;padding-top:5px;border-top:1px solid #ffedd5;}
.right-credit-row strong{color:#c2410c;font-size:12px;text-align:right;}
/* PLATFORM CARD */
.plat-card{border:1px solid var(--line);border-radius:12px;padding:15px 13px;cursor:pointer;transition:all .18s;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:#fff;box-shadow:var(--shadow-sm);min-height:170px;}
.plat-card:hover{border-color:#93c5fd;background:#fbfdff;transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,23,42,.07);}
.plat-card.sel{border-color:var(--brand);background:var(--brand-weak);box-shadow:0 0 0 3px rgba(11,99,206,.1);}
.mode-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:22px;cursor:pointer;transition:all .18s;display:flex;flex-direction:column;gap:13px;min-height:268px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;}
.mode-card:hover{border-color:#93c5fd;background:#fbfdff;transform:translateY(-1px);box-shadow:var(--shadow-md);}
.mode-card.sel{border-color:var(--brand);background:#f8fbff;box-shadow:0 0 0 3px rgba(11,99,206,.1),var(--shadow-sm);}
.mode-card.sel::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--brand);}
.mode-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:25px;}
.tagline{font-size:12px;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;display:inline-flex;align-items:center;gap:4px;}
.summary-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px;}
.summary-cell{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:11px 12px;box-shadow:var(--shadow-sm);}
.summary-label{font-size:10.5px;color:#94a3b8;margin-bottom:2px;}
.summary-value{font-size:13px;font-weight:700;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.template-btn{border:1px solid #dbe3ee;background:#fff;border-radius:10px;padding:8px 13px;font-size:12.5px;color:#475569;cursor:pointer;font-family:inherit;transition:all .15s;font-weight:600;}
.template-btn:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-weak);}
.guide-box{background:#fff;border:1px solid #dbe7f5;border-left:4px solid #60a5fa;border-radius:12px;padding:12px 13px;font-size:12.5px;color:#475569;line-height:1.65;box-shadow:var(--shadow-sm);}
.platform-group-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.platform-group-tab{border:1px solid #dbe3ee;background:#fff;border-radius:14px;padding:14px 16px;text-align:left;cursor:pointer;font-family:inherit;transition:all .18s;box-shadow:var(--shadow-sm);}
.platform-group-tab:hover{border-color:#93c5fd;background:#fbfdff;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.platform-group-tab.active{border-color:var(--brand);background:var(--brand-weak);box-shadow:0 0 0 3px rgba(11,99,206,.1);}
.platform-group-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;color:#0f172a;margin-bottom:4px;}
.platform-group-desc{font-size:12.5px;color:#64748b;line-height:1.55;}
.platform-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px;}
.platform-section-label .name{font-size:13px;font-weight:800;color:#334155;}
.platform-section-label .hint{font-size:12px;color:#94a3b8;}
#plat-grid,#cat-grid{margin-bottom:24px;}
.check-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;margin-bottom:8px;font-size:13px;border:1px solid transparent;}
.check-item.pass{background:#f0fdf4;color:#166534;border-color:#bbf7d0;}
.check-item.warn{background:#fefce8;color:#854d0e;border-color:#fde68a;}
.check-item.fail{background:#fef2f2;color:#991b1b;border-color:#fecaca;}
.mini-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;margin-bottom:7px;font-size:12.5px;}
.mini-status.waiting{color:#64748b;}
.mini-status.generating{border-color:#93c5fd;background:#eff6ff;color:#006fee;}
.mini-status.done{border-color:#bbf7d0;background:#f0fdf4;color:#15803d;}
.mini-status.failed{border-color:#fecaca;background:#fef2f2;color:#b91c1c;}
.opt-group{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fbfdff;margin-bottom:10px;}
.opt-title{font-size:12.5px;font-weight:700;color:#334155;margin-bottom:7px;}
.quick-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.quick-add-btn{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:11px 12px;text-align:left;font-size:12.5px;color:#475569;cursor:pointer;font-family:inherit;transition:all .15s;font-weight:600;}
.quick-add-btn:hover{border-color:var(--brand);background:var(--brand-weak);color:var(--brand);}
/* IMAGE LIST */
.list-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;box-shadow:var(--shadow-sm);}
.img-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:9px;transition:all .18s;overflow:hidden;box-shadow:var(--shadow-sm);}
.img-card:hover{border-color:#93c5fd;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.img-card.dragging{opacity:.4;border-color:#006fee;}
.img-card.drag-over{border-color:#006fee;border-style:dashed;background:#f0f7ff;}
.img-card.editing{border-color:#006fee;background:#f8fbff;}
.card-head{display:flex;align-items:center;gap:9px;padding:12px 13px;}
.drag-handle{color:#cbd5e1;cursor:grab;flex-shrink:0;touch-action:none;}
.drag-handle:active{cursor:grabbing;}
.card-num{width:23px;height:23px;border-radius:8px;background:#eef5ff;font-size:10px;font-weight:800;color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.card-info{flex:1;min-width:0;}
.card-name{font-size:13.5px;font-weight:600;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.card-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px;}
.badge{font-size:10px;padding:1.5px 7px;border-radius:10px;font-weight:600;white-space:nowrap;border:1px solid transparent;}
.badge-cat{background:var(--badge-bg,#eef2ff);color:var(--badge-fg,#4f46e5);border-color:color-mix(in srgb,var(--badge-fg,#4f46e5) 22%,transparent);}
.badge-ratio{background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}
.badge-text-on{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd;}
.badge-text-off{background:#fef3c7;color:#b45309;border-color:#fcd34d;}
.badge-model-on{background:#fce7f3;color:#be185d;border-color:#f9a8d4;box-shadow:0 5px 12px rgba(190,24,93,.12);}
.badge-model-off{background:#ffedd5;color:#c2410c;border-color:#fdba74;box-shadow:0 5px 12px rgba(194,65,12,.1);}
.badge-style{background:#dcfce7;color:#15803d;border-color:#86efac;}
.card-actions{display:flex;gap:4px;flex-shrink:0;}
.card-actions.editing-actions{align-items:center;gap:8px;}
.ca-btn{width:28px;height:28px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;font-family:inherit;}
.ca-btn:hover.edit{background:#eff6ff;border-color:#93c5fd;color:#006fee;}
.ca-btn:hover.copy{background:#f1f5f9;}
.ca-btn:hover.del{background:#fef2f2;border-color:#fca5a5;color:#ef4444;}
/* EDIT FORM */
.edit-form{padding:10px 14px 12px;border-top:1px solid #e8eef7;background:#f8fbff;}
.edit-form-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;margin:18px -14px -15px;padding:13px 14px;background:linear-gradient(180deg,rgba(247,251,255,.74),#fff 34%);border-top:1px solid #d8e3f0;box-shadow:0 -14px 30px rgba(37,99,235,.08);}
.edit-done-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #155ec2;background:#155ec2;color:#fff;border-radius:10px;font-family:inherit;font-weight:820;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s,border-color .15s;box-shadow:0 12px 26px rgba(21,94,194,.25);}
.edit-done-btn:hover{background:#0f50aa;border-color:#0f50aa;box-shadow:0 16px 32px rgba(21,94,194,.32);transform:translateY(-1px);}
.edit-done-btn iconify-icon{color:currentColor!important;}
.edit-done-inline{min-height:34px;padding:0 13px;font-size:12.5px;white-space:nowrap;}
.edit-done-footer{min-width:156px;min-height:44px;padding:0 20px;font-size:14px;}
.ef-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px;}
.edit-form .ef-grid{gap:8px 10px;margin-bottom:8px;}
.edit-form .mb-2{margin-bottom:8px!important;}
.edit-form .mt-3{margin-top:9px!important;}
.edit-form .single-choice-row,.edit-form .chip-sel{gap:6px;}
.edit-form .single-choice-chip{min-height:30px;min-width:76px;padding:6px 10px;border-radius:10px;}
.edit-model-style-row{align-items:end;}
.img-card.editing{scroll-margin-bottom:150px;}
.img-card.edit-attention{box-shadow:0 0 0 4px rgba(239,68,68,.16),0 18px 42px rgba(15,23,42,.12)!important;}
.ef-label{font-size:11px;font-weight:600;color:#64748b;margin-bottom:4px;display:block;}
.ef-input{width:100%;border:1.5px solid #e2e8f0;border-radius:8px;padding:7px 10px;font-size:12.5px;color:#374151;outline:none;font-family:inherit;transition:border-color .15s;}
.ef-input:focus{border-color:#006fee;box-shadow:0 0 0 2px rgba(0,111,238,.07);}
.ef-select{width:100%;border:1.5px solid #e2e8f0;border-radius:8px;padding:7px 10px;font-size:12.5px;color:#374151;outline:none;background:#fff;font-family:inherit;}
.chip-sel{display:flex;flex-wrap:wrap;gap:5px;}
.chip{padding:4px 11px;border:1.5px solid #e2e8f0;border-radius:14px;font-size:11.5px;color:#64748b;cursor:pointer;transition:all .13s;background:#fff;font-family:inherit;}
.single-choice-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px;}
.single-choice-chip{min-height:34px;min-width:86px;padding:7px 12px;border-radius:10px;font-weight:760;}
.chip:hover{border-color:#93c5fd;color:#006fee;}
.chip.on{border-color:#006fee;background:#eff6ff;color:#006fee;font-weight:600;}
.billing-top-pill{color:#155ec2;text-decoration:none;border-color:#bfdbfe;background:#eff6ff;}
.billing-top-pill:hover{background:#dbeafe;color:#0f50aa;}
.billing-estimate-card{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #dbeafe;border-radius:8px;padding:14px 16px;margin-bottom:14px;box-shadow:var(--shadow-sm);}
.billing-estimate-card.insufficient{border-color:#fecaca;background:#fff7f7;}
.billing-estimate-main{display:flex;align-items:center;gap:12px;min-width:0;}
.billing-estimate-icon{width:36px;height:36px;border-radius:8px;background:#eff6ff;color:#155ec2;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.billing-estimate-icon iconify-icon{font-size:20px;}
.billing-estimate-title{font-size:14px;font-weight:800;color:#0f172a;line-height:1.3;}
.billing-estimate-sub{font-size:12.5px;color:#64748b;margin-top:3px;line-height:1.45;}
.billing-estimate-link{border:1px solid #bfdbfe;background:#eff6ff;color:#155ec2;border-radius:8px;padding:8px 12px;font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap;}
.billing-estimate-link:hover{background:#dbeafe;}
.billing-estimate-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.chip:disabled,.chip.disabled{border-color:#e5eaf1;background:#f8fafc;color:#b7c2cf;cursor:not-allowed;}
.chip:disabled:hover,.chip.disabled:hover{border-color:#e5eaf1;color:#b7c2cf;background:#f8fafc;}
.language-picker{width:100%;}
.language-select-btn{width:100%;min-height:52px;border:1px solid #d8e3f0;background:#fff;border-radius:8px;padding:9px 12px;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer;font-family:inherit;transition:all .15s;}
.language-select-btn:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.language-select-icon{width:34px;height:34px;border-radius:8px;background:#edf6ff;color:#155ec2;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.language-select-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;}
.language-select-label{font-size:11px;color:#8a99ad;font-weight:760;}
.language-select-copy strong{font-size:14px;color:#142033;line-height:1.2;display:flex;align-items:center;gap:7px;min-width:0;}
.language-select-copy small{font-size:11px;color:#7b8ba0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.select-flag,
.option-flag{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#fff;
  box-shadow:0 7px 16px rgba(15,23,42,.08);
  font-size:17px;
  line-height:1;
  flex:0 0 auto;
}
/* ADD BTN */
.add-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:12px;border:1.5px dashed #9dbbf0;border-radius:12px;font-size:13px;font-weight:700;color:var(--brand);background:#f8fbff;cursor:pointer;transition:all .15s;font-family:inherit;}
.add-btn:hover{border-color:var(--brand);background:var(--brand-weak);}
/* UPLOAD */
.upload-box{border:1.5px dashed #b7c7dc;border-radius:14px;padding:36px 20px;text-align:center;cursor:default;transition:all .2s;background:#fff;box-shadow:var(--shadow-sm);}
.upload-box:hover{border-color:#60a5fa;background:#f8fbff;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.upload-box.has{border-color:#10b981;background:#f0fdf4;}
.upload-box.drag-over{border-color:var(--brand);background:var(--brand-weak);box-shadow:0 0 0 3px rgba(11,99,206,.08);}
.native-file-input{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0;pointer-events:none;}
.upload-trigger-label{position:relative;overflow:hidden;user-select:none;text-decoration:none;}
.upload-trigger-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:120px;}
.upload-trigger-label > :not(.upload-trigger-input){pointer-events:none;}
.upload-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;}
.upload-card{min-height:204px;padding:18px;text-align:left;display:flex;align-items:center;justify-content:center;}
.upload-card.required{grid-column:1/-1;background:#f8fbff;border-color:#93c5fd;}
.upload-card.required.has{background:#effaf4;border-color:#10b981;}
.upload-empty,.upload-preview{width:100%;}
.upload-card-icon{width:38px;height:38px;border-radius:10px;background:#edf6ff;color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:23px;margin-bottom:9px;}
.upload-card-title{font-size:16px;font-weight:800;color:#172033;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.upload-required{font-size:10px;color:#b91c1c;background:#fee2e2;border:1px solid #fecaca;border-radius:999px;padding:1px 7px;font-weight:800;}
.upload-optional{font-size:10px;color:#64748b;background:#f1f5f9;border:1px solid #dbe3ee;border-radius:999px;padding:1px 7px;font-weight:800;}
.upload-card-note{font-size:12.5px;color:var(--danger);font-weight:800;line-height:1.45;}
.upload-card-hint{font-size:12.5px;color:#75869c;line-height:1.55;margin-top:5px;max-width:560px;}
.upload-action-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.upload-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;}
.upload-count{font-size:12.5px;color:#16a34a;font-weight:800;margin-bottom:8px;}
.upload-card-actions{display:flex;flex-wrap:wrap;gap:8px;}
.upload-thumb{position:relative;width:76px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:4px;box-shadow:var(--shadow-sm);}
.upload-thumb.product-thumb{position:relative;width:86px;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s;}
.upload-thumb.product-thumb:hover{border-color:#93c5fd;box-shadow:0 10px 22px rgba(37,99,235,.12);transform:translateY(-1px);}
.upload-thumb.product-thumb.primary{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.12),var(--shadow-sm);}
.upload-thumb img{width:66px;height:66px;object-fit:cover;border-radius:7px;display:block;}
.upload-thumb.product-thumb img{width:76px;height:76px;}
.upload-thumb-main-badge{position:absolute;left:8px;top:8px;border:0;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:10px;font-weight:820;line-height:1;padding:5px 7px;cursor:pointer;font-family:inherit;box-shadow:0 4px 10px rgba(15,23,42,.16);}
.upload-thumb-main-badge.active{background:#16a34a;}
.upload-thumb-remove{position:absolute;right:-6px;top:-6px;width:20px;height:20px;border:1px solid #fecaca;border-radius:999px;background:#fff;color:#dc2626;display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;font-size:13px;font-weight:900;line-height:1;box-shadow:0 6px 14px rgba(220,38,38,.14);opacity:.92;transform:scale(.96);transition:opacity .15s,transform .15s,background .15s,color .15s;}
.upload-thumb:hover .upload-thumb-remove{opacity:1;transform:scale(1);}
.upload-thumb-remove:hover{background:#ef4444;color:#fff;}
.upload-thumb-meta{font-size:9.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;text-align:center;}
.upload-thumb-warn{font-size:9.5px;color:#d97706;text-align:center;margin-top:1px;}
/* FORM */
.fg{margin-bottom:16px;}
.flabel{font-size:12.5px;font-weight:600;color:#374151;margin-bottom:5px;display:block;}
.field-note-danger{margin-left:6px;color:var(--danger);font-weight:700;line-height:1.5;}
.finput{width:100%;border:1px solid #d8e1ee;border-radius:9px;padding:10px 12px;font-size:13.5px;color:#374151;outline:none;transition:border-color .15s,box-shadow .15s;background:#fff;font-family:inherit;}
.finput:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,99,206,.08);}
.fselect{width:100%;border:1px solid #d8e1ee;border-radius:9px;padding:10px 12px;font-size:13.5px;color:#374151;outline:none;background:#fff;font-family:inherit;}
.ftextarea{min-height:104px;resize:vertical;}
#f-feat{min-height:150px;}
.product-info-grid{align-items:start;grid-auto-flow:row dense;}
.product-size-field{grid-row:span 3;align-self:start;}
.size-spec-row{display:flex;flex-direction:column;gap:6px;margin-top:-1px;}
.size-input-line{display:block;min-width:0;}
.size-unit-check{width:28px;height:42px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.size-unit-checkbox{position:absolute;opacity:0;pointer-events:none;}
.size-check-mark{width:22px;height:22px;border:1.5px solid #c9d6e6;border-radius:7px;background:#fff;display:inline-flex;align-items:center;justify-content:center;transition:border-color .15s,background .15s,box-shadow .15s;}
.size-check-mark::after{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px);opacity:0;}
.size-unit-checkbox:checked + .size-check-mark{border-color:#006fee;background:#006fee;box-shadow:0 0 0 3px rgba(0,111,238,.1);}
.size-unit-checkbox:checked + .size-check-mark::after{opacity:1;}
.size-input-wrap{position:relative;min-width:0;}
.size-input-wrap .finput{height:42px;padding-right:64px;}
.size-unit-suffix{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:800;color:#64748b;pointer-events:none;}
.size-convert-btn{width:42px;height:34px;align-self:center;border:1px solid #d8e1ee;border-radius:8px;background:#fff;color:#475569;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;transition:border-color .15s,box-shadow .15s,color .15s,background .15s;}
.size-convert-btn:hover{border-color:#93c5fd;background:#eff6ff;color:#006fee;}
.size-convert-btn:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,99,206,.08);}
.size-unit-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;}
.size-unit-label{font-size:12px;font-weight:700;color:#52647c;margin-right:2px;}
.size-unit-mode-btn{height:32px;padding:0 13px;border:1px solid #d8e1ee;border-radius:8px;background:#fff;color:#52647c;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit;transition:border-color .15s,box-shadow .15s,color .15s,background .15s;}
.size-unit-mode-btn:hover{border-color:#93c5fd;color:#006fee;background:#eff6ff;}
.size-unit-mode-btn.on{border-color:#006fee;color:#006fee;background:#eff6ff;box-shadow:0 0 0 3px rgba(0,111,238,.08);}
.size-unit-mode-btn:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,99,206,.08);}
/* TOGGLE */
.ttrack{width:38px;height:20px;background:#e2e8f0;border-radius:10px;position:relative;cursor:pointer;transition:background .2s;flex-shrink:0;}
.ttrack.on{background:#006fee;}
.tthumb{width:16px;height:16px;background:#fff;border-radius:50%;position:absolute;top:2px;left:2px;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.ttrack.on .tthumb{left:20px;}
/* BUTTONS */
.btn-p{display:inline-flex;align-items:center;gap:7px;background:var(--brand);color:#fff;font-size:13.5px;font-weight:700;padding:10px 22px;border-radius:10px;border:none;cursor:pointer;transition:all .2s;box-shadow:0 5px 14px rgba(11,99,206,.24);font-family:inherit;}
.btn-p:hover{background:#0757b8;box-shadow:0 8px 18px rgba(11,99,206,.3);transform:translateY(-1px);}
.btn-s{display:inline-flex;align-items:center;gap:7px;background:#eef2f7;color:#475569;font-size:13.5px;font-weight:600;padding:10px 20px;border-radius:10px;border:none;cursor:pointer;transition:all .15s;font-family:inherit;}
.btn-s:hover{background:#e2e8f0;color:#374151;}
.btn-g{display:inline-flex;align-items:center;gap:6px;background:transparent;color:#64748b;font-size:12.5px;font-weight:500;padding:7px 14px;border-radius:8px;border:1.5px solid #e2e8f0;cursor:pointer;transition:all .15s;font-family:inherit;}
.btn-g:hover{background:#f8fafc;border-color:#cbd5e1;color:#374151;}
.btn-danger{display:inline-flex;align-items:center;gap:6px;background:#fff7ed;color:#c2410c;font-size:12.5px;font-weight:760;padding:7px 14px;border-radius:8px;border:1.5px solid #fed7aa;cursor:pointer;transition:all .15s;font-family:inherit;}
.btn-danger:hover{background:#ffedd5;border-color:#fdba74;color:#9a3412;}
.btn-danger:disabled{opacity:.58;cursor:not-allowed;box-shadow:none;transform:none;}
/* PROGRESS */
.prog-bar{height:5px;background:#e2e8f0;border-radius:3px;overflow:hidden;margin:12px 0;}
.prog-fill{height:100%;background:#0b63ce;border-radius:3px;transition:width .35s ease;}
/* RESULT GRID */
.res-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;transition:all .18s;box-shadow:var(--shadow-sm);}
.res-card:hover{border-color:#93c5fd;box-shadow:0 8px 20px rgba(15,23,42,.07);transform:translateY(-1px);}
.res-card.generating{border-color:#bfdbfe;background:#f8fbff;}
.res-card.failed{border-color:#fecaca;background:#fff7f7;}
.res-card.canceled{border-color:#fed7aa;background:#fffaf3;}
.res-card.done{border-color:#bbf7d0;}
.res-ph{width:100%;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#94a3b8;}
.res-ph.generating{background:#eff6ff!important;color:#155ec2;}
.res-ph.failed{background:#fef2f2!important;color:#b91c1c;}
.res-status-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:4px;}
.res-status-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:800;background:#f1f5f9;color:#64748b;white-space:nowrap;}
.res-status-pill.generating{background:#eff6ff;color:#155ec2;}
.res-status-pill.done{background:#f0fdf4;color:#15803d;}
.res-status-pill.failed{background:#fef2f2;color:#b91c1c;}
.res-status-pill.canceled{background:#fff7ed;color:#b45309;}
.res-progress{height:4px;background:#e8eef6;border-radius:999px;overflow:hidden;margin-top:7px;}
.res-progress-fill{height:100%;background:#155ec2;border-radius:999px;transition:width .3s ease;}
.res-actions{padding:8px 10px;border-top:1px solid #f1f5f9;display:flex;gap:4px;}
.ra-btn{flex:1;padding:5px 0;border-radius:6px;font-size:10.5px;font-weight:500;border:1px solid #e2e8f0;background:#fff;color:#64748b;cursor:pointer;text-align:center;transition:all .13s;font-family:inherit;}
.ra-btn:hover{background:#f1f5f9;border-color:#cbd5e1;}
.ra-btn:disabled{opacity:.5;cursor:not-allowed;background:#f8fafc;color:#94a3b8;}
.ra-btn:disabled:hover{border-color:#e2e8f0;background:#f8fafc;}
.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px;}
/* OPTIMIZE */
.opt-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 13px;border:1.5px solid #e2e8f0;border-radius:20px;font-size:12.5px;color:#475569;cursor:pointer;transition:all .13s;background:#fff;margin:3px;font-family:inherit;white-space:nowrap;}
.opt-chip:hover{border-color:#006fee;color:#006fee;background:#eff6ff;}
.opt-chip.on{border-color:#006fee;background:#eff6ff;color:#006fee;font-weight:600;}
/* DELIVERY */
.dlv-btn{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;font-size:13.5px;color:#374151;font-weight:500;transition:all .18s;font-family:inherit;width:100%;box-shadow:var(--shadow-sm);}
.dlv-btn:hover{border-color:var(--brand);background:#f8fbff;color:var(--brand);box-shadow:0 8px 20px rgba(15,23,42,.06);}
/* MODAL */
#modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:200;display:none;align-items:center;justify-content:center;padding:24px;}
#modal-overlay.open{display:flex;}
.modal-box{background:#fff;border-radius:16px;width:min(1240px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 70px rgba(15,23,42,.24);}
.modal-head{padding:18px 20px;border-bottom:1px solid #f1f5f9;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
.language-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:225;display:none;align-items:center;justify-content:center;padding:18px;}
.language-modal-overlay.open{display:flex;}
.language-modal{width:880px;max-width:96vw;max-height:90vh;background:#fff;border-radius:12px;box-shadow:0 28px 80px rgba(15,23,42,.28);display:flex;flex-direction:column;overflow:hidden;}
.language-modal-body{padding:16px;overflow-y:auto;background:#f8fbff;}
.language-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.language-option{min-height:78px;border:1px solid #dce6f3;background:#fff;border-radius:8px;padding:11px 12px;text-align:left;cursor:pointer;font-family:inherit;transition:all .15s;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;}
.language-option:hover{border-color:#93c5fd;background:#fff;box-shadow:0 12px 24px rgba(15,23,42,.08);transform:translateY(-1px);}
.language-option.active{border-color:#155ec2;background:#edf6ff;box-shadow:0 0 0 3px rgba(21,94,194,.1);}
.language-option-main{font-size:14px;font-weight:820;color:#142033;line-height:1.25;margin-bottom:5px;display:flex;align-items:center;gap:7px;min-width:0;padding-right:44px;}
.language-option-main span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.language-option-sub{font-size:11.5px;color:#64748b;line-height:1.35;}
.language-option-badge{position:absolute;right:9px;top:9px;font-size:10px;font-weight:800;color:#155ec2;background:#edf6ff;border-radius:999px;padding:2px 7px;}
.market-modal{width:980px;}
.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.market-group-title{grid-column:1/-1;font-size:12px;font-weight:820;color:#64748b;margin:9px 0 0;}
.market-option{min-height:86px;}
.market-option .language-option-main{padding-right:46px;}
.prompt-confirm-status{display:flex;align-items:center;gap:8px;padding:12px 20px;border-bottom:1px solid #eef2ff;background:linear-gradient(135deg,#f8fbff,#faf5ff);font-size:13px;font-weight:700;color:#4f46e5;}
.prompt-confirm-status.warn{color:#b45309;background:#fffbeb;border-bottom-color:#fde68a;}
.prompt-confirm-status.ok{color:#047857;background:#ecfdf5;border-bottom-color:#bbf7d0;}
.prompt-confirm-body{flex:1;overflow:auto;padding:16px 18px;background:linear-gradient(180deg,#f8fbff 0%,#fff 52%);}
.prompt-confirm-list{display:flex;flex-direction:column;gap:14px;}
.prompt-step-shell{border:1px solid #dbe7f6;background:#fff;border-radius:18px;box-shadow:0 16px 42px rgba(15,23,42,.07);overflow:hidden;}
.prompt-step-shell .prompt-confirm-body{max-height:none;overflow:visible;}
.prompt-step-shell .prompt-confirm-status{border-bottom:1px solid #eef2ff;}
.prompt-card{border:1px solid #dbe7f6;background:rgba(255,255,255,.92);border-radius:16px;padding:14px;box-shadow:0 14px 36px rgba(15,23,42,.06);}
.prompt-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;}
.prompt-card-title{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:850;color:#0f172a;}
.prompt-card-num{width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eef2ff;color:#4f46e5;font-size:12px;font-weight:900;}
.prompt-card-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
.prompt-card-meta span{font-size:11px;font-weight:800;color:#64748b;background:#f1f5f9;border-radius:999px;padding:3px 8px;}
.prompt-card-meta-edit{align-items:center;gap:7px;}
.prompt-meta-field{display:inline-flex;align-items:center;gap:5px;border:1px solid #dbe7f6;background:#fff;border-radius:999px;padding:2px 5px 2px 8px;}
.prompt-meta-field.changed{border-color:#fca5a5;background:#fff1f2;box-shadow:0 8px 18px rgba(239,68,68,.12);}
.prompt-card-meta .prompt-meta-label{font-size:10px;color:#64748b;background:transparent;padding:0;border-radius:0;}
.prompt-meta-select{height:24px;border:0;background:#eef2ff;color:#4338ca;font-size:11px;font-weight:900;border-radius:999px;padding:0 6px;outline:none;font-family:inherit;cursor:pointer;}
.prompt-meta-select.text-on{background:#dbeafe;color:#1d4ed8;}
.prompt-meta-select.model-on{background:#fce7f3;color:#be185d;}
.prompt-meta-select.changed{background:#fee2e2!important;color:#b91c1c!important;}
.prompt-meta-toggle{height:28px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#64748b;padding:0 10px;font-size:11px;font-weight:900;font-family:inherit;cursor:pointer;transition:all .15s;}
.prompt-meta-toggle:hover{border-color:#93c5fd;background:#eff6ff;color:#155ec2;}
.prompt-meta-toggle.on{border-color:#93c5fd;background:#dbeafe;color:#1d4ed8;}
.prompt-meta-toggle.model.on{border-color:#f9a8d4;background:#fce7f3;color:#be185d;}
.prompt-meta-toggle:disabled,
.prompt-meta-select:disabled{opacity:.58;cursor:not-allowed;}
.prompt-card-meta .prompt-meta-purpose{background:#eef2f7;color:#64748b;}
.prompt-card-meta .prompt-sync-badge{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;}
.prompt-sync-btn.need-sync{border-color:#fb923c!important;background:#fff7ed!important;color:#c2410c!important;box-shadow:0 10px 22px rgba(249,115,22,.12)!important;}
.prompt-sync-btn.need-sync:hover{background:#ffedd5!important;border-color:#f97316!important;}
.prompt-textarea{width:100%;min-height:150px;border:1px solid #d7e3f2;border-radius:14px;background:#fff;padding:12px 13px;font-size:13px;line-height:1.7;color:#0f172a;resize:vertical;outline:none;font-family:inherit;box-shadow:inset 0 1px 0 rgba(15,23,42,.02);}
.prompt-textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(124,58,237,.1);}
.app-confirm-overlay{position:fixed;inset:0;z-index:280;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.34);backdrop-filter:blur(8px);}
.app-confirm-overlay.open{display:flex;}
.app-confirm-modal{width:min(480px,calc(100vw - 44px));background:rgba(255,255,255,.98);border:1px solid rgba(203,213,225,.78);border-radius:22px;box-shadow:0 30px 90px rgba(15,23,42,.28);display:flex;gap:14px;padding:22px;transform:translateY(6px);animation:appConfirmIn .16s ease-out forwards;}
.app-confirm-icon{width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#eff6ff;color:#155ec2;font-size:25px;box-shadow:inset 0 0 0 1px rgba(37,99,235,.08);}
.app-confirm-icon.warn{background:#fff7ed;color:#f97316;}
.app-confirm-icon.danger{background:#fff1f2;color:#e11d48;}
.app-confirm-main{min-width:0;flex:1;}
.app-confirm-title{font-size:17px;font-weight:900;color:#0f172a;line-height:1.35;margin-top:1px;}
.app-confirm-message{margin-top:8px;color:#475569;font-size:13.5px;line-height:1.65;white-space:pre-line;}
.app-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;}
.app-confirm-actions .btn-s,
.app-confirm-actions .btn-p{min-width:92px;justify-content:center;border-radius:14px;}
.app-confirm-actions .btn-p.danger{background:linear-gradient(135deg,#ef4444,#e11d48);box-shadow:0 12px 26px rgba(225,29,72,.18);}
.app-confirm-actions .btn-p.warn{background:linear-gradient(135deg,#fb923c,#f97316);box-shadow:0 12px 26px rgba(249,115,22,.18);}
@keyframes appConfirmIn{from{opacity:0;transform:translateY(14px) scale(.98);}to{opacity:1;transform:translateY(0) scale(1);}}
.prompt-draft-loading-overlay{position:fixed;inset:0;z-index:292;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.10);backdrop-filter:none;-webkit-backdrop-filter:none;}
.prompt-draft-loading-overlay.open{display:flex;}
.prompt-draft-loading-modal{width:min(460px,calc(100vw - 44px));background:rgba(255,255,255,.98);border:1px solid rgba(203,213,225,.8);border-radius:22px;box-shadow:0 30px 90px rgba(15,23,42,.3);padding:24px;text-align:center;animation:appConfirmIn .16s ease-out forwards;}
.prompt-loading-spinner{width:52px;height:52px;border-radius:999px;margin:0 auto 16px;border:4px solid #dbeafe;border-top-color:#2563eb;animation:promptSpin .9s linear infinite;box-shadow:0 10px 26px rgba(37,99,235,.16);}
.prompt-draft-loading-title{font-size:18px;font-weight:900;color:#0f172a;line-height:1.35;}
.prompt-draft-loading-message{margin-top:9px;color:#334155;font-size:14px;line-height:1.65;font-weight:700;}
.prompt-draft-loading-detail{margin-top:10px;color:#64748b;font-size:12.5px;line-height:1.55;}
.prompt-draft-loading-note{margin-top:14px;display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:#eff6ff;color:#155ec2;font-size:12px;font-weight:800;}
@keyframes promptSpin{to{transform:rotate(360deg);}}
.mtabs{display:flex;gap:2px;padding:12px 16px;border-bottom:1px solid #f1f5f9;overflow-x:auto;flex-shrink:0;}
.mtab{padding:7px 14px;border-radius:8px;font-size:12.5px;color:#64748b;cursor:pointer;white-space:nowrap;transition:all .13s;font-family:inherit;border:none;background:transparent;}
.mtab:hover{background:#f1f5f9;}
.mtab.active{background:#eff6ff;color:#006fee;font-weight:600;}
.modal-body{flex:1;overflow-y:auto;padding:16px 18px;}
.type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.type-btn{border:1px solid #e2e8f0;border-radius:10px;padding:11px 10px;cursor:default;transition:all .15s;background:#fff;text-align:left;font-family:inherit;min-height:118px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;}
.type-btn:hover{border-color:#93c5fd;background:#f8fbff;}
.type-btn.added{border-color:#10b981;background:#f0fdf4;}
.type-btn.pending{border-color:#006fee;background:#eff6ff;box-shadow:0 0 0 2px rgba(0,111,238,.08);}
.type-btn.removing{border-color:#ef4444;background:#fff1f2;box-shadow:0 0 0 2px rgba(239,68,68,.08);}
.type-stepper{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:11px;}
.qty-btn{width:30px;height:30px;border:1px solid #d6e1ee;border-radius:8px;background:#fff;color:#155ec2;font-size:16px;font-weight:900;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit;transition:all .13s;}
.qty-btn:hover{border-color:#155ec2;background:#edf6ff;}
.qty-btn:disabled{opacity:.45;cursor:not-allowed;background:#f8fafc;color:#94a3b8;border-color:#e2e8f0;}
.qty-count{min-width:28px;text-align:center;font-size:13px;font-weight:900;color:#142033;}
.type-count-note{font-size:11px;font-weight:760;margin-top:7px;color:#7b8ba0;}
.type-count-note.pending{color:#155ec2;}
.type-count-note.removing{color:#dc2626;}
.type-count-note.added{color:#16a34a;}
.btn-p:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none;}
.modal-foot{padding:12px 16px;border-top:1px solid #f1f5f9;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
/* PRECHECK */
.chk{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:9px;margin-bottom:7px;font-size:13.5px;}
.chk.pass{background:#f0fdf4;color:#15803d;}
.chk.fail{background:#fef2f2;color:#b91c1c;}
.chk.warn{background:#fefce8;color:#a16207;}
/* GEN LOG */
.gen-log-item{font-size:12px;color:#64748b;font-family:monospace;padding:3px 0;border-bottom:1px solid #f8fafc;}
.gen-log-item.done{color:#059669;}
.gen-log-item.active{color:#006fee;font-weight:600;}
.gen-log-box{display:none;margin:10px 0 16px;padding:10px 12px;max-height:132px;overflow:auto;border:1px solid #e7eef8;border-radius:10px;background:rgba(255,255,255,.72);box-shadow:0 10px 24px rgba(15,23,42,.05);}
.gen-log-box:not(:empty){display:block;}
/* AI SUMMARY */
.ai-box{background:#f7fbff;border:1px solid #bfdbfe;border-radius:14px;padding:20px;margin-bottom:16px;box-shadow:var(--shadow-sm);}
.ai-model-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.ai-model-cell{background:#fff7fb;border:1px solid #f9cfe2;border-radius:8px;padding:8px 10px;min-width:0;}
.ai-model-cell span{display:block;font-size:10.5px;color:#94a3b8;margin-bottom:2px;}
.ai-model-cell strong{display:block;font-size:12.5px;color:#26364e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.precheck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;}
.precheck-grid .check-item{margin-bottom:0;min-height:64px;}
.ai-list-row{display:grid;grid-template-columns:28px minmax(0,1fr) 46px;gap:9px;align-items:start;padding:10px 0;border-bottom:1px solid #f1f5f9;}
.ai-list-row:last-child{border-bottom:0;}
.ai-list-title{font-weight:760;color:#172033;}
.ai-list-meta{font-size:11.5px;color:#8aa0ba;margin-left:5px;}
.ai-list-detail{font-size:12px;color:#8aa0ba;line-height:1.55;margin-top:2px;}
.ai-list-score{font-size:12px;color:#7c3aed;font-weight:760;text-align:right;white-space:nowrap;padding-top:2px;}
.ai-fill-card{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #cfe0f4;border-radius:8px;padding:12px 14px;margin:-8px 0 20px;box-shadow:var(--shadow-sm);}
.ai-fill-main{display:flex;align-items:center;gap:11px;min-width:0;}
.ai-fill-icon{width:38px;height:38px;border-radius:8px;background:#eff6ff;color:#155ec2;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ai-fill-copy{min-width:0;}
.ai-fill-title{font-size:13.5px;font-weight:820;color:#142033;line-height:1.25;}
.ai-fill-status{font-size:12px;color:#64748b;margin-top:3px;line-height:1.4;}
.ai-fill-card.done{border-color:#bbf7d0;background:#f8fffb;}
.ai-fill-card.done .ai-fill-icon{background:#dcfce7;color:#15803d;}
.ai-fill-card.error{border-color:#fecaca;background:#fff7f7;}
.ai-fill-card.error .ai-fill-icon{background:#fee2e2;color:#dc2626;}
.ai-fill-btn{white-space:nowrap;padding:9px 14px;font-size:12.5px;box-shadow:0 8px 18px rgba(21,94,194,.20);}
.ai-fill-btn:disabled{opacity:.56;cursor:not-allowed;transform:none;box-shadow:none;}
.result-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.result-opt-select{height:34px;border:1px solid #dce6f3;background:#fff;color:#40516a;border-radius:8px;padding:0 30px 0 10px;font-family:inherit;font-size:12.5px;font-weight:700;outline:none;}
.result-opt-select:focus{border-color:#155ec2;box-shadow:0 0 0 3px rgba(21,94,194,.09);}
.image-preview-overlay{position:fixed;inset:0;background:rgba(15,23,42,.68);z-index:240;display:none;align-items:center;justify-content:center;padding:20px;}
.image-preview-overlay.open{display:flex;}
.image-preview-modal{width:min(1120px,96vw);max-height:94vh;background:#fff;border-radius:12px;box-shadow:0 28px 90px rgba(15,23,42,.34);display:flex;flex-direction:column;overflow:hidden;}
.image-preview-head{flex-shrink:0;}
.image-preview-body{min-height:0;background:#0f172a;display:flex;align-items:center;justify-content:center;padding:14px;overflow:auto;}
.image-preview-body img{display:block;max-width:100%;max-height:calc(94vh - 142px);object-fit:contain;border-radius:8px;background:#fff;}
.image-preview-foot{gap:8px;justify-content:flex-end;}
.image-preview-overlay.upload-preview-only .image-preview-foot{display:none;}
.image-preview-overlay.upload-preview-only .image-preview-body img{max-height:calc(94vh - 78px);}
.image-edit-overlay{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:230;display:none;align-items:center;justify-content:center;padding:18px;}
.image-edit-overlay.open{display:flex;}
.image-edit-modal{width:760px;max-width:96vw;max-height:90vh;background:#fff;border-radius:12px;box-shadow:0 24px 70px rgba(15,23,42,.26);display:flex;flex-direction:column;overflow:hidden;}
.image-edit-body{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;padding:16px;overflow-y:auto;}
.edit-preview{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;aspect-ratio:1;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.edit-preview img{width:100%;height:100%;object-fit:contain;display:block;}
.edit-form{min-width:0;}
.edit-cascade-selects{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;margin-top:6px;}
.flabel.subtle{font-size:11px;color:#7b8ba0;margin-bottom:4px;}
.edit-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.edit-mode-option{position:relative;display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #dbe7f5;border-radius:10px;background:#f8fbff;color:#64748b;font-size:13px;font-weight:800;cursor:pointer;transition:all .16s;}
.edit-mode-option input{position:absolute;opacity:0;pointer-events:none;}
.edit-mode-option:has(input:checked){border-color:#155ec2;background:#eff6ff;color:#155ec2;box-shadow:0 10px 22px rgba(21,94,194,.10);}
@media(max-width:720px){.edit-cascade-selects{grid-template-columns:1fr;}}
/* COUNT SELECTOR */
.count-chip{padding:5px 13px;border:1.5px solid #e2e8f0;border-radius:20px;font-size:12.5px;color:#64748b;cursor:pointer;transition:all .13s;background:#fff;font-family:inherit;}
.count-chip:hover{border-color:#93c5fd;}
.count-chip.on{border-color:#006fee;background:#eff6ff;color:#006fee;font-weight:600;}
/* TOP PROGRESS */
.top-prog{height:3px;background:#e2e8f0;border-radius:2px;overflow:hidden;}
.top-fill{height:100%;background:var(--brand);border-radius:2px;transition:width .4s ease;}
.task-actions{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0;}
.task-pill{align-items:center;gap:6px;border:1px solid #cfe0f4;background:#f8fbff;color:#40516a;font-size:12px;font-weight:700;border-radius:8px;padding:8px 11px;white-space:nowrap;max-width:310px;overflow:hidden;text-overflow:ellipsis;}
.left-task-box{margin-bottom:18px;}
.left-new-task-btn{width:100%;height:44px;border:0;border-radius:8px;background:#155ec2;color:#fff;font-family:inherit;font-size:13.5px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 12px 28px rgba(21,94,194,.26);transition:all .16s ease;}
.left-new-task-btn:hover{background:#0f50aa;box-shadow:0 16px 32px rgba(21,94,194,.32);transform:translateY(-1px);}
.left-title-card{margin-top:10px;border:1px solid #dce6f3;background:#fff;border-radius:8px;padding:10px 12px;box-shadow:var(--shadow-sm);}
.left-title-card.hidden{display:none;}
.left-title-kicker{font-size:10.5px;color:#8a99ad;font-weight:760;margin-bottom:5px;}
.left-title-main{font-size:12.8px;color:#172033;font-weight:850;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;}
.left-title-sub{font-size:10.8px;color:#7b8ba0;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.task-row{display:flex;align-items:center;gap:8px;border:1px solid #e4ebf4;background:#fff;border-radius:8px;padding:10px;margin-bottom:8px;box-shadow:var(--shadow-sm);cursor:pointer;transition:all .15s;}
.task-row:hover{border-color:#93c5fd;background:#f7fbff;box-shadow:0 8px 18px rgba(15,23,42,.06);}
.task-row.active{border-color:#93c5fd;background:#f7fbff;box-shadow:0 0 0 2px rgba(21,94,194,.08);}
.task-row-main{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0;}
.task-title{font-size:12.5px;font-weight:760;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.task-meta{font-size:10.5px;color:#7b8ba0;margin-top:3px;line-height:1.45;}
.task-status{font-size:10px;font-weight:760;border-radius:8px;padding:2px 7px;background:#eef2f7;color:#526174;white-space:nowrap;}
.task-status.generating{background:#eff6ff;color:#155ec2;}
.task-status.completed{background:#f0fdf4;color:#15803d;}
.task-status.partial{background:#fefce8;color:#a16207;}
.task-status.canceled{background:#fff7ed;color:#c2410c;}
.task-status.failed{background:#fef2f2;color:#b91c1c;}
.task-status.draft{background:#f8fafc;color:#64748b;}
.task-open-btn,
.task-delete-btn{width:30px;height:30px;border:1px solid #e4ebf4;background:#fff;color:#7b8ba0;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;font-family:inherit;transition:all .15s;}
.task-open-btn:hover{border-color:#bfdbfe;background:#eff6ff;color:#2563eb;}
.task-delete-btn:hover{border-color:#fca5a5;background:#fef2f2;color:#dc2626;}
.task-section{margin-bottom:16px;}
.task-section:last-child{margin-bottom:0;}
.task-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px;color:#64748b;font-size:11px;font-weight:800;letter-spacing:0;}
.task-section-head em{font-style:normal;color:#94a3b8;background:#f1f5f9;border-radius:999px;padding:1px 7px;font-size:10px;}
.task-section-empty{border:1px dashed #dbe5f2;background:#f8fafc;color:#94a3b8;border-radius:14px;padding:12px;text-align:center;font-size:11px;margin-bottom:8px;}
.task-section-current .task-section-head span{color:#4f46e5;}
.task-section-current .task-row{border-color:#c4b5fd;background:linear-gradient(135deg,#eff6ff,#f5f3ff);}
.task-history-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.task-history-all-link{display:flex;align-items:center;justify-content:center;min-height:32px;border:1px dashed #bfdbfe;border-radius:10px;background:#f8fbff;color:#2563eb;font-size:12px;font-weight:800;text-decoration:none;margin-top:8px;}
.task-history-all-link:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;}
/* VISUAL REFRESH */
:root{
  --brand:#155ec2;
  --brand-weak:#eef6ff;
  --line:#dbe5f2;
  --soft:#f6f8fb;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04),0 1px 1px rgba(15,23,42,.03);
  --shadow-md:0 12px 30px rgba(15,23,42,.08);
}
html,body{background:#eef3f9;color:#132033;}
#topbar{height:60px;background:rgba(255,255,255,.96);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid #dce6f3;box-shadow:0 1px 0 rgba(15,23,42,.04);}
#topbar .w-7{border-radius:8px;background:#155ec2!important;box-shadow:0 6px 14px rgba(21,94,194,.18);}
.top-prog{height:4px;background:#e6edf6;}
.top-fill{background:linear-gradient(90deg,#155ec2,#18a0fb);}
#left-nav{width:216px;min-width:216px;background:#f8fbff;border-right:1px solid #dce6f3;padding:18px 14px;}
.snav{border-radius:8px;padding:10px 11px;margin-bottom:2px;}
.snav:hover{background:#eef5ff;}
.snav.active{background:#e8f2ff;box-shadow:inset 3px 0 0 var(--brand);}
.snav.locked{box-shadow:none;}
.snav.locked:hover{background:transparent;}
.snav.done .snum{background:#14a46c;border-color:#14a46c;}
.snum{width:25px;height:25px;border-radius:8px;border-width:1px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.slabel{font-size:12.5px;color:#526174;}
.sconn{height:18px;margin-left:22px;background:#dbe5f2;}
#center{padding:30px 32px;background:linear-gradient(180deg,#f7faff 0,#f2f6fb 260px,#f7f9fc 100%);}
.panel.active{animation:panelIn .16s ease-out;}
@keyframes panelIn{from{opacity:.72;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}
.ptitle{font-size:24px;font-weight:820;letter-spacing:0;color:#111827;margin-bottom:8px;}
.psub{font-size:13.5px;line-height:1.75;color:#5f6f83;max-width:920px;margin-bottom:22px;}
#right{width:324px;min-width:324px;background:#f8fbff;border-left:1px solid #dce6f3;}
.rtabs{height:44px;align-items:center;background:#fff;border-bottom:1px solid #dce6f3;padding:0 16px;}
.rtab{padding:13px 12px 11px;font-size:12px;}
.rtab.active{border-bottom-width:3px;}
.rcontent{padding:16px;}
.mode-card,.plat-card,.summary-cell,.img-card,.list-topbar,.guide-box,.upload-box,.res-card,.opt-group,.dlv-btn,.modal-box,.type-btn,.platform-group-tab{border-radius:8px;}
.mode-card{min-height:276px;padding:24px;border-color:#dce6f3;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.mode-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.08);}
.mode-card.sel{box-shadow:0 0 0 3px rgba(21,94,194,.11),0 10px 24px rgba(15,23,42,.06);}
.mode-card.sel::before{height:4px;}
.mode-icon{border-radius:8px;width:46px;height:46px;}
.tagline{border-radius:8px;background:#f7f9fc;border-color:#e2eaf5;color:#526174;}
.platform-group-tabs{gap:10px;margin-bottom:18px;}
.platform-group-tab{padding:15px 16px;border-color:#dce6f3;background:#fff;}
.platform-group-tab.active{background:#edf6ff;box-shadow:0 0 0 3px rgba(21,94,194,.09);}
.platform-section-label{margin:6px 0 14px;}
.platform-section-label .name{font-size:13.5px;color:#1f2a3a;}
.plat-card{align-items:flex-start;text-align:left;padding:16px;gap:9px;min-height:218px;border-color:#dce6f3;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.plat-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(15,23,42,.08);}
.plat-card.sel{background:#edf6ff;box-shadow:0 0 0 3px rgba(21,94,194,.11),0 10px 24px rgba(15,23,42,.06);}
.plat-card>div:first-child{width:42px!important;height:42px!important;border-radius:8px!important;box-shadow:inset 0 0 0 1px rgba(15,23,42,.04);}
.plat-card .text-center{text-align:left;}
.plat-card .btn-g{margin-top:auto;align-self:stretch;justify-content:center;}
.summary-strip{gap:9px;margin-bottom:18px;}
#result-summary.summary-strip{grid-template-columns:minmax(110px,.62fr) minmax(110px,.62fr) minmax(82px,.46fr) minmax(90px,.5fr) minmax(420px,2.45fr) minmax(92px,.55fr);}
#result-summary .summary-cell:nth-child(2),
#result-summary .summary-cell:nth-child(3),
#result-summary .summary-cell:nth-child(4){padding-left:10px;padding-right:10px;}
.summary-cell{border-color:#dce6f3;background:#fff;min-height:62px;}
.summary-label{text-transform:uppercase;letter-spacing:.02em;color:#8a99ad;}
.summary-value{font-weight:760;color:#142033;}
.template-btn,.count-chip,.chip{border-radius:8px;}
.template-btn{border-color:#dce6f3;background:#fff;}
.template-btn:hover,.count-chip.on,.chip.on{background:#edf6ff;border-color:#155ec2;color:#155ec2;}
.guide-box{background:#fff;border-color:#c9ddf5;border-left-color:#155ec2;box-shadow:0 8px 20px rgba(15,23,42,.05);}
.list-topbar{padding:12px 14px;border-color:#dce6f3;background:#fff;}
.img-card{border-color:#dce6f3;margin-bottom:10px;}
.img-card:hover{box-shadow:0 12px 26px rgba(15,23,42,.07);}
.card-head{padding:14px 15px;align-items:flex-start;}
.card-num{width:26px;height:26px;border-radius:8px;background:#eaf3ff;font-size:11px;}
.card-name{font-size:14px;font-weight:720;color:#172033;}
.badge{border-radius:8px;padding:2px 7px;}
.ca-btn{border-radius:8px;background:#f9fbfd;}
.edit-form{background:#f7fbff;}
.finput,.fselect,.ef-input,.ef-select{border-radius:8px;border-color:#d8e3f0;background:#fff;}
.finput:focus,.ef-input:focus{border-color:#155ec2;box-shadow:0 0 0 3px rgba(21,94,194,.09);}
.upload-box{border-color:#b7c8dd;background:#fff;padding:42px 22px;}
.upload-box:hover{box-shadow:0 16px 34px rgba(15,23,42,.08);}
.upload-card{padding:18px;}
.btn-p{border-radius:8px;background:#155ec2;box-shadow:0 8px 18px rgba(21,94,194,.22);}
.btn-p:hover{background:#0f50aa;box-shadow:0 12px 24px rgba(21,94,194,.28);}
.btn-s,.btn-g{border-radius:8px;}
.btn-g{background:#fff;border-color:#dce6f3;color:#526174;}
.btn-g:hover{background:#f6f9fd;border-color:#bdd0e6;color:#203049;}
.modal-box{border:1px solid rgba(255,255,255,.7);box-shadow:0 28px 80px rgba(15,23,42,.26);}
.modal-head{padding:18px 22px;}
.mtabs{background:#fbfdff;}
.mtab{border-radius:8px;}
.type-grid{gap:10px;}
.type-btn{min-height:118px;border-color:#dce6f3;}
.type-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(15,23,42,.07);}
.res-card{border-color:#dce6f3;}
.res-image-wrap{width:100%;aspect-ratio:1;background:#f8fafc;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.res-image-wrap.clickable{position:relative;cursor:zoom-in;}
.res-image-wrap.clickable::after{content:'点击放大';position:absolute;right:10px;bottom:10px;padding:5px 8px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:11px;font-weight:760;opacity:0;transform:translateY(4px);transition:opacity .16s,transform .16s;pointer-events:none;}
.res-image-wrap.clickable:hover::after{opacity:1;transform:translateY(0);}
.res-image-wrap.clickable:hover .res-img{transform:scale(1.025);}
.res-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease;}
.dlv-btn{border-color:#dce6f3;}
.step-actions{position:sticky;bottom:12px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:28px 0 0;padding:13px 16px;background:#fff;border:1px solid #c9d8ea;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.16),0 2px 8px rgba(15,23,42,.08);}
.step-actions.single{justify-content:flex-end;}
.bottom-step-marker{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #b8c9df;background:#f8fbff;color:#40516a;border-radius:8px;padding:7px 11px;font-size:12px;font-weight:800;box-shadow:var(--shadow-sm);white-space:nowrap;pointer-events:none;}
.step-actions .btn-p{min-width:190px;justify-content:center;padding:12px 24px;font-size:14px;box-shadow:0 12px 26px rgba(21,94,194,.30);}
.step-actions .btn-p iconify-icon{font-size:18px!important;}
.step-actions .btn-s{min-width:104px;justify-content:center;background:#fff;}
.step-actions-note{font-size:12px;color:#7b8ba0;margin-right:auto;}
.locked-view-note{display:flex;align-items:center;gap:8px;margin:0 0 16px;padding:10px 12px;border:1px solid rgba(37,99,235,.16);background:rgba(239,246,255,.76);color:#475569;border-radius:12px;font-size:13px;font-weight:700;}
.locked-view-note iconify-icon{font-size:18px;color:#2563eb;}
.locked-control{cursor:not-allowed!important;}
.locked-view .mode-card,
.locked-view .plat-card,
.locked-view .platform-group-tab,
.locked-view .template-btn,
.locked-view .count-chip,
.locked-view .chip,
.locked-view .img-card,
.locked-view .upload-box,
.locked-view .language-select-btn{cursor:default!important;}
.locked-view .mode-card:hover,
.locked-view .plat-card:hover,
.locked-view .img-card:hover,
.locked-view .upload-box:hover{transform:none!important;}
.locked-view button:disabled,
.locked-view input:disabled,
.locked-view textarea:disabled,
.locked-view select:disabled{opacity:.7;box-shadow:none!important;}
.locked-view .upload-trigger-label{pointer-events:none;opacity:.7;box-shadow:none!important;transform:none!important;}
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
::-webkit-scrollbar-track{background:transparent;}
@media(max-width:900px){#left-nav{display:none;}#right{display:none;}#center{padding:18px 14px;}.language-grid,.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.language-modal{max-width:94vw;}}
@media(max-width:1180px){.type-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:980px){.type-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:900px){.delivery-grid{grid-template-columns:1fr;}}
@media(max-width:1100px){#result-summary.summary-strip{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:900px){.ai-model-row{grid-template-columns:repeat(2,minmax(0,1fr));}.precheck-grid{grid-template-columns:1fr;}}
@media(max-width:720px){.summary-strip,#result-summary.summary-strip{grid-template-columns:1fr 1fr;}.type-grid{grid-template-columns:1fr;}.language-grid,.market-grid{grid-template-columns:1fr;}.bottom-step-marker{display:none;}.image-edit-body{grid-template-columns:1fr;}.image-preview-foot{flex-wrap:wrap;}.image-preview-foot .btn-s,.image-preview-foot .btn-g,.image-preview-foot .btn-p{flex:1;justify-content:center;}.result-toolbar{justify-content:flex-start;}.result-opt-select{width:100%;}}

/* Homepage-aligned bright AI SaaS refresh */
:root{
  --brand:#2563eb;
  --brand-weak:#eff6ff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:rgba(226,232,240,.9);
  --soft:#f8fafc;
  --panel:#ffffff;
  --ai-blue:#2563eb;
  --ai-indigo:#4f46e5;
  --ai-violet:#7c3aed;
  --cta-orange:#f97316;
  --cta-orange-2:#fb923c;
  --ai-gradient:linear-gradient(135deg,#2563eb 0%,#4f46e5 48%,#7c3aed 100%);
  --cta-gradient:linear-gradient(135deg,#f97316 0%,#fb923c 100%);
  --card-shadow:0 18px 45px rgba(15,23,42,.06);
  --card-shadow-hover:0 24px 60px rgba(37,99,235,.12);
  --shadow-sm:0 12px 28px rgba(15,23,42,.045);
  --shadow-md:0 22px 54px rgba(37,99,235,.12);
}

html,
body{
  background:
    radial-gradient(circle at 10% 5%,rgba(219,234,254,.82) 0,rgba(219,234,254,0) 32%),
    radial-gradient(circle at 86% 2%,rgba(237,233,254,.88) 0,rgba(237,233,254,0) 34%),
    linear-gradient(180deg,#f8fbff 0%,#f7f9ff 46%,#f8fafc 100%);
  color:var(--ink);
}

#topbar{
  height:64px;
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(226,232,240,.76);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 18px 46px rgba(37,99,235,.08);
}
#topbar .w-7{
  background:var(--ai-gradient)!important;
  border-radius:12px!important;
  box-shadow:0 12px 24px rgba(79,70,229,.22);
}
#topbar > a{
  gap:0!important;
}
.workbench-brand-logo{
  width:42px;
  height:42px;
  display:block;
  object-fit:contain;
  flex-shrink:0;
}
#topbar > a span{
  font-size:15px;
}
.top-prog{
  height:5px;
  background:#e0e7ff;
  border-radius:999px;
}
.top-fill{
  background:var(--ai-gradient);
  box-shadow:0 0 18px rgba(79,70,229,.35);
}
.task-pill{
  color:#4f46e5;
  background:linear-gradient(135deg,#eff6ff,#f5f3ff);
  border-color:#c7d2fe;
  border-radius:999px;
}
.user-menu{
  position:relative;
  flex-shrink:0;
}
.user-menu-trigger{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  padding:3px;
  border:1px solid rgba(199,210,254,.9);
  border-radius:50%;
  background:rgba(255,255,255,.86);
  color:#334155;
  box-shadow:0 10px 26px rgba(79,70,229,.10);
  cursor:pointer;
  font-family:inherit;
  transition:all .16s ease;
}
.user-menu-trigger:hover,
.user-menu.open .user-menu-trigger{
  border-color:#a5b4fc;
  background:#fff;
  box-shadow:0 14px 30px rgba(79,70,229,.16);
}
.user-avatar-img{
  width:38px;
  height:38px;
  border-radius:50%;
  display:block;
  object-fit:cover;
  box-shadow:0 10px 22px rgba(99,102,241,.24);
}
.user-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:248px;
  padding:8px;
  border:1px solid rgba(199,210,254,.72);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 60px rgba(15,23,42,.16);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .16s ease, transform .16s ease;
  z-index:90;
}
.user-menu.open .user-dropdown{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.user-dropdown::before{
  content:"";
  position:absolute;
  top:-6px;
  right:22px;
  width:12px;
  height:12px;
  background:#fff;
  border-left:1px solid rgba(199,210,254,.72);
  border-top:1px solid rgba(199,210,254,.72);
  transform:rotate(45deg);
}
.user-dropdown-title{
  padding:9px 10px 10px;
  margin-bottom:5px;
  border-bottom:1px solid #eef2ff;
}
.user-dropdown-title strong{
  display:block;
  font-size:13.5px;
  font-weight:850;
  color:#0f172a;
}
.user-dropdown-title small{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#64748b;
}
.user-menu-section{
  padding:5px 0;
}
.user-menu-section + .user-menu-section{
  border-top:1px solid #f1f5f9;
}
.user-menu-label{
  padding:5px 10px 4px;
  font-size:10.5px;
  font-weight:850;
  color:#94a3b8;
  letter-spacing:.03em;
}
.user-dropdown a,
.user-dropdown button{
  width:100%;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:9px 10px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#334155;
  text-decoration:none;
  font-size:12.5px;
  font-weight:760;
  font-family:inherit;
  cursor:pointer;
  transition:all .14s ease;
}
.user-dropdown a:hover{
  background:#f5f3ff;
  color:#5b21b6;
}
.user-dropdown button{
  margin-top:5px;
  border-top:1px solid #f1f5f9;
  color:#b91c1c;
}
.user-dropdown button:hover{
  background:#fff1f2;
  color:#991b1b;
}

#workspace{
  background:
    radial-gradient(circle at 28% 8%,rgba(96,165,250,.16),rgba(96,165,250,0) 34%),
    radial-gradient(circle at 74% 10%,rgba(124,58,237,.12),rgba(124,58,237,0) 34%);
}
#center{
  background:
    radial-gradient(circle at 18% 0%,rgba(219,234,254,.78),rgba(219,234,254,0) 34%),
    radial-gradient(circle at 82% 4%,rgba(237,233,254,.84),rgba(237,233,254,0) 36%),
    linear-gradient(180deg,rgba(248,251,255,.94) 0%,rgba(255,255,255,.72) 46%,rgba(248,250,252,.96) 100%);
  padding:32px 34px;
}

#left-nav,
#right{
  background:rgba(255,255,255,.72);
  border-color:rgba(226,232,240,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
#left-nav{
  box-shadow:18px 0 44px rgba(37,99,235,.055);
}
#right{
  box-shadow:-18px 0 44px rgba(37,99,235,.055);
}
.left-new-task-btn{
  background:var(--cta-gradient);
  border-radius:16px;
  box-shadow:0 18px 36px rgba(249,115,22,.28),0 4px 10px rgba(15,23,42,.08);
}
.left-new-task-btn:hover{
  background:linear-gradient(135deg,#ea580c 0%,#fb923c 100%);
  box-shadow:0 24px 48px rgba(249,115,22,.34);
  transform:translateY(-2px);
}
.ptitle{
  color:var(--ink);
}

.snav{
  border-radius:16px;
  color:#475569;
}
.snav:hover{
  background:rgba(239,246,255,.8);
}
.snav.active{
  background:linear-gradient(135deg,#eff6ff,#f5f3ff);
  box-shadow:inset 4px 0 0 #4f46e5,0 10px 26px rgba(79,70,229,.08);
}
.snav.active .snum{
  background:var(--ai-gradient);
  border-color:transparent;
  color:#fff;
}
.snav.done .snum{
  background:#10b981;
  border-color:#10b981;
}
.snav.active .slabel{
  color:#4f46e5;
}
.snum{
  border-radius:10px;
  border-color:#dbeafe;
}
.sconn.done{
  background:linear-gradient(180deg,#34d399,#93c5fd);
}

.panel.active{
  animation:panelIn .18s ease-out;
}
.ptitle{
  font-size:26px;
  font-weight:900;
  letter-spacing:0;
}
.psub{
  color:#64748b;
}

.rtabs{
  background:rgba(255,255,255,.86);
  border-bottom:1px solid rgba(226,232,240,.86);
}
.rtab{
  border-radius:999px;
  margin:7px 2px;
  padding:8px 12px;
  border-bottom:0;
}
.rtab:hover{
  color:#4f46e5;
  background:#eff6ff;
}
.rtab.active{
  color:#fff;
  background:var(--ai-gradient);
  border-bottom:0;
  box-shadow:0 12px 24px rgba(79,70,229,.18);
}

.btn-p{
  color:#fff;
  background:var(--cta-gradient);
  border:1px solid rgba(251,146,60,.95);
  border-radius:16px;
  font-weight:850;
  box-shadow:0 18px 36px rgba(249,115,22,.26),0 4px 10px rgba(15,23,42,.08);
}
.btn-p:hover{
  background:linear-gradient(135deg,#ea580c 0%,#fb923c 100%);
  box-shadow:0 24px 48px rgba(249,115,22,.34),0 8px 16px rgba(15,23,42,.1);
  transform:translateY(-3px);
}
.btn-p:disabled{
  opacity:.5;
  transform:none;
  box-shadow:none;
}
.btn-s,
.btn-g{
  border-radius:14px;
}
.btn-danger{
  border-radius:14px;
  background:#fff7ed;
  border-color:#fdba74;
  color:#c2410c;
  box-shadow:0 10px 22px rgba(249,115,22,.12);
}
.btn-danger:hover{
  background:#ffedd5;
  border-color:#fb923c;
  color:#9a3412;
  transform:translateY(-1px);
}
.btn-danger:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
}
.btn-s{
  background:#fff;
  color:#475569;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 10px 24px rgba(37,99,235,.06);
}
.btn-s:hover,
.btn-g:hover{
  color:#4f46e5;
  background:#fff;
  border-color:#c4b5fd;
  box-shadow:0 14px 30px rgba(79,70,229,.11);
  transform:translateY(-1px);
}
.btn-g{
  background:rgba(255,255,255,.86);
  color:#475569;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}

.summary-strip{
  gap:12px;
}
#result-summary.summary-strip{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.summary-cell,
.mode-card,
.plat-card,
.img-card,
.list-topbar,
.guide-box,
.upload-box,
.res-card,
.opt-group,
.dlv-btn,
.modal-box,
.type-btn,
.platform-group-tab,
.ai-box,
.ai-fill-card,
.language-select-btn,
.task-row,
#target-platform-row,
.panel .bg-white.border{
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(226,232,240,.9)!important;
  border-radius:22px!important;
  box-shadow:var(--card-shadow)!important;
}
#modal-overlay{
  background:rgba(0,0,0,.42)!important;
}
#modal-overlay .modal-box,
#modal-overlay .modal-head,
#modal-overlay .mtabs,
#modal-overlay .modal-body,
#modal-overlay .modal-foot{
  background:#fff!important;
}
#modal-overlay .modal-box{
  border-radius:18px!important;
  overflow:hidden!important;
}
#modal-overlay .modal-head,
#modal-overlay .mtabs,
#modal-overlay .modal-body,
#modal-overlay .modal-foot{
  border-radius:0!important;
}
#modal-overlay .modal-body{
  background:#f8fafc!important;
}
#modal-confirm-add-btn:disabled{
  opacity:1;
  color:#94a3b8;
  background:#f1f5f9;
  border-color:#dbe3ee;
  box-shadow:none;
}
#modal-confirm-add-btn:disabled:hover{
  transform:none;
  background:#f1f5f9;
  box-shadow:none;
}
.summary-cell{
  min-height:68px;
  padding:13px 14px;
}
.summary-label{
  color:#94a3b8;
  font-weight:800;
}
.summary-value{
  color:#0f172a;
  font-size:13.5px;
  font-weight:850;
}

.result-toolbar{
  gap:10px;
}
.result-toolbar .btn-p,
.step-actions .btn-p{
  background:var(--cta-gradient);
  border-color:rgba(251,146,60,.95);
}
.result-toolbar .btn-g,
.result-toolbar .btn-p{
  min-height:38px;
}

#result-grid{
  gap:18px;
}
.res-card{
  border-radius:24px!important;
  overflow:hidden;
}
.res-card:hover,
.dlv-btn:hover,
.summary-cell:hover,
.task-row:hover{
  border-color:#c4b5fd!important;
  box-shadow:var(--card-shadow-hover)!important;
  transform:translateY(-3px);
}
.res-card.generating{
  background:linear-gradient(180deg,#fff 0%,#eff6ff 100%)!important;
  border-color:#bfdbfe!important;
}
.res-card.done{
  background:#fff!important;
  border-color:#bbf7d0!important;
}
.res-card.failed{
  background:#fff7f7!important;
  border-color:#fecaca!important;
}
.res-card.canceled{
  background:#fffaf3!important;
  border-color:#fed7aa!important;
}
.res-image-wrap{
  background:
    radial-gradient(circle at 30% 24%,rgba(255,255,255,.95),rgba(255,255,255,.25) 45%),
    linear-gradient(135deg,#dbeafe 0%,#ede9fe 100%);
}
.res-ph{
  background:
    radial-gradient(circle at 30% 24%,rgba(255,255,255,.95),rgba(255,255,255,.2) 45%),
    linear-gradient(135deg,#dbeafe 0%,#ede9fe 100%)!important;
  color:#4f46e5;
}
.res-ph.generating{
  color:#2563eb;
}
.res-progress{
  height:6px;
  background:#e0e7ff;
}
.res-progress-fill{
  background:var(--ai-gradient);
}
.res-status-pill{
  background:#f1f5f9;
  color:#64748b;
}
.res-status-pill.generating{
  background:#eff6ff;
  color:#2563eb;
}
.res-status-pill.done{
  background:#ecfdf5;
  color:#059669;
}
.res-status-pill.canceled{
  background:#fff7ed;
  color:#c2410c;
}
.res-actions{
  padding:10px;
  border-top:1px solid rgba(226,232,240,.75);
  gap:6px;
}
.ra-btn{
  border-radius:10px;
  font-weight:750;
}
.ra-btn:hover{
  color:#4f46e5;
  border-color:#c4b5fd;
  background:#f5f3ff;
}

.delivery-grid{
  gap:14px;
}
.dlv-btn{
  min-height:78px;
  padding:18px;
}
.dlv-btn iconify-icon[style*="#006fee"]{
  color:#4f46e5!important;
}
.dlv-btn iconify-icon[style*="#d97706"]{
  color:#f97316!important;
}
.dlv-btn:hover{
  color:#4f46e5;
  background:linear-gradient(135deg,#fff 0%,#eff6ff 100%)!important;
}

.rcontent{
  padding:18px;
}

.task-row.active,
.plat-card.sel,
.mode-card.sel,
.platform-group-tab.active,
.chip.on,
.count-chip.on,
.type-btn.pending{
  border-color:#c4b5fd!important;
  background:linear-gradient(135deg,#eff6ff,#f5f3ff)!important;
  box-shadow:0 0 0 4px rgba(124,58,237,.08),var(--card-shadow)!important;
}
.card-num,
.language-select-icon,
.ai-fill-icon,
.upload-card-icon{
  color:#4f46e5;
  background:linear-gradient(135deg,#eff6ff,#f5f3ff);
  border-radius:14px;
}
.top-fill,
.prog-fill,
.preview-meter span{
  background:var(--ai-gradient);
}

.step-actions{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(226,232,240,.9);
  border-radius:22px;
  box-shadow:0 22px 60px rgba(37,99,235,.13);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

@media(max-width:1100px){
  #result-summary.summary-strip{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:900px){
  #topbar{height:60px;padding:0 14px;}
  #center{padding:20px 16px;}
  .ptitle{font-size:23px;}
}
@media(max-width:720px){
  .summary-strip,
  #result-summary.summary-strip{grid-template-columns:1fr 1fr;}
  .result-toolbar{width:100%;justify-content:flex-start;}
  .result-toolbar .btn-g,
  .result-toolbar .btn-p,
  .result-toolbar .btn-danger{flex:1;justify-content:center;}
}

/* Platform logo cards */
.plat-card>.platform-card-head{
  width:100%!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:6px!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.platform-logo{
  min-width:82px;
  max-width:126px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border-radius:15px;
  color:#fff;
  font-size:13px;
  font-weight:950;
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
  box-shadow:0 14px 28px rgba(15,23,42,.12);
  position:relative;
}
.platform-region{
  display:none;
  align-items:center;
  gap:4px;
  color:#475569;
  background:#fff;
  border:1px solid rgba(226,232,240,.92);
  border-radius:999px;
  padding:4px 8px;
  font-size:10.5px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(15,23,42,.045);
}
.platform-logo-taobao{background:linear-gradient(135deg,#ff7a1a,#ff4d00);}
.platform-logo-tmall{background:linear-gradient(135deg,#111827,#e11d48);}
.platform-logo-jd{background:linear-gradient(135deg,#ef4444,#b91c1c);}
.platform-logo-pdd{background:linear-gradient(135deg,#ef4444,#f97316);font-size:12.5px;}
.platform-logo-douyin{background:linear-gradient(135deg,#111827,#1f2937);}
.platform-logo-kuaishou{background:linear-gradient(135deg,#ff8a00,#ff5a00);}
.platform-logo-xiaohongshu{background:linear-gradient(135deg,#ff2442,#c91835);}
.platform-logo-wechat{background:linear-gradient(135deg,#22c55e,#16a34a);font-size:12px;}
.platform-logo-dewu{background:linear-gradient(135deg,#06b6d4,#2563eb);}
.platform-logo-amazon{background:#111827;text-transform:lowercase;}
.platform-logo-amazon::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:8px;
  height:3px;
  border-radius:999px;
  background:#ff9900;
}
.platform-logo-tiktok{background:linear-gradient(135deg,#111827,#0f172a);}
.platform-logo-shopify{background:linear-gradient(135deg,#95bf47,#5e8e3e);font-size:12px;}
.platform-logo-independent{background:var(--ai-gradient);}
.platform-logo-ebay{background:linear-gradient(135deg,#e53238,#0064d2 45%,#f5af02 70%,#86b817);}
.platform-logo-etsy{background:linear-gradient(135deg,#f97316,#d97706);}
.platform-logo-walmart{background:linear-gradient(135deg,#0071ce,#ffc220);font-size:11px;}
.platform-logo-shopee{background:linear-gradient(135deg,#ee4d2d,#ff7a45);font-size:12px;}
.platform-logo-lazada{background:linear-gradient(135deg,#1a3cff,#ff5f6d);font-size:12px;}
.platform-logo-temu{background:linear-gradient(135deg,#ff6a00,#fb923c);}
.platform-logo-aliexpress{background:linear-gradient(135deg,#e43225,#ff6a00);font-size:10.5px;}
.platform-logo-shein{background:linear-gradient(135deg,#111827,#374151);}
.platform-logo-custom{background:var(--ai-gradient);}

@media(max-width:720px){
  .plat-card>.platform-card-head{
    align-items:flex-start!important;
    flex-direction:column;
  }
}

/* Softer precheck status colors */
.precheck-grid .check-item,
.check-item.pass,
.check-item.warn,
.check-item.fail,
.chk.pass,
.chk.warn,
.chk.fail{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  border-left-width:4px;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(15,23,42,.045);
}
.check-item.pass,
.chk.pass{
  color:#166534;
  background:linear-gradient(135deg,rgba(255,255,255,.96) 0%,rgba(239,246,255,.72) 100%);
  border-color:rgba(187,247,208,.78);
  border-left-color:#22c55e;
}
.check-item.warn,
.chk.warn{
  color:#92400e;
  background:linear-gradient(135deg,rgba(255,255,255,.96) 0%,rgba(255,247,237,.78) 100%);
  border-color:rgba(253,186,116,.62);
  border-left-color:#f97316;
}
.check-item.fail,
.chk.fail{
  color:#991b1b;
  background:linear-gradient(135deg,rgba(255,255,255,.96) 0%,rgba(254,242,242,.78) 100%);
  border-color:rgba(252,165,165,.66);
  border-left-color:#ef4444;
}
.precheck-grid .check-item iconify-icon,
.check-item.pass iconify-icon,
.chk.pass iconify-icon{
  color:#16a34a!important;
}
.ai-model-row{
  gap:10px;
}
.ai-model-cell{
  background:linear-gradient(135deg,#fff 0%,#f8f7ff 100%);
  border:1px solid rgba(196,181,253,.62);
  border-radius:16px;
  box-shadow:0 10px 24px rgba(79,70,229,.06);
}
.ai-model-cell span{
  color:#64748b;
}
.ai-model-cell strong{
  color:#0f172a;
}
.ai-box .text-pink-700{
  color:#4f46e5!important;
}

/* Compact step 7 confirmation */
.ai-box.compact-confirm-box{
  padding:16px!important;
  margin-bottom:12px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,251,255,.92))!important;
  border-color:rgba(191,219,254,.9)!important;
}
.compact-confirm-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.compact-confirm-kicker{
  font-size:11px;
  font-weight:850;
  color:#4f46e5;
  margin-bottom:4px;
}
.compact-confirm-title{
  font-size:20px;
  line-height:1.25;
  font-weight:900;
  color:#0f172a;
  word-break:break-word;
}
.compact-confirm-meta{
  margin-top:5px;
  font-size:12px;
  line-height:1.45;
  color:#64748b;
}
.compact-confirm-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#c2410c;
  font-size:12.5px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(249,115,22,.11);
}
.compact-confirm-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.compact-confirm-cell{
  min-width:0;
  padding:9px 10px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:rgba(255,255,255,.86);
}
.compact-confirm-cell span{
  display:block;
  font-size:10.5px;
  font-weight:760;
  color:#94a3b8;
  margin-bottom:3px;
}
.compact-confirm-cell strong{
  display:block;
  font-size:12.5px;
  color:#172033;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.compact-confirm-notes{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.compact-confirm-notes span{
  max-width:100%;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  padding:4px 9px;
  font-size:11px;
  font-weight:760;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.confirm-section-card{
  margin-bottom:12px;
  padding:14px 16px;
  border:1px solid rgba(219,231,246,.96);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 36px rgba(15,23,42,.055);
}
.confirm-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.confirm-section-title{
  font-size:14px;
  font-weight:900;
  color:#142033;
}
.confirm-section-sub{
  font-size:11.5px;
  font-weight:720;
  color:#8aa0ba;
}
.compact-precheck-summary{
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
  font-weight:850;
}
.compact-precheck-summary iconify-icon{
  font-size:19px;
}
.compact-precheck-summary.ok{
  color:#047857;
  background:#ecfdf5;
  border:1px solid #bbf7d0;
}
.compact-precheck-summary.warn{
  color:#b45309;
  background:#fffbeb;
  border:1px solid #fde68a;
  margin-bottom:8px;
}
.compact-precheck-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.compact-precheck-list .check-item{
  margin:0;
  min-height:0;
  padding:9px 10px;
  border-radius:14px;
}
.check-item.actionable{
  cursor:pointer;
  position:relative;
  padding-right:34px;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}
.check-item.actionable:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(249,115,22,.12);
  border-color:#fb923c;
}
.check-jump-icon{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#f97316;
  font-size:18px;
}
.precheck-target-pulse{
  animation:precheckTargetPulse 1.4s ease-out;
}
@keyframes precheckTargetPulse{
  0%{box-shadow:0 0 0 0 rgba(249,115,22,.35);}
  45%{box-shadow:0 0 0 6px rgba(249,115,22,.18);}
  100%{box-shadow:0 0 0 0 rgba(249,115,22,0);}
}
.compact-precheck-details{
  margin-top:10px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fbfdff;
  overflow:hidden;
}
.compact-precheck-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  list-style:none;
  color:#475569;
  font-size:12.5px;
  font-weight:850;
}
.compact-precheck-details summary::-webkit-details-marker{
  display:none;
}
.compact-precheck-details summary iconify-icon{
  transition:transform .16s ease;
  color:#64748b;
}
.compact-precheck-details[open] summary iconify-icon{
  transform:rotate(180deg);
}
.compact-precheck-pass-list{
  padding:0 10px 10px;
}
.compact-ai-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.compact-ai-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 108px 70px;
  align-items:start;
  gap:10px;
  padding:9px 10px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fbfdff;
}
.compact-ai-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:#eef2ff;
  color:#4f46e5;
  font-size:11px;
  font-weight:900;
}
.compact-ai-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.compact-ai-title-line{
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
}
.compact-ai-main .ai-list-title{
  min-width:0;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.compact-ai-main .ai-list-meta{
  min-width:0;
  margin-left:0;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.compact-ai-detail{
  color:#64748b;
  font-size:12px;
  line-height:1.5;
  word-break:break-word;
}
.compact-ai-detail strong{
  color:#475569;
  font-weight:850;
}
.compact-ai-prompt{
  justify-self:start;
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}
.compact-ai-prompt.ok{
  color:#047857;
  background:#ecfdf5;
  border:1px solid #bbf7d0;
}
.compact-ai-prompt.warn{
  color:#b45309;
  background:#fffbeb;
  border:1px solid #fde68a;
}

@media(max-width:900px){
  .compact-confirm-grid,
  .compact-precheck-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .compact-ai-row{
    grid-template-columns:34px minmax(0,1fr);
  }
  .compact-ai-prompt,
  .compact-ai-row .ai-list-score{
    grid-column:2;
  }
  .compact-ai-row .ai-list-score{
    justify-self:start;
    text-align:left;
  }
}

@media(max-width:640px){
  .compact-confirm-head,
  .confirm-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .compact-confirm-badge{
    min-width:0;
  }
  .compact-confirm-grid,
  .compact-precheck-list{
    grid-template-columns:1fr;
  }
  .compact-ai-main{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }
}

/* Mobile interaction fixes */
@media(max-width:900px){
  #app{
    height:100dvh;
    min-height:100dvh;
  }
  #topbar{
    position:relative;
    z-index:90;
    gap:8px;
    min-width:0;
  }
  #topbar > a{
    min-width:0;
    flex:0 0 auto;
  }
  .workbench-brand-logo{
    width:38px;
    height:38px;
  }
  .task-actions{
    gap:6px;
    min-width:0;
    max-width:calc(100vw - 72px);
  }
  .task-pill{
    min-width:0;
    max-width:calc(100vw - 128px);
    padding:7px 10px;
    font-size:11.5px;
  }
  .user-menu-trigger{
    width:44px;
    height:44px;
  }
  .user-avatar-img{
    width:36px;
    height:36px;
  }
  .user-dropdown{
    position:fixed;
    top:58px;
    right:10px;
    width:min(296px,calc(100vw - 20px));
    max-height:calc(100dvh - 76px);
    overflow:auto;
    z-index:260;
  }
  .user-dropdown::before{
    right:18px;
  }
  #center{
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:calc(104px + var(--mobile-action-bottom,12px) + env(safe-area-inset-bottom));
  }
  .panel.active{
    min-width:0;
  }
  .btn-p,
  .btn-s,
  .btn-g,
  .btn-danger,
  .template-btn,
  .count-chip,
  .chip,
  .language-select-btn,
  .platform-group-tab,
  .plat-card,
  .mode-card,
  .type-btn,
  .dlv-btn,
  .ra-btn,
  .qty-btn,
  .ca-btn{
    touch-action:manipulation;
  }
}

@media(max-width:720px){
  .product-size-field{
    grid-row:auto;
  }
  #center{
    padding:18px 12px calc(128px + var(--mobile-action-bottom,12px) + env(safe-area-inset-bottom));
  }
  .ptitle{
    font-size:22px;
    line-height:1.22;
  }
  .psub{
    margin-bottom:18px;
  }
  .mode-card{
    min-height:0;
    padding:20px;
  }
  .plat-card{
    min-height:0;
  }
  .platform-group-tabs,
  .upload-group-grid{
    grid-template-columns:1fr;
  }
  .upload-card.required{
    grid-column:auto;
  }
  .upload-box{
    padding:18px 14px;
  }
	  .upload-card-actions,
	  .single-choice-row,
	  .chip-sel{
	    gap:8px;
	  }
	  .upload-card-actions .btn-p,
  .upload-card-actions .btn-g,
  .billing-estimate-link,
  .billing-estimate-actions .btn-p,
  .billing-estimate-actions .btn-g{
    flex:1 1 140px;
    justify-content:center;
    min-width:0;
  }
  .ai-fill-card,
  .billing-estimate-card{
    align-items:stretch;
    flex-direction:column;
  }
  .ai-fill-main,
  .billing-estimate-main{
    align-items:flex-start;
  }
  .ai-fill-btn,
  .billing-estimate-link{
    width:100%;
    justify-content:center;
    white-space:normal;
  }
  .list-topbar{
    align-items:stretch;
  }
  .list-topbar > *{
    min-width:0;
  }
  .ef-grid{
    grid-template-columns:1fr;
  }
  .card-head{
    flex-wrap:wrap;
  }
  .card-actions{
    width:100%;
    justify-content:flex-end;
  }
  .edit-form-actions{
    margin-left:-12px;
    margin-right:-12px;
    padding:12px;
  }
  .edit-done-footer{
    width:100%;
    min-width:0;
  }

  .step-actions{
    position:fixed;
    left:10px;
    right:10px;
    bottom:12px;
    bottom:calc(var(--mobile-action-bottom,12px) + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;
    gap:10px;
    margin:0;
    padding:10px;
    border-radius:18px;
    z-index:80;
  }
  .step-actions.single{
    grid-template-columns:1fr;
  }
  .step-actions .btn-p,
  .step-actions .btn-s,
  .step-actions .btn-g{
    width:100%;
    min-width:0;
    min-height:48px;
    padding:9px 10px;
    justify-content:center;
    text-align:center;
    white-space:normal;
    line-height:1.25;
    font-size:13px;
  }
  .step-actions .btn-p iconify-icon,
  .step-actions .btn-s iconify-icon,
  .step-actions .btn-g iconify-icon{
    flex:0 0 auto;
  }
  .bottom-step-marker{
    display:none!important;
  }

  .prompt-step-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .prompt-step-actions .step-actions-note{
    grid-column:1/-1;
    order:0;
    min-height:26px;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px 10px;
    border-radius:12px;
    background:linear-gradient(135deg,#eff6ff,#f5f3ff);
    color:#4f46e5;
    font-size:12px;
    font-weight:850;
    text-align:center;
  }
  .prompt-step-actions > .btn-p{
    order:1;
  }
  .prompt-step-actions .prompt-step-buttons{
    display:contents!important;
  }
  .prompt-step-actions #prompt-regenerate-btn{
    order:2;
  }
  .prompt-step-actions #prompt-confirm-btn{
    grid-column:1/-1;
    order:3;
    min-height:48px;
    font-size:13.5px;
    white-space:nowrap;
  }
  .precheck-step-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .precheck-step-actions > .btn-p{
    order:1;
  }
  .precheck-step-actions .precheck-step-buttons{
    display:contents!important;
  }
  .precheck-step-actions .precheck-save-template-btn{
    order:2;
  }
  .precheck-step-actions #confirm-generate-btn{
    grid-column:1/-1;
    order:3;
    min-height:48px;
    font-size:13.5px;
    white-space:nowrap;
  }

  .result-toolbar{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .result-toolbar .btn-g,
  .result-toolbar .btn-p,
  .result-toolbar .btn-danger,
  .result-opt-select{
    width:100%;
    min-width:0;
    flex:none;
    justify-content:center;
  }

  #modal-overlay,
  .language-modal-overlay,
  .image-edit-overlay,
  .image-preview-overlay{
    padding:8px;
    align-items:flex-end;
  }
  .modal-box,
  .language-modal,
  .image-edit-modal,
  .image-preview-modal{
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - 16px);
    border-radius:18px 18px 0 0!important;
  }
  .modal-head{
    padding:14px 14px;
    gap:10px;
  }
  .modal-head > div{
    min-width:0;
  }
  .modal-body,
  .language-modal-body,
  .image-edit-body{
    padding:12px;
  }
  .mtabs{
    padding:10px 12px;
  }
  .type-grid{
    grid-template-columns:1fr;
  }
  .type-btn{
    min-height:108px;
  }
  .modal-foot{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
    gap:8px;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .modal-foot > .flex{
    width:100%;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .modal-foot .btn-p,
  .modal-foot .btn-s,
  .modal-foot .btn-g{
    width:100%;
    min-width:0;
    justify-content:center;
    white-space:normal;
    text-align:center;
  }
  .language-option-main{
    padding-right:0;
    white-space:normal;
  }
  .language-option-main span:last-child{
    white-space:normal;
  }
  .language-option-badge{
    position:static;
    display:inline-flex;
    margin-top:8px;
  }
  .image-preview-body{
    padding:10px;
  }
  .image-preview-body img{
    max-height:calc(100dvh - 166px);
  }
  .image-preview-foot{
    display:grid;
    grid-template-columns:1fr;
  }
  .edit-mode-switch{
    grid-template-columns:1fr;
  }
  .app-confirm-modal{
    width:min(420px,calc(100vw - 24px));
    padding:18px;
    border-radius:18px;
  }
  .app-confirm-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .app-confirm-actions .btn-s,
  .app-confirm-actions .btn-p{
    min-width:0;
    width:100%;
  }
  .prompt-draft-loading-modal{
    width:min(420px,calc(100vw - 24px));
  }
}

@media(max-width:420px){
  #topbar{
    padding:0 10px;
  }
  .task-actions{
    max-width:calc(100vw - 62px);
  }
  .task-pill{
    max-width:calc(100vw - 116px);
    padding-inline:9px;
  }
  .step-actions{
    gap:8px;
    left:8px;
    right:8px;
    margin:0;
  }
  .step-actions .btn-p,
  .step-actions .btn-s,
  .step-actions .btn-g{
    min-height:50px;
    padding-inline:8px;
    font-size:12.5px;
  }
  .compact-confirm-title{
    font-size:18px;
  }
}
