/* Customer tasks share the existing BrandGuard palette and typography. */
.cw-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 20px}.cw-page-head h1,.cw-page-head h2{margin:0 0 6px}.cw-page-head p,.cw-muted{color:var(--text-secondary,#62758a);line-height:1.55;margin:5px 0}.cw-path{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px;padding:0;list-style:none}.cw-path li{display:flex;align-items:center;gap:8px;padding:9px 13px;border-radius:9px;background:#f3f6f8;color:#607387;font-size:13px}.cw-path li.active{background:#e8f6fe;color:#006c9b;font-weight:600}.cw-path li.complete{background:#e8f6f0;color:#008665}.cw-path b{display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:22px;height:22px}.cw-step-title{margin:0 0 16px;font-size:18px}.cw-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.cw-main,.cw-side{min-width:0}.cw-side{background:#f5faff;border:1px solid #cce4f4;border-radius:10px;padding:16px;align-self:start}.cw-side h3{font-size:15px;margin:0 0 14px}.cw-checklist{list-style:none;margin:0;padding:0;display:grid;gap:12px}.cw-checklist li{display:grid;grid-template-columns:22px 1fr;gap:7px;font-size:13px;line-height:1.5}.cw-checklist .cw-mark{font-size:16px;font-weight:700}.cw-checklist .complete .cw-mark{color:#009b78}.cw-checklist .required .cw-mark{color:#d94747}.cw-checklist .optional .cw-mark,.cw-checklist .waiting .cw-mark{color:#7d8fa0}.cw-checklist small{display:block;color:#718397}.cw-field{display:grid;gap:7px;margin-bottom:16px;min-width:0}.cw-field>span{font-size:13px;font-weight:600}.cw-field small{font-size:12px;color:#718397;line-height:1.5}.cw-field input,.cw-field select,.cw-field textarea{width:100%;box-sizing:border-box;min-height:43px}.cw-field textarea{resize:vertical;min-height:80px}.cw-field-error{color:#b83b3b!important}.cw-optional{font-weight:400;color:#7c8d9f;font-size:12px}.cw-summary{display:grid;gap:9px}.cw-summary>div{display:flex;justify-content:space-between;gap:14px;line-height:1.5;font-size:13px}.cw-summary dt{color:#697b8d}.cw-summary dd{margin:0;text-align:right;overflow-wrap:anywhere}.cw-card{border:1px solid var(--border,#dfdfd9);border-radius:10px;padding:16px;margin-bottom:14px;background:#fff}.cw-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.cw-card-heading h3{margin:0;font-size:15px}.cw-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cw-row>*{min-width:0}.cw-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cw-sku-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:15px}.cw-thumb{width:80px;height:80px;border-radius:9px;object-fit:contain;background:#f3f2ef;border:1px solid #e4e1dc}.cw-image-placeholder{display:grid;place-items:center;color:#8191a0}.cw-image-actions{display:grid;gap:5px;margin-top:6px}.cw-image-actions button{font-size:11px;padding:5px}.cw-sku-fields{min-width:0}.cw-sku-fields .cw-field{margin-bottom:10px}.cw-sku-remove{border:0;background:none;color:#a74848;font-size:12px;cursor:pointer}.cw-file{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;overflow:hidden!important}.cw-details{border-top:1px solid #e2e8ec;padding:12px 0;margin-top:10px}.cw-details>summary{cursor:pointer;color:#51718a;font-size:13px;padding:5px 0}.cw-details[open]>summary{margin-bottom:12px}.cw-image-note{font-size:12px;line-height:1.5;margin-top:8px;color:#697e90}.cw-banner{padding:12px 15px;border-radius:8px;border:1px solid #cce5f3;background:#eef8fe;line-height:1.55;margin-bottom:16px}.cw-banner.error{background:#fff3f2;border-color:#f1c5c2;color:#b03a34}.cw-banner.success{background:#eaf8f2;border-color:#b7e3d5;color:#04795d}.cw-banner.warning{background:#fff9e9;border-color:#eadbb1;color:#866821}.cw-overlay{position:fixed;inset:0;z-index:1100;background:rgba(22,41,61,.42);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px}.cw-dialog{background:#fff;border-radius:15px;box-shadow:0 20px 65px #15283d35;width:min(1040px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;overflow:hidden}.cw-dialog-head{padding:22px 25px 14px;display:flex;justify-content:space-between;gap:15px}.cw-dialog-head h2{font-size:22px;margin:0 0 6px}.cw-dialog-head p{font-size:13px;margin:0;color:#718397;line-height:1.6}.cw-close{border:0;background:none;color:#657b8c;font-size:24px;cursor:pointer;align-self:start}.cw-dialog-body{padding:5px 25px 22px;overflow:auto;min-height:0}.cw-dialog-foot{border-top:1px solid #e3e8ec;padding:15px 25px;display:flex;align-items:center;justify-content:space-between;gap:10px}.cw-dialog-foot .cw-row{justify-content:flex-end}.cw-choice{display:flex;gap:10px;align-items:flex-start;border:1px solid #dde4e9;border-radius:9px;padding:12px;margin-bottom:10px;cursor:pointer}.cw-choice input{width:auto;margin-top:4px}.cw-choice strong{display:block;font-size:14px}.cw-choice small{display:block;font-size:12px;color:#6a8094;margin-top:4px;line-height:1.5}.cw-item-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 90px 26px;gap:12px;align-items:end;border-bottom:1px solid #e6eaed;padding-bottom:12px;margin-bottom:16px}.cw-item-line .cw-field{margin:0}.cw-line-preview{display:flex;align-items:center;gap:12px;margin:-3px 0 18px;color:#637c8d;font-size:13px}.cw-line-preview img{width:42px;height:42px;object-fit:contain;border-radius:6px}.cw-empty{padding:30px 20px;text-align:center;color:#718397;line-height:1.7}.cw-status{display:inline-block;padding:4px 9px;background:#eef4f8;color:#476987;border-radius:20px;font-size:12px;white-space:nowrap}.cw-status.complete{color:#038a65;background:#e7f7ef}.cw-status.required{color:#bd4744;background:#fff0ef}.cw-table{width:100%;border-collapse:collapse}.cw-table th,.cw-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #e4e9ed;font-size:13px;vertical-align:top}.cw-table th{color:#667d91;background:#f6f8fa;font-size:12px}.cw-table small{display:block;color:#7c8c9b;margin-top:5px}.cw-table .item-link{text-align:left}.cw-table-wrap{overflow:auto}.cw-project-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.cw-project-stats>div{border:1px solid #dde6ec;border-radius:9px;padding:14px}.cw-project-stats strong{display:block;font-size:23px;margin-top:7px}.cw-project-stats span{font-size:12px;color:#647d90}.cw-progress{height:6px;background:#e5edf2;border-radius:8px;overflow:hidden;margin-top:8px;max-width:160px}.cw-progress i{display:block;height:100%;background:#00a0e9}.cw-action-link{border:0;background:none;color:#007ab0;text-decoration:underline;cursor:pointer;font:inherit}.cw-import-preview{max-height:340px;overflow:auto}.cw-project-content{padding-top:14px}.cw-product-checks{margin:0 0 18px}.cw-resume{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cw-primary-action{white-space:nowrap}.cw-readonly-note{padding:8px 0;color:#6b8093;font-size:12px}.cw-toolbar-secondary{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.cw-hidden{display:none!important}
@media(max-width:800px){.cw-grid{grid-template-columns:1fr}.cw-side{order:2}.cw-item-line{grid-template-columns:minmax(0,1fr) 95px 26px}.cw-item-line>.cw-field:first-child{grid-column:1/-1}.cw-project-stats{grid-template-columns:repeat(2,1fr)}.cw-page-head{flex-wrap:wrap}.cw-dialog-head,.cw-dialog-foot{padding:16px}.cw-dialog-body{padding:0 16px 18px}.cw-dialog{max-height:calc(100dvh - 20px)}.cw-overlay{padding:10px}.cw-dialog-foot{align-items:stretch;flex-wrap:wrap}.cw-dialog-foot .cw-row{flex:1}.cw-two{grid-template-columns:1fr}.cw-sku-row{grid-template-columns:65px minmax(0,1fr);gap:10px}.cw-thumb{width:60px;height:60px}.cw-path{gap:5px}.cw-path li{padding:7px 9px;font-size:12px}.cw-table th,.cw-table td{padding:10px 8px}.cw-project-stats strong{font-size:19px}}

/* Product completion status is a compact read-only strip, separate from the form. */
.cw-product-checks .cw-path{margin-bottom:10px}.cw-product-checks .cw-checklist{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cw-product-checks .cw-checklist li{padding:9px 11px;border:1px solid #e0e8ee;border-radius:8px;background:#f8fbfd;gap:5px}.cw-product-checks .cw-checklist small{font-size:11px}.cw-product-checks{margin-bottom:15px}.cw-product-skus .product-authoring-section-heading{margin-bottom:12px}.cw-product-skus .cw-card{padding:13px}.cw-product-skus .cw-image-note{margin-bottom:0}.cw-product-skus .cw-card-heading{margin-bottom:9px}.cw-product-skus .cw-details{padding:5px 0;margin-top:4px}.product-authoring-dialog .cw-product-checks .cw-path li{padding:6px 10px}.product-authoring-dialog .cw-product-checks .cw-path b{height:20px;width:20px}
@media(max-width:600px){.cw-product-checks .cw-checklist{grid-template-columns:1fr}.cw-product-checks .cw-checklist li{padding:5px 9px}.cw-product-checks .cw-checklist li>div{display:flex;justify-content:space-between;gap:10px}.cw-product-checks .cw-checklist small{text-align:right}}
#items-create-range-btn[hidden],#items-report-btn[hidden],#items-labels-btn[hidden]{display:none!important}

/* V4.4.9 W01: compact customer identities, destination editing and quantity review. */
.iw-route-editor>summary .iw-route-compact{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:7px;color:var(--text-primary,#26384b)}
.iw-route-editor[open]>summary .iw-route-compact{display:none}
.iw-append-summary{background:#f3f8fc;border:1px solid #d4e3ef;border-radius:10px;padding:14px;margin:16px 0 10px}
.iw-append-summary>div:last-child{font-weight:700;border-top:1px solid #d4e3ef;padding-top:10px}
.iw-item-identity{min-width:0;max-width:260px;display:grid;gap:5px}
.iw-identity-primary{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.iw-identity-details{max-width:260px;min-width:0;font-size:12px;line-height:1.6}
.iw-identity-details>summary{cursor:pointer;color:var(--text-secondary,#62758a)}
.iw-identity-details code{display:block;white-space:normal;overflow-wrap:anywhere;margin:6px 0}
.item-detail-head .iw-item-identity{max-width:min(650px,72vw)}
.item-detail-head .iw-identity-details button{font-size:12px;padding:6px 10px;background:transparent;border:1px solid var(--border,#dfdfd9);border-radius:6px}
#item-saved-destination-value[hidden]{display:none!important}
@media(max-width:600px){.iw-item-identity,.iw-identity-details{max-width:180px}.iw-append-summary>div{flex-wrap:wrap}.iw-append-summary dd{text-align:left}}

/* Domain review remains readable at narrow widths. */
.brand-redirect-impact { margin-top: 12px; padding: 14px; background: #f5f8fc; border: 1px solid #cbd5e1; border-radius: 10px; overflow-wrap: anywhere; }
.brand-redirect-impact table { width: 100%; }
.brand-redirect-impact th, .brand-redirect-impact td { padding: 6px; text-align: left; }
.brand-redirect-impact button { margin: 4px 4px 0 0; }
/* V4.4.9 screenshot review: direct <main> grid children must be allowed to shrink. */
#page-batches .cw-grid > main{min-width:0;max-width:100%}
#page-batches .cw-table-wrap,#page-batches .cw-item-records{min-width:0;max-width:100%;overflow-x:auto}
#page-batches .cw-page-head > div{min-width:0;overflow-wrap:anywhere}
@media(max-width:800px){
  #page-batches .cw-grid{grid-template-columns:minmax(0,1fr)}
  #page-batches .cw-grid > .cw-side{order:-1}
  #page-batches .cw-summary > div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #page-batches .cw-summary :is(dt,dd){min-width:0;overflow-wrap:anywhere}
  #page-batches .cw-page-head .cw-status{white-space:normal}
}
/* Separate the original order from later factory requirements. */
.cw-order-requirements .cw-current-requirements{margin-top:16px;padding-top:16px;border-top:1px solid #e4e9ed}

/* Keep each quantity-import result readable on narrow screens. */
#cw-dialog .btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:640px){
 .iw-import-review .cw-table,.iw-import-review tbody{display:block;min-width:0;width:100%}
 .iw-import-review thead{display:none}
 .iw-import-review tr{display:block;border:1px solid #e4e9ed;border-radius:8px;margin:0 0 10px;padding:6px 0}
 .iw-import-review td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:4px 12px;padding:6px 10px;border:0;white-space:normal;overflow-wrap:anywhere}
 .iw-import-review td::before{content:attr(data-label);font-weight:600;color:#62758a}
 .iw-import-review td small{grid-column:2;margin:0}
 #cw-dialog[data-kind="create-import"] .cw-dialog-foot{align-items:center}
}

/* Direct product results and explicit verification experience. */
.iw-product-results{display:grid;max-height:220px;overflow:auto;border:1px solid #d7e2e8;border-radius:8px;min-width:0}.iw-product-results[hidden]{display:none}.iw-product-results:empty{display:none}.iw-product-results button{border:0;border-bottom:1px solid #e6ecf0;border-radius:0;background:white;text-align:left;padding:12px;min-height:44px;white-space:normal;overflow-wrap:anywhere;font:inherit;color:inherit;cursor:pointer}.iw-product-results button:last-child{border-bottom:0}.iw-product-results button:hover,.iw-product-results button.active,.iw-product-results button:focus-visible{background:#e9f6fc;outline:2px solid #007eae;outline-offset:-2px}.iw-product-results button[aria-selected=true]{font-weight:700;background:#eff9f5}.iw-product-selected{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.iw-entry-card{padding:14px;border:1px solid #cbdfe9;background:#f3f9fc;border-radius:8px;margin:12px 0;overflow-wrap:anywhere}.iw-entry-card code{display:block;white-space:normal;overflow-wrap:anywhere;margin:8px 0}.iw-entry-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.iw-destination label{min-width:0}.iw-destination select{max-width:100%}

.iw-entry-fieldset{border:0;padding:0;margin:24px 0;min-width:0}.iw-entry-fieldset legend{font-size:1.15rem;font-weight:700;margin-bottom:14px}.iw-entry-fieldset:disabled{opacity:.8}

/* V5.2: stable selected products, readable entry facts and scoped handoff controls. */
.iw-product-results [role="option"]{white-space:normal;overflow-wrap:anywhere;height:auto;min-height:44px;line-height:1.5}
.iw-product-selected{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid #bbd8ca;border-radius:10px;background:#edf8f1;color:#193f30}
.iw-product-selected>div{flex:1;min-width:180px}.iw-product-selected strong,.iw-product-selected small{display:block;white-space:normal;overflow-wrap:anywhere}
.iw-product-selected img{width:48px;height:48px;object-fit:cover;border-radius:6px}.iw-product-selected details{width:100%}
.iw-entry-review{display:flex;flex-direction:column;gap:6px;line-height:1.5;min-width:180px}.iw-entry-review code,.iw-entry-review .iw-url{white-space:normal;overflow-wrap:anywhere}
.iw-entry-review small{display:block;color:#526278}.iw-entry-review details{margin-top:2px}.iw-handoff-toolbar{padding:10px 0;flex-wrap:wrap}.iw-handoff-toolbar small{color:#526278}
.iw-route-facts{display:grid;gap:8px;margin:0;min-width:0}.iw-route-facts dt{font-weight:600}.iw-route-facts dd{margin:2px 0 0;overflow-wrap:anywhere}.iw-route-facts dd small{margin-top:2px}
.brand-domain-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid #dce3ea}.brand-domain-row small{display:block}.brand-domain-row+.cw-row,#brand-domain-controls{margin-top:12px}
.iw-created-summary{margin-top:16px;padding:16px;border:1px solid #c5dace;border-radius:10px;background:#f3faf5}.cw-summary dd{white-space:pre-wrap;overflow-wrap:anywhere}

/* Keep the route source distinct in both table and creation summary cards. */
.iw-confirmed-summary small,.iw-url { display:block; }
.iw-url { margin-top:3px; overflow-wrap:anywhere; }

.iw-address-details summary{overflow-wrap:anywhere;cursor:pointer}.iw-address-details code{display:block;white-space:normal;overflow-wrap:anywhere}

/* Optional product branding is discoverable without competing with product facts. */
.pw-verification-logo>summary{cursor:pointer;font-weight:600;color:var(--text-primary,#26384b);line-height:1.6}.pw-verification-logo>summary>small{font-size:12px;font-weight:400;color:var(--text-secondary,#62758a);margin-left:14px}.pw-logo-discovery{display:block;font-size:12px;font-weight:400;color:var(--text-secondary,#62758a);margin-top:3px}.pw-logo-content{padding-top:16px}.pw-logo-choices{border:0;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:12px 22px;min-width:0}.pw-logo-choices legend{font-size:12px;color:var(--text-secondary,#62758a);margin-bottom:10px}.pw-logo-choices label{display:flex;align-items:center;gap:8px;font-size:13px}.pw-logo-choices input{width:auto!important;min-height:0!important}.pw-logo-upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.pw-logo-upload small{color:var(--text-secondary,#62758a)}.pw-logo-upload .cw-banner{width:100%;margin:0}.pw-logo-preview{display:grid;gap:8px;max-width:540px;border:1px solid #dae5ea;background:white;border-radius:9px;padding:16px;margin:14px 0}.pw-logo-preview-header{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px}.pw-logo-preview-header>[data-product-logo-image]{display:flex;min-width:0;max-width:65%;font-size:22px;font-weight:700;color:#0084ab}.pw-logo-preview-header img{max-width:100%;width:auto;max-height:52px;object-fit:contain}.pw-logo-preview-header>span:last-child{font-size:10px;letter-spacing:.08em;color:#718397}.pw-logo-preview>small{font-size:11px;color:#718397}.pw-verification-logo .pw-context-note{line-height:1.6}.pw-logo-preview-header img[hidden]{display:none}
@media(max-width:600px){.pw-verification-logo>summary>small{display:block;margin-left:0}.pw-logo-choices{display:grid;gap:12px}.pw-logo-preview{padding:12px}.pw-logo-preview-header{gap:10px}.pw-logo-preview-header>[data-product-logo-image]{max-width:58%}.pw-logo-preview-header>span:last-child{font-size:9px;max-width:80px}}

/* Keep local image previews distinct from the last confirmed catalog read. */
.pw-image-saved{border-top:1px solid #dae5ea;margin-top:8px;padding-top:8px;display:grid;justify-items:center;gap:6px;max-width:100%}.pw-image-saved .cw-thumb{max-width:100%;object-fit:contain}.pw-image-selection-label{color:#526278;text-align:center}
