.migration-heading { max-width: 760px; margin-bottom: 24px; }
.migration-heading h1 { margin: 0 0 14px; font-size: clamp(30px,4vw,46px); line-height: 1.12; letter-spacing: -1.4px; }
.migration-heading p { color: var(--px-muted); }
.migration-workspace-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0 12px; }
.migration-workspace-nav a { display: grid; gap: 3px; min-width: 0; min-height: 74px; padding: 14px 18px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-surface); color: var(--px-ink); text-decoration: none; }
.migration-workspace-nav a[aria-current] { border-color: var(--px-accent); background: var(--px-accent-soft); box-shadow: inset 0 0 0 1px var(--px-accent); }
.migration-workspace-nav strong { font-size: 17px; }
.migration-workspace-nav span { color: var(--px-muted); font-size: 13px; }
.migration-workspace-hint { color: var(--px-muted); margin: 12px 0 20px; }
.migration-product-actions { align-items: center; margin: 0 0 18px; }
.migration-product-actions button, #migrationNewIdentifier, #migrationUseFit { min-height: 44px; padding: 10px 14px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); font: inherit; color: var(--px-accent); background: white; cursor: pointer; }
.migration-product-actions .field-help { flex-basis: 100%; margin: 0; color: var(--px-muted); font-size: 13px; }
.migration-product-actions.migration-untouched { display: none; }
/* Until sunrise-workspace.js picks the view, the page shows the default one (one product), so nothing moves
   when it does. The head script sets migration-view-pending before anything is drawn; the workspace removes it
   and restores its view if it mounts late. The head script removes the class and shows #migrationLoadNotice on a
   failure: a script that fails to load or throws before the view is chosen (the notice then stays, and
   migration-load-error marks it), no view once the page is parsed, or none after 15 s (a late mount clears that). Without JavaScript the class is never set; a <noscript>
   style in the head hides the controls that need script (the view tabs, saved work, the product list, the product
   actions, the phone step toggle, the preview buttons, the destination review and the empty preview), and a
   <noscript> line says the page needs it. The form posts to the page's own address, which sends the visitor back
   (keeping only a checked ?batch= or ?draft=), so nothing typed reaches a URL. */
.migration-view-pending :is(#my-product-drafts, #migration-batch, #migrationProductActions) { display: none; }
.migration-brand-return { border-top: 1px solid var(--px-line); margin-top: 24px; padding-top: 16px; }
[data-workspace="brand"] .migration-layout { display: block; max-width: 840px; margin: 0 auto; }
[data-workspace="brand"] #migration-brand .migration-step-number { display: none; }
.migration-switch-choice { background: #fff9e9; border-radius: var(--px-radius-panel); margin-bottom: 20px; }
.migration-switch-choice button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); font: inherit; color: var(--px-accent); background: white; cursor: pointer; }
.migration-drafts { margin-bottom: 24px; background: var(--px-surface); }
.migration-drafts h2 { margin: 0; font-size: 23px; }
.migration-drafts-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.migration-drafts-heading p, #migrationDraftListStatus { color: var(--px-muted); font-size: 14px; }
.migration-drafts button { min-height: 44px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); padding: 11px 15px; background: white; color: var(--px-accent); font: inherit; cursor: pointer; }
.migration-drafts button:disabled { opacity: .55; cursor: default; }
.migration-drafts-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#migrationDraftList { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#migrationDraftList li { min-width: 0; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); padding: 14px; overflow-wrap: anywhere; }
#migrationDraftList h3 { margin: 0 0 8px; font-size: 17px; }
#migrationDraftList p { margin: 6px 0 12px; color: var(--px-muted); font-size: 13px; }
.migration-switch-choice { border-left: 3px solid #b48734; padding: 4px 16px 16px; margin-top: 18px; }
.migration-switch-choice h3 { font-size: 18px; }
.migration-drafts button:focus-visible { outline: 3px solid var(--px-accent); outline-offset: 3px; }
.migration-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.migration-steps a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--px-radius-panel); background: var(--px-accent-soft); color: var(--px-accent); font-size: 14px; font-weight: 650; text-decoration: none; }
/* The one-line step summary is for phones only. */
.migration-step-toggle { display: none; }
.migration-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; gap: 24px; }
.migration-layout .card { background: var(--px-surface); }
.migration-layout h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.25; letter-spacing: -.5px; }
.migration-layout h3 { font-size: 18px; margin: 0 0 10px; }
.migration-layout label { display: grid; gap: 7px; font-weight: 650; margin: 18px 0 7px; }
.migration-layout input:not([type=checkbox]), .migration-layout select { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); padding: 11px; font: inherit; background: white; color: var(--px-ink); }
.migration-layout input[type=file] { font-size: 14px; white-space: normal; }
.migration-layout .migration-check { display: flex; align-items: start; gap: 10px; font-weight: 400; }
.migration-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--px-accent); }
.migration-layout button { min-height: 44px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); padding: 11px 15px; background: white; color: var(--px-accent); font: inherit; cursor: pointer; }
.migration-layout button:disabled { opacity: .55; cursor: default; }
.migration-layout .field-help { font-size: 13px; line-height: 1.5; color: var(--px-muted); margin: 6px 0 12px; }
.migration-layout details { margin: 18px 0; border-top: 1px solid var(--px-line); padding-top: 12px; }
.migration-layout summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 650; }
.migration-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.migration-review { position: static; }
.migration-preview-empty { display: grid; place-items: center; min-height: 280px; padding: 28px; border: 1px dashed var(--px-line); background: var(--px-canvas); text-align: center; color: var(--px-muted); }
.migration-preview-empty img { width: 56px; height: 56px; image-rendering: pixelated; opacity: .45; }
.migration-review figure { margin: 0; }
.migration-review figure img { display: block; width: 100%; max-height: 500px; object-fit: contain; background: #eeeee8; border: 1px solid var(--px-line); padding: 14px; }
.migration-review figcaption { margin-top: 10px; color: var(--px-muted); font-size: 13px; }
.migration-review dl { margin: 22px 0 12px; }
.migration-review dt { font-size: 12px; color: var(--px-muted); margin-top: 12px; }
.migration-review dd { margin: 4px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.migration-review a { color: var(--px-accent); }
.migration-state { border-left: 3px solid #b48734; padding-left: 10px; font-size: 14px; }
.migration-printer { border-top: 1px solid var(--px-line); margin-top: 24px; padding-top: 20px; }
.migration-publish-handoff { margin-top: 24px; background: var(--px-surface); }
#migrationPublishIntro>h2 { margin: 0 0 12px; font-size: 23px; }
#migrationPublishIntro>p { max-width: 760px; line-height: 1.5; }
#migrationPublishIntro>button { min-height: 48px; padding: 11px 15px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); background: white; color: var(--px-accent); font: inherit; cursor: pointer; }
#migrationPublishIntro>button:disabled { opacity: .55; cursor: default; }
#migrationPublishIntro>button:focus-visible { outline: 3px solid var(--px-accent); outline-offset: 3px; }
.migration-artwork { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.migration-artwork img { max-width: 145px; max-height: 110px; object-fit: contain; border: 1px solid var(--px-line); background: white; }
#migrationPreview, #migrationUpdatePreview { margin-top: 12px; }
/* Preview first: the optional inputs follow the preview button in one block. */
.migration-layout .migration-optional { margin: 0; border-top: 0; padding-top: 0; }
.migration-optional[open] > summary { margin-bottom: 12px; }
#migration-brand > #reuseMigrationBrand { margin-bottom: 12px; }
[data-workspace="brand"] #migrationProductOptions, [data-workspace="brand"] #migrationUpdatePreview { display: none; }
#migration-review { scroll-margin-top: 12px; }
.migration-preview-status { margin: 0 0 14px; border-left: 3px solid var(--px-accent); padding-left: 10px; font-size: 14px; }
.migration-preview-status:focus { outline: 3px solid var(--px-focus, var(--px-accent)); outline-offset: 3px; }
#migrationInputError, .migration-load-notice { color: #9b2424; border-left: 3px solid currentColor; padding-left: 12px; }
.migration-load-notice { margin: 12px 0; }
#migrationStatus:empty, #migrationSaveStatus:empty, #migrationPacketStatus:empty { display: none; }
[hidden] { display: none !important; }
@media (max-width: 800px) { .migration-layout { grid-template-columns: 1fr; gap: 0; } .migration-review { position: static; } }
@media (max-width: 600px) { .migration-drafts-heading { flex-direction: column; } #migrationDraftList { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .migration-workspace-nav { gap: 6px; } .migration-workspace-nav a { min-height: 52px; padding: 12px 8px; align-content: center; text-align: center; } .migration-workspace-nav strong { font-size: 14px; } .migration-workspace-nav span { display: none; } }
@media (max-width: 430px) { .migration-steps { gap: 8px; } .migration-steps a { padding: 9px; font-size: 12px; } .migration-dimensions { grid-template-columns: 1fr; gap: 0; } .migration-artwork { align-items: start; flex-direction: column; } }

/* Saved label reviews remain part of the product-list handoff. */
.migration-proof { margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--px-line); min-width: 0; overflow-wrap: anywhere; }
.migration-proof h4 { font-size: 18px; margin: 20px 0 10px; }
.migration-proof h5 { font-size: 15px; margin: 18px 0 8px; }
.migration-proof .proof-connection { border-left: 3px solid #b48734; padding: 12px 16px; background: var(--px-canvas); }
.migration-proof .proof-connection strong { display: block; color: var(--px-ink); }
.migration-proof #proofFigure { margin: 18px 0; }
.migration-proof #proofImage { display: block; width: auto; max-width: 100%; max-height: 650px; height: auto; border: 1px solid var(--px-line); background: white; object-fit: contain; }
.migration-proof figcaption { margin: 8px 0; font-size: 14px; color: var(--px-muted); }
.migration-proof #proofHistory { list-style: none; padding: 0; }
.migration-proof #proofHistory li { margin: 10px 0; }
.migration-proof #proofHistory button { text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.migration-proof #proofExactLink { display: inline-flex; align-items: center; min-height: 44px; }
.migration-proof details { margin: 16px 0; }
.migration-proof details summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.migration-proof #proofPrepare { background: var(--px-accent); color: white; }
.migration-proof [hidden] { display: none !important; }
.migration-print-verification { margin: 24px 0; padding: 20px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-canvas); min-width: 0; }
.migration-print-verification > h4 { margin-top: 0; }
.migration-print-verification .pv-boundary { border-left: 3px solid #b48734; padding: 10px 14px; font-size: 14px; background: var(--px-surface); }
.migration-print-verification fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.migration-print-verification legend { font-size: 16px; font-weight: 650; padding: 0; }
.migration-print-verification .pv-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
.migration-print-verification label { display: grid; gap: 6px; margin: 10px 0; font-size: 14px; font-weight: 600; min-width: 0; }
.migration-print-verification input:not([type=checkbox]), .migration-print-verification select, .migration-print-verification textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); font: inherit; color: var(--px-ink); background: var(--px-surface); }
.migration-print-verification textarea { line-height: 1.5; resize: vertical; }
.migration-print-verification .pv-check { display: flex; align-items: center; gap: 10px; }
.migration-print-verification input[type=checkbox] { width: 20px; height: 20px; }
.migration-print-verification .pv-products,.migration-print-verification .pv-history { list-style: none; padding: 0; display: grid; gap: 12px; }
.migration-print-verification .pv-products > li { border: 1px solid var(--px-line); padding: 14px; border-radius: var(--px-radius-panel); background: var(--px-surface); min-width: 0; }
.migration-print-verification .pv-products p { margin: 6px 0; font-size: 14px; }
.migration-print-verification .pv-products img { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; margin-top: 12px; background: white; }
.migration-print-verification .pv-payload { overflow-wrap: anywhere; color: var(--px-muted); }
.migration-print-verification button,.migration-print-verification #pvDownload,.migration-print-verification #pvExactLink { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.migration-print-verification #pvReview,.migration-print-verification #pvSave { background: var(--px-accent); color: white; }
.migration-print-verification #pvExactLink { display: inline-flex; align-items: center; }
.migration-print-verification pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 320px; overflow: auto; }
.migration-print-verification :focus-visible { outline: 3px solid var(--px-accent); outline-offset: 3px; }
.pv-lab-reports { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--px-line); min-width: 0; }
.pv-lab-reports h5 { font-size: 18px; margin: 0 0 12px; }
.pv-lab-reports h6 { font-size: 16px; margin: 0 0 12px; }
.pv-lab-history { list-style: none; padding: 0; display: grid; gap: 12px; }
.pv-lab-history > li,.pv-lab-proposal { border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); padding: 14px; background: var(--px-surface); min-width: 0; }
.pv-lab-history p,.pv-lab-history li,.pv-lab-reports code { overflow-wrap: anywhere; }
.pv-lab-history ul,.pv-lab-reports #lrMissing { padding-left: 20px; max-height: 220px; overflow: auto; }
.pv-lab-reports #lrSpecimens > fieldset { border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); padding: 12px; margin: 12px 0; }
.pv-lab-reports .pv-lab-specimen { align-items: flex-start; font-weight: 400; }
.pv-lab-specimen input { flex: 0 0 20px; }
.pv-lab-specimen span { min-width: 0; }
.pv-lab-specimen strong,.pv-lab-specimen code { display: block; }
.pv-lab-specimen code { font-size: 12px; margin-top: 3px; }
.pv-lab-reports #lrDownload { display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.pv-lab-reports #lrDownload[hidden] { display: none; }
.pv-lab-reports #lrSave { background: var(--px-accent); color: white; }
@media(max-width:600px) { .migration-print-verification { padding: 14px; } .migration-print-verification .pv-fields { grid-template-columns: minmax(0,1fr); } .migration-print-verification .batch-actions { flex-direction: column; align-items: stretch; } }
@media(max-width:430px) { .migration-proof #proofHistory button, .migration-proof #proofProducts { width: 100%; } .migration-proof .batch-actions { align-items: stretch; } }
.migration-connections { min-width: 0; margin: 20px 0; padding: 16px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-surface); overflow-wrap: anywhere; }
.migration-connections h4 { margin-top: 0; }
.migration-connections button, .migration-connections select, .migration-connections input { min-height: 44px; max-width: 100%; font: inherit; }
.migration-connections label { display: block; margin-bottom: 8px; font-weight: 650; }
.migration-connections select, .migration-connections input { box-sizing: border-box; display: block; width: 100%; padding: 10px; background: white; color: var(--px-ink); border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); }
.migration-connections button:focus-visible, .migration-connections select:focus-visible, .migration-connections input:focus-visible { outline: 3px solid var(--px-accent); outline-offset: 3px; }
.migration-connections ul { list-style: none; padding: 0; }
.migration-connections li { padding: 14px 0; border-top: 1px solid var(--px-line); }
.migration-connections li button { margin: 4px 8px 4px 0; white-space: normal; overflow-wrap: anywhere; }
@media(max-width:430px) { .migration-connections { padding: 12px; } .migration-connections button { width: 100%; } }
.migration-provider-proof { border-top: 1px solid var(--px-line); margin: 24px 0; padding-top: 16px; min-width: 0; overflow-wrap: anywhere; }
.migration-provider-proof h6 { font-size: 17px; margin: 0 0 10px; }
.migration-provider-proof ul { list-style: none; padding: 0; }
.migration-provider-proof #providerProofProducts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.migration-provider-proof #providerProofProducts li { min-width: 0; padding: 14px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); }
.migration-provider-proof img { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; }
.migration-provider-proof dt { margin-top: 12px; font-weight: 650; }
.migration-provider-proof dd { margin: 4px 0; }
.migration-provider-proof #providerProofDestination { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 24px; margin: 20px 0; }
.migration-provider-proof #providerProofDestination dt { margin-top: 0; }
.migration-provider-proof #providerProofProducts li:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: 240px minmax(0,1fr); column-gap: 24px; align-items: start; }
.migration-provider-proof #providerProofProducts li:only-child > * { grid-column: 2; margin-top: 0; }
.migration-provider-proof #providerProofProducts li:only-child img { grid-column: 1; grid-row: 1 / 8; max-height: 320px; margin: auto; }
.migration-provider-proof .migration-check { display: flex; gap: 10px; align-items: start; margin: 18px 0; }
.migration-provider-proof input[type=checkbox] { flex: 0 0 auto; width: 22px; height: 22px; }
.migration-provider-proof button, .migration-provider-proof select { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font: inherit; }
.migration-provider-proof select { width: 100%; margin: 8px 0 12px; padding: 10px; }
.migration-provider-proof button:focus-visible, .migration-provider-proof input:focus-visible, .migration-provider-proof select:focus-visible { outline: 3px solid var(--px-accent); outline-offset: 3px; }
.migration-provider-proof .provider-proof-product-status { font-weight: 650; }
@media(max-width:600px) { .migration-provider-proof #providerProofProducts, .migration-provider-proof #providerProofDestination { grid-template-columns: 1fr; } .migration-provider-proof #providerProofProducts li:only-child { display: block; } .migration-provider-proof #providerProofProducts li:only-child img { margin: 16px 0; } }
@media(max-width:430px) { .migration-provider-proof button { width: 100%; } }

/* Per-product originals and literal messages share the batch review. */
.batch-branding-tools { margin: 18px 0; padding: 18px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: #f7f9fd; }
.batch-row-branding { margin: 14px 0; padding: 14px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); }
.batch-row-branding h5 { margin: 0 0 10px; font-size: 15px; }
.batch-row-branding img { display: block; max-width: 150px; max-height: 100px; object-fit: contain; background: white; }
.batch-row-branding img[hidden] { display: none; }
.batch-row-branding select { width: 100%; min-width: 0; }
.batch-branding-tools p, .batch-row-branding p { overflow-wrap: anywhere; }

.batch-branding-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.batch-branding-summary img { width: 80px; max-height: 64px; object-fit: contain; background: white; }
.batch-branding-summary img[hidden] { display: none; }
.batch-branding-summary p { flex: 1 1 180px; margin: 0; overflow-wrap: anywhere; }
.batch-branding-summary button { padding: 8px 12px; }
/* On a phone the first field comes first: the heading without its paragraph. The steps wrap rather than
   scroll, so no step is cut off at the screen's edge. */
@media (max-width: 720px) {
  .migration-heading { margin-bottom: 16px; }
  .migration-heading > p:not(.px-eyebrow) { display: none; }
  .migration-workspace-nav { margin-top: 16px; }
  .migration-workspace-hint { margin: 10px 0 12px; }
  /* The steps are one line, "Step 1 of 4 · Your product", which opens the full list. */
  .migration-step-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px;
    margin: 12px 0; padding: 10px 12px; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel);
    background: var(--px-surface); color: var(--px-ink); font: 600 14px/1.3 var(--px-font); text-align: left; cursor: pointer;
  }
  .migration-step-toggle[hidden] { display: none; }
  .migration-step-toggle__all { flex: 0 0 auto; color: var(--px-accent); font-size: 13px; }
  .migration-steps { margin: 0 0 12px; }
  .migration-steps:not(.migration-steps--open) { display: none; }
  .migration-steps a { white-space: nowrap; }
}

/* Shared frame (November 21, 2026): the chosen starting point and the section links follow the site's controls. */
.migration-workspace-nav a[aria-current] { border-color: var(--px-ink); background: var(--px-surface); box-shadow: inset 0 3px 0 var(--px-accent); }
.migration-workspace-nav a strong { font-weight: 600; }
.migration-steps a { background: transparent; border: 1px solid var(--px-line); color: var(--px-ink); font-weight: 500; }
.migration-steps a:hover { border-color: var(--px-ink); }
