.editor-submenus [data-section-excluded] { display: none !important; }
/* Canva's focused panel hierarchy, using Prooflet's existing controls and colour system. */
@media (min-width: 901px) {
  .editor-submenus .studio-pane-head { gap: 10px; min-height: 64px; padding: 16px; }
  .editor-submenus .studio-pane-head h2 { min-width: 0; font-size: 17px; line-height: 1.35; }
  .editor-submenus .studio-pane-back { display: grid; place-items: center; flex: none; width: 32px; height: 32px; min-height: 32px; padding: 6px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
  .editor-submenus .studio-pane-back[hidden] { display: none; }
  .editor-submenus .editor-side-panel:has(> .studio-content-panel:not([hidden])) .studio-pane-back { display: none; }
  .editor-submenus .studio-pane-back { color: var(--editor-dark-text, #f4f4f5); }
  .editor-submenus .studio-pane-back svg { display: block; width: 20px; height: 20px; }
  .editor-submenus .studio-pane-back:hover { background: var(--editor-dark-hover); }
  .editor-submenus .studio-pane-back:focus-visible { outline: 2px solid #f0744f; outline-offset: -2px; }
  .editor-submenus #studio-pane-title:focus-visible { outline: 2px solid #f0744f; outline-offset: 4px; }
  .editor-submenus .editor-step-head:not(.editor-steps-sheet-head) { display: none; }
  /* Keep the owning region's heading accessible; the visible title is in the shared header. */
  .editor-submenus .editor-setup-section-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .editor-submenus .editor-step-body { padding: 4px 16px 24px; }
  .editor-submenus .editor-step-body .field:not([hidden]):not(.field-check):not(.editor-check) { flex: 0 0 auto; min-height: auto; margin-bottom: 16px; }
  .editor-submenus .editor-step-body .colour-input { gap: 12px; }
  .editor-submenus .editor-step-body .colour-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .editor-submenus .editor-step-body [data-colour-panel=cmyk] .colour-field-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .editor-submenus #editor-side-panel .editor-step-body [data-colour-panel=cmyk] .field { display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 12px; }
  .editor-submenus #editor-side-panel .editor-step-body [data-colour-panel=cmyk] .field-label { margin: 0; }
  .editor-submenus .editor-step-body [data-colour-panel=rgb] .colour-field-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .editor-submenus .editor-step-body :is(.colour-field-row, .editor-field-row) .field:not([hidden]):not(.field-check):not(.editor-check) { margin: 0; min-width: 0; }
  .editor-submenus .editor-step-body .colour-field-row .field-label { display: flex; align-items: center; min-height: 20px; }
  .editor-submenus .editor-step-body .colour-method-field { margin-bottom: 0; }
  .editor-submenus .editor-step-body .colour-readout { margin: 0; line-height: 1.5; }
  .editor-submenus .editor-step-body .colour-panel { gap: 10px; }
  .editor-submenus .editor-step-body .editor-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .editor-submenus .editor-step-body .editor-field-row .field { min-width: 0; }
  .editor-submenus .editor-step-body .editor-control-group > .field-hint { margin: 0 0 16px; }
  .editor-submenus #editor-step-step5 .editor-step-body > .editor-control-group { display: flex; flex-direction: column; gap: 12px; }
  .editor-submenus #editor-step-step5 .field { margin: 0; }
  .editor-submenus #warning-font-size-hint, .editor-submenus #warning-fit-status, .editor-submenus #warning-keepout-warning { margin: 0; }
  .editor-submenus .editor-warning-picker { padding: 0; min-height: 40px; border: 1px solid var(--editor-dark-line-strong); border-radius: 8px; background: var(--editor-dark-raised); }
  .editor-submenus .editor-warning-picker > span { display: none; }
  .editor-submenus #warning-summary-toggle { width: 100%; min-height: 40px; padding: 10px 12px; font: 500 13px/1.4 "IBM Plex Sans", sans-serif; }
  .editor-submenus #warning-adjust-placement { margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--editor-dark-line); border-radius: 0; background: transparent; }
  .editor-submenus #warning-adjust-placement > summary { min-height: 32px; display: list-item; font: 500 13px/1.5 "IBM Plex Sans", sans-serif; }
  .editor-submenus .editor-step-body .field.editor-check { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0; padding: 8px 0; border: 0; }
  .editor-submenus .editor-step-body .field.editor-check > input { order: 2; flex: none; width: 16px; height: 16px; min-height: 16px; margin: 0; }
  .editor-submenus .editor-step-body .field.editor-check > span { order: 1; margin: 0; font: 400 13px/1.5 "IBM Plex Sans", sans-serif; }
  .editor-submenus .editor-step-body .editor-custom-select-button { min-height: 40px; font-family: "IBM Plex Sans", sans-serif; }
  .editor-submenus .editor-step-body .editor-custom-select-label { font-family: "IBM Plex Sans", sans-serif; letter-spacing: 0; text-transform: none; }

  /* Each checkbox owns its column; a hidden required checkbox must not mask its title. */
  .editor-submenus #editor-step-step1 .label-strategy-item { grid-template-columns: 24px minmax(0,1fr); gap: 8px; }
  .editor-submenus #editor-step-step1 .label-strategy-item-check { width: 24px; min-width: 0; margin: 0; padding: 12px 0; background: transparent; z-index: auto; justify-content: center; }
  .editor-submenus #editor-step-step1 .pd-form:not([data-pd-show-custom]) :is([data-pd-asked], [data-pd-added]) > .label-strategy-item:not([data-ls-optional]):has(> label > [data-ls-pp]:checked) { grid-template-columns: minmax(0,1fr); gap: 0; }
  .editor-submenus #editor-step-step1 .pd-form:not([data-pd-show-custom]) :is([data-pd-asked], [data-pd-added]) > .label-strategy-item:not([data-ls-optional]):has(> label > [data-ls-pp]:checked):not(:has(.product-bilingual-fields)) > .label-strategy-item-check { display: none; }
  .editor-submenus #editor-step-step1 .pd-form:not([data-pd-show-custom]) :is([data-pd-asked], [data-pd-added]) > .label-strategy-item:not([data-ls-optional]):has(> label > [data-ls-pp]:checked) > .label-strategy-disclosure { grid-column: 1; }
  .editor-submenus #editor-step-step1 [data-pd-asked] .label-strategy-item:has(.product-bilingual-fields) > .label-strategy-item-check { width: auto; min-height: 0; grid-column: 1 / -1; grid-row: 1; padding: 4px 0; justify-content: flex-start; }
  .editor-submenus #editor-step-step1 [data-pd-asked] .label-strategy-item:has(.product-bilingual-fields) > .label-strategy-disclosure { grid-row: 2; grid-column: 1 / -1; }
  .editor-submenus #editor-step-step1 [data-pd-asked] .label-strategy-item:not([data-ls-optional]):has(.product-bilingual-fields) > .label-strategy-item-check > input { display: none; }
  .editor-submenus #editor-step-step1 .label-strategy-disclosure > summary { grid-template-columns: minmax(0,1fr) 20px; gap: 4px 8px; padding: 12px 0; min-height: 44px; }
  .editor-submenus #editor-step-step1 .label-strategy-item-title { grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
  .editor-submenus #editor-step-step1 .label-strategy-item-summary { grid-column: 1; grid-row: 2; max-width: none; color: var(--editor-dark-muted); font-size: 13px; font-weight: 400; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
  .editor-submenus #editor-step-step1 .label-strategy-disclosure-icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .editor-submenus #editor-step-step1 .label-strategy-item-data { padding: 4px 0 12px; }
  .editor-submenus #editor-step-step1 .label-strategy-item-data .field { grid-template-columns: minmax(0,1fr); align-items: start; gap: 7px; }
  .editor-submenus #editor-step-step1 .label-strategy-item-data .field > .field-label { font-weight: 600; line-height: 1.45; }
  .editor-submenus #editor-step-step1 .label-strategy-item.pd-symbol-row { padding: 16px 0; }
  .editor-submenus #editor-step-step1 .pd-heading { margin: 28px 0 16px; font: 600 16px/1.4 "IBM Plex Sans", sans-serif; color: var(--editor-dark-text); opacity: 1; letter-spacing: 0; text-transform: none; }
  .editor-submenus #editor-step-step1 .pd-answer.field { flex-direction: row; }
  .editor-submenus #editor-step-step1 :is(fieldset, .pf-nutrition) { min-width: 0; }
  .editor-submenus #editor-step-step1 .pf-nutrition-row, .editor-submenus #editor-step-step1 .pf-nutrition-columns { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .editor-submenus #editor-step-step1 .pf-nutrition-row > label { grid-column: 1 / -1; }
  .editor-submenus #editor-step-step1 .pf-nutrition-columns > :first-child { display: none; }

  /* Paired fields align by their controls, even when a label wraps around nearby help. */
  .editor-submenus .editor-step-body .editor-field-row { align-items: end; margin: 0 0 16px; padding: 0; border: 0; }
  .editor-submenus .editor-step-body .editor-field-row:has(#zipper-type) { grid-template-columns: minmax(0,1fr); }
  .editor-submenus .editor-step-body :is(#printing-details, #user-object-more-options, #information-layout-geometry) { margin: 16px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--editor-dark-line); border-radius: 0; background: transparent; }
  .editor-submenus .editor-step-body :is(#printing-details, #user-object-more-options, #information-layout-geometry) > summary { min-height: 32px; margin-bottom: 12px; }
  .editor-submenus #editor-step-step3 .editor-note { padding: 12px 0; margin: 0; background: transparent; }

  /* Numeric geometry gets two readable columns, with the proportion lock beside W/H. */
  .editor-submenus .editor-geometry-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; gap: 12px 8px; }
  .editor-submenus .editor-geometry-grid > .field:nth-child(1) { grid-column: 1; grid-row: 1; }
  .editor-submenus .editor-geometry-grid > .field:nth-child(2) { grid-column: 2; grid-row: 1; }
  .editor-submenus .editor-geometry-grid > .field:nth-child(3) { grid-column: 1; grid-row: 2; }
  .editor-submenus .editor-geometry-grid > .field:nth-child(5) { grid-column: 2; grid-row: 2; }
  .editor-submenus .editor-geometry-grid > .editor-proportion-lock { grid-column: 3; grid-row: 2; align-self: end; margin-bottom: 16px; height: 38px; }
  .editor-submenus .editor-geometry-grid > .editor-rotation-field { grid-column: 1 / span 2; grid-row: 3; }
  .editor-submenus #editor-step-contextual .editor-action-row { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 0; margin-bottom: 16px; }
  .editor-submenus #editor-step-contextual .editor-action-cell { width: 100%; }
  .editor-submenus #editor-step-contextual .editor-action-cell > button { flex: 1 1 0; min-width: 0; }
  .editor-submenus #editor-step-contextual .editor-ctx-actions { padding: 0 16px; }
  .editor-submenus #user-object-controls .editor-font-upload .font-file-row { grid-template-columns: minmax(0,1fr); }
  .editor-submenus #editor-step-objects .editor-action-row { grid-template-columns: minmax(0,1fr); margin: 0; }
  .editor-submenus #editor-step-objects .editor-action-cell { width: 100%; }
  .editor-submenus #editor-step-objects .studio-block-choice { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 42px; }
}

@media (min-width: 901px) {
  .editor-submenus #product-classification-label { font-size: 12px; color: var(--editor-dark-muted); }
  .editor-submenus #product-classification-summary { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
  .editor-submenus #product-classification-text { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--editor-dark-text); }
  .editor-submenus #product-classification-change { flex: none; margin-left: auto; }
  .editor-submenus .pd-summary-overview:has(.pd-summary-count:empty) { display: none; }
  .editor-submenus .pd-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .editor-submenus .pd-section-heading h3 { margin: 0; }
  .editor-submenus .pd-section-edit { display: grid; place-items: center; flex: none; min-width: 32px; min-height: 32px; padding: 6px; color: var(--editor-dark-text); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
  .editor-submenus .pd-section-edit:hover { background: var(--editor-dark-hover); }
  .editor-submenus .pd-section-edit:focus-visible { outline: 2px solid var(--editor-accent, #f0744f); outline-offset: 2px; }
  .editor-submenus [data-edit-section] .pd-heading,
  .editor-submenus [data-edit-section] .pd-group > summary { display: none; }
  .editor-submenus [data-edit-section]:not([data-edit-section="packaging"]) :is(.pd-change-panel, [data-pd-batch-body], [data-ls-dm-wrap], [data-pd-custom-only]) { display: none; }
  .editor-submenus [data-edit-section]:not([data-edit-section="potency"]) [data-pd-symbol] { display: none; }
  .editor-submenus [data-edit-field] :is(.pd-change-panel, [data-pd-batch-body], [data-ls-dm-wrap], [data-pd-symbol], [data-pd-custom-only]) { display: none !important; }
  .editor-submenus [data-edit-section] .pd-group { margin: 0; padding: 0; border: 0; }
  .editor-submenus [data-edit-section] .pd-group:not(:has(:is([data-ls-item], [data-pd-symbol], [data-ls-dm-wrap]):not([data-section-excluded]):not([hidden]))) { display: none; }
  .editor-submenus [data-edit-section] .label-strategy-item { border: 0; padding: 0 0 16px; }
  .editor-submenus [data-edit-section] .label-strategy-disclosure-summary { pointer-events: none; }
  .editor-submenus [data-edit-section] :is(.label-strategy-disclosure-icon, [data-ls-summary]) { display: none; }
  .editor-submenus .pd-section-fields > .editor-dimension-group { margin: 0; }
}

@media (min-width: 901px) {
  .editor-submenus [data-edit-section] .product-facts-other:not(:has(:is([data-product-fact], [data-product-section]):not([hidden]):not([data-section-excluded]))) { display: none; }
  .editor-submenus [data-edit-section] .product-facts-other > summary { font-size: 13px; }
}

/* The child rows are the direct destinations; the group needs no second Edit action. */
@media (min-width: 901px) {
  .editor-submenus .editor-step-row[data-step="setup"] .editor-step-caret { display: none; }
}

@media (min-width: 901px) {
  .editor-submenus .editor-step-row[data-step="setup"] { display: none; }
  .editor-submenus .editor-checklist { gap: 4px; }
  .editor-submenus .editor-setup-subrows { gap: 4px; }
  .editor-submenus :is(.editor-step-row, .editor-setup-subrow) { grid-template-columns: minmax(0, 1fr) auto 20px; min-height: 76px; padding: 16px 12px; border-radius: 8px; }
  .editor-submenus :is(.editor-step-row, .editor-setup-subrow) .editor-step-name { grid-column: 1; grid-row: 1; color: var(--editor-dark-text); font-size: 15px; font-weight: 600; }
  .editor-submenus :is(.editor-step-row, .editor-setup-subrow) .editor-step-status { grid-column: 2; grid-row: 1; }
  .editor-submenus :is(.editor-step-row, .editor-setup-subrow) .editor-step-name small { font-size: 13px; font-weight: 400; line-height: 1.5; }
  .editor-submenus .editor-step-status[data-state="ready"] { display: none; }
  .editor-submenus .editor-step-row[data-step="step1"] .editor-step-caret,
  .editor-submenus .editor-setup-subrow::after {
    content: ""; display: block; grid-column: 3; grid-row: 1; justify-self: end; flex: none; width: 20px; height: 20px;
    font-size: 0; color: var(--editor-dark-text); background: currentColor;
    mask: url("/public/icons/heroicons/chevron-right.svg") center / contain no-repeat;
  }
  .editor-submenus #editor-step-objects #your-space-note { display: none; }
  .editor-submenus .studio-section-title { font-size: 16px; font-weight: 600; }
  .editor-submenus .editor-layers-flyout { padding: 0 16px 24px; }
  .editor-submenus .studio-review-view #editor-checklist { display: none; }
  .editor-submenus .studio-review-empty { padding: 8px 16px; }
  .editor-submenus .studio-review-empty .button { width: 100%; margin-top: 16px; }
}

@media (min-width: 901px) {
  .editor-submenus .editor-layer-group-title, .editor-submenus .editor-colours-title { font-size: 15px; font-weight: 600; }
  .editor-submenus .editor-layer { font-size: 14px; }
  .editor-submenus #studio-uploads-panel .artwork-recent-heading { font-size: 15px; font-weight: 600; }
  .editor-submenus #studio-uploads-panel .artwork-recent-heading > :last-child { font-size: 12px; font-weight: 400; }
  .editor-submenus #studio-uploads-panel .artwork-import-status:has(.inline-status:empty):has(button[hidden]) { display: none; }
}

@media (min-width: 901px) {
  .editor-submenus #editor-step-step1 [data-edit-section]:not([data-pd-show-custom]) .label-strategy-item:not([data-ls-optional]):is([data-ls-item="totalThcCbd"], [data-ls-item="licenceHolderContact"], [data-ls-item="commonName"], [data-ls-item="inciIngredients"], [data-ls-item="intendedUse"]):has(> label > [data-ls-pp]:checked) .label-strategy-disclosure > summary {
    position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* CMYK values are already explicit in the four inputs and the method selector. */
@media (min-width: 901px) {
  .editor-submenus #editor-step-step4 [popovertarget="help-bgcolour-cmyk"],
  .editor-submenus #editor-step-step4:has([data-colour-panel="cmyk"]:not([hidden])) #bg-colour-readout { display: none; }
}

@media (min-width: 901px) {
  .editor-submenus #pd-summary-line { display: none; }
}

/* Each rail destination owns its content; Setup does not repeat Review or Artwork. */
@media (min-width: 901px) {
  .editor-submenus #editor-index-view:not(.studio-review-view) #editor-what-to-fix,
  .editor-submenus #editor-checklist [data-setup-step="step4"],
  .editor-submenus #editor-colours-inks-head,
  .editor-submenus #editor-colours-inks { display: none; }
  .editor-submenus #editor-step-step4 #editor-colours { margin: 24px 0 0; border: 0; border-top: 1px solid var(--editor-dark-line); background: transparent; }
  .editor-submenus #editor-step-step4 #editor-colours-title { padding: 16px 0; font-size: 15px; font-weight: 600; }
  .editor-submenus #editor-step-step4 .editor-colours-head { display: none; }
}

@media (min-width: 901px) {
  .editor-submenus .pouch3d-choice:has(input[name="pouch3d-finish"]) { display: none; }
}

/* Normal editing state stays quiet; actionable warnings retain their existing treatment. */
.editor-studio :is(#warning-font-size-hint, #your-space-note, #selected-align-note, #user-object-opacity-text-note) { display: none; }
.editor-studio :is(#warning-fit-status, #warning-keepout-warning, #window-keepout-warning, #editor-keepout-warning).is-ok { display: none; }
.editor-studio #object-add-controls { padding: 0; }
.editor-studio .studio-shape-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.editor-studio #object-add-controls .studio-shape-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; min-width: 0; min-height: 106px; margin: 0; padding: 16px 8px; font-size: 13px; line-height: 1.4; text-align: center; }
.editor-studio .studio-shape-preview { display: block; flex: none; width: 48px; height: 28px; background: currentColor; }
.editor-studio [data-shape-preset=square] .studio-shape-preview { width: 32px; height: 32px; }
.editor-studio [data-shape-preset=roundedRectangle] .studio-shape-preview { border-radius: 8px; }
.editor-studio [data-shape-preset=circle] .studio-shape-preview { width: 32px; height: 32px; border-radius: 50%; }
.editor-studio [data-shape-preset=ellipse] .studio-shape-preview { border-radius: 50%; }
.editor-studio #studio-upload-svg { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; margin: 20px 0 0; padding: 10px 16px; }
.editor-studio #warning-reset-band { width: 100%; min-height: 40px; margin-top: 16px; }

.editor-studio #editor-colours-hint { display: none; }

@media (min-width: 901px) {
  .editor-studio #editor-side-panel .studio-layer-properties { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 40px; margin: 8px 0 12px; background: var(--editor-dark-raised); }
  .editor-studio #editor-side-panel .studio-layer-properties[hidden] { display: none; }
  .editor-studio #editor-side-panel #user-object-opacity-field .user-object-opacity-row { display: grid; grid-template-columns: minmax(0,1fr) 72px auto; gap: 8px; align-items: center; }
  .editor-studio #editor-side-panel #user-object-opacity-value { width: 72px; min-width: 72px; padding: 8px; }
  .editor-studio #editor-side-panel #user-object-opacity { min-width: 0; width: 100%; }
  .editor-studio #editor-side-panel #editor-step-contextual #user-object-shape-fields .text-colour-field:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .editor-studio #editor-side-panel #shape-colour-trigger { width: 100%; }
  .editor-studio :is(#shape-colour-readout,#text-colour-readout) { display: none; }
  .editor-submenus #warning-adjust-placement > :is(.field,.warning-anchor-field,.editor-field-row) { margin-top: 12px; }
  .editor-submenus #warning-placement-label { display: inline-block; margin-top: 16px; }
  .editor-submenus [data-feature-fields="tear-notch-enabled"] { grid-template-columns: minmax(0,1fr); }
  .editor-submenus [data-edit-section] [data-ls-item="netQuantity"] > .editor-check:has([data-ls-pp]:checked) { display: none; }
  .editor-submenus [data-product-fact="inciIngredients"]:not(.ingredient-picker) > .field-hint { display: none; }
  .editor-submenus .product-facts-other > summary { cursor: pointer; min-height: 40px; display: list-item; }
  .editor-submenus #editor-ctx-actions .button { min-height: 38px; }
}

.editor-studio .studio-input-error { grid-column: 1 / -1; display: block; margin-top: 6px; color: #ffb4a8; font-size: 12px; line-height: 1.5; }
.editor-studio .studio-input-error[hidden] { display: none; }
.editor-studio input[aria-invalid=true] { border-color: #ffb4a8; }

@media (min-width: 901px) {
  .editor-submenus #editor-side-panel .product-facts-other > summary { pointer-events: auto; display: list-item; }
  .editor-submenus .editor-step-body [data-feature-fields="tear-notch-enabled"] { grid-template-columns: minmax(0,1fr); }
  .editor-submenus .editor-step-body .editor-field-row:has(.studio-input-error:not([hidden])) { align-items: start; }
}

@media (min-width: 901px) {
  .editor-submenus .pd-section-fields details.editor-dimension-group::after { display: none; }
  .editor-submenus #editor-side-panel .product-facts-other > summary { list-style: disclosure-closed inside; }
  .editor-submenus #editor-side-panel .product-facts-other[open] > summary { list-style-type: disclosure-open; }
  .editor-submenus #editor-side-panel .product-facts-other > summary::-webkit-details-marker { display: inline; }
}

/* Ink inspection uses a readable plate list and one zoomable working surface. */
.ink-inspection { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; width: min(980px, 80vw); }
.ink-plate-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; }
.ink-plate-choice { text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.ink-plate-choice span, .ink-plate-choice small { display: block; overflow-wrap: anywhere; }
.ink-plate-choice small { margin-top: 3px; color: var(--editor-dark-muted, #bbb); }
.ink-plate-choice[aria-pressed="true"] { border-color: var(--accent, #e76532); background: rgba(255,255,255,.07); }
.ink-plate-choice:focus-visible { outline: 2px solid var(--accent, #e76532); outline-offset: -2px; }
.ink-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ink-preview-toolbar h3 { margin: 0; font-size: 16px; }
.ink-preview-viewport { height: 50vh; overflow: auto; background: #242424; border-radius: 8px; padding: 12px; text-align: center; }
.ink-preview-viewport img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: 0 auto; background: white; }
.ink-preview-viewport.is-actual-size img { max-width: none; max-height: none; margin: 0; }
@media (max-width: 700px) { .ink-inspection { grid-template-columns: 1fr; } .ink-plate-list { max-height: 150px; } }

/* Review headings are task labels, not tiny all-caps metadata. */
.editor-submenus #check-findings .finding-group > details > summary { font-size: 13px; line-height: 1.45; text-transform: none; letter-spacing: normal; }
.editor-submenus .what-to-fix-title { font-size: 13px; line-height: 1.45; text-transform: none; letter-spacing: normal; }

.svg-colour-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.svg-colour-row input[type="color"] { width: 44px; min-width: 0; padding: 3px; }
#svg-colour-controls h3 { font-size: 14px; margin: 16px 0 12px; }

/* Keep a collapsed disclosure operable wherever the editor is rendered. */
.editor-submenus #editor-side-panel .product-facts-other > summary { pointer-events:auto; }

@media (pointer: coarse) {
  .editor-studio.editor-submenus #editor-side-panel .editor-step-body .field > :is(input[type=text], input[type=number], input:not([type]), select),
  .editor-studio.editor-submenus #editor-side-panel .editor-step-body .field > .pf-qty > :is(input, select),
  .editor-submenus #editor-side-panel input:not([type="checkbox"]):not([type="radio"]),
  .editor-submenus #editor-side-panel select,
  .editor-submenus .pd-section-edit { min-height: 44px; }
}
