*,*::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.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;}
/* 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;}
.card-actions{display:flex;gap:4px;flex-shrink:0;}
.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:12px 14px 15px;border-top:1px solid #e8eef7;background:#f8fbff;}
.ef-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px;}
.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;}
.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:pointer;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);}
.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;}
.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-hint{font-size:12.5px;color:#75869c;line-height:1.55;margin-top:5px;max-width:560px;}
.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{width:76px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:4px;box-shadow:var(--shadow-sm);}
.upload-thumb img{width:66px;height:66px;object-fit:cover;border-radius:7px;display:block;}
.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;}
.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;}
/* 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;}
#modal-overlay.open{display:flex;}
.modal-box{background:#fff;border-radius:16px;width:700px;max-width:95vw;max-height:88vh;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;}
.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:14px 16px;}
.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;}
.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;}
/* 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-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;}
/* RIGHT SIDE LIST ITEMS */
.rlist-item{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid #edf2f7;border-radius:9px;margin-bottom:6px;background:#fff;font-size:12px;box-shadow:var(--shadow-sm);}
.rlist-num{width:20px;height:20px;border-radius:7px;background:#eff6ff;color:var(--brand);font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
/* CLOTHING SECTION */
#clothing-fields{display:none;}
#clothing-fields.visible{display:block;}
#model-detail-fields{transition:opacity .16s, filter .16s;}
#model-detail-fields.model-settings-disabled{opacity:.52;filter:grayscale(.18);}
#model-detail-fields.model-settings-disabled .finput,
#model-detail-fields.model-settings-disabled .fselect,
#model-detail-fields.model-settings-disabled .chip{
  background:#f8fafc;
  color:#9aa8ba;
  border-color:#e5eaf1;
  box-shadow:none;
}
/* 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-step-card{margin-top:10px;border:1px solid #dce6f3;background:#fff;border-radius:8px;padding:11px 12px;box-shadow:var(--shadow-sm);}
.left-step-kicker{font-size:10.5px;color:#8a99ad;font-weight:760;margin-bottom:4px;}
.left-step-main{font-size:14px;color:#142033;font-weight:820;line-height:1.2;}
.left-step-name{font-size:12px;color:#526174;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.left-step-track{height:4px;border-radius:999px;background:#e6edf6;overflow:hidden;margin-top:10px;}
.left-step-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#155ec2,#18a0fb);transition:width .35s ease;}
.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-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-delete-btn:hover{border-color:#fca5a5;background:#fef2f2;color:#dc2626;}
/* 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.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,.rlist-item,.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;}
.rlist-item{padding:10px;border-color:#e4ebf4;background:#fff;}
.rlist-num{border-radius:8px;background:#edf6ff;}
.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-img{width:100%;height:100%;object-fit:cover;display:block;}
.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;}
::-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: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;}.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);
}
.left-step-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  border-radius:18px;
  box-shadow:var(--card-shadow);
}
.left-step-main,
.ptitle{
  color:var(--ink);
}
.left-step-track{
  background:#e0e7ff;
}
.left-step-fill{
  background:var(--ai-gradient);
}

.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,
.rlist-item,
.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;
}
.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:last-child,
.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,
.rlist-item: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;
}
.rlist-item{
  padding:12px;
  border-radius:18px!important;
}
.rlist-num{
  background:linear-gradient(135deg,#eff6ff,#f5f3ff);
  color:#4f46e5;
}
#r-stats{
  border-top-color:rgba(226,232,240,.9)!important;
}
#r-platform-tip{
  border-radius:18px;
  overflow:hidden;
}

.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;
}
