[hidden]{display:none!important}
:root{
  --violet:#6d28d9;
  --indigo:#4f46e5;
  --bright:#8b5cf6;
  --lav:#f7f5ff;
  --navy:#111827;
  --ink:#10163d;
  --slate:#64748b;
  --line:#e7e5ef;
  --green:#10b981;
  --amber:#f59e0b;
  --red:#ef4444;
  --shadow:0 12px 34px rgba(22,20,60,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:#f7f8fb;color:var(--ink);
  font-family:"Inter","Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;line-height:1.5;
  overflow:hidden
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-header{
  height:74px;position:sticky;top:0;z-index:100;background:rgba(255,255,255,.98);
  border-bottom:1px solid #eae8f0;backdrop-filter:blur(16px)
}
.app-header-inner{height:100%;display:flex;align-items:center;gap:24px;padding:0 28px}
.brand{
  display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#10163d;
  font:800 25px/1 "Manrope","Segoe UI",sans-serif;letter-spacing:-.65px
}
.brand img{width:38px;height:38px}
.header-context{display:flex;align-items:center;gap:10px;padding-left:22px;border-left:1px solid #e8e6ee}
.context-kicker{color:#7b8197;font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.65px}
.header-context strong{font-size:12px}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.save-state{display:inline-flex;align-items:center;gap:7px;color:#6d7287;font-size:10px;font-weight:700}
.save-state>span{width:7px;height:7px;border-radius:50%;background:#b7bac8}
.save-state.saved>span{background:var(--green)}
.icon-button{width:34px;height:34px;border-radius:10px;border:1px solid #dedbe8;background:#fff;color:#5d6176;font-weight:900}

.app-layout{
  height:calc(100vh - 74px);min-height:0;
  display:grid;grid-template-columns:238px minmax(620px,1fr) 326px;
  align-items:stretch;overflow:hidden
}
.workflow-sidebar{
  height:100%;min-height:0;overflow:hidden;
  background:#fff;border-right:1px solid #e8e6ee;padding:20px 18px
}
.sidebar-top{padding:2px 8px 14px;border-bottom:1px solid #efedf4}
.eyebrow{color:var(--violet);font-size:9px;font-weight:900;letter-spacing:.95px;text-transform:uppercase}
.sidebar-top h2{font:800 20px/1.2 "Manrope","Segoe UI",sans-serif;margin:7px 0 5px}
.sidebar-top p{margin:0;color:#7b8095;font-size:10px}
.workflow-steps{display:grid;gap:2px;margin-top:10px}
.workflow-step{
  display:grid;grid-template-columns:30px 1fr;gap:9px;align-items:center;
  padding:7px 9px;border-radius:10px;text-decoration:none;color:#656a7e
}
.workflow-step:hover{background:#faf9fd}
.workflow-step.current{background:#efeaff;color:#5a32d1}
.workflow-step.complete{color:#11835e}
.workflow-step.locked{opacity:.72}
.step-num{width:28px;height:28px;border-radius:9px;background:#f0eff4;display:grid;place-items:center;font-size:9px;font-weight:900}
.workflow-step.current .step-num{background:#6d28d9;color:#fff}
.workflow-step.complete .step-num{background:#e8f8f1;color:#0b8e65}
.workflow-step strong{display:block;font-size:10px}
.workflow-step small{display:block;margin-top:1px;color:#9296a7;font-size:8px}
.sidebar-order{margin:12px 7px 0;padding:11px 12px;border:1px solid #e4dff3;border-radius:12px;background:#f9f7ff}
.sidebar-order span{display:block;color:#7e68b7;font-size:8px;font-weight:900;letter-spacing:.7px}
.sidebar-order strong{display:block;font-size:12px;margin-top:5px}
.sidebar-order small{display:block;color:#858a9d;font-size:8px;margin-top:4px}

.form-workspace{
  width:100%;max-width:1000px;height:100%;min-height:0;justify-self:center;
  padding:28px 34px 18px;
  display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden
}
.workspace-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px}
.workspace-head h1{font:800 33px/1.12 "Manrope","Segoe UI",sans-serif;letter-spacing:-1.2px;margin:7px 0 7px}
.workspace-head p{color:var(--slate);font-size:12px;margin:0;max-width:740px}
.back-link{color:#6b7085;text-decoration:none;font-size:10px;font-weight:700;white-space:nowrap;margin-top:5px}
.back-link:hover{color:var(--violet)}

#productsForm{
  min-height:0;height:100%;
  display:grid;grid-template-rows:minmax(0,1fr) auto;
  gap:0;overflow:hidden
}
.form-scroll{
  min-height:0;overflow-y:auto;overflow-x:hidden;
  display:grid;gap:24px;padding:2px 8px 28px 0;
  scroll-padding-top:18px;scroll-padding-bottom:18px;scrollbar-gutter:stable
}
.form-scroll::-webkit-scrollbar{width:9px}
.form-scroll::-webkit-scrollbar-track{background:transparent}
.form-scroll::-webkit-scrollbar-thumb{background:#d9d6e4;border-radius:999px;border:2px solid #f7f8fb}
.form-scroll::-webkit-scrollbar-thumb:hover{background:#c8c3d8}

.form-card{
  background:#fff;border:1px solid #e4e2ec;border-radius:17px;padding:24px;
  box-shadow:var(--shadow);scroll-margin-top:16px;scroll-margin-bottom:16px
}
.card-title{
  display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:start;
  padding-bottom:18px;border-bottom:1px solid #efedf4;margin-bottom:20px
}
.section-icon{width:36px;height:36px;border-radius:11px;background:#f5f1ff;color:#6d28d9;display:grid;place-items:center;font-size:9px;font-weight:900}
.card-title h2{font:800 18px/1.25 "Manrope","Segoe UI",sans-serif;margin:0}
.card-title p{margin:4px 0 0;color:#81869a;font-size:10px}
.list-head-actions{display:flex;align-items:center;gap:8px}
.count-badge{background:#f7f4ff;border:1px solid #e7e0f8;border-radius:999px;padding:6px 9px;color:#72778b;font-size:8px}
.count-badge strong{color:#6d28d9}
.tiny-outline{border:1px solid #ded9eb;background:#fff;color:#6a6f83;border-radius:8px;padding:6px 8px;font-size:8px;font-weight:800}
.tiny-outline:hover{color:#6d28d9;border-color:#bcaef0}

.import-actions{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:12px}
.import-option{
  min-height:94px;border:1px solid #e0ddeb;border-radius:13px;background:#fff;padding:14px;
  display:flex;align-items:center;text-align:left;gap:12px;color:#222740;transition:.18s ease
}
.import-option:hover{border-color:#bba8f1;transform:translateY(-1px);box-shadow:0 8px 20px rgba(22,20,60,.05)}
.primary-import{background:#f9f7ff;border-color:#d9cdf6;cursor:pointer;position:relative}
.primary-import input{position:absolute;opacity:0;pointer-events:none}
.import-icon{width:34px;height:34px;border-radius:10px;background:#eee8ff;color:#6d28d9;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.import-option strong{display:block;font-size:10px}
.import-option small{display:block;margin-top:3px;color:#8a8ea0;font-size:8px;line-height:1.35}
.import-note{margin-top:14px;padding:9px 11px;border-radius:10px;background:#fbfbfd;color:#7b8092;font-size:8px;border:1px solid #efedf4}
.import-note span{color:#31364c;font-weight:800;margin-right:8px}
.import-note b{margin-left:12px;color:#5f6478}

.empty-state{padding:42px 18px;text-align:center;border:1px dashed #d9d5e5;border-radius:14px;background:#fbfbfd}
.empty-icon{width:42px;height:42px;margin:0 auto 10px;border-radius:12px;background:#f0ebff;color:#6d28d9;display:grid;place-items:center;font-weight:900}
.empty-state h3{font:800 16px/1.2 "Manrope","Segoe UI",sans-serif;margin:0 0 5px}
.empty-state p{max-width:500px;margin:0 auto 14px;color:#81869a;font-size:9px}

.product-table-wrap{overflow:auto;border:1px solid #e8e5ee;border-radius:12px}
.product-table{width:100%;border-collapse:collapse;min-width:780px}
.product-table th{
  text-align:left;padding:9px 10px;background:#f8f7fb;border-bottom:1px solid #e8e5ee;
  color:#70758a;font-size:7px;text-transform:uppercase;letter-spacing:.55px
}
.product-table td{padding:9px 10px;border-bottom:1px solid #efedf4;font-size:9px;vertical-align:middle}
.product-table tr:last-child td{border-bottom:0}
.product-cell{display:flex;align-items:center;gap:9px;min-width:185px}
.thumb{
  width:42px;height:42px;border-radius:9px;background:#f3f1f7;border:1px solid #e4e1e9;
  display:grid;place-items:center;overflow:hidden;flex:0 0 auto;color:#9a9daf;font-size:8px
}
.thumb img{width:100%;height:100%;object-fit:cover}
.product-meta strong{display:block;font-size:9px}.product-meta small{display:block;color:#9396a7;font-size:7px;margin-top:2px;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status-badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:4px 6px;font-size:7px;font-weight:800}
.status-ready{background:#e8f8f1;color:#087d58}
.status-needs{background:#fff5df;color:#9a6412}
.row-actions{display:flex;justify-content:flex-end;gap:4px}
.row-icon{width:27px;height:27px;border:1px solid #e1deea;background:#fff;border-radius:8px;color:#6a6f82;font-size:11px}
.row-icon:hover{color:#6d28d9;border-color:#c6b9ef}
.row-icon.danger:hover{color:#d74444;border-color:#efbaba}

.photo-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.photo-slot{
  min-height:152px;border:1px solid #e1deea;border-radius:13px;background:#fbfbfd;overflow:hidden;
  display:grid;grid-template-rows:112px auto
}
.photo-drop{position:relative;display:grid;place-items:center;overflow:hidden;cursor:pointer;background:#f8f7fb}
.photo-drop input{position:absolute;opacity:0;pointer-events:none}
.photo-drop img{width:100%;height:100%;object-fit:cover}
.photo-placeholder{text-align:center;color:#858a9d}.photo-placeholder span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eee8ff;color:#6d28d9;margin:0 auto 6px;font-weight:900}
.photo-placeholder strong{display:block;font-size:8px}.photo-placeholder small{display:block;font-size:7px;margin-top:2px}
.photo-caption{padding:8px 9px;background:#fff;border-top:1px solid #ece9f1}
.photo-caption strong{display:block;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-caption small{display:block;font-size:7px;color:#9094a5;margin-top:2px}
.photo-empty{grid-column:1/-1;min-height:120px;border:1px dashed #d9d5e5;border-radius:13px;background:#fbfbfd;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.photo-empty span{width:32px;height:32px;border-radius:9px;background:#eee8ff;color:#6d28d9;display:grid;place-items:center;font-weight:900;margin-bottom:6px}
.photo-empty strong{font-size:9px}.photo-empty small{font-size:7px;color:#9296a7;margin-top:3px}
.photo-guidance{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.photo-guidance>div{display:grid;grid-template-columns:22px 1fr;column-gap:7px;padding:9px;border:1px solid #efedf4;border-radius:10px}
.photo-guidance span{grid-row:1/3;width:22px;height:22px;border-radius:7px;background:#e9f8f2;color:#087d58;display:grid;place-items:center;font-size:8px;font-weight:900}
.photo-guidance>div:last-child span{background:#fff3df;color:#a76a0f}
.photo-guidance strong{font-size:8px}.photo-guidance small{font-size:7px;color:#9195a6}

.form-footer{
  position:relative;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:16px;
  margin-top:12px;padding:10px 12px;border:1px solid rgba(214,210,228,.95);border-radius:12px;
  background:#fff;box-shadow:0 8px 22px rgba(22,20,60,.08)
}
.footer-left{display:flex;align-items:center;gap:12px}
.footer-left>span{color:#9296a8;font-size:8px}
.button{
  border:1px solid transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  text-decoration:none;font-weight:800;transition:.18s ease
}
.button:hover{transform:translateY(-1px)}
.button-primary{background:linear-gradient(135deg,#7934eb,#4f46e5);color:#fff;box-shadow:0 10px 22px rgba(96,55,219,.18)}
.button-secondary{background:#fff;color:#5b2bd8;border-color:#d8d2ef}
.button-large{padding:11px 16px;font-size:11px}
.button:not(.button-large){padding:8px 11px;font-size:9px}
.full{width:100%}

.summary-sidebar{
  height:100%;min-height:0;overflow:hidden;border-left:1px solid #e8e6ee;
  padding:18px 16px;background:#fbfbfd;display:flex;flex-direction:column;gap:10px
}
.summary-card{
  background:#fff;border:1px solid #e4e2ec;border-radius:14px;padding:13px 14px;margin:0;
  box-shadow:0 8px 20px rgba(22,20,60,.035)
}
.summary-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.status-pill{background:#f0eff4;color:#7d8194;border-radius:999px;padding:5px 8px;font-size:7px;font-weight:800}
.status-pill.ready{background:#e8f8f1;color:#087d58}
.readiness-main{display:flex;align-items:baseline;gap:6px;margin-top:8px}
.readiness-main strong{font:800 25px/1 "Manrope","Segoe UI",sans-serif;color:#6d28d9}
.readiness-main span{font-size:7px;text-transform:uppercase;color:#8b8fa0}
.readiness-track{height:6px;border-radius:999px;background:#eeeaf5;overflow:hidden;margin:6px 0}
.readiness-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#10b981,#4f46e5);transition:width .2s ease}
.readiness-card p,.attention-card p{color:#7e8397;font-size:8px;line-height:1.35;margin:5px 0 0}
.readiness-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.readiness-stats div{padding:8px 5px;border-radius:9px;background:#f8f7fb;text-align:center}
.readiness-stats strong{display:block;font-size:13px}.readiness-stats span{display:block;font-size:6px;color:#9296a6;text-transform:uppercase;margin-top:2px}

.summary-card h3{font:800 14px/1.2 "Manrope","Segoe UI",sans-serif;margin:6px 0 8px}
.summary-equation{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:5px;align-items:center;padding:9px;border-radius:10px;background:#f8f5ff;border:1px solid #e5def6}
.summary-equation>div{text-align:center}.summary-equation strong{display:block;color:#6d28d9;font:800 18px/1 "Manrope","Segoe UI",sans-serif}
.summary-equation span{display:block;color:#898d9e;font-size:6px;text-transform:uppercase;margin-top:3px}.summary-equation b{color:#a5a7b6}
.summary-list{list-style:none;padding:0;margin:5px 0 0}
.summary-list li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #efedf4;font-size:8px}
.summary-list span{color:#777c91}.summary-list strong{text-align:right}

.attention-card{border-color:#f0dfbd;background:#fffdf8}
.attention-card .eyebrow{color:#a76a0f}
.brand-context-row{display:flex;align-items:center;gap:9px}
.brand-mark-mini{width:34px;height:34px;border-radius:10px;background:#eee8ff;color:#6d28d9;display:grid;place-items:center;font-weight:900}
.brand-context-row strong{display:block;font-size:9px}.brand-context-row small{display:block;font-size:7px;color:#9296a7;margin-top:2px}

.field{display:block;min-width:0}
.field>span{display:block;color:#353a50;font-size:9px;font-weight:800;margin-bottom:5px}
.field>span b{color:#d84a4a}
.field input,.field textarea{
  width:100%;border:1px solid #dddbe5;border-radius:9px;background:#fff;color:#171c3e;outline:none
}
.field input{height:39px;padding:0 11px}.field textarea{padding:10px 11px;resize:vertical}
.modal-backdrop{position:fixed;inset:0;z-index:300;background:rgba(8,11,28,.56);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}
.modal{position:relative;width:min(460px,100%);border-radius:17px;background:#fff;padding:27px;box-shadow:0 30px 90px rgba(0,0,0,.28)}
.product-modal{width:min(620px,100%)}
.modal h2{font:800 24px/1.15 "Manrope","Segoe UI",sans-serif;margin:8px 0}.modal p{color:#64748b;font-size:10px;margin:0 0 18px}
.modal-close{position:absolute;right:13px;top:10px;border:0;background:none;color:#81869b;font-size:25px}
.modal-grid{display:grid;gap:12px;margin-bottom:12px}.modal-grid.two{grid-template-columns:1fr 1fr}
.modal>.field{margin-bottom:12px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.smart-price-panel{
  display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px 11px;align-items:start;
  margin:-1px 0 13px;padding:10px 11px;border:1px solid #e4d9ff;border-radius:11px;background:#faf8ff
}
.smart-price-panel[hidden]{display:none}
.smart-price-icon{width:30px;height:30px;border-radius:9px;background:#eee8ff;color:#6d28d9;display:grid;place-items:center;font-size:14px;font-weight:900}
.smart-price-copy>span{display:block;color:#6d28d9;font-size:7px;font-weight:900;letter-spacing:.09em;margin-bottom:3px}
.smart-price-copy strong{display:block;color:#171c3e;font-size:10px;line-height:1.3}
.smart-price-copy p{margin:3px 0 0;color:#697087;font-size:8px;line-height:1.45}
.smart-price-actions{grid-column:2;display:flex;gap:7px;flex-wrap:wrap;margin-top:1px}
.button.compact{min-height:30px;padding:0 11px;font-size:8px;border-radius:8px}
.smart-price-panel.verified{border-color:#ccebdc;background:#f4fbf7}
.smart-price-panel.verified .smart-price-icon{background:#def7e9;color:#0b8a59}
.smart-price-panel.verified .smart-price-copy>span{color:#0b8a59}
.smart-price-panel.attention{border-color:#efd9a8;background:#fffaf0}
.smart-price-panel.attention .smart-price-icon{background:#fff0cd;color:#a96609}
.smart-price-panel.attention .smart-price-copy>span{color:#a96609}
.smart-price-panel.kept{border-color:#e2e3eb;background:#fafafa}
.smart-price-panel.kept .smart-price-icon{background:#f0f1f5;color:#6b7280}
.smart-price-panel.kept .smart-price-copy>span{color:#6b7280}
.toast{
  position:fixed;right:22px;bottom:22px;z-index:350;transform:translateY(20px);opacity:0;pointer-events:none;
  background:#111827;color:#fff;padding:11px 14px;border-radius:10px;font-size:10px;font-weight:700;
  box-shadow:0 14px 36px rgba(0,0,0,.18);transition:.2s ease
}
.toast.show{transform:translateY(0);opacity:1}

@media(min-width:1221px){
  html,body{height:100%;overflow:hidden}
  .app-layout{overflow:hidden}
  .workflow-sidebar,.summary-sidebar{overscroll-behavior:none}
  .form-scroll{overscroll-behavior:contain}
}
@media(max-width:1220px){
  .app-layout{grid-template-columns:210px minmax(580px,1fr)}
  .summary-sidebar{display:none}
}
@media(max-width:900px){
  body{overflow:auto}
  .app-layout{height:auto;min-height:calc(100vh - 74px);grid-template-columns:1fr;overflow:visible}
  .workflow-sidebar{display:none}
  .form-workspace{height:auto;min-height:0;padding:28px 22px 45px;display:block;overflow:visible}
  #productsForm{height:auto;display:grid;grid-template-rows:auto auto;overflow:visible}
  .form-scroll{overflow:visible;padding-right:0}
  .import-actions{grid-template-columns:1fr}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .app-header{height:auto}.app-header-inner{padding:12px 16px;flex-wrap:wrap}
  .header-context{order:3;width:100%;border-left:0;padding-left:0}
  .workspace-head{flex-direction:column}
  .photo-grid,.photo-guidance,.modal-grid.two{grid-template-columns:1fr}
  .form-footer{align-items:stretch;flex-direction:column}
  .footer-left{justify-content:space-between}
}
