/* Listing light-theme neutral palette override. Loaded after flow-polish.css. */
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) {
  --xwl-flow-bg: #f5f6f8;
  --xwl-flow-line: #dfe3e8;
  --xwl-flow-shadow: 0 .35rem 1.2rem rgba(23, 35, 62, .055);
  background: #f5f6f8;
  color: #1f2937;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-main,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-main,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-stack,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-box,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-textarea,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-topbar,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-frame,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-back,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-compare > section,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-keywords,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-history-preview,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-save {
  background: #fff;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:hover,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:focus-visible,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-row.is-expanded,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullets-section .xwl-bullet-box.xwl-bullet-row.is-expanded,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-history {
  background: #f8f9fb;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-improvement,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-keyword-list > span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary > div {
  background: #f8fafc;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-notice {
  border-left-color: #4f6fed;
  background: #f8fafc;
  color: #344054;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-notice.xwl-success {
  border-left-color: #0d9463;
  background: #ecfdf3;
  color: #05603a;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-muted,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) small {
  color: #4b5563;
  font-size: .875rem;
  line-height: 1.45;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-flow-step,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary dt,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-note,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task .xwl-small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-title,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-title > span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-head > span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-evidence,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics > summary,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostic-row,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-row > b {
  color: #4b5563;
  font-size: .8125rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-flow-step > strong,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task strong,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-title > strong {
  color: #27364a;
  font-size: .875rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-history-preview small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-history-preview p,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-studio-history-filters button {
  color: #475467;
  font-size: .875rem;
}

/* Listing editor: larger type, clearer rhythm, and complete field modules. */
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-main {
  padding: 1.35rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-head {
  padding-bottom: 1.1rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-head h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-head .xwl-small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-head > .xwl-badge {
  font-size: .875rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs {
  margin-bottom: .45rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-tab {
  min-height: 2.9rem;
  font-size: .9375rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-body,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points {
  gap: 1.5rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points {
  gap: 0;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points > .xwl-editor-field,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section {
  box-sizing: border-box;
  padding: 1.4rem 0 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points > .xwl-editor-field {
  gap: 1rem;
  padding-top: 0;
  padding-bottom: .65rem;
  border-bottom: .0625rem solid #e2e5e9;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-field-head {
  min-height: 2.35rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-field-head > label,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-section-heading > strong {
  color: #172033;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-field-head small {
  margin-left: .35rem;
  color: #5f6b7a;
  font-size: .875rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-body .xwl-textarea {
  padding: .95rem 1rem;
  border-color: #cfd6df;
  border-radius: .625rem;
  color: #202a39;
  font-size: 1.0625rem;
  line-height: 1.65;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points > .xwl-editor-field > .xwl-textarea,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points > .xwl-editor-field > .xwl-keyword-highlight-editor .xwl-textarea {
  min-height: 5.5rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan {
  gap: .8rem;
  padding-top: 1rem;
  border-top: .0625rem solid #e5e7eb;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-title,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-title > span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan-head > span {
  color: #3f4b5d;
  font-size: .875rem;
  line-height: 1.45;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword-chips {
  gap: .45rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword-more {
  min-height: 2rem;
  padding: .35rem .58rem;
  font-size: .9375rem;
  line-height: 1.35;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section {
  gap: 1.15rem;
  padding-top: .75rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section > .xwl-row-head {
  min-height: 3.25rem;
  padding: 0 0 1.15rem;
  border-bottom: .0625rem solid #e2e6ec;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section .xwl-bullet-stack {
  border: 0;
  border-radius: 0;
  background: #fff;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section .xwl-bullet-box {
  border-bottom-color: #e2e5e9;
  background: #fff;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary {
  min-height: 6rem;
  padding: 1.25rem .75rem;
  grid-template-columns: minmax(11.5rem, .75fr) minmax(0, 2.25fr) auto;
  gap: 1.25rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-label > b {
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  background: #eceeef;
  color: #667085;
  font-size: .9375rem;
  font-weight: 500;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary .xwl-bullet-label strong {
  font-size: 1.0625rem;
  line-height: 1.4;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-preview > span {
  display: -webkit-box;
  overflow: hidden;
  color: #667085;
  font-size: 1.0625rem;
  line-height: 1.65;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded .xwl-bullet-summary {
  grid-template-columns: minmax(10rem, 1fr) auto;
  min-height: 3.25rem;
  padding: .7rem .75rem .35rem;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded .xwl-bullet-preview {
  display: none;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-detail-head {
  min-height: 2rem;
  justify-content: flex-end;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-char-count {
  margin-right: auto;
  color: #5f6b7a;
  font-size: .875rem;
  line-height: 1.4;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-preview > small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-meta small {
  color: #5f6b7a;
  font-size: .8125rem;
  line-height: 1.45;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact {
  border: 0;
  background: transparent;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact > summary {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 2.5rem;
  margin: .25rem 0;
  padding: .45rem .65rem;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  list-style: none;
  border: .0625rem solid #d8dee8;
  border-radius: .4rem;
  background: #f0f2f5;
  color: #344054;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact > summary:hover,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact > summary:focus-visible {
  border-color: #c5ccd6;
  background: #e5e8ec;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact > summary::-webkit-details-marker {
  display: none;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact > summary i {
  flex: 0 0 auto;
  color: #667085;
  transition: transform .16s ease;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact[open] > summary i {
  transform: rotate(180deg);
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-diagnostics-compact .xwl-field-diagnostic-body {
  padding: .65rem 0 0;
}

/* Sea-blue interaction states: stronger contrast without adding visual weight. */
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn.is-active,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn.is-selected,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn[aria-pressed="true"] {
  border-color: #077f98;
  background: #0891b2;
  color: #fff;
  box-shadow: 0 .2rem .65rem rgba(8, 145, 178, .24);
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn.is-active > span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn.is-selected > span,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-filter .xwl-btn[aria-pressed="true"] > span {
  color: #fff;
  opacity: 1;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task.is-active,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task.is-selected,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task[aria-current="true"] {
  border-color: #077f98;
  background: #0891b2;
  color: #fff;
  box-shadow: inset .18rem 0 #066d82, 0 .22rem .7rem rgba(8, 145, 178, .22);
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task.is-active > i,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task.is-active .xwl-small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task.is-active .xwl-plan-task-arrow,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task[aria-current="true"] > i,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task[aria-current="true"] .xwl-small,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task[aria-current="true"] .xwl-plan-task-arrow {
  color: #fff;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword.is-active,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword[aria-pressed="true"] {
  border-color: #077f98;
  background: #0891b2;
  color: #fff;
  box-shadow: inset 0 0 0 .0625rem #077f98, 0 .22rem .7rem rgba(8, 145, 178, .26);
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword.is-active > i,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-field-plan .xwl-field-keyword[aria-pressed="true"] > i {
  color: #fff;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-highlight-mirror mark.exact,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-highlight-mirror mark.natural,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-highlight-mirror mark.scattered {
  background: rgba(8, 145, 178, .22);
  box-shadow: inset 0 -.13rem #0891b2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-highlight-mirror mark.xwl-review-risk-hit {
  color: #991b1b;
  background: rgba(254, 202, 202, .68);
  box-shadow: inset 0 -.13rem #ef4444;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-inline-translation {
  margin-top: -.15rem;
  padding: .7rem .8rem;
  border-left-color: #0891b2;
  background: #f2fbfc;
  color: #172033;
  font-size: .9375rem;
  line-height: 1.65;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-inline-translation strong {
  color: #172033;
  font-size: .8125rem;
  font-weight: 700;
}

/* Keep the existing optimize-control footprint; only change its visual shape. */
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-editor-field-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  justify-self: end;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-rewrite-trigger {
  border: 0;
  border-radius: 999px;
  background: #e7f7fa;
  color: #087f99;
  box-shadow: inset 0 0 0 .0625rem #8fd6e2;
  opacity: 1;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-rewrite-trigger:hover,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-rewrite-trigger:focus-visible {
  background: #0891b2;
  color: #fff;
  box-shadow: inset 0 0 0 .0625rem #077f98, 0 .18rem .55rem rgba(8, 145, 178, .22);
  opacity: 1;
}

/* The Listing translation switch belongs to the editor, not the page toolbar. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
  min-width: 0;
  flex: 1 1 auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions {
  flex: 0 0 auto;
  margin-top: .45rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions > .xwl-translate-toggle {
  flex: 0 0 auto;
}

/* Optimization history opens as a centered window over the current Listing. */
#copy .xwl-history-layer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  padding: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
}

#copy .xwl-history-layer .xwl-candidate-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(.12rem);
}

#copy .xwl-history-layer .xwl-history-drawer {
  position: relative;
  inset: auto;
  z-index: 1;
  width: min(58rem, calc(100vw - 2rem));
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: .0625rem solid #d8e2ea;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .24);
  transform: none;
}

#copy .xwl-history-layer .xwl-history-layout {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: block;
  grid-template-columns: none;
}

#copy .xwl-history-layer .xwl-history-list,
#copy .xwl-history-layer .xwl-history-compare {
  max-height: none;
  border-right: 0;
}

body:not(.theme-dark) #copy .xwl-history-filters button.is-active {
  border-color: #077f98;
  background: #0891b2;
  color: #fff;
  box-shadow: 0 .18rem .55rem rgba(8, 145, 178, .22);
}

body:not(.theme-dark) #copy .xwl-history-item.is-active {
  background: #e7f7fa;
  color: #076f85;
  box-shadow: inset .18rem 0 #0891b2;
}

body:not(.theme-dark) #copy .xwl-history-compare > .xwl-history-option {
  position: relative;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

body:not(.theme-dark) #copy .xwl-history-compare > .xwl-history-option:hover {
  border-color: #8fd6e2;
  background: #f7fcfd;
}

body:not(.theme-dark) #copy .xwl-history-compare > .xwl-history-option:focus-visible {
  outline: .16rem solid rgba(8, 145, 178, .28);
  outline-offset: .1rem;
}

body:not(.theme-dark) #copy .xwl-history-compare > .xwl-history-option.is-selected {
  border-color: #0891b2;
  background: #e7f7fa;
  box-shadow: 0 0 0 .14rem rgba(8, 145, 178, .18), 0 .28rem .8rem rgba(8, 145, 178, .12);
}

body:not(.theme-dark) #copy .xwl-history-option-selected {
  position: absolute;
  top: .65rem;
  right: .7rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #0891b2;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.4;
}

body:not(.theme-dark) #copy .xwl-history-layer .xwl-candidate-drawer-actions .xwl-btn.primary {
  border-color: #077f98;
  background: #0891b2;
  color: #fff;
  box-shadow: 0 .22rem .7rem rgba(8, 145, 178, .24);
}

body:not(.theme-dark) #copy .xwl-history-layer .xwl-candidate-drawer-actions .xwl-btn.primary:hover,
body:not(.theme-dark) #copy .xwl-history-layer .xwl-candidate-drawer-actions .xwl-btn.primary:focus-visible {
  border-color: #066d82;
  background: #077f98;
}

/* History is a single list of complete bilingual results, not a before/after workspace. */
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-candidate-drawer-head,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-filters {
  flex: 0 0 auto;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-filters {
  overflow-x: auto;
  scrollbar-width: thin;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-filters button {
  flex: 0 0 auto;
  white-space: nowrap;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-list {
  min-height: 0;
  max-height: calc(100vh - 10rem);
  flex: 1 1 auto;
  padding: 1rem;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: .72rem;
  background: #f7f9fb;
  scrollbar-width: thin;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: .9rem 1rem;
  border: .0625rem solid #dce4e9;
  border-radius: .72rem;
  display: grid;
  gap: .7rem;
  background: #fff;
  color: #263548;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card:hover:not(:disabled) {
  border-color: #8fd6e2;
  background: #fbfeff;
  box-shadow: 0 .3rem .9rem rgba(8, 145, 178, .09);
  transform: translateY(-.04rem);
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card.is-selected,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card[aria-pressed="true"] {
  border-color: #0891b2;
  background: #f0fbfd;
  box-shadow: 0 0 0 .14rem rgba(8, 145, 178, .18), 0 .3rem .9rem rgba(8, 145, 178, .1);
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card:focus-visible {
  outline: .16rem solid rgba(8, 145, 178, .28);
  outline-offset: .12rem;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card.is-current,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card[aria-current="true"] {
  border-color: #dce4e9;
  background: #fff;
  box-shadow: none;
  cursor: default;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card:disabled:not(.is-current) {
  opacity: .56;
  cursor: not-allowed;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card.is-current:disabled {
  opacity: 1;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-header,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .48rem;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-time,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-head > time {
  color: #172033;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-field,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-field {
  color: #64748b;
  font-size: .72rem;
  line-height: 1.35;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-current,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-current-badge,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-selected-badge {
  margin-left: auto;
  padding: .18rem .48rem;
  border-radius: 999px;
  background: #0891b2;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-selected-badge {
  background: #dff5f8;
  color: #087f99;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-current-badge {
  background: #eef2f6;
  color: #64748b;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language {
  min-width: 0;
  display: grid;
  gap: .28rem;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language + .xwl-history-language {
  padding-top: .65rem;
  border-top: .0625rem dashed #d9e2e8;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language > strong,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card .xwl-history-language > small {
  color: #64748b;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language > span,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language > p {
  margin: 0;
  color: #334155;
  font-size: .78rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-missing,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language.is-missing > span,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language.is-missing > p,
#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-language > span.is-missing {
  color: #94a3b8;
  font-style: normal;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-empty {
  padding: 3rem 1rem;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: .55rem;
  padding: .75rem 1rem;
  border-top: .0625rem solid #dce4e9;
  background: #fff;
}

#copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-selection {
  min-width: 0;
  margin-right: auto;
  align-self: center;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xwl-history-confirm {
  width: min(28rem, calc(100vw - 2rem));
  max-width: 100%;
}

#copy .xwl-history-confirm-layer {
  z-index: 1340;
}

#copy .xwl-history-confirm .xwl-modal-body {
  display: grid;
  gap: 1rem;
}

#copy .xwl-history-confirm .xwl-actions {
  justify-content: flex-end;
}

/* Rewriting stays in context: a centered modal opens immediately and owns the running/result states. */
#copy .xwl-rewrite-layer {
  position: fixed;
  inset: 0;
  z-index: 1320;
  padding: clamp(.85rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
}

#copy .xwl-rewrite-layer .xwl-candidate-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, .44);
  backdrop-filter: blur(.14rem);
}

#copy .xwl-rewrite-layer .xwl-rewrite-dialog {
  position: relative;
  inset: auto;
  z-index: 1;
  width: min(70rem, calc(100vw - 2rem));
  max-width: 100%;
  height: min(46rem, calc(100vh - 2rem));
  max-height: 100%;
  overflow: hidden;
  border: .0625rem solid #d7e1e8;
  border-radius: 1rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .26);
  transform: none;
}

#copy .xwl-rewrite-dialog .xwl-candidate-drawer-head,
#copy .xwl-rewrite-dialog .xwl-candidate-drawer-toolbar,
#copy .xwl-rewrite-dialog .xwl-candidate-drawer-actions {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

#copy .xwl-rewrite-dialog .xwl-candidate-drawer-body {
  min-height: 0;
  padding: 1.25rem;
  overflow: auto;
}

#copy .xwl-rewrite-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
}

#copy .xwl-rewrite-nav {
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  border-right: .0625rem solid #dce4e9;
  overflow-y: auto;
  background: #f7f9fb;
}

#copy .xwl-rewrite-nav-heading {
  padding: .2rem .15rem 1rem;
  display: grid;
  gap: .25rem;
}

#copy .xwl-rewrite-nav-heading strong {
  color: #172033;
  font-size: .96rem;
}

#copy .xwl-rewrite-nav-heading span {
  color: #526173;
  font-size: .8rem;
}

#copy .xwl-rewrite-nav-current {
  padding: .78rem;
  border: .0625rem solid #a9dce5;
  border-radius: .65rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #e7f7fa;
  color: #076f85;
  box-shadow: inset .18rem 0 #0891b2;
}

#copy .xwl-rewrite-nav-current.is-failed {
  border-color: #efc8c8;
  background: #fff5f5;
  color: #b42318;
  box-shadow: inset .18rem 0 #d92d20;
}

#copy .xwl-rewrite-nav-current > span {
  min-width: 0;
  display: grid;
  gap: .16rem;
}

#copy .xwl-rewrite-nav-current strong,
#copy .xwl-rewrite-nav-current small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xwl-rewrite-nav-current small {
  font-size: .72rem;
}

#copy .xwl-rewrite-nav ol {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
  list-style: none;
}

#copy .xwl-rewrite-version-list {
  display: grid;
  gap: .45rem;
}

#copy .xwl-rewrite-version-item {
  width: 100%;
  min-height: 3.6rem;
  padding: .65rem .7rem;
  border: .0625rem solid transparent;
  border-radius: .65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  background: transparent;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

#copy .xwl-rewrite-version-item > span {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

#copy .xwl-rewrite-version-item strong,
#copy .xwl-rewrite-version-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xwl-rewrite-version-item small {
  color: #64748b;
  font-size: .75rem;
}

#copy .xwl-rewrite-version-item:hover,
#copy .xwl-rewrite-version-item:focus-visible {
  border-color: #9bdce7;
  background: #f0fbfd;
  outline: none;
}

#copy .xwl-rewrite-version-item.is-active {
  border-color: #0891b2;
  background: #e7f7fa;
  color: #076f85;
  box-shadow: inset .18rem 0 #0891b2;
}

#copy .xwl-rewrite-nav li {
  padding: .55rem .45rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #667386;
  font-size: .8rem;
}

#copy .xwl-rewrite-nav li > span {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8edf1;
  color: #5d6978;
  font-size: .72rem;
}

#copy .xwl-rewrite-nav li.is-active,
#copy .xwl-rewrite-nav li.is-done {
  color: #076f85;
  font-weight: 650;
}

#copy .xwl-rewrite-nav li.is-active > span,
#copy .xwl-rewrite-nav li.is-done > span {
  background: #0891b2;
  color: #fff;
}

#copy .xwl-rewrite-main {
  background: #fff;
}

#copy .xwl-rewrite-dialog .xwl-candidate-copy {
  min-height: 0;
  color: #152033;
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

#copy .xwl-rewrite-result {
  display: grid;
  gap: .85rem;
}

#copy .xwl-rewrite-result.is-comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

#copy .xwl-rewrite-result-card {
  padding: 1rem;
  border: .0625rem solid #d7e1e8;
  border-radius: .72rem;
  background: #fff;
}

#copy .xwl-rewrite-result-card.is-current {
  background: #f8fafb;
}

#copy .xwl-rewrite-result-card > header {
  margin-bottom: .75rem;
  padding-bottom: .65rem;
  border-bottom: .0625rem dashed #d7e1e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

#copy .xwl-rewrite-result-card > header strong {
  color: #172033;
  font-size: .94rem;
}

#copy .xwl-rewrite-result-card > header span {
  padding: .16rem .5rem;
  border-radius: 999px;
  background: #e7f7fa;
  color: #077f98;
  font-size: .72rem;
  font-weight: 650;
}

#copy .xwl-rewrite-validation {
  grid-column: 1 / -1;
  padding: .95rem 1rem;
  border: .0625rem solid #b8ded1;
  border-radius: .72rem;
  background: #f1faf7;
}

#copy .xwl-rewrite-validation.is-blocked {
  border-color: #efc5c5;
  background: #fff7f7;
}

#copy .xwl-rewrite-validation > header,
#copy .xwl-rewrite-validation > header > span {
  display: flex;
  align-items: center;
  gap: .5rem;
}

#copy .xwl-rewrite-validation > header {
  justify-content: space-between;
  color: #12664f;
}

#copy .xwl-rewrite-validation.is-blocked > header {
  color: #a83d3d;
}

#copy .xwl-rewrite-validation > header b {
  font-size: .74rem;
  font-weight: 650;
}

#copy .xwl-rewrite-protected {
  margin-top: .75rem;
  display: grid;
  gap: .45rem;
}

#copy .xwl-rewrite-protected > span {
  color: #526173;
  font-size: .76rem;
}

#copy .xwl-rewrite-protected > div {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

#copy .xwl-rewrite-protected b {
  padding: .24rem .55rem;
  border-radius: 999px;
  background: #dcefe9;
  color: #155e4a;
  font-size: .72rem;
  font-weight: 650;
}

#copy .xwl-rewrite-validation ul {
  margin: .7rem 0 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  list-style: none;
}

#copy .xwl-rewrite-validation li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  color: #346657;
  font-size: .78rem;
  line-height: 1.5;
}

#copy .xwl-rewrite-validation li.is-error {
  color: #9f3434;
}

#copy .xwl-rewrite-confirm-card {
  min-height: 17rem;
  padding: 1.4rem;
  border: .0625rem solid #d7e1e8;
  border-radius: .85rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: .85rem;
  background: #fff;
  color: #172033;
}

#copy .xwl-rewrite-confirm-card > i {
  color: #0891b2;
  font-size: 1.35rem;
}

#copy .xwl-rewrite-confirm-card > div > strong {
  font-size: 1.05rem;
}

#copy .xwl-rewrite-confirm-card > div > p {
  margin: .35rem 0 0;
  color: #42526a;
  line-height: 1.6;
}

#copy .xwl-rewrite-confirm-card > section {
  grid-column: 1 / -1;
  margin-top: .45rem;
  padding: 1rem;
  border-radius: .7rem;
  background: #f7f9fb;
}

#copy .xwl-rewrite-confirm-card > section > small {
  display: block;
  margin-bottom: .55rem;
  color: #526173;
  font-weight: 650;
}

#copy .xwl-rewrite-loading,
#copy .xwl-rewrite-error {
  min-height: 15rem;
  padding: 2rem;
  border: .0625rem solid #dce6eb;
  border-radius: .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  text-align: center;
  background: #f8fbfc;
  color: #172033;
}

#copy .xwl-rewrite-loading > i,
#copy .xwl-rewrite-error > i {
  color: #0891b2;
  font-size: 1.8rem;
}

#copy .xwl-rewrite-loading > strong,
#copy .xwl-rewrite-error > strong {
  font-size: 1.08rem;
}

#copy .xwl-rewrite-loading > p,
#copy .xwl-rewrite-error > p {
  margin: 0;
  color: #42526a;
  font-size: .92rem;
}

#copy .xwl-rewrite-loading > div {
  margin-top: .65rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

#copy .xwl-rewrite-loading > div span {
  padding: .28rem .62rem;
  border-radius: 999px;
  background: #edf2f5;
  color: #5b6878;
  font-size: .78rem;
  font-weight: 650;
}

#copy .xwl-rewrite-loading > div span.is-active {
  background: #e2f6f9;
  color: #077f98;
}

#copy .xwl-rewrite-dialog .xwl-rewrite-running {
  justify-content: space-between;
}

#copy .xwl-rewrite-dialog .xwl-rewrite-running > span {
  color: #526173;
  font-size: .82rem;
}

body:not(.theme-dark) #copy .xwl-rewrite-dialog .xwl-candidate-drawer-actions .xwl-btn.primary {
  border-color: #077f98;
  background: #0891b2;
  color: #fff;
  box-shadow: 0 .22rem .7rem rgba(8, 145, 178, .24);
}

@media (max-width: 42rem) {
  #copy .xwl-rewrite-layer {
    padding: .75rem;
  }

  #copy .xwl-rewrite-layer .xwl-rewrite-dialog {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }

  #copy .xwl-rewrite-layout {
    grid-template-columns: 1fr;
  }

  #copy .xwl-rewrite-result.is-comparison {
    grid-template-columns: 1fr;
  }

  #copy .xwl-rewrite-nav {
    max-height: 8.25rem;
    padding: .7rem .85rem;
    border-right: 0;
    border-bottom: .0625rem solid #dce4e9;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #copy .xwl-rewrite-nav-heading {
    display: none;
  }

  #copy .xwl-rewrite-version-list {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
  }

  #copy .xwl-rewrite-version-item {
    min-width: 9rem;
  }

  #copy .xwl-rewrite-nav ol {
    margin-top: .6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #copy .xwl-rewrite-nav li {
    padding: .35rem .2rem;
    gap: .35rem;
    font-size: .72rem;
  }

  #copy .xwl-rewrite-dialog .xwl-candidate-drawer-actions > span {
    grid-column: 1 / -1;
  }

  #copy .xwl-rewrite-dialog .xwl-candidate-drawer-actions > .xwl-btn:only-of-type {
    grid-column: 1 / -1;
  }

  #copy .xwl-rewrite-dialog .xwl-rewrite-running {
    align-items: stretch;
    gap: .65rem;
  }
}

@media (max-width: 80rem) {
  body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-main {
    padding: 1.1rem;
  }

  body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-points > .xwl-editor-field {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section {
    padding-top: .75rem;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
    gap: .5rem;
  }

  #copy .xwl-history-layer {
    padding: .75rem;
  }

  #copy .xwl-history-layer .xwl-history-drawer {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }

  #copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-list {
    max-height: calc(100vh - 9rem);
    padding: .75rem;
    gap: .6rem;
  }

  #copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card {
    padding: .78rem;
    gap: .6rem;
  }

  #copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-header,
  #copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-current,
  #copy .xwl-history-layer:not(.xwl-rewrite-layer) .xwl-history-current-badge {
    margin-left: 0;
  }

  body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded .xwl-bullet-summary {
    grid-template-columns: 1fr;
  }

  body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded .xwl-bullet-summary-meta {
    grid-column: 1;
    justify-content: space-between;
  }
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) {
  --xwl-flow-bg: #0b1220;
  --xwl-flow-line: #273549;
  --xwl-flow-shadow: 0 .45rem 1.4rem rgba(0, 0, 0, .18);
  background: #0b1220;
  color: #d8e2ef;
}

/* Listing editor right column: linked details above the existing validation card. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
  min-width: 0;
  position: sticky;
  top: 1rem;
  align-self: start;
  display: grid;
  gap: .9rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: .9rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line-strong));
  border-radius: var(--radius-small, .75rem);
  background: var(--xwl-panel);
  box-shadow: var(--xwl-flow-shadow, none);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-switcher {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: .45rem;
  padding-bottom: .7rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, var(--xwl-line));
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-nav {
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: .5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-heading {
  min-width: 0;
  display: grid;
  gap: .05rem;
  text-align: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-heading strong {
  overflow: hidden;
  color: var(--xwl-ink);
  font-size: .95rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-heading small {
  color: var(--xwl-muted);
  font-size: .72rem;
  line-height: 1.2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-body {
  min-height: 0;
  overflow: auto;
  padding-top: .78rem;
  scrollbar-width: thin;
}

/* Validation stays compact until the user asks to inspect its rows. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-toggle {
  width: 100%;
  min-height: 3.35rem;
  padding: .72rem .9rem;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--xwl-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-toggle:hover {
  background: color-mix(in srgb, var(--xwl-panel) 90%, #dceff4);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-toggle:focus-visible {
  outline: .16rem solid rgba(8, 145, 178, .28);
  outline-offset: -.2rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-toggle > span:first-child {
  overflow: hidden;
  font-size: .9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-toggle > .xwl-badge {
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-toggle > i {
  color: var(--xwl-muted);
  font-size: .72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review-body {
  min-height: 0;
  padding: 0 .9rem .9rem;
  overflow: auto;
  border-top: .0625rem solid var(--xwl-flow-line, var(--xwl-line));
  scrollbar-width: thin;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review[data-review-expanded="false"] {
  grid-template-rows: auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-empty {
  min-height: 14rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .65rem;
  color: var(--xwl-muted);
  text-align: center;
  font-size: .82rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-empty i {
  color: #0891b2;
  font-size: 1.35rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-keyword,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-targeted,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation {
  display: grid;
  gap: .72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-keyword-head {
  display: grid;
  gap: .4rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-keyword-head > strong {
  color: var(--xwl-ink);
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-status {
  width: fit-content;
  max-width: 100%;
  padding: .22rem .48rem;
  border-radius: 999px;
  color: #9a6700;
  background: #fff5d6;
  font-size: .72rem;
  line-height: 1.3;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-status.is-success {
  color: #087451;
  background: #e7f7f0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-plan,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .55rem .62rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--xwl-panel) 88%, #dceff4);
  font-size: .78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-plan span,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target span {
  color: var(--xwl-muted);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-plan i {
  color: var(--xwl-muted);
  font-size: .68rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-metrics > div {
  min-width: 0;
  padding: .5rem .55rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line));
  border-radius: .5rem;
  background: color-mix(in srgb, var(--xwl-panel) 92%, #e8edf2);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-metrics dt {
  color: var(--xwl-muted);
  font-size: .7rem;
  line-height: 1.25;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-metrics dd {
  margin: .15rem 0 0;
  overflow: hidden;
  color: var(--xwl-ink);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-period {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--xwl-muted);
  font-size: .72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-period b {
  color: var(--xwl-ink);
  font-weight: 600;
  text-align: right;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation-status,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation.is-running,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation.is-failed {
  display: flex;
  align-items: flex-start;
  gap: .62rem;
  padding: .68rem;
  border-radius: .6rem;
  background: #eaf8f2;
  color: #087451;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation.is-running {
  background: #eaf7fb;
  color: #087f99;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation.is-failed {
  background: #fff0ee;
  color: #b42318;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation-status > div,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation.is-running > div,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation.is-failed > div {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-generation span {
  color: inherit;
  font-size: .75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-change {
  display: grid;
  gap: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-change > div {
  padding: .58rem .62rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line));
  border-radius: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-change span {
  color: var(--xwl-muted);
  font-size: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-change p,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-current {
  margin: .22rem 0 0;
  color: var(--xwl-ink);
  font-size: .76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-current {
  max-height: 4.4rem;
  margin: 0;
  overflow: hidden;
  color: var(--xwl-muted);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-form {
  display: grid;
  gap: .48rem;
  color: var(--xwl-ink);
  font-size: .78rem;
  font-weight: 600;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-form .xwl-textarea {
  width: 100%;
  min-height: 6.25rem;
  padding: .65rem;
  resize: vertical;
  font-size: .8rem;
  line-height: 1.45;
  font-weight: 400;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-form .xwl-btn {
  width: 100%;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-generation-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: wrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-field-actions {
  flex-wrap: wrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-field-history-trigger {
  border-radius: 999px;
  border-color: var(--xwl-flow-line, var(--xwl-line-strong));
  background: var(--xwl-panel);
  color: var(--xwl-muted);
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-field-history-trigger {
  border: .0625rem solid #cfd8e3;
  background: #fff;
  color: #64748b;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-field-history-trigger:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-field-history-trigger:focus-visible {
  border-color: #8fd6e2;
  color: #087f99;
  background: #effbfc;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-field-history-trigger:hover,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-editor-body .xwl-field-history-trigger:focus-visible {
  border-color: #8fd6e2;
  color: #087f99;
  background: #effbfc;
  box-shadow: none;
}

@media (min-width: 82.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
    height: clamp(31rem, calc(100vh - 10rem), 43.5rem);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-review[data-review-expanded="true"] {
    max-height: min(18rem, 42vh);
  }
}

@media (max-width: 82rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
    grid-column: 1 / -1;
    position: static;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, .65fr);
    grid-template-rows: auto;
    overflow: visible;
  }
}

@media (max-width: 58rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
    grid-column: auto;
    width: 100%;
    grid-template-columns: 1fr;
  }
}

/* footer-overlay-fix-v1: the action bar must stay above sticky side panels. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer {
  position: sticky;
  bottom: .2rem;
  z-index: 60;
  isolation: isolate;
}

/* Risk navigator: keep location and resolution controls inside the existing review card. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-list {
  display: grid;
  gap: .5rem;
  padding: .65rem 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-card {
  overflow: hidden;
  border: .0625rem solid #ead4aa;
  border-radius: .65rem;
  background: #fffaf2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-card.is-open {
  border-color: #e29a5a;
  background: #fffaf5;
  box-shadow: 0 0 0 .125rem rgba(226, 154, 90, .12);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-card.is-located {
  border-color: #ef6a6a;
  background: #fff8f8;
  box-shadow: 0 0 0 .125rem rgba(239, 68, 68, .12);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-summary {
  width: 100%;
  min-width: 0;
  padding: .62rem .68rem;
  border: 0;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: .45rem;
  background: transparent;
  color: var(--xwl-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-summary:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-summary:focus-visible {
  background: rgba(226, 154, 90, .08);
  outline: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-summary:focus-visible {
  box-shadow: inset 0 0 0 .125rem rgba(8, 145, 178, .28);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-order {
  color: #9a661c;
  font-size: .64rem;
  font-weight: 700;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-copy {
  min-width: 0;
  display: grid;
  gap: .16rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-copy strong {
  overflow: hidden;
  color: #28374b;
  font-size: .76rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-copy small,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-expand {
  color: #718096;
  font-size: .62rem;
  line-height: 1.35;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-expand {
  text-align: right;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail {
  padding: 0 .68rem .68rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail dl {
  margin: 0;
  padding-top: .55rem;
  border-top: .0625rem solid rgba(154, 102, 28, .16);
  display: grid;
  gap: .22rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail dl > div {
  display: flex;
  gap: .5rem;
  font-size: .68rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail dt {
  color: #7a8798;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail dd {
  margin: 0;
  color: #27364a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail p {
  margin: .46rem 0 .58rem;
  color: #68768a;
  font-size: .68rem;
  line-height: 1.55;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-detail .xwl-btn + .xwl-btn {
  margin-top: .42rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-remove {
  border-color: #e3b7b7;
  background: #fff;
  color: #a13c3c;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint {
  margin: 0 0 .55rem;
  border: .0625rem solid var(--xwl-line);
  border-radius: .6rem;
  background: #f7f9fb;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint summary {
  padding: .55rem .65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  color: #3c4c62;
  cursor: pointer;
  list-style: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint summary::-webkit-details-marker {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint summary > span {
  display: grid;
  gap: .12rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint strong {
  font-size: .68rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint small,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint p {
  color: #718096;
  font-size: .62rem;
  line-height: 1.5;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-source-hint p {
  margin: 0;
  padding: 0 .65rem .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-footer {
  padding-top: .2rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-footer p {
  margin: .42rem 0 0;
  color: #8a96a6;
  font-size: .62rem;
  text-align: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-target {
  border-color: #ef6a6a !important;
  box-shadow: 0 0 0 .2rem rgba(239, 68, 68, .12), 0 .5rem 1.4rem rgba(31, 55, 86, .08) !important;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-review-risk-target textarea {
  border-color: #ef6a6a !important;
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card {
    height: auto;
    min-height: 0;
    padding: .8rem;
  }

}

/* Unified Listing result: review, translation and save live on one quiet page. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-document,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language-note,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation-progress {
  box-sizing: border-box;
  width: min(100%, 92rem);
  margin-inline: auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #dfe3e8));
  border-left: .22rem solid #0d9463;
  border-radius: .8rem;
  background: var(--xwl-panel, #fff);
  box-shadow: var(--xwl-flow-shadow, 0 .35rem 1.2rem rgba(23, 35, 62, .055));
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status.is-blocked {
  border-left-color: #d97706;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-main,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-actions,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-metrics {
  min-width: 0;
  display: flex;
  align-items: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-main {
  gap: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-main .xwl-copy {
  min-width: 0;
  display: grid;
  gap: .16rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-main strong {
  color: var(--xwl-ink, #172033);
  font-size: .92rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-main .xwl-copy > span {
  color: var(--xwl-muted, #64748b);
  font-size: .76rem;
  line-height: 1.45;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e9f8f1;
  color: #08724d;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status.is-blocked .xwl-result-status-icon {
  background: #fff7e8;
  color: #b45309;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-metrics {
  gap: .35rem;
  flex-wrap: wrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-metrics > span {
  padding: .34rem .52rem;
  border-radius: .48rem;
  background: color-mix(in srgb, var(--xwl-panel, #fff) 88%, #e8edf2);
  color: var(--xwl-muted, #64748b);
  font-size: .72rem;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-metrics b {
  color: var(--xwl-ink, #172033);
  font-size: .8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-actions {
  justify-content: flex-end;
  gap: .35rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language-note,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation-progress {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .58rem .72rem;
  border: .0625rem solid #cfe8ee;
  border-radius: .65rem;
  background: #f2fbfc;
  color: #176579;
  font-size: .75rem;
  line-height: 1.45;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation-toggle.is-active,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation-toggle[aria-pressed="true"] {
  border-color: #8fd6e2;
  background: #effbfc;
  color: #087f99;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation-progress {
  border-color: #d7e2f8;
  background: #f7f9ff;
  color: #405b9b;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-document {
  overflow: hidden;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #dfe3e8));
  border-radius: .85rem;
  background: var(--xwl-panel, #fff);
  box-shadow: var(--xwl-flow-shadow, 0 .35rem 1.2rem rgba(23, 35, 62, .055));
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section {
  padding: 1rem 1.1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section + .xwl-result-section {
  border-top: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e5e7eb));
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head h3 {
  margin: 0;
  color: var(--xwl-ink, #172033);
  font-size: .92rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head span {
  color: var(--xwl-muted, #64748b);
  font-size: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language-grid.is-bilingual {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language {
  min-width: 0;
  padding: .76rem .82rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
  border-radius: .62rem;
  background: color-mix(in srgb, var(--xwl-panel, #fff) 96%, #eef2f6);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation {
  border-color: #cfe8ee;
  background: #f4fbfc;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language-label {
  display: block;
  margin-bottom: .35rem;
  color: var(--xwl-muted, #64748b);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-translation .xwl-result-language-label {
  color: #087f99;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language p {
  margin: 0;
  color: var(--xwl-ink, #253047);
  font-size: .86rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-bullets {
  display: grid;
  gap: .75rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-bullet {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: start;
  gap: .62rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-bullet .xwl-display-index {
  margin-top: .74rem;
}

/* Review details stay compact and scroll inside the dialog. */
#copy .xwl-review-dialog,
#copy .xwl-save-dialog {
  box-sizing: border-box;
  width: min(38rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(88dvh, 52rem);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: .9rem;
  background: var(--xwl-panel, #fff);
}

#copy .xwl-review-dialog {
  width: min(52rem, calc(100vw - 2rem));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

#copy .xwl-save-dialog:has(.xwl-save-products-body) {
  width: min(64rem, calc(100vw - 2rem));
}

#copy .xwl-review-dialog > .xwl-modal-head,
#copy .xwl-save-dialog > .xwl-modal-head {
  padding: .9rem 1rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
}

#copy .xwl-save-modal-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
}

#copy .xwl-save-modal-heading .xwl-btn {
  flex: 0 0 auto;
}

#copy .xwl-review-tabs {
  margin: 0;
  padding: 0 1rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
}

#copy .xwl-review-dialog-body,
#copy .xwl-save-options-body,
#copy .xwl-save-products-body {
  min-height: 0;
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
}

#copy .xwl-review-dialog-body,
#copy .xwl-save-options-body,
#copy .xwl-save-products-body,
#copy .xwl-review-detail-list {
  display: grid;
  gap: .7rem;
}

#copy .xwl-review-keyword-summary {
  display: flex;
  gap: .38rem;
  flex-wrap: wrap;
}

#copy .xwl-review-detail-row,
#copy .xwl-save-product-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .72rem .78rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
  border-radius: .62rem;
  background: var(--xwl-panel, #fff);
}

#copy .xwl-review-dialog .xwl-check-row {
  align-items: flex-start;
  gap: .65rem;
  padding: .72rem .78rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
  border-radius: .62rem;
}

#copy .xwl-review-dialog .xwl-check-row > div {
  min-width: 0;
  display: grid;
  gap: .16rem;
}

#copy .xwl-review-dialog .xwl-check-row span {
  color: var(--xwl-muted, #64748b);
  font-size: .76rem;
  line-height: 1.45;
}

#copy .xwl-review-passed {
  padding: .75rem .8rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
  border-radius: .62rem;
}

#copy .xwl-review-passed summary {
  cursor: pointer;
  color: var(--xwl-ink, #253047);
  font-size: .78rem;
  font-weight: 700;
}

#copy .xwl-review-passed > div {
  display: grid;
  gap: .45rem;
  padding-top: .65rem;
}

#copy .xwl-review-passed span {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: var(--xwl-muted, #64748b);
  font-size: .74rem;
  line-height: 1.45;
}

#copy .xwl-review-passed i {
  margin-top: .18rem;
  color: #0d9463;
}

/* Save follows the same three-choice rhythm as image “加入作品”. */
#copy .xwl-save-options {
  display: grid;
  gap: .65rem;
}

#copy .xwl-save-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  padding: .84rem .88rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #dfe3e8));
  border-radius: .72rem;
  background: var(--xwl-panel, #fff);
  color: var(--xwl-ink, #172033);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#copy .xwl-save-option:hover,
#copy .xwl-save-option:focus-visible {
  border-color: #8fd6e2;
  background: #fbfeff;
}

#copy .xwl-save-option:focus-visible {
  outline: .16rem solid rgba(8, 145, 178, .22);
  outline-offset: .1rem;
}

#copy .xwl-save-option.is-selected {
  border-color: #0891b2;
  background: #f0fbfd;
  box-shadow: 0 0 0 .13rem rgba(8, 145, 178, .15);
}

#copy .xwl-save-radio {
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  border: .1rem solid #b9c3cf;
  border-radius: 999px;
}

#copy .xwl-save-option.is-selected .xwl-save-radio {
  border-color: #0891b2;
}

#copy .xwl-save-option.is-selected .xwl-save-radio i {
  width: .52rem;
  height: .52rem;
  border-radius: 999px;
  background: #0891b2;
}

#copy .xwl-save-option .xwl-copy {
  min-width: 0;
  display: grid;
  gap: .13rem;
}

#copy .xwl-save-option .xwl-copy small {
  color: #087f99;
  font-size: .68rem;
  font-weight: 700;
}

#copy .xwl-save-option .xwl-copy strong {
  overflow: hidden;
  color: var(--xwl-ink, #172033);
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xwl-save-option .xwl-copy > span {
  color: var(--xwl-muted, #64748b);
  font-size: .72rem;
  line-height: 1.4;
}

#copy .xwl-save-option-icon {
  color: #8b98a8;
}

#copy .xwl-save-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .68rem .75rem;
  border-radius: .62rem;
  background: color-mix(in srgb, var(--xwl-panel, #fff) 88%, #e8edf2);
  color: var(--xwl-muted, #64748b);
  font-size: .72rem;
  line-height: 1.45;
}

#copy .xwl-save-note i {
  margin-top: .15rem;
  color: #087f99;
}

#copy .xwl-save-product-toolbar {
  position: static;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto auto;
  gap: .55rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#copy .xwl-save-product-list {
  min-height: 8rem;
  display: grid;
  align-content: start;
  gap: .55rem;
}

#copy .xwl-save-empty {
  min-height: 12rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .4rem;
  padding: 1.5rem;
  color: var(--xwl-muted, #64748b);
  text-align: center;
}

#copy .xwl-save-empty i {
  font-size: 1.4rem;
}

#copy .xwl-save-empty strong {
  color: var(--xwl-ink, #253047);
}

#copy .xwl-save-empty span {
  font-size: .75rem;
}

#copy .xwl-save-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  padding: .8rem 1rem;
  border-top: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e1e6eb));
  background: var(--xwl-panel, #fff);
}

#copy .xwl-review-dialog .xwl-check-row.info i {
  color: #4f6fed;
}

@media (max-width: 72rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 58rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-language-grid.is-bilingual {
    grid-template-columns: minmax(0, 1fr);
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status {
    grid-template-columns: minmax(0, 1fr);
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-status-actions,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-metrics {
    grid-column: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section {
    padding: .85rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head > div {
    align-items: flex-start;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head {
    gap: .55rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-section-head > div {
    display: grid;
    gap: .12rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-bullet {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: .45rem;
  }

  #copy .xwl-review-dialog,
  #copy .xwl-save-dialog,
  #copy .xwl-save-dialog:has(.xwl-save-products-body) {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  #copy .xwl-save-product-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #copy .xwl-save-product-toolbar .xwl-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  #copy .xwl-save-product-row,
  #copy .xwl-review-detail-row {
    align-items: start;
  }

  #copy .xwl-save-option .xwl-copy strong {
    white-space: normal;
  }
}

/* Listing editor navigation: keep every content module visible while editing. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  position: sticky;
  top: 1rem;
  z-index: 7;
  box-sizing: border-box;
  margin: -.35rem -.35rem 1.1rem;
  padding: .7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy actions"
    "tabs tabs";
  align-items: center;
  gap: .65rem .85rem;
  border: .0625rem solid var(--xwl-flow-line, #dfe3e8);
  border-radius: .8rem;
  background: color-mix(in srgb, var(--xwl-panel, #fff) 96%, #eef3ff);
  box-shadow: 0 .75rem 1.25rem -.95rem rgba(15, 23, 42, .28);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: .08rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--xwl-ink, #172033);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.35;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-kicker > i {
  color: #4f6fed;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-copy > small {
  color: #667085;
  font-size: .72rem;
  line-height: 1.35;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions {
  grid-area: actions;
  align-self: center;
  margin: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions > .xwl-translate-toggle {
  min-height: 2.75rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
  grid-area: tabs;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: .3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  overflow: visible;
  border: .0625rem solid #dfe4ec;
  border-radius: .72rem;
  background: #f3f5f8;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
  position: relative;
  min-width: 0;
  min-height: 3.75rem;
  margin: 0;
  padding: .55rem .65rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  border: .0625rem solid transparent;
  border-radius: .55rem;
  background: transparent;
  color: #475467;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab::after {
  position: absolute;
  right: .65rem;
  bottom: .2rem;
  left: .65rem;
  height: .18rem;
  border-radius: 999px;
  background: #4f6fed;
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .16s ease, transform .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover {
  border-color: #c9d2df;
  background: rgba(255, 255, 255, .66);
  color: #27364a;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  border-color: #8fa3f5;
  background: #fff;
  color: #2746b8;
  box-shadow: 0 .28rem .75rem rgba(79, 111, 237, .14);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active::after,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:focus-visible {
  outline: .16rem solid rgba(79, 111, 237, .42);
  outline-offset: .08rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  display: inline-grid;
  place-items: center;
  background: #e7ebf2;
  color: #667085;
  font-size: .78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab.active .xwl-editor-tab-icon,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab[aria-selected="true"] .xwl-editor-tab-icon {
  background: #e8edff;
  color: #4f6fed;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy {
  min-width: 0;
  display: grid;
  gap: .08rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > strong,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > strong {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > small {
  color: #667085;
  font-size: .68rem;
  line-height: 1.35;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab.active .xwl-editor-tab-copy > small,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab[aria-selected="true"] .xwl-editor-tab-copy > small {
  color: #5267bd;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-field,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor textarea[data-listing] {
  scroll-margin-top: 9rem;
}

@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan {
    position: sticky;
    top: 1rem;
    align-self: start;
    min-height: 0;
    height: calc(100vh - 8rem);
    height: calc(100dvh - 8rem);
    max-height: 46rem;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan > .xwl-keyword-list {
    min-height: 0;
    padding-right: .15rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan > .xwl-keyword-list::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  border-color: #344258;
  background: #111a29;
  box-shadow: 0 .8rem 1.35rem -1rem rgba(0, 0, 0, .72);
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-copy > small,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > small {
  color: #aeb9c9;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
  border-color: #344258;
  background: #0b1220;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
  color: #c3cedd;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover {
  border-color: #42516a;
  background: #162033;
  color: #eef4ff;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  border-color: #6f8cff;
  background: #17233a;
  color: #dfe8ff;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-icon {
  background: #243149;
  color: #aeb9c9;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab.active .xwl-editor-tab-icon,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab[aria-selected="true"] .xwl-editor-tab-icon {
  background: #243b6b;
  color: #9eb1ff;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab.active .xwl-editor-tab-copy > small,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab[aria-selected="true"] .xwl-editor-tab-copy > small {
  color: #b4c2f8;
}

@media (max-width: 42rem), (max-height: 34rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
    top: .5rem;
    margin: -.25rem -.25rem .85rem;
    padding: .45rem;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "tabs actions";
    gap: .45rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-copy {
    display: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
    padding: .2rem;
    gap: .2rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
    min-height: 2.75rem;
    padding: .35rem .2rem;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-icon,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > small {
    display: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > strong {
    overflow: visible;
    font-size: .76rem;
    text-overflow: clip;
    white-space: normal;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions > .xwl-translate-toggle {
    min-height: 2.75rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-field,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor textarea[data-listing] {
    scroll-margin-top: 5.5rem;
  }
}

@media (forced-colors: active) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
    border: .125rem solid currentColor;
  }
}

/* Compact workflow context: product image + steps + model menu in one row. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-shell {
  gap: .85rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-nav {
  grid-template-columns: 3.75rem 3.75rem minmax(0, 1fr);
  gap: .7rem;
  align-items: stretch;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview {
  position: relative;
  z-index: 5;
  width: 3.75rem;
  min-height: 3.6rem;
  padding: .28rem;
  border: .0625rem solid var(--xwl-flow-line, #dfe4ec);
  border-radius: .85rem;
  background: var(--xwl-panel, #fff);
  box-shadow: var(--xwl-flow-shadow, 0 .2rem .8rem rgba(15, 23, 42, .04));
  outline: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 3rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: .58rem;
  background: #f3f5f8;
  color: #8a94a6;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-media > i {
  font-size: 1.05rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-media small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, .72);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  backdrop-filter: blur(.15rem);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview:focus-visible {
  border-color: #91a8ff;
  box-shadow: 0 0 0 .18rem rgba(79, 111, 237, .12);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + .58rem);
  width: max-content;
  max-width: 20rem;
  padding: .65rem .78rem;
  display: grid;
  gap: .18rem;
  border-radius: .62rem;
  background: #172033;
  color: #fff;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.2rem);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  pointer-events: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-tooltip::before {
  content: "";
  position: absolute;
  top: -.28rem;
  left: 1.25rem;
  width: .56rem;
  height: .56rem;
  background: #172033;
  transform: rotate(45deg);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-tooltip strong {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-tooltip span {
  color: #c7d0df;
  font-size: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview:hover .xwl-flow-product-tooltip,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview:focus-visible .xwl-flow-product-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-stepper {
  overflow: visible;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-stepper-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 3.25rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-stepper-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 3.25rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-trigger {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: .58rem;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-trigger:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-trigger:focus-visible,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-wrap.open .xwl-flow-model-trigger {
  background: #f1f4f8;
  color: #172033;
  outline: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-menu {
  position: absolute;
  z-index: 40;
  right: .5rem;
  top: calc(100% - .2rem);
  width: 16rem;
  padding: .45rem;
  display: grid;
  gap: .18rem;
  border: .0625rem solid #dfe4ec;
  border-radius: .72rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.25rem);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-wrap.open .xwl-flow-model-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-title {
  padding: .42rem .55rem .35rem;
  color: #7a8496;
  font-size: .7rem;
  font-weight: 700;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option {
  min-height: 2.35rem;
  padding: 0 .58rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 0;
  border-radius: .52rem;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: .78rem;
  text-align: left;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option:hover:not(:disabled),
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option:focus-visible,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option.selected {
  background: #eef3ff;
  color: #244fc7;
  outline: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option:disabled {
  color: #a4adbb;
  cursor: not-allowed;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-media,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-trigger:hover,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-wrap.open .xwl-flow-model-trigger {
  background: #151e2d;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-menu {
  border-color: #344054;
  background: #111827;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option {
  color: #dbe3ef;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-model-option.selected {
  background: #1d2a45;
  color: #b8c8ff;
}

@media (max-width: 64rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-nav {
    grid-template-columns: 3.4rem 3.4rem minmax(0, 1fr);
    gap: .5rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview {
    width: 3.4rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-step {
    gap: .35rem;
    padding-inline: .3rem;
    font-size: .78rem;
  }
}

/* Shared product-source picker for relinking, new Listing and new keyword-library flows. */
#copy .xwl-source-picker-dialog {
  box-sizing: border-box;
  width: min(78rem, calc(100vw - 2rem));
  height: min(44rem, calc(100dvh - 2.5rem));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: .9rem;
  background: var(--xwl-panel, #fff);
}

#copy .xwl-source-picker-dialog > .xwl-modal-head {
  flex: 0 0 auto;
  padding: 1rem 1.2rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, #e1e6eb);
}

#copy .xwl-source-picker-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.2rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, #e1e6eb);
  background: var(--xwl-panel, #fff);
}

#copy .xwl-source-picker-tabs {
  display: flex;
  align-items: center;
  gap: .45rem;
}

#copy .xwl-source-picker-tabs button {
  min-height: 2.25rem;
  padding: 0 .9rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#copy .xwl-source-picker-tabs button.active {
  background: #fff1e8;
  color: #f97316;
}

#copy .xwl-source-picker-search {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
}

#copy .xwl-source-picker-search .xwl-input {
  width: min(24rem, 36vw);
}

#copy .xwl-source-picker-status {
  flex: 0 0 auto;
  margin: .65rem 1.2rem 0;
  padding: .65rem .8rem;
  border-radius: .55rem;
  background: #f8fafc;
  color: #475569;
}

#copy .xwl-source-picker-status.is-error {
  background: #fff1f2;
  color: #b42318;
}

#copy .xwl-source-picker-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

#copy .xwl-source-picker-head,
#copy .xwl-source-picker-row {
  min-width: 58rem;
  display: grid;
  grid-template-columns: minmax(26rem, 1fr) 7rem 8rem 8rem;
  align-items: center;
  gap: 1rem;
}

#copy .xwl-source-picker-head {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: .62rem 1.2rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, #e1e6eb);
  background: #f8fafc;
  color: #475569;
  font-size: .78rem;
  font-weight: 700;
}

#copy .xwl-source-picker-head span:last-child {
  text-align: right;
}

#copy .xwl-source-picker-row {
  min-height: 5.7rem;
  padding: .7rem 1.2rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, #e1e6eb);
  background: var(--xwl-panel, #fff);
}

#copy .xwl-source-picker-row:hover {
  background: #fffaf5;
}

#copy .xwl-source-picker-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 3.6rem minmax(9rem, .75fr) minmax(12rem, 1.25fr);
  align-items: center;
  gap: .7rem;
}

#copy .xwl-source-picker-cover {
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: .0625rem solid #dbe3ee;
  border-radius: .55rem;
  background: #fff;
  color: #94a3b8;
}

#copy .xwl-source-picker-cover img,
#copy .xwl-source-picker-previews img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#copy .xwl-source-picker-copy {
  min-width: 0;
  display: grid;
  gap: .28rem;
}

#copy .xwl-source-picker-copy strong,
#copy .xwl-source-picker-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xwl-source-picker-copy strong {
  color: var(--xwl-text, #101828);
  font-size: .9rem;
}

#copy .xwl-source-picker-copy small,
#copy .xwl-source-picker-count,
#copy .xwl-source-picker-row time {
  color: #64748b;
  font-size: .78rem;
}

#copy .xwl-source-picker-previews {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
  overflow: hidden;
}

#copy .xwl-source-picker-previews > span {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  overflow: hidden;
  border: .0625rem solid #dbe3ee;
  border-radius: .42rem;
  background: #fff;
}

#copy .xwl-source-picker-previews em {
  color: #94a3b8;
  font-size: .76rem;
  font-style: normal;
}

#copy .xwl-source-picker-action {
  text-align: right;
}

#copy .xwl-source-picker-action .xwl-btn.primary {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

#copy .xwl-source-picker-empty {
  min-height: 14rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .45rem;
  padding: 2rem;
  color: #64748b;
  text-align: center;
}

#copy .xwl-source-picker-empty > i {
  font-size: 1.35rem;
  color: #94a3b8;
}

#copy .xwl-source-picker-empty.is-blocked > i {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1f2;
  color: #e11d48;
}

#copy .xwl-source-picker-empty span {
  max-width: 31rem;
  font-size: .82rem;
}

#copy .xwl-source-picker-footer {
  flex: 0 0 auto;
  min-height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.2rem;
  border-top: .0625rem solid var(--xwl-flow-line, #e1e6eb);
  background: var(--xwl-panel, #fff);
  color: #64748b;
  font-size: .8rem;
}

#copy .xwl-source-picker-footer nav {
  display: flex;
  align-items: center;
  gap: .55rem;
}

#copy .xwl-source-picker-footer nav strong {
  min-width: 3.2rem;
  color: var(--xwl-text, #101828);
  text-align: center;
}

@media (max-width: 64rem) {
  #copy .xwl-source-picker-dialog {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
  }

  #copy .xwl-source-picker-controls {
    align-items: stretch;
    flex-direction: column;
  }

  #copy .xwl-source-picker-search .xwl-input {
    width: 100%;
  }
}

@media (max-width: 48rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-nav {
    grid-template-columns: 3.25rem 3.25rem minmax(0, 1fr);
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-back span,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-step-label {
    font-size: 0;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-back span::before {
    content: "←";
    font-size: 1rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-stepper-4,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-stepper-3 {
    grid-template-columns: repeat(var(--xwl-mobile-step-count, 4), minmax(2.5rem, 1fr)) 2.75rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-stepper-3 {
    --xwl-mobile-step-count: 3;
  }
}

/* Remove step descriptions and reclaim their vertical space. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-head {
  min-height: 3.35rem;
  padding: 0 .15rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-head .xwl-copy {
  gap: .12rem;
}

/* Merge keyword statistics into the table toolbar. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding-top: .7rem;
  padding-bottom: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-input {
  width: 100%;
  max-width: none;
  min-width: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
  width: auto;
  margin-left: 0;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics::-webkit-scrollbar {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics > span {
  flex: 0 0 auto;
  min-width: 4.2rem;
  min-height: 2.55rem;
  padding: .3rem .48rem;
  display: grid;
  align-content: center;
  gap: .06rem;
  border-left: .0625rem solid #e6eaf0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics > span:first-child {
  border-left: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics small {
  color: #7a8496;
  font-size: .65rem;
  line-height: 1.15;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics strong {
  color: #172033;
  font-size: .9rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics > .warning strong {
  color: #b54708;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics > span {
  border-left-color: #2d3748;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics strong {
  color: #e6edf7;
}

@media (max-width: 86rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar {
    grid-template-columns: minmax(15rem, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Keep step actions inside their relevant content cards. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-form-main {
  position: relative;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  margin: -1rem -1rem 1rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--xwl-flow-line, #dfe3e8);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-source-row > strong {
  color: #344054;
  font-size: .875rem;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-source-row > strong {
  color: #e6edf7;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-form-action {
  position: absolute;
  z-index: 1;
  top: .55rem;
  right: 1.1rem;
}

@media (max-width: 64rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-source-row {
    margin: -.75rem -.75rem .75rem;
    padding: .5rem .75rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-product-form-action {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-bottom: .65rem;
  }
}

/* Persistent feedback for the Listing field selected for targeted editing. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected > .xwl-editor-field-head > label,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"] > .xwl-editor-field-head > label,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section.is-context-selected > .xwl-bullets-head .xwl-section-heading > strong,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section[aria-selected="true"] > .xwl-bullets-head .xwl-section-heading > strong {
  position: relative;
  color: #2f5fe3;
  text-shadow: 0 .08rem .2rem rgba(47, 95, 227, .16);
  transition: color .16s ease, text-shadow .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected > .xwl-editor-field-head > label::after,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"] > .xwl-editor-field-head > label::after,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section.is-context-selected > .xwl-bullets-head .xwl-section-heading > strong::after,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section[aria-selected="true"] > .xwl-bullets-head .xwl-section-heading > strong::after {
  position: absolute;
  left: 0;
  bottom: -.2rem;
  width: 2.1rem;
  height: .125rem;
  border-radius: 999rem;
  background: currentColor;
  content: "";
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected > .xwl-editor-field-head > label,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"] > .xwl-editor-field-head > label,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section.is-context-selected > .xwl-bullets-head .xwl-section-heading > strong,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section[aria-selected="true"] > .xwl-bullets-head .xwl-section-heading > strong {
  color: #b8c8ff;
  text-shadow: 0 .08rem .2rem rgba(184, 200, 255, .2);
}

@media (prefers-reduced-motion: reduce) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable] > .xwl-editor-field-head > label,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section > .xwl-bullets-head .xwl-section-heading > strong {
    transition: none;
  }
}

@media (forced-colors: active) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected > .xwl-editor-field-head > label,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"] > .xwl-editor-field-head > label,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section.is-context-selected > .xwl-bullets-head .xwl-section-heading > strong,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section[aria-selected="true"] > .xwl-bullets-head .xwl-section-heading > strong {
    color: Highlight;
  }
}

/* Listing targeted-edit interaction polish (2026-07-23).
   Appended overrides keep the existing editor geometry and component rules intact. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card[data-context-expanded="false"] {
  grid-template-rows: auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card[data-context-expanded="false"] .xwl-context-switcher {
  padding-bottom: 0;
  border-bottom: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card[data-context-expanded="false"] .xwl-context-body {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse {
  min-width: 0;
  min-height: 2rem;
  margin: 0;
  padding: .28rem .48rem;
  border: .0625rem solid transparent;
  border-radius: .58rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem;
  background: transparent;
  color: var(--xwl-ink, #172033);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse[aria-expanded="true"] {
  border-color: #8fd5e1;
  background: #e7f7fa;
  box-shadow: 0 .2rem .65rem rgba(8, 145, 178, .1);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse:focus-visible {
  outline: .16rem solid rgba(8, 145, 178, .3);
  outline-offset: .1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse > span {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse > i {
  color: #087f99;
  font-size: .76rem;
  transition: transform .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target {
  justify-content: center;
  padding: .62rem .72rem;
  border-color: #8fd5e1;
  background: #e7f7fa;
  color: #076f85;
  text-align: center;
  box-shadow: 0 .25rem .8rem rgba(8, 145, 178, .1);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target span {
  color: #087f99;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target strong {
  color: #065f73;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable] {
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable]:not(.xwl-bullets-section):hover {
  background: color-mix(in srgb, var(--xwl-panel, #fff) 92%, #bdeaf1);
  box-shadow: inset 0 0 0 .0625rem rgba(8, 145, 178, .42);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"] {
  background: color-mix(in srgb, var(--xwl-panel, #fff) 88%, #aee4ed);
  box-shadow: inset 0 0 0 .125rem #0891b2, 0 .25rem .8rem rgba(8, 145, 178, .1);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected:focus-within,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"]:focus-within {
  box-shadow: inset 0 0 0 .125rem #0891b2, 0 0 0 .18rem rgba(8, 145, 178, .18);
}

#copy .xwl-rewrite-dialog-flow,
#copy .xwl-rewrite-conversation {
  min-width: 0;
  display: grid;
  gap: .75rem;
}

#copy .xwl-rewrite-dialog-flow {
  align-content: start;
}

#copy .xwl-rewrite-conversation {
  margin-bottom: .9rem;
  padding: .85rem;
  border: .0625rem solid #dbe5ea;
  border-radius: .75rem;
  background: #f8fafb;
}

#copy .xwl-rewrite-conversation.is-compact {
  margin-bottom: 0;
  padding: .65rem;
  gap: .45rem;
}

#copy .xwl-rewrite-message {
  width: fit-content;
  max-width: min(86%, 46rem);
  padding: .68rem .8rem;
  border: .0625rem solid #d7e1e8;
  border-radius: .72rem;
  display: grid;
  gap: .28rem;
  background: #fff;
  color: #172033;
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#copy .xwl-rewrite-message > strong,
#copy .xwl-rewrite-message > small {
  font-size: .72rem;
  line-height: 1.3;
}

#copy .xwl-rewrite-message > p {
  margin: 0;
}

#copy .xwl-rewrite-message > small {
  color: #607084;
}

#copy .xwl-rewrite-message.is-user {
  justify-self: end;
  border-color: #91d8e4;
  border-bottom-right-radius: .2rem;
  background: #e7f7fa;
  color: #065f73;
}

#copy .xwl-rewrite-message.is-assistant {
  justify-self: start;
  border-bottom-left-radius: .2rem;
}

#copy .xwl-rewrite-followup {
  margin-top: .9rem;
  padding: .78rem;
  border: .0625rem solid #cbd8e0;
  border-radius: .75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .6rem;
  background: #fff;
}

#copy .xwl-rewrite-followup > span {
  grid-column: 1 / -1;
  color: #172033;
  font-size: .84rem;
  font-weight: 700;
}

#copy .xwl-rewrite-followup > div {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .6rem;
}

#copy .xwl-rewrite-followup textarea,
#copy .xwl-rewrite-followup input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.8rem;
  margin: 0;
  padding: .68rem .75rem;
  border: .0625rem solid #cbd8e0;
  border-radius: .58rem;
  background: #fff;
  color: #172033;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

#copy .xwl-rewrite-followup textarea:focus,
#copy .xwl-rewrite-followup input:focus {
  border-color: #0891b2;
  outline: .16rem solid rgba(8, 145, 178, .16);
  outline-offset: 0;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse:hover,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse[aria-expanded="true"],
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target {
  border-color: #178faa;
  background: #103444;
  color: #d9f5fa;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse > i,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target span,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target strong {
  color: #8ee2ef;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable]:not(.xwl-bullets-section):hover {
  background: #102b3a;
  box-shadow: inset 0 0 0 .0625rem #178faa;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].is-context-selected,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable][aria-selected="true"] {
  background: #123646;
  box-shadow: inset 0 0 0 .125rem #2ab3ce, 0 .25rem .8rem rgba(0, 0, 0, .2);
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse {
    padding-inline: .36rem;
  }

  #copy .xwl-rewrite-conversation {
    padding: .65rem;
  }

  #copy .xwl-rewrite-message {
    max-width: 94%;
  }

  #copy .xwl-rewrite-followup {
    grid-template-columns: minmax(0, 1fr);
  }

  #copy .xwl-rewrite-followup > div {
    grid-template-columns: minmax(0, 1fr);
  }

  #copy .xwl-rewrite-followup .xwl-btn {
    width: 100%;
  }
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-form .xwl-btn.xwl-context-reset {
  width: fit-content;
  justify-self: end;
}

/* Listing editor refinement (2026-07-23): lightweight sticky navigation and denser plan summary. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  position: sticky;
  top: 1rem;
  z-index: 7;
  box-sizing: border-box;
  margin: -.35rem 0 .8rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-bottom: .0625rem solid var(--xwl-flow-line, #dfe3e8);
  border-radius: 0;
  background: var(--xwl-panel, #fff);
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
  position: relative;
  min-width: 0;
  min-height: 3.25rem;
  margin: 0;
  padding: .25rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475467;
  font: inherit;
  text-align: center;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab::after {
  position: absolute;
  right: 0;
  bottom: -.0625rem;
  left: 0;
  height: .125rem;
  border-radius: 999px;
  background: #4f6fed;
  content: "";
  opacity: 0;
  transform: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover {
  border: 0;
  background: transparent;
  color: #27364a;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  border: 0;
  background: transparent;
  color: #4f6fed;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active::after,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy {
  display: block;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tab-copy > strong {
  overflow: visible;
  color: inherit;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: clip;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions {
  flex: 0 0 auto;
  margin: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions > .xwl-translate-toggle {
  min-height: 2.25rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan > .xwl-rail-block {
  padding-bottom: .45rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan > .xwl-rail-block > .xwl-row-head {
  margin-bottom: .38rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary {
  gap: .3rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary > div {
  min-height: 0;
  padding: .38rem .48rem;
  gap: .04rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary > div > span {
  font-size: .72rem;
  line-height: 1.2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-summary > div > strong {
  font-size: .84rem;
  line-height: 1.2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-classic-plan-note {
  margin-top: .42rem;
  padding-top: .42rem;
  gap: .2rem .5rem;
  font-size: .7rem;
  line-height: 1.25;
}

@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan {
    grid-template-rows: auto auto minmax(0, 1fr);
  }
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-collapse[aria-expanded="true"] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target {
  justify-content: space-between;
  padding: .55rem .65rem;
  border-color: var(--xwl-flow-line, #dfe3e8);
  background: transparent;
  color: var(--xwl-ink, #172033);
  text-align: left;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target span {
  color: var(--xwl-muted, #667085);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target strong {
  color: var(--xwl-ink, #172033);
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  border-color: #344258;
  background: #111a29;
  box-shadow: none;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  color: #9eb1ff;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target {
  border-color: #344258;
  background: transparent;
  color: #d8e2ef;
  box-shadow: none;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target span {
  color: #aeb9c9;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target strong {
  color: #d8e2ef;
}

@media (max-width: 42rem), (max-height: 34rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
    top: .5rem;
    margin: -.25rem 0 .7rem;
    padding: 0;
    display: flex;
    gap: .65rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
    padding: 0;
    gap: .75rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
    min-height: 2.75rem;
    padding: .2rem 0;
  }
}

@media (forced-colors: active) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
    border: 0;
    border-bottom: .125rem solid currentColor;
  }
}

/* Targeted rewrite: one continuous AI conversation. */
#copy .xwl-rewrite-dialog.is-targeted-chat {
  height: min(46rem, calc(100dvh - 2rem));
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-candidate-drawer-head {
  min-height: 4.25rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-chat-toolbar {
  position: relative;
  min-height: 0;
  padding-top: .7rem;
  padding-bottom: .7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .62rem;
  background: #fff;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-chat-toolbar > .xwl-translate-toggle {
  position: absolute;
  top: .72rem;
  right: 1.25rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  list-style: none;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li {
  min-width: 0;
  min-height: 2.2rem;
  padding: .4rem .55rem;
  border-radius: .58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: #f1f4f6;
  color: #687588;
  font-size: .78rem;
  font-weight: 650;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li > span {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dfe6eb;
  color: #5f6d7e;
  font-size: .68rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li.is-active {
  background: #e7f7fa;
  color: #076f85;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li.is-active > span,
#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li.is-done > span {
  background: #0891b2;
  color: #fff;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li.is-done {
  color: #087e75;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li.is-error {
  background: #fff2f1;
  color: #b42318;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li.is-error > span {
  background: #d92d20;
  color: #fff;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip {
  min-width: 0;
  padding-top: .6rem;
  border-top: .0625rem solid #e2e8ec;
  display: flex;
  align-items: center;
  gap: .65rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip > span {
  flex: 0 0 auto;
  color: #475569;
  font-size: .78rem;
  font-weight: 700;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip > div {
  min-width: 0;
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip .xwl-rewrite-version-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 6.8rem;
  min-height: 2.45rem;
  padding: .42rem .58rem;
  gap: .55rem;
  border-color: #d7e1e8;
  background: #fff;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip .xwl-rewrite-version-item.is-active {
  border-color: #0891b2;
  background: #e7f7fa;
  box-shadow: none;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip .xwl-rewrite-version-item strong {
  font-size: .78rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip .xwl-rewrite-version-item small {
  font-size: .68rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-layout {
  grid-template-columns: minmax(0, 1fr);
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-main {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #f6f8fa;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-thread {
  min-height: 0;
  padding: 1.1rem 1.35rem 1.35rem;
  display: grid;
  align-content: start;
  gap: .8rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-conversation,
#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-conversation.is-compact {
  margin: 0;
  padding: 0;
  border: 0;
  gap: .8rem;
  background: transparent;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-message {
  padding: .72rem .86rem;
  border-radius: .78rem;
  color: #172033;
  font-size: .96rem;
  line-height: 1.65;
  box-shadow: 0 .18rem .6rem rgba(15, 23, 42, .05);
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-message > small {
  color: #5b6878;
  font-size: .75rem;
  font-weight: 700;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-message.is-user {
  max-width: min(76%, 42rem);
  border-color: #0891b2;
  background: #0891b2;
  color: #fff;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-message.is-user > small {
  color: rgba(255, 255, 255, .82);
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-message.is-assistant {
  max-width: min(88%, 50rem);
  border-color: #d7e1e8;
  background: #fff;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-typing p,
#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-error p {
  display: flex;
  align-items: center;
  gap: .48rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-typing i {
  color: #0891b2;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-error {
  min-height: 0;
  color: #9f3434;
  text-align: left;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence {
  justify-self: start;
  width: min(88%, 50rem);
  border: .0625rem solid #d7e1e8;
  border-radius: .7rem;
  background: #fff;
  color: #334155;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence > summary {
  padding: .62rem .78rem;
  color: #076f85;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence > div {
  padding: 0 .78rem .76rem;
  border-top: .0625rem solid #e4eaee;
  display: grid;
  gap: .6rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence p {
  margin: .65rem 0 0;
  display: grid;
  gap: .16rem;
  font-size: .86rem;
  line-height: 1.6;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence p > strong,
#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence section > strong {
  color: #172033;
  font-size: .76rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence section {
  display: grid;
  gap: .42rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-quick-replies {
  justify-self: start;
  width: min(88%, 50rem);
  display: flex;
  flex-wrap: wrap;
  gap: .48rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-quick-replies .xwl-btn {
  min-height: 2.35rem;
  border-radius: 999px;
  border-color: #9bdce7;
  background: #fff;
  color: #076f85;
  white-space: normal;
  text-align: left;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-quick-replies .xwl-btn:hover,
#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-quick-replies .xwl-btn:focus-visible {
  border-color: #0891b2;
  background: #e7f7fa;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-main > .xwl-rewrite-followup {
  margin: 0;
  padding: .72rem 1.35rem 1rem;
  border: 0;
  border-top: .0625rem solid #dce4e9;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -.35rem 1rem rgba(15, 23, 42, .05);
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-followup > span {
  font-size: .8rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-followup textarea {
  min-height: 3rem;
  max-height: 7.5rem;
  font-size: .92rem;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-candidate-message {
  width: min(88%, 50rem);
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-candidate-message .xwl-candidate-copy {
  font-size: .98rem;
  line-height: 1.7;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-candidate-message .xwl-rewrite-evidence {
  width: 100%;
  margin-top: .68rem;
  box-shadow: none;
}

#copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-validation {
  justify-self: start;
  width: min(88%, 50rem);
  box-sizing: border-box;
}

@media (max-width: 42rem) {
  #copy .xwl-rewrite-dialog.is-targeted-chat {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-candidate-drawer-head,
  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-chat-toolbar {
    padding-right: .85rem;
    padding-left: .85rem;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-chat-toolbar > .xwl-translate-toggle {
    position: static;
    justify-self: end;
    grid-row: 1;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-chat-toolbar > .xwl-translate-toggle + .xwl-rewrite-version-strip {
    grid-row: 2;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress {
    grid-row: 1;
    gap: .3rem;
    padding-right: 3.2rem;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li {
    min-height: 2rem;
    padding: .32rem .38rem;
    gap: .28rem;
    font-size: .7rem;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-progress > li > span {
    width: 1.15rem;
    height: 1.15rem;
    font-size: .62rem;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-version-strip {
    align-items: flex-start;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-thread {
    padding: .8rem .88rem 1rem;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-message,
  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-evidence,
  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-quick-replies,
  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-validation {
    max-width: 94%;
    width: auto;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-main > .xwl-rewrite-followup {
    padding: .65rem .88rem calc(.65rem + env(safe-area-inset-bottom));
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-followup > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #copy .xwl-rewrite-dialog.is-targeted-chat .xwl-rewrite-followup .xwl-btn {
    width: auto;
  }
}

/* A collapsed context panel must release its flexible desktop grid row. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card[data-context-expanded="false"] {
  align-self: start;
  height: auto;
  min-height: 0;
}

@media (min-width: 82.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack:has(> .xwl-context-card[data-context-expanded="false"]) {
    height: auto;
    grid-template-rows: auto auto;
  }
}

/* Listing editor interaction affordances (2026-07-23). */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  padding: .38rem .45rem;
  border: .0625rem solid #d9e3fb;
  border-radius: .8rem;
  background: #f4f7ff;
  box-shadow: 0 .3rem .9rem rgba(47, 95, 227, .08);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
  gap: .35rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
  min-height: 2.65rem;
  padding: .5rem .9rem;
  border-radius: .58rem;
  color: #42526a;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab::after {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover {
  border: 0;
  background: #e8eefc;
  color: #24407d;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  border: 0;
  background: #fff;
  color: #2f5fe3;
  box-shadow: 0 0 0 .0625rem #86a2f6, 0 .2rem .55rem rgba(47, 95, 227, .14);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:active {
  transform: translateY(.0625rem);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-title-action {
  width: fit-content;
  padding: .32rem .48rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  border-radius: .5rem;
  color: var(--xwl-ink, #172033);
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-title-action > i {
  color: #7b8ca8;
  font-size: .78rem;
  opacity: .7;
  transition: color .16s ease, opacity .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:hover .xwl-bullet-title-action,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:focus-visible .xwl-bullet-title-action {
  background: #edf3ff;
  color: #244fc7;
  box-shadow: inset 0 0 0 .0625rem #bfd0ff;
  transform: translateY(-.0625rem);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-row.is-context-selected .xwl-bullet-title-action {
  background: #e3ebff;
  color: #214bc1;
  box-shadow: inset 0 0 0 .0625rem #8aa5f5;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:hover .xwl-bullet-title-action > i,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-row.is-context-selected .xwl-bullet-title-action > i {
  color: #2f5fe3;
  opacity: 1;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target > span {
  justify-self: start;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target > strong {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target-spacer {
  display: block;
  justify-self: end;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target-index {
  box-sizing: border-box;
  min-width: 2.8rem;
  justify-self: end;
  padding: .18rem .38rem;
  border: .0625rem solid #c7d2fe;
  border-radius: .35rem;
  background: #f2f5ff;
  color: #3158bf;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-target-index {
  border-color: #526aa8;
  background: #1e2d50;
  color: #b7c6ff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-plan-expand-hint {
  width: 3.25rem;
  min-height: 1.45rem;
  margin: .15rem auto 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b8ca8;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-plan-expand-hint:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-plan-expand-hint:focus-visible {
  background: #edf3ff;
  color: #2f5fe3;
  outline: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-plan-expand-hint:active {
  transform: translateY(.0625rem);
}

@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan.is-list-expanded {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-rows: auto auto auto auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-classic-plan.is-list-expanded > .xwl-keyword-list {
    overflow: visible;
  }
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  border-color: #344a72;
  background: #101b2e;
  box-shadow: 0 .3rem .9rem rgba(0, 0, 0, .2);
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover {
  background: #192945;
  color: #dbe6ff;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  background: #22345a;
  color: #b8c8ff;
  box-shadow: 0 0 0 .0625rem #607ccf, 0 .2rem .55rem rgba(0, 0, 0, .25);
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-title-action {
  color: #d8e2ef;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:hover .xwl-bullet-title-action,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-summary:focus-visible .xwl-bullet-title-action,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-row.is-context-selected .xwl-bullet-title-action {
  background: #20345a;
  color: #b8c8ff;
  box-shadow: inset 0 0 0 .0625rem #5573c4;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-plan-expand-hint:hover,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-plan-expand-hint:focus-visible {
  background: #20345a;
  color: #b8c8ff;
}

@media (max-width: 42rem), (max-height: 34rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
    padding: .3rem .35rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav .xwl-editor-tabs {
    gap: .2rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
    min-height: 2.45rem;
    padding: .4rem .45rem;
  }
}

@media (forced-colors: active) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"],
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-bullet-row.is-context-selected .xwl-bullet-title-action {
    outline: .125rem solid currentColor;
  }
}

/* Keep bullet targeting quiet: text feedback only, without edit badges or blue frames. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-title-action {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-title-action > i {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary:hover .xwl-bullet-title-action,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary:focus-visible .xwl-bullet-title-action {
  background: transparent;
  color: #244fc7;
  box-shadow: none;
  transform: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected:focus-within,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"]:focus-within,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row:focus-within,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].xwl-bullet-row:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].xwl-bullet-row:focus-within,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].xwl-bullet-row.is-context-selected,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor [data-context-selectable].xwl-bullet-row[aria-selected="true"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded {
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"] {
  background: transparent;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded {
  background: #f8f9fb;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected .xwl-bullet-title-action,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"] .xwl-bullet-title-action {
  background: transparent;
  color: #214bc1;
  box-shadow: none;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: .125rem;
  text-underline-offset: .28rem;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary:hover .xwl-bullet-title-action,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary:focus-visible .xwl-bullet-title-action,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected .xwl-bullet-title-action,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"] .xwl-bullet-title-action {
  background: transparent;
  color: #b8c8ff;
  box-shadow: none;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"] {
  background: transparent;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded {
  background: #151e2d;
}

@media (forced-colors: active) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-context-selected .xwl-bullet-title-action,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row[aria-selected="true"] .xwl-bullet-title-action {
    outline: 0;
    color: Highlight;
  }
}

/* Place each step heading above its existing left-side card. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack {
  min-width: 0;
  align-self: start;
  display: grid;
  gap: .55rem;
  position: sticky;
  top: 1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack > .xwl-head {
  position: static;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack > .xwl-rail {
  min-width: 0;
  position: static;
  top: auto;
  padding: 1rem;
  border: .0625rem solid var(--xwl-flow-line);
  border-radius: .85rem;
  background: var(--xwl-panel);
  box-shadow: var(--xwl-flow-shadow);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan > .xwl-rail-block {
  padding-bottom: .45rem;
}

/* Keep the classic keyword plan's original internal scrolling after nesting it. */
@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan {
    min-height: 0;
    height: calc(100vh - 12rem);
    height: calc(100dvh - 12rem);
    max-height: 42rem;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan > .xwl-keyword-list {
    min-height: 0;
    padding-right: .15rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan > .xwl-keyword-list::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan.is-list-expanded {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-rows: auto auto auto auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan.is-list-expanded > .xwl-keyword-list {
    overflow: visible;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack:has(> .xwl-classic-plan.is-list-expanded) {
    position: relative;
    top: auto;
  }
}

/* The discovery result now occupies the open centre of the sticky footer. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert {
  min-width: 10rem;
  flex: 1 1 18rem;
  padding: 0 .75rem;
  color: #d92d20;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert {
  color: #ff7b72;
}

@media (max-width: 58rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack {
    position: static;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert {
    order: 3;
    flex-basis: 100%;
    padding: 0;
    text-align: left;
  }
}


/* listing-clean-layout-v2 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar {
  box-sizing: border-box;
  width: min(100%, 92rem);
  min-height: 4.4rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(9rem, 1fr) auto auto auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #dfe3e8));
  border-left: .22rem solid #0d9463;
  border-radius: .8rem;
  background: var(--xwl-panel, #fff);
  box-shadow: var(--xwl-flow-shadow, 0 .35rem 1.2rem rgba(23, 35, 62, .055));
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar.is-blocked {
  border-left-color: #d97706;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-heading {
  min-width: 7rem;
  display: grid;
  gap: .08rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-heading .xwl-kicker {
  font-size: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-heading h2 {
  margin: 0;
  color: var(--xwl-ink, #172033);
  font-size: 1.16rem;
  line-height: 1.2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar .xwl-result-status-main {
  min-width: 9rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar.is-blocked .xwl-result-status-icon {
  background: #fff7e8;
  color: #b45309;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar > .xwl-actions,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar .xwl-result-status-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  white-space: nowrap;
}

@media (max-width: 82rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar {
    grid-template-columns: auto minmax(9rem, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar .xwl-result-status-actions,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar > .xwl-actions {
    grid-column: auto / span 1;
  }
}

@media (max-width: 62rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar .xwl-result-status-actions,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-review-bar > .xwl-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* anchor-discovery-v1: compact two-row discovery header */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-main {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row {
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .85rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-list {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-list > strong {
  margin-right: .15rem;
  color: var(--xwl-ink, #172033);
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip {
  position: relative;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  border: .0625rem solid #cbd7ea;
  border-radius: .48rem;
  background: #f6f8fc;
  color: #25334d;
  font-size: .78rem;
  line-height: 1;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip > i {
  color: #4f6fed;
  font-size: .68rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip small {
  padding: .16rem .3rem;
  border-radius: 999px;
  background: #e7edff;
  color: #3657c8;
  font-size: .64rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip button {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  margin: -.1rem -.2rem -.1rem .05rem;
  padding: 0;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: #718096;
  opacity: 0;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip:hover button,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip:focus-within button {
  opacity: 1;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip button:hover {
  background: #feeceb;
  color: #d92d20;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-candidate-head-row,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace > .xwl-competitor-row {
  display: grid;
  grid-template-columns: minmax(13rem, 1.25fr) minmax(11rem, .95fr) minmax(13rem, 1.1fr) minmax(9rem, .65fr);
  gap: .75rem;
  align-items: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-candidate-head-row {
  min-height: 2.65rem;
  padding: .5rem .8rem;
  border-top: .0625rem solid var(--xwl-flow-line, #dfe5ee);
  border-bottom: .0625rem solid var(--xwl-flow-line, #dfe5ee);
  background: #f7f9fc;
  color: #526078;
  font-size: .74rem;
  font-weight: 700;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-candidate-head-row > div {
  display: flex;
  align-items: center;
  gap: .45rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace > .xwl-competitor-row {
  margin: 0;
  padding: .8rem;
  border-width: 0 0 .0625rem;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace > .xwl-competitor-row:last-child {
  border-bottom: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-source-line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .2rem;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-source-line strong {
  flex: 0 0 auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-source-line small {
  min-width: 0;
  overflow: hidden;
  color: #7a879b;
  font-size: .66rem;
  font-weight: 500;
  text-overflow: ellipsis;
}

/* anchor modal */
#copy .xwl-anchor-dialog {
  width: min(43rem, 100%);
  max-height: min(84vh, 48rem);
  overflow: auto;
}

#copy .xwl-anchor-dialog > .xwl-modal-head,
#copy .xwl-anchor-dialog > .xwl-modal-body,
#copy .xwl-anchor-dialog-footer {
  padding: .9rem 1rem;
}

#copy .xwl-anchor-dialog > .xwl-modal-head {
  border-bottom: .0625rem solid var(--xwl-flow-line, #dfe5ee);
}

#copy .xwl-anchor-dialog > .xwl-modal-body {
  display: grid;
  gap: .75rem;
}

#copy .xwl-anchor-recommendations {
  display: grid;
  gap: .5rem;
}

#copy .xwl-anchor-recommendation {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border: .0625rem solid #d7dfec;
  border-radius: .65rem;
  background: #fff;
  color: #26324a;
  text-align: left;
  cursor: pointer;
}

#copy .xwl-anchor-recommendation.is-selected {
  border-color: #4f6fed;
  background: #f2f5ff;
  box-shadow: inset .18rem 0 0 #4f6fed;
}

#copy .xwl-anchor-recommendation > i {
  color: #4f6fed;
}

#copy .xwl-anchor-recommendation > span {
  min-width: 0;
  display: grid;
  gap: .14rem;
}

#copy .xwl-anchor-recommendation small,
#copy .xwl-anchor-recommendation em {
  overflow: hidden;
  color: #66738a;
  font-size: .72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xwl-anchor-recommendation > b {
  padding: .22rem .42rem;
  border-radius: 999px;
  background: #e9f8ef;
  color: #087a4f;
  font-size: .68rem;
  white-space: nowrap;
}

#copy .xwl-anchor-divider {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #8792a5;
  font-size: .68rem;
}

#copy .xwl-anchor-divider::before,
#copy .xwl-anchor-divider::after {
  height: .0625rem;
  flex: 1;
  background: var(--xwl-flow-line, #dfe5ee);
  content: "";
}

#copy .xwl-anchor-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
}

#copy .xwl-anchor-check-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  border-radius: .6rem;
  font-size: .78rem;
}

#copy .xwl-anchor-check-result > div {
  display: grid;
  gap: .12rem;
}

#copy .xwl-anchor-check-result.is-valid {
  background: #ecf9f2;
  color: #087a4f;
}

#copy .xwl-anchor-check-result.is-invalid {
  background: #fff4f2;
  color: #b42318;
}

#copy .xwl-anchor-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  border-top: .0625rem solid var(--xwl-flow-line, #dfe5ee);
}

#copy .xwl-anchor-empty {
  padding: .8rem;
  border: .0625rem dashed #d7dfec;
  border-radius: .6rem;
  color: #66738a;
  font-size: .78rem;
  text-align: center;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-candidate-head-row,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip,
body.theme-dark #copy .xwl-anchor-recommendation {
  background: #151e2d;
  color: #d8e0ed;
}

@media (max-width: 72rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row {
    align-items: flex-start;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-candidate-head-row {
    display: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace > .xwl-competitor-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row {
    display: grid;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-actions {
    justify-content: flex-start;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace > .xwl-competitor-row,
  #copy .xwl-anchor-recommendation,
  #copy .xwl-anchor-check-result {
    grid-template-columns: 1fr;
  }
}

/* anchor-discovery-v2: keep actions stable when anchors wrap */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-actions {
  width: max-content;
  min-width: max-content;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  align-self: start;
  gap: .5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-actions .xwl-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-discovery-rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-discovery-rail-title h3 {
  margin: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-discovery-rail-title > span {
  padding: .22rem .45rem;
  border: .0625rem solid #cfd9ec;
  border-radius: 999px;
  background: #f3f6fc;
  color: #4f62a7;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-discovery-rail-title > span {
  border-color: #40506a;
  background: #1a2435;
  color: #b8c8ff;
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row {
    grid-template-columns: 1fr;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-actions {
    width: auto;
    min-width: 0;
    justify-self: start;
  }
}

/* workflow-sticky-head-v1: compact two-level headers that follow the page scroll. */
#copy .xw-listing-app:not(.xwl-hub-mode) {
  --xwl-sticky-content-top: 3.72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-shell {
  gap: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  grid-template-columns: 3.35rem 3.35rem minmax(0, 1fr);
  gap: .55rem;
  padding: .1rem 0 .25rem;
  background: var(--xwl-flow-bg, #f4f6fa);
  box-shadow: 0 .9rem 1rem -.95rem rgba(15, 23, 42, .28);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-back,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-step {
  min-height: 3.25rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-preview {
  width: 3.35rem;
  min-height: 3.25rem;
  padding: .22rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-product-media {
  min-height: 2.75rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-step {
  padding: .5rem .4rem;
  font-size: .84rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-step-index {
  width: 1.55rem;
  height: 1.55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-sticky-head,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-head {
  top: var(--xwl-sticky-content-top);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack {
  gap: .4rem;
  z-index: 17;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-head {
  min-height: 3rem;
  padding: 0 .1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-head h2 {
  font-size: 1.2rem;
}

/* Step 2: the anchor toolbar and the candidate columns behave as one header. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace {
  overflow: visible;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-sticky-head {
  position: sticky;
  z-index: 22;
  overflow: hidden;
  border-radius: .82rem .82rem 0 0;
  background: var(--xwl-panel, #fff);
  box-shadow: 0 .75rem 1rem -.9rem rgba(15, 23, 42, .28);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row {
  min-height: 3.25rem;
  padding: .4rem .65rem;
  align-items: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: .05rem;
  scrollbar-width: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-list::-webkit-scrollbar {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-chip {
  flex: 0 0 auto;
  min-height: 1.8rem;
  padding: .28rem .5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-candidate-head-row {
  min-height: 2.3rem;
  padding: .38rem .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-workspace > .xwl-competitor-row {
  scroll-margin-top: 9.6rem;
}

/* Step 3: search/statistics and both keyword header rows remain a single unit. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-head {
  position: sticky;
  z-index: 22;
  min-width: 0;
  background: var(--xwl-panel, #fff);
  border-radius: .82rem .82rem 0 0;
  box-shadow: 0 .75rem 1rem -.9rem rgba(15, 23, 42, .28);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar {
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr) auto;
  gap: .45rem;
  padding: .42rem .55rem;
  border: .0625rem solid var(--xwl-flow-line, #dfe5ee);
  border-bottom: 0;
  border-radius: .82rem .82rem 0 0;
  background: var(--xwl-panel, #fff);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar .xwl-input {
  min-height: 2.35rem;
  padding: .46rem .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics > span {
  min-width: 3.75rem;
  min-height: 2.25rem;
  padding: .2rem .38rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: .0625rem solid var(--xwl-flow-line, #dfe5ee);
  border-top: 0;
  background: var(--xwl-panel, #fff);
  scrollbar-width: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns::-webkit-scrollbar {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns {
  position: static;
  display: grid;
  grid-template-columns: 1.7rem minmax(15rem, 1.55fr) 5.8rem 5.8rem 5.5rem 5.8rem 5.2rem 5.4rem 5.4rem 7.5rem 8.8rem 8.8rem 7.8rem;
  gap: .55rem;
  padding-left: .7rem;
  padding-right: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns > span:first-child {
  position: sticky;
  left: 0;
  z-index: 8;
  background: inherit;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns > span:nth-child(2) {
  position: sticky;
  left: 2.95rem;
  z-index: 8;
  padding-right: .55rem;
  background: inherit;
  box-shadow: .5rem 0 .65rem -.65rem rgba(33, 48, 88, .5);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-group-head {
  min-height: 1.7rem;
  padding-top: .28rem;
  padding-bottom: .18rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-label-head {
  padding-top: .28rem;
  padding-bottom: .38rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 .8rem .8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row:first-child {
  border-top: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row {
  scroll-margin-top: 10.5rem;
}

/* Step 4: align the three content headers directly below the workflow bar. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  z-index: 22;
  margin: 0 0 .55rem;
  padding: .3rem .38rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
  min-height: 2.45rem;
  padding: .42rem .72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
  z-index: 20;
  gap: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-context-card {
  padding: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-switcher {
  padding-bottom: .5rem;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-nav {
  background: var(--xwl-flow-bg, #0b1220);
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-sticky-head,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-head,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns {
  background: var(--xwl-panel, #111827);
}

@media (max-width: 72rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar {
    grid-template-columns: minmax(12rem, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 58rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-sticky-head,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-head,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
    position: static;
    top: auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-list {
    flex-wrap: wrap;
    overflow: visible;
  }
}

/* review-fill-fix-v1: when targeted editing is collapsed, validation uses the free column height. */
@media (min-width: 82.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack:has(> .xwl-context-card[data-context-expanded="false"]):has(> .xwl-classic-review[data-review-expanded="true"]) {
    height: clamp(31rem, calc(100vh - 10rem), 43.5rem);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack:has(> .xwl-context-card[data-context-expanded="false"]) > .xwl-classic-review[data-review-expanded="true"] {
    align-self: stretch;
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}

/* global-zoom-safe-layout-v1: measure real sticky rows instead of assuming a zoom level. */
#copy .xw-listing-app:not(.xwl-hub-mode) {
  --xwl-sticky-content-top: 3.72rem;
  --xwl-sticky-footer-height: 4.75rem;
  --xwl-sticky-shell-gap: .65rem;
  --xwl-workspace-height: 100dvh;
  --xwl-sticky-available-height: max(18rem, calc(var(--xwl-workspace-height) - var(--xwl-sticky-content-top) - var(--xwl-sticky-footer-height) - 1.25rem));
  box-sizing: border-box;
  padding-bottom: calc(var(--xwl-sticky-footer-height) + 1rem);
  scroll-padding-top: calc(var(--xwl-sticky-content-top) + .5rem);
  scroll-padding-bottom: calc(var(--xwl-sticky-footer-height) + .75rem);
}

/* sticky-gap-mask-v1: keep one clean, opaque breathing row between both sticky levels. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-shell {
  gap: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-flow-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(0rem - var(--xwl-sticky-shell-gap));
  height: var(--xwl-sticky-shell-gap);
  background: var(--xwl-flow-bg, #f4f6fa);
  pointer-events: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer {
  margin-bottom: calc(0rem - var(--xwl-sticky-footer-height) - .25rem);
}

@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-side-stack,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack {
    max-height: var(--xwl-sticky-available-height);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-side-stack > .xwl-classic-plan {
    height: max(14rem, calc(var(--xwl-sticky-available-height) - 3.55rem));
    max-height: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-competitor-row,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-field,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullets-section {
    scroll-margin-top: calc(var(--xwl-sticky-content-top) + 5.75rem);
    scroll-margin-bottom: calc(var(--xwl-sticky-footer-height) + .75rem);
  }
}

@media (min-width: 82.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack:has(> .xwl-context-card[data-context-expanded="false"]):has(> .xwl-classic-review[data-review-expanded="true"]) {
    height: var(--xwl-sticky-available-height);
    max-height: var(--xwl-sticky-available-height);
  }
}


/* keyword-result-notice-v1 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-result {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .65rem;
  min-width: 16rem;
  padding: 0 .75rem;
  background: transparent;
  border: 0;
  white-space: nowrap;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-result strong {
  font-size: .86rem;
  font-weight: 700;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-result time {
  font-size: .74rem;
  font-weight: 500;
  opacity: .72;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-success { color: #2563eb; }
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-error { color: #dc2626; }
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-success { color: #60a5fa; }
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-error { color: #f87171; }
@media (max-width: 58rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-footer-alert.is-result {
    justify-content: flex-start;
    min-width: 0;
    white-space: normal;
  }
}


/* listing-seablue-title-nav-v1 */
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav {
  border-color: #9bd8e3;
  background: #e3f5f8;
  box-shadow: 0 .3rem .9rem rgba(8, 145, 178, .10);
}
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab {
  color: #365267;
}
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab:hover {
  background: #d5eef3;
  color: #066d82;
}
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab.active,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-tabs .xwl-editor-tab[aria-selected="true"] {
  background: #fff;
  color: #087f99;
  box-shadow: 0 0 0 .0625rem #70c6d5, 0 .2rem .55rem rgba(8, 145, 178, .14);
}
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-editor-nav-actions > .xwl-translate-toggle {
  border-color: #9bd8e3;
  background: #d5eef3;
  color: #066d82;
}


/* discovery-limits-search-links-v1 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-anchor-list {
  flex: 1 1 auto;
  max-width: 100%;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  background: var(--xwl-panel, #fff);
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-list > strong small {
  color: #667085;
  font-size: .7rem;
  font-weight: 600;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: inherit;
  text-decoration: none;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-link > i {
  color: #4f6fed;
  font-size: .68rem;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-link:hover,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-link:focus-visible {
  color: #087f99;
  text-decoration: underline;
  text-underline-offset: .16rem;
}
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-overflow {
  flex: 0 0 auto;
  padding: .32rem .5rem;
  border: .0625rem dashed #b8c4d6;
  border-radius: .45rem;
  color: #667085;
  background: #f8fafc;
  font-size: .72rem;
  white-space: nowrap;
}
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-anchor-row > .xwl-actions {
  background: var(--xwl-panel, #111827);
}


/* listing-bullet-expanded-seablue-v1 */
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded {
  border-color: #9bd8e3;
  background: #f1fafb;
  box-shadow: 0 .3rem .9rem rgba(8, 145, 178, .10);
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded > .xwl-bullet-summary {
  border-bottom: .0625rem solid #c7e8ee;
  background: #e3f5f8;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded > .xwl-bullet-detail {
  background: #f1fafb;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded {
  border-color: #2b7182;
  background: #102a33;
  box-shadow: 0 .3rem .9rem rgba(0, 0, 0, .22);
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded > .xwl-bullet-summary {
  border-bottom: .0625rem solid #285e6b;
  background: #123744;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded > .xwl-bullet-detail {
  background: #102a33;
}

/* listing-bullet-summary-actions-v1 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded {
  position: relative;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded > .xwl-bullet-summary {
  grid-template-columns: minmax(0, 1fr) 9.75rem auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-action-slot {
  display: block;
  width: 9.75rem;
  min-height: .0625rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-actions {
  position: absolute;
  z-index: 3;
  top: .45rem;
  right: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-actions .xwl-editor-field-actions,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-actions .xwl-generation-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-detail-head {
  min-height: 1.35rem;
  justify-content: flex-start;
}

@media (max-width: 54rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-row.is-expanded > .xwl-bullet-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-action-slot {
    display: none;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-actions {
    position: static;
    justify-content: flex-end;
    padding: 0 .75rem .45rem;
  }

  body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-actions {
    border-bottom: .0625rem solid #c7e8ee;
    background: #e3f5f8;
  }

  body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-bullet-summary-actions {
    border-bottom: .0625rem solid #285e6b;
    background: #123744;
  }
}
/* Listing AI workbench and two-tab inspector (2026-07-24). */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack.xwl-inspector-stack {
  min-width: 0;
  display: block;
  height: auto;
  max-height: var(--xwl-sticky-available-height, calc(100vh - 10rem));
  overflow: visible;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-card {
  min-width: 0;
  max-height: var(--xwl-sticky-available-height, calc(100vh - 10rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: .0625rem solid #d8e0ea;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 .45rem 1.35rem rgba(36, 52, 80, .055);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .25rem;
  padding: .42rem;
  border-bottom: .0625rem solid #e5eaf1;
  background: #f8fafc;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-tabs button {
  min-width: 0;
  min-height: 2.35rem;
  padding: 0 .35rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #5c6b80;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-tabs button.is-active {
  color: #315df4;
  background: #fff;
  box-shadow: 0 .08rem .28rem rgba(35, 56, 91, .13);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-tabs em {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: .2rem;
  padding: .12rem .3rem;
  border-radius: 999px;
  color: #b76600;
  background: #fff0d4;
  font-size: .62rem;
  font-style: normal;
  text-align: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-body {
  min-height: 0;
  overflow: auto;
  padding: .9rem .78rem;
  scrollbar-width: thin;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-body .xwl-context-keyword,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-body .xwl-context-empty {
  padding: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-body > .xwl-classic-review {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-body > .xwl-classic-review > .xwl-classic-review-toggle {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-body > .xwl-classic-review > .xwl-classic-review-body {
  display: grid;
  max-height: none;
  overflow: visible;
  padding: 0;
}

#copy .xwl-workbench-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: 1.6rem;
}

#copy .xwl-workbench-layer .xwl-candidate-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(27, 39, 60, .5);
  backdrop-filter: blur(.12rem);
}

#copy .xwl-ai-workbench {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  place-self: center;
  width: min(71rem, calc(100vw - 3.2rem));
  height: min(54rem, calc(100dvh - 3.2rem));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.65rem 5rem rgba(16, 31, 57, .28);
  color: #172033;
}

#copy .xwl-ai-workbench-head {
  min-height: 5.05rem;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: .0625rem solid #dfe5ed;
}

#copy .xwl-ai-workbench-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 760;
}

#copy .xwl-ai-workbench-head h3 em {
  margin-left: .5rem;
  padding: .22rem .42rem;
  border: .0625rem solid #c8d8ff;
  border-radius: .38rem;
  color: #225be0;
  background: #f6f8ff;
  font-size: .68rem;
  font-style: normal;
  vertical-align: .12rem;
}

#copy .xwl-ai-workbench-head p {
  margin: .38rem 0 0;
  color: #5f6f85;
  font-size: .75rem;
}

#copy .xwl-ai-workbench-head > button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

#copy .xwl-ai-workbench-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
}

#copy .xwl-workbench-versions {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-right: .0625rem solid #dfe5ed;
}

#copy .xwl-workbench-context {
  padding: .78rem 1.2rem .7rem;
  border-bottom: .0625rem solid #e9edf3;
  background: #fbfcfe;
}

#copy .xwl-workbench-context > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

#copy .xwl-workbench-context > header > div {
  display: grid;
  gap: .12rem;
}

#copy .xwl-workbench-context > header span {
  color: #315df4;
  font-size: .66rem;
  font-weight: 750;
}

#copy .xwl-workbench-context > header strong { font-size: .9rem; }
#copy .xwl-workbench-context > header small { color: #657388; font-size: .64rem; }
#copy .xwl-workbench-context > header small i { margin-left: .2rem; }

#copy .xwl-workbench-context > div {
  margin-top: .55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .38rem;
}

#copy .xwl-workbench-context > div > section {
  position: relative;
  min-width: 0;
  min-height: 2.65rem;
  padding: .5rem .65rem;
  display: block;
  border: .0625rem solid #dbe3ee;
  border-radius: .55rem;
  background: #fff;
}

#copy .xwl-workbench-context > div > section > span {
  color: #637189;
  font-size: .7rem;
  font-weight: 720;
}
#copy .xwl-workbench-context > div > section > p {
  min-width: 0;
  margin: 0;
  max-height: 6rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #34445c;
  font-size: .78rem;
  line-height: 1.55;
}

/* listing-diagnostics-v1: compact diagnosis overview, decisions and unified workbench context. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview {
  margin: .72rem 0 .18rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .38rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview > div {
  min-width: 0;
  padding: .48rem .4rem;
  display: grid;
  gap: .18rem;
  border: .0625rem solid #e3e9f1;
  border-radius: .55rem;
  background: #f8fafc;
  text-align: center;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview span {
  overflow: hidden;
  color: #738196;
  font-size: .6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview b { font-size: .92rem; }
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview .is-blocker b { color: #c2413b; }
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview .is-confirm b { color: #c7770a; }
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview .is-optimize b { color: #087f9b; }
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview .is-completed b { color: #168166; }

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-risk-card.is-confirm {
  border-color: #e8c98f;
  background: #fffbf2;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-risk-card.is-optimize {
  border-color: #a9d9e4;
  background: #f3fbfd;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-risk-card.is-resolved {
  border-color: #b9ddcf;
  background: #f5fbf8;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-risk-card.is-optimize .xwl-review-risk-order { color: #087f9b; }
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-risk-card.is-resolved .xwl-review-risk-order { color: #168166; }

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-resolved-note {
  padding: .55rem .62rem;
  display: flex;
  align-items: flex-start;
  gap: .38rem;
  border-radius: .48rem;
  background: #eaf7f1;
  color: #17684f;
  font-size: .68rem;
  line-height: 1.45;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-review-confirm {
  border-color: #a8d8c7;
  background: #f4fbf8;
  color: #17684f;
}

#copy .xwl-workbench-diagnostic-source {
  margin: 0 0 .68rem;
  padding: .62rem .7rem;
  border: .0625rem solid #a9d9e4;
  border-left: .2rem solid #0891b2;
  border-radius: .55rem;
  background: #effafd;
}

#copy .xwl-workbench-diagnostic-source span {
  display: block;
  color: #087f9b;
  font-size: .62rem;
  font-weight: 760;
}

#copy .xwl-workbench-diagnostic-source strong {
  display: block;
  margin-top: .16rem;
  color: #20364b;
  font-size: .82rem;
}

#copy .xwl-workbench-diagnostic-source p {
  margin: .22rem 0 0;
  color: #607388;
  font-size: .68rem;
  line-height: 1.45;
}

#copy .xwl-history-diagnostic-badge {
  padding: .12rem .34rem;
  border-radius: 999px;
  background: #e6f7fb;
  color: #087f9b;
  font-size: .6rem;
  font-weight: 750;
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-diagnostic-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#copy .xwl-workbench-context > div > section > p.is-muted { color: #8b97a8; }

#copy .xwl-workbench-reference:focus-visible {
  outline: .125rem solid #7aa2ff;
  outline-offset: .08rem;
}

#copy .xwl-workbench-fulltext {
  position: absolute;
  z-index: 20;
  top: calc(100% - .05rem);
  left: 0;
  right: 0;
  max-height: 11rem;
  padding: .72rem .8rem;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.2rem);
  border: .0625rem solid #cbd8ea;
  border-radius: .58rem;
  background: #fff;
  box-shadow: 0 .75rem 1.8rem rgba(25, 43, 72, .18);
  pointer-events: auto;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

#copy .xwl-workbench-fulltext strong {
  display: block;
  margin-bottom: .35rem;
  color: #53637a;
  font-size: .68rem;
}

#copy .xwl-workbench-fulltext p {
  margin: 0;
  color: #273951;
  font-size: .78rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

#copy .xwl-workbench-reference:hover .xwl-workbench-fulltext,
#copy .xwl-workbench-reference:focus .xwl-workbench-fulltext,
#copy .xwl-workbench-reference:focus-within .xwl-workbench-fulltext {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#copy .xwl-workbench-tabs {
  height: 3rem;
  display: flex;
  align-items: end;
  gap: 1.4rem;
  padding: 0 1.2rem;
  border-bottom: .0625rem solid #dfe5ed;
}

#copy .xwl-workbench-tabs button {
  height: 3rem;
  padding: 0;
  border: 0;
  border-bottom: .18rem solid transparent;
  color: #5c6b81;
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}

#copy .xwl-workbench-tabs button.is-active { color: #315df4; border-bottom-color: #315df4; }
#copy .xwl-workbench-tabs b { margin-left: .25rem; padding: .12rem .34rem; border-radius: 999px; background: #edf2ff; font-size: .62rem; }

#copy .xwl-workbench-version-scroll {
  min-height: 0;
  overflow: auto;
  padding: .85rem 1.2rem;
  background: #fbfcfe;
  scrollbar-width: thin;
}

#copy .xwl-workbench-candidate {
  width: 100%;
  margin: 0 0 .7rem;
  padding: .78rem;
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: .55rem;
  border: .0625rem solid #d7dfeb;
  border-radius: .7rem;
  color: inherit;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

#copy .xwl-workbench-candidate:hover { border-color: #8eacff; }
#copy .xwl-workbench-candidate.is-selected { padding: calc(.78rem - .0625rem); border: .125rem solid #315df4; box-shadow: 0 .3rem 1rem rgba(49, 93, 244, .08); }
#copy .xwl-workbench-radio { width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border: .0625rem solid #b6c3d6; border-radius: 50%; color: #fff; font-size: .55rem; }
#copy .xwl-workbench-candidate.is-selected .xwl-workbench-radio { border-color: #315df4; background: #315df4; }
#copy .xwl-workbench-candidate-copy { min-width: 0; }
#copy .xwl-workbench-version-head { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: .5rem; }
#copy .xwl-workbench-version-head strong { font-size: .78rem; }
#copy .xwl-workbench-version-head small { color: #748297; font-size: .62rem; }
#copy .xwl-workbench-version-head em { padding: .2rem .35rem; border-radius: .35rem; color: #1d63dd; background: #edf3ff; font-size: .6rem; font-style: normal; }
#copy .xwl-workbench-candidate-copy > p { margin: .62rem 0 .45rem; color: #263750; font-size: .73rem; line-height: 1.55; white-space: pre-wrap; }
#copy .xwl-workbench-zh { display: block; padding: .5rem; border-left: .125rem solid #0aa3c2; color: #31495c; background: #f0fbfd; font-size: .68rem; line-height: 1.45; }
#copy .xwl-workbench-zh b { margin-right: .38rem; color: #0789a7; }
#copy .xwl-workbench-zh.is-pending { color: #7a8798; }
#copy .xwl-workbench-diff { display: block; margin-top: .45rem; color: #738096; font-size: .63rem; }
#copy .xwl-workbench-diff i { margin-right: .3rem; color: #0b9472; }

#copy .xwl-workbench-history {
  margin-bottom: .65rem;
  padding: .9rem;
  border: .0625rem solid #d7dfeb;
  border-radius: .68rem;
  background: #fff;
  cursor: pointer;
}
#copy .xwl-workbench-history.is-current { border-color: #315df4; box-shadow: inset .18rem 0 0 #315df4; }
#copy .xwl-workbench-history.is-selected { border-color: #315df4; background: #fbfdff; }
#copy .xwl-workbench-history-meta { display: flex; align-items: center; gap: .48rem; color: #718096; font-size: .66rem; }
#copy .xwl-workbench-history-meta strong { margin-right: auto; color: #24364f; font-size: .75rem; }
#copy .xwl-workbench-history-meta em { padding: .16rem .3rem; border-radius: .3rem; color: #235ddd; background: #eef3ff; font-style: normal; }
#copy .xwl-workbench-history > p { margin: .7rem 0 .58rem; color: #31435c; font-size: .76rem; line-height: 1.62; white-space: pre-wrap; }
#copy .xwl-workbench-history-zh { display: block; margin-bottom: .58rem; padding: .5rem .6rem; border-left: .125rem solid #0aa3c2; color: #40566c; background: #f2fbfd; font-size: .72rem; line-height: 1.55; white-space: pre-wrap; }
#copy .xwl-workbench-history > div:last-child { display: flex; justify-content: flex-end; gap: .4rem; }
#copy .xwl-workbench-history > div:last-child .xwl-btn { padding: .3rem .1rem; border: 0; color: #205add; background: transparent; font-size: .69rem; }

#copy .xwl-workbench-compare { padding: .85rem; border: .0625rem solid #cbd8ef; border-radius: .72rem; background: #fff; }
#copy .xwl-workbench-compare > header { display: flex; align-items: center; justify-content: space-between; }
#copy .xwl-workbench-compare > header span { display: flex; align-items: center; gap: .38rem; }
#copy .xwl-workbench-compare > header i { color: #315df4; }
#copy .xwl-workbench-compare > div { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .7rem 0; }
#copy .xwl-workbench-compare > div section { min-height: 9.5rem; padding: .68rem; border: .0625rem solid #dde4ed; border-radius: .55rem; }
#copy .xwl-workbench-compare span { color: #6e7d91; font-size: .62rem; }
#copy .xwl-workbench-compare p { margin: .42rem 0 0; font-size: .74rem; line-height: 1.58; white-space: pre-wrap; }
#copy .xwl-workbench-compare .xwl-workbench-compare-zh { margin-top: .58rem; padding: .5rem .55rem; border-left: .125rem solid #0aa3c2; color: #40566c; background: #f2fbfd; font-size: .7rem; }
#copy .xwl-workbench-compare .xwl-workbench-compare-zh.is-muted { color: #8290a2; }
#copy .xwl-workbench-history-confirm-button { grid-column: 1 / -1; }
#copy .xwl-history-confirm-preview { display: grid; gap: .55rem; }
#copy .xwl-history-confirm-preview p,
#copy .xwl-history-confirm-preview span { margin: 0; padding: .65rem .72rem; border: .0625rem solid #dde4ed; border-radius: .5rem; font-size: .76rem; line-height: 1.55; white-space: pre-wrap; }
#copy .xwl-history-confirm-preview span { border-left: .125rem solid #0aa3c2; background: #f2fbfd; }

#copy .xwl-workbench-versions > footer {
  min-height: 4.55rem;
  padding: .58rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  border-top: .0625rem solid #dfe5ed;
  background: #fff;
}
#copy .xwl-workbench-versions > footer small { grid-column: 1 / -1; color: #718096; font-size: .62rem; }

#copy .xwl-workbench-empty { min-height: 12rem; display: grid; place-content: center; justify-items: center; gap: .5rem; color: #6b7a8f; text-align: center; }
#copy .xwl-workbench-empty > i { color: #315df4; font-size: 1.35rem; }
#copy .xwl-workbench-empty strong { color: #2b3c55; font-size: .82rem; }
#copy .xwl-workbench-empty p { max-width: 20rem; margin: 0; font-size: .69rem; line-height: 1.5; }

#copy .xwl-workbench-chat {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #f7f9fc;
}

#copy .xwl-workbench-chat > header {
  grid-row: 1;
  min-height: 3.8rem;
  padding: .7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: .0625rem solid #dfe5ed;
  background: #fff;
}
#copy .xwl-workbench-chat > header > div { display: grid; gap: .18rem; }
#copy .xwl-workbench-chat > header strong { font-size: .9rem; }
#copy .xwl-workbench-chat > header span { color: #748096; font-size: .64rem; }
#copy .xwl-workbench-chat > header .xwl-btn { min-height: 2.15rem; font-size: .68rem; }

#copy .xwl-workbench-reasoning { grid-row: 2; margin: .55rem 1.1rem 0; padding: .7rem; border: .0625rem solid #c9d7eb; border-radius: .62rem; background: #fff; }
#copy .xwl-workbench-reasoning > strong { font-size: .74rem; }
#copy .xwl-workbench-reasoning p { margin: .32rem 0; color: #40516a; font-size: .68rem; line-height: 1.45; }
#copy .xwl-workbench-reasoning p b { margin-right: .3rem; }
#copy .xwl-workbench-reasoning > span { color: #126b85; font-size: .63rem; }

#copy .xwl-workbench-chat-scroll {
  grid-row: 3;
  min-height: 0;
  overflow: auto;
  padding: .9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  scrollbar-width: thin;
}

#copy .xwl-workbench-message {
  max-width: 84%;
  padding: .65rem .78rem;
  border: .0625rem solid #d7e0eb;
  border-radius: .72rem;
  background: #fff;
  box-shadow: 0 .18rem .6rem rgba(26, 43, 71, .035);
}
#copy .xwl-workbench-message.is-user { margin-left: auto; border-color: #b8d5ff; background: #eef6ff; }
#copy .xwl-workbench-message b { font-size: .66rem; }
#copy .xwl-workbench-message p { margin: .3rem 0 0; color: #32445d; font-size: .73rem; line-height: 1.55; }
#copy .xwl-workbench-message p i { margin-right: .35rem; color: #0891b2; }

#copy .xwl-workbench-composer {
  grid-row: 4;
  padding: .72rem 1.1rem .88rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.2rem;
  gap: .5rem;
  border-top: .0625rem solid #dfe5ed;
  background: #fff;
}
#copy .xwl-workbench-composer textarea { min-width: 0; width: 100%; min-height: 4rem; max-height: 7rem; box-sizing: border-box; resize: vertical; }
#copy .xwl-workbench-composer > .xwl-btn { align-self: stretch; }
#copy .xwl-workbench-quick-actions { grid-column: 1 / -1; display: flex; align-items: flex-start; flex-wrap: wrap; gap: .38rem; }
#copy .xwl-workbench-quick-actions button { align-self: flex-start; min-height: 1.85rem; padding: .32rem .55rem; border: .0625rem solid #d5deea; border-radius: .42rem; color: #526278; background: #fff; font: inherit; font-size: .65rem; cursor: pointer; }
#copy .xwl-workbench-quick-actions button:hover { border-color: #8caaff; color: #215be1; }

@media (max-width: 72rem) {
  #copy .xwl-ai-workbench { width: calc(100vw - 1.5rem); height: calc(100dvh - 1.5rem); }
  #copy .xwl-workbench-layer { padding: .75rem; }
}

@media (max-width: 58rem) {
  #copy .xwl-ai-workbench-body { grid-template-columns: 1fr; grid-template-rows: minmax(20rem, 48%) minmax(20rem, 52%); }
  #copy .xwl-workbench-versions { border-right: 0; border-bottom: .0625rem solid #dfe5ed; }
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack.xwl-inspector-stack { grid-column: 1 / -1; position: static; max-height: none; }
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-card { max-height: none; }
}

/* inspector-auto-height-v1: fill the available desktop column before scrolling. */
@media (min-width: 82.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor > .xwl-context-stack.xwl-inspector-stack {
    height: var(--xwl-sticky-available-height, calc(100dvh - 10rem));
    max-height: var(--xwl-sticky-available-height, calc(100dvh - 10rem));
    overflow: hidden;
    scrollbar-gutter: auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-inspector-card {
    height: 100%;
    max-height: none;
  }
}

/* copy-feedback-v1: quiet inline acknowledgement, no confirmation dialog. */
#copy .xwl-btn.is-copy-confirmed,
#copy .xwl-copy-field-trigger.is-copy-confirmed,
#copy .xwl-asin-copy.is-copy-confirmed {
  border-color: #9bdfea;
  background: #eefbfd;
  color: #087f99;
  box-shadow: none;
  cursor: default;
}


/* Compact bilingual keyword labels. Empty meanings stay fully hidden. */
#copy .xw-listing-app:not(.xwl-hub-mode) [data-keyword-meaning-term][hidden] {
  display: none !important;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task .xwl-small {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .32rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task .xwl-keyword-meaning {
  min-width: 0;
  padding-left: .32rem;
  border-left: 1px solid #d0d5dd;
  color: #667085;
  font-size: .75rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-plan-task[aria-current="true"] .xwl-keyword-meaning {
  border-left-color: rgba(255, 255, 255, .5);
  color: rgba(255, 255, 255, .9);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-keyword-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-keyword-title > strong {
  color: var(--xwl-ink);
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-context-keyword-title > .xwl-keyword-meaning {
  color: #667085;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
}


/* Step 3: show the saved Chinese meaning inline without increasing row height. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-title > .xwl-step3-keyword-meaning {
  min-width: 0;
  padding-left: .4rem;
  border-left: 1px solid #d0d5dd;
  color: #667085;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-title > .xwl-step3-keyword-meaning {
  border-left-color: #475467;
  color: #98a2b3;
}

/* Keep short Chinese meanings visible beside long English terms. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-title > .xwl-step3-keyword-meaning {
  flex: 0 0 auto;
  max-width: 8rem;
}

/* manual-listing-edit-confirm-20260725 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-listing-field-footer:empty {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-manual-edit-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: .4rem;
  margin-left: auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-manual-edit-actions small {
  color: #667085;
  font-size: .72rem;
  line-height: 1.35;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-manual-edit-actions .xwl-btn {
  min-height: 2rem;
  padding: .34rem .72rem;
}

@media (max-width: 58rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-manual-edit-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* keyword-dual-purpose-view-v1: compact Listing planning and advertising evaluation */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar {
  grid-template-columns: minmax(13rem, 17rem) minmax(16rem, 1fr) auto;
  gap: .7rem;
  padding: .5rem .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-coverage {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-coverage > span {
  display: inline-flex;
  align-items: baseline;
  gap: .24rem;
  min-width: 0;
  padding: 0 .7rem;
  border-left: .0625rem solid var(--xwl-flow-line, #dfe5ee);
  color: #667085;
  font-size: .72rem;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-coverage > span:first-child {
  border-left: 0;
  padding-left: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-coverage strong {
  color: #172033;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
  display: flex;
  align-items: center;
  gap: .42rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  gap: .18rem;
  padding: .2rem;
  border: .0625rem solid #d8e0eb;
  border-radius: .65rem;
  background: #f4f7fb;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-view-tabs button {
  min-height: 1.95rem;
  padding: .34rem .7rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: #526079;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-view-tabs button:hover {
  color: #1559c7;
  background: #eaf1ff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-view-tabs button.is-active {
  color: #fff;
  background: #1463df;
  box-shadow: 0 .16rem .4rem rgba(20, 99, 223, .22);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-table-inner:has([data-view="listing"]),
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-table-inner:has([data-view="listing"]) {
  min-width: 72rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-table-inner:has([data-view="ads"]),
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-table-inner:has([data-view="ads"]) {
  min-width: 78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns[data-view="listing"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view="listing"] {
  grid-template-columns: 1.7rem minmax(17rem, 1.75fr) 6.4rem 6.5rem 7.2rem 6.2rem 8.4rem 13rem;
  gap: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns[data-view="ads"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view="ads"] {
  grid-template-columns: 1.7rem minmax(17rem, 1.75fr) 7rem 8rem 7rem 7rem 8.2rem 7.3rem;
  gap: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-label-head {
  min-height: 2.6rem;
  padding-top: .55rem;
  padding-bottom: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view] {
  min-height: 4.45rem;
  padding-top: .55rem;
  padding-bottom: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-metric.is-missing strong,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-ad-metric.is-missing strong {
  color: #98a2b3;
  font-weight: 650;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: .38rem;
  min-width: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls .xwl-select,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-view="listing"] > .xwl-select {
  width: 100%;
  min-width: 0;
  min-height: 2.15rem;
  padding-top: .35rem;
  padding-bottom: .35rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-match {
  display: grid;
  align-content: center;
  gap: .16rem;
  min-width: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-match strong {
  overflow: hidden;
  color: #26344f;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-match span {
  overflow: hidden;
  color: #7b879c;
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-ad-metric span {
  color: #7b879c;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-coverage strong,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-match strong {
  color: #e6edf7;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-view-tabs {
  border-color: #344054;
  background: #182230;
}

@media (max-width: 88rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar {
    grid-template-columns: minmax(13rem, 1fr) auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-coverage {
    grid-column: 1;
    grid-row: 2;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* keyword-scroll-and-detail-hotfix-v1: keep the list scrollable and restore row details. */
@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-sticky-keywords {
    height: var(--xwl-sticky-available-height);
    max-height: var(--xwl-sticky-available-height);
    align-items: stretch;
    overflow: hidden;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-sticky-keywords > .xwl-side-stack,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-sticky-keywords > .xwl-keyword-main {
    min-height: 0;
    height: 100%;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-keyword-sticky-head,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-keyword-progress,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-manual-keyword-section,
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-row-head {
    flex: 0 0 auto;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-keyword-table {
    flex: 1 1 auto;
    min-height: 10rem;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
  }
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-action="open-keyword-detail"] {
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-action="open-keyword-detail"]:hover {
  background: #f2f6ff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-action="open-keyword-detail"]:focus-visible {
  position: relative;
  z-index: 9;
  outline: .125rem solid rgba(20, 99, 223, .55);
  outline-offset: -.125rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-action="open-keyword-detail"] :is(a, button, input, select, textarea, label) {
  cursor: auto;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-layer {
  position: fixed;
  inset: 0;
  z-index: 1450;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, .38);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(32rem, calc(100vw - 1.5rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: .0625rem solid #d9e1ec;
  background: #fff;
  color: #172033;
  box-shadow: -1.2rem 0 2.8rem rgba(15, 23, 42, .2);
  animation: xwl-keyword-detail-enter .18s ease-out both;
}

@keyframes xwl-keyword-detail-enter {
  from { transform: translateX(1.25rem); opacity: .75; }
  to { transform: translateX(0); opacity: 1; }
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-head {
  min-height: 5.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem .9rem;
  border-bottom: .0625rem solid #e2e7ef;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-head h2 {
  margin: .18rem 0 0;
  color: #172033;
  font-size: 1.25rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-head p {
  margin: .25rem 0 0;
  color: #667085;
  font-size: .8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-close {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: .0625rem solid #d7deea;
  border-radius: .6rem;
  background: #fff;
  color: #536078;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-close:hover {
  border-color: #9fb9ec;
  background: #f2f6ff;
  color: #145dcc;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .15rem 1.15rem 1rem;
  scrollbar-gutter: stable;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-section {
  padding: 1rem 0;
  border-bottom: .0625rem solid #e7ebf1;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-section:last-child {
  border-bottom: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-section h3 {
  margin: 0;
  color: #25324a;
  font-size: .92rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-section-head > span:not(.xwl-badge) {
  color: #7b879c;
  font-size: .68rem;
  text-align: right;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-reason,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-source p {
  margin: 0;
  color: #536078;
  font-size: .8rem;
  line-height: 1.65;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-lines {
  display: grid;
  gap: 0;
  margin: .75rem 0 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-lines > div {
  min-height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: .0625rem solid #edf0f5;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-lines dt {
  color: #7b879c;
  font-size: .75rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-lines dd {
  margin: 0;
  color: #25324a;
  font-size: .78rem;
  font-weight: 700;
  text-align: right;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-metric {
  min-width: 0;
  min-height: 4.55rem;
  display: grid;
  align-content: center;
  gap: .16rem;
  padding: .65rem .72rem;
  border: .0625rem solid #e0e6ef;
  border-radius: .7rem;
  background: #f8faff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-metric > span,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-metric > small {
  overflow: hidden;
  color: #7b879c;
  font-size: .68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-metric > strong {
  overflow: hidden;
  color: #1559c7;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-metric.is-missing > strong {
  color: #98a2b3;
  font-size: .86rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-source {
  display: grid;
  gap: .5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-footer {
  display: flex;
  justify-content: flex-end;
  padding: .75rem 1.15rem;
  border-top: .0625rem solid #e2e7ef;
  background: #fff;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-action="open-keyword-detail"]:hover {
  background: #202c3e;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-drawer,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-footer,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-close {
  border-color: #344054;
  background: #111827;
  color: #e6edf7;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-head h2,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-section h3,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-lines dd {
  color: #e6edf7;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-metric {
  border-color: #344054;
  background: #182230;
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-drawer {
    width: 100%;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* keyword-toolbar-and-copy-polish-v1 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
  min-height: 2.55rem;
  gap: .18rem;
  padding: .22rem;
  border: .0625rem solid #dce3ed;
  border-radius: .78rem;
  background: #f7f9fc;
  box-shadow: 0 .08rem .22rem rgba(23, 35, 62, .04);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-view-tabs {
  padding: 0;
  border: 0;
  background: transparent;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-btn,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-current-count {
  min-height: 2.05rem;
  border-color: transparent;
  border-radius: .52rem;
  background: transparent;
  box-shadow: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-btn:hover {
  border-color: #cbd8ec;
  background: #fff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update {
  border-color: #b8d0fb;
  background: #edf4ff;
  color: #1559c7;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update:hover {
  border-color: #7ba7ef;
  background: #e2edff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar-divider {
  width: .0625rem;
  height: 1.35rem;
  margin: 0 .12rem;
  background: #d6deea;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-current-count {
  display: inline-flex;
  align-items: center;
  padding: 0 .58rem;
  color: #667085;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-view] .xwl-keyword-evidence {
  color: #667085;
  font-weight: 650;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-view] .xwl-keyword-reason {
  color: #7b879c;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-view].is-risk .xwl-keyword-reason,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-row[data-view].is-isolation-conflict .xwl-keyword-reason {
  color: #a15c08;
  font-weight: 650;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
  border-color: #344054;
  background: #182230;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update {
  border-color: #365f9e;
  background: #172b4d;
  color: #8fb8ff;
}

@media (max-width: 88rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
    max-width: 41rem;
  }
}

/* 75/200 title variants */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .22rem;
  border: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #dfe3e8));
  border-radius: .65rem;
  background: #f5f7fa;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch > button {
  min-height: 2.25rem;
  padding: .45rem .9rem;
  border: 0;
  border-radius: .48rem;
  background: transparent;
  color: var(--xwl-muted, #667085);
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch > button:hover {
  color: var(--xwl-ink, #172033);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch > button:focus-visible {
  outline: .125rem solid rgba(60, 104, 255, .3);
  outline-offset: .0625rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch > button.is-active {
  background: var(--xwl-panel, #fff);
  color: var(--xwl-primary, #2f62e9);
  box-shadow: 0 .1rem .35rem rgba(23, 35, 62, .12);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-panel {
  display: grid;
  gap: 0;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-mode-panel > .xwl-editor-field {
  box-sizing: border-box;
  gap: 1rem;
  padding: 1.4rem 0 .65rem;
  border: 0;
  border-bottom: .0625rem solid #e2e5e9;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-mode-panel > .xwl-editor-field:first-child {
  padding-top: 0;
}

body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-mode-panel > .xwl-editor-field > .xwl-textarea,
body:not(.theme-dark) #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-classic-editor .xwl-title-mode-panel > .xwl-editor-field > .xwl-keyword-highlight-editor .xwl-textarea {
  min-height: 5.5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-item-highlights-field {
  --xwl-field-accent: #6d7ea8;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-title-switch {
  padding: .85rem 1.1rem;
  border-bottom: .0625rem solid var(--xwl-flow-line, var(--xwl-line, #e5e7eb));
  background: #fafbfc;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-title-switch {
  background: #1f2937;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch > button.is-active {
  background: #344054;
  color: #dbe7ff;
}

@media (max-width: 42rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch {
    width: 100%;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-title-mode-switch > button {
    flex: 1 1 50%;
    padding-inline: .55rem;
  }

  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-result-title-switch {
    padding: .75rem .85rem;
  }
}

/* keyword-table-visibility-and-source-asin-v1 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table {
  scrollbar-gutter: stable;
  scroll-padding-block: 0;
  scroll-snap-type: y mandatory;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view] {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns {
  box-sizing: border-box;
  padding-right: 1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-table-inner:has([data-view="listing"]),
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-table-inner:has([data-view="listing"]) {
  min-width: 74rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns[data-view="listing"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view="listing"] {
  grid-template-columns: 1.7rem minmax(17rem, 1.75fr) 6.4rem 6.5rem 7.2rem 6.2rem 8.4rem 14.5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls {
  grid-template-columns: minmax(6.2rem, 1fr) minmax(6.8rem, 1fr);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls .xwl-directive-select {
  min-width: 6.8rem;
  padding-right: 1.8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-meta-line {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-width: 0;
  line-height: 1.25;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-meta-line .xwl-keyword-evidence {
  flex: 1 1 auto;
  min-width: 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-asin {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .12rem;
  max-width: 12.25rem;
  overflow: hidden;
  color: #42618f;
  font-size: .67rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-asin strong {
  color: #263f67;
  font-size: inherit;
  font-weight: 750;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-asin i {
  margin-left: .08rem;
  font-size: .58rem;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-asin,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-asin strong {
  color: #9ebdf1;
}

/* keyword-table-viewport-alignment-v2
   Keep the independent header/body scrollers on the same width model.
   Avoid vertical snapping/anchoring that can leave the first row half hidden. */
@media (min-width: 58.01rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-keyword-table {
    overflow-anchor: none;
    scrollbar-gutter: stable;
    scroll-padding-block: 0;
    scroll-snap-type: none;
  }
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view] {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns {
  box-sizing: border-box;
  padding-right: 1rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-table-inner:has([data-view="listing"]),
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-table-inner:has([data-view="listing"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns[data-view="listing"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view="listing"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-table-inner:has([data-view="ads"]),
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-table-inner:has([data-view="ads"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns .xwl-keyword-columns[data-view="ads"],
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view="ads"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 78rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls .xwl-directive-select {
  overflow: visible;
  text-overflow: clip;
}

/* keyword-table-unified-layout-v1
   One scroll container owns both the sticky header and rows. This intentionally
   overrides the earlier split-scroller patches. */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-keyword-sticky-head {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  z-index: 8;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-sticky-columns {
  display: none !important;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-main > .xwl-keyword-table {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding: 0;
  scroll-snap-type: none;
  background: #fff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table > .xwl-keyword-table-inner {
  box-sizing: border-box;
  width: 100%;
  min-width: 100% !important;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-label-head,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view] {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  min-width: var(--xwl-keyword-grid-min, 72rem) !important;
  margin: 0;
  scroll-snap-align: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-label-head {
  position: sticky;
  top: 0;
  z-index: 6;
  min-height: 2.75rem;
  padding: 0 .72rem;
  align-items: center;
  background: #f7f9fc;
  border-top: 0;
  border-bottom: 1px solid #dfe5ee;
  box-shadow: 0 1px 3px rgba(23, 42, 72, .05);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view] {
  min-height: 4.65rem;
  padding: .52rem .72rem;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e4e9f0;
  transition: background-color .14s ease;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view]:hover {
  background: #f7f9fd;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-row[data-view] > *,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-label-head > * {
  min-width: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-name {
  padding-right: .8rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-title,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-meta-line,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-reason {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-title {
  font-size: .87rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-evidence,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-keyword-reason {
  display: block;
  font-size: .68rem;
  line-height: 1.35;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-table .xwl-select {
  box-sizing: border-box;
  width: calc(100% - .5rem);
  min-width: 0;
  height: 2.15rem;
  margin-right: .5rem;
  padding-inline: .62rem 1.55rem;
  border-radius: .55rem;
  font-size: .76rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .4rem;
  padding-right: .5rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-plan-controls .xwl-select {
  width: 100%;
  margin: 0;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-cell {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding-right: .7rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-cell strong {
  overflow: hidden;
  color: #244d91;
  font-size: .76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-cell span {
  color: #8995a7;
  font-size: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-source-cell.is-empty strong {
  color: #8f9aac;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions {
  position: relative;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-columns-trigger.is-active {
  color: #185dd8;
  border-color: #8eb6f3;
  background: #edf4ff;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-panel {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 30;
  width: 18rem;
  padding: .8rem;
  border: 1px solid #d9e1ec;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 2rem rgba(22, 39, 66, .16);
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 .2rem .62rem;
  border-bottom: 1px solid #e7ebf1;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-panel-head strong {
  color: #162a46;
  font-size: .84rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-panel-head span,
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-option small {
  color: #929dac;
  font-size: .66rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .28rem .55rem;
  padding-top: .65rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .45rem;
  min-height: 2rem;
  padding: .35rem .45rem;
  border-radius: .45rem;
  color: #32445e;
  font-size: .74rem;
  cursor: pointer;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-option:hover {
  background: #f3f6fb;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-option small {
  grid-column: 2;
  margin-top: -.2rem;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-column-option.is-unavailable {
  color: #9ca6b4;
  cursor: not-allowed;
}

@media (max-width: 84rem) {
  #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-columns-trigger span {
    display: none;
  }
}

/* keyword-toolbar-visual-hierarchy-v2 */
#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-view-tabs {
  gap: .1rem;
  margin-right: .38rem;
  padding: .14rem;
  border: .0625rem solid #d8e0eb;
  border-radius: .52rem;
  background: #eef2f7;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-view-tabs button {
  min-height: 1.65rem;
  padding: .22rem .5rem;
  border-radius: .36rem;
  font-size: .66rem;
  font-weight: 700;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions > .xwl-btn > i {
  display: none;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update {
  border-color: transparent;
  background: transparent;
  color: #344054;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update:hover {
  border-color: #cbd8ec;
  background: #fff;
  color: #1559c7;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update:disabled:has(.fa-spin) {
  opacity: 1;
  border-color: #b8d0fb;
  background: #edf4ff;
  color: #1559c7;
}

#copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-columns-trigger {
  font-size: .66rem;
  font-weight: 600;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-view-tabs {
  border-color: #344054;
  background: #202a39;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update {
  border-color: transparent;
  background: transparent;
  color: #cbd5e1;
}

body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update:hover,
body.theme-dark #copy .xw-listing-app:not(.xwl-hub-mode) .xwl-keyword-toolbar > .xwl-actions .xwl-keyword-update:disabled:has(.fa-spin) {
  border-color: #365f9e;
  background: #172b4d;
  color: #8fb8ff;
}
