html { color-scheme: light; }
body[data-preserved-product="commerce-cross-border-ecommerce"] .cross-border-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}
body[data-preserved-product="commerce-cross-border-ecommerce"] .cross-border-workspace > .panel {
  min-width: 0;
}
@media (max-width: 900px) {
  body[data-preserved-product="commerce-cross-border-ecommerce"] .cross-border-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
[data-preserved-product] svg[data-category-icon] { color: var(--workspace-category-color, #3b82fd) !important; }
[data-preserved-product] [data-category-icon-stroke] { stroke: var(--workspace-category-color, #3b82fd) !important; }
[data-preserved-product] [data-category-icon-fill] { fill: var(--workspace-category-color, #3b82fd) !important; }
/* The outer Next page provides the global navigation. Legacy scripts keep their DOM anchors. */
body[data-preserved-product] :is(header,div):has(> .header-in > #primary-nav),
body[data-preserved-product] header:has(#primary-nav) { display: none !important; }
/* The same product hero is rendered by the outer Next page. */
body[data-preserved-product] :is(.hero, .product-hero, .cc-hero, .video-hero):has(h1) { display: none !important; }
body[data-preserved-product] :is(aside.side, aside.side-rail, aside.cc-side, aside.pp-side, aside.video-side, aside.progress-rail) {
  position: static !important;
  align-self: start;
  margin-block-start: 0 !important;
  min-width: 0;
}
body[data-preserved-product] :is(.step-card, .cc-step, .pp-step, .video-step) + :is(.step-card, .cc-step, .pp-step, .video-step) {
  margin-block-start: 16px !important;
}
body[data-preserved-product] :is(.step-card, .cc-step, .pp-step, .video-step):is(:hover, :focus-within) {
  transform: none;
}
body[data-preserved-product] {
  margin: 0;
  min-height: 100vh;
  overflow-wrap: break-word;
}
[data-preserved-product] :where(input, textarea, select, button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
[data-preserved-product] :where(input, textarea, select, fieldset) { min-width: 0; }
[data-preserved-product] :where(img, video) { max-width: 100%; }
@media (max-width: 600px) {
  [data-preserved-product] :where(textarea, select, input:not([type=checkbox]):not([type=radio])) {
    font-size: max(16px, 1em);
    max-width: 100%;
  }
  [data-preserved-product] :where(.rows-body, .table-wrap, .result-table-wrap) {
    overflow-x: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-preserved-product] *, [data-preserved-product] *::before, [data-preserved-product] *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep sidebar copy neutral across categories; reserve category color for accents. */
body[data-preserved-product] :is(aside, [class*="side"], [class*="rail"]) {
  color: #241814 !important;
}

body[data-preserved-product]
  :is(aside, [class*="side"], [class*="rail"])
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    p,
    li,
    span,
    strong,
    b,
    small,
    dt,
    dd,
    label,
    a,
    button,
    summary,
    code,
    .side-title,
    .side-note,
    .progress-text,
    .progress-value,
    .pp-progress-text,
    .pp-summary-row,
    .pp-note,
    .cc-value,
    .cc-progress-text,
    .cc-side-list,
    .cc-mini-list,
    .summary-list,
    .summary-value,
    .deliver-list,
    .rules-list,
    .side-list,
    .side-rows,
    .mini-tags,
    .sum-row,
    .k,
    .v,
    .get-list,
    .getlist,
    .cost-num,
    .cost-sub,
    .ready-line,
    .pct,
    .pct-sub
  ) {
  color: #241814 !important;
}

body[data-preserved-product]
  :is(aside, [class*="side"], [class*="rail"])
  svg {
  color: var(--workspace-category-color, #3b82fd) !important;
}

/* Office cards share the same clean heading treatment as the other categories. */
body.office-page[data-preserved-product] .step-head {
  border-bottom: 0 !important;
}
