/* Product details is unchanged. Only the other sidebar destinations opt in. */
body.editor-studio #editor-side-panel .sidebar-settings { --settings-indent: 16px; --settings-label: var(--sidebar-label-width, 192px); font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings :is(.settings-title, .editor-layer-group-title, .editor-colours-title, .artwork-recent-heading, .what-to-fix-title) { font: 600 14px/1.4 "IBM Plex Sans", sans-serif; letter-spacing: 0; text-transform: none; color: var(--editor-dark-text); }
body.editor-studio #editor-side-panel .sidebar-settings .settings-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 14px; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-section:first-child > .settings-title { margin-top: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-section { border: 0; border-bottom: 1px solid var(--editor-dark-line); border-radius: 0; margin: 0 0 24px; padding: 0 0 14px; background: transparent; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-section:last-child { border-bottom: 0; margin-bottom: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-flat:not(.settings-section) { border: 0; background: transparent; padding: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-flat > summary { display: none !important; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-flat::after { display: none; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-body,
body.editor-studio #editor-side-panel .sidebar-settings .editor-dimension-group-body { padding-left: var(--settings-indent); }
body.editor-studio #editor-side-panel .sidebar-settings :is(.settings-body, .editor-dimension-group-body) :is(.settings-body, .editor-dimension-group-body) { padding-left: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-inset { padding-left: var(--settings-indent); }
body.editor-studio #editor-side-panel .sidebar-settings .settings-inset > .settings-title { margin-left: calc(-1 * var(--settings-indent)); }
body.editor-studio #editor-side-panel .sidebar-settings .settings-inset-row { margin-left: var(--settings-indent); }
body.editor-studio #editor-side-panel .sidebar-settings :is(.settings-redundant, .settings-replaced-choices, .settings-empty, .settings-routine) { display: none !important; }
body.editor-studio #editor-side-panel .sidebar-settings [hidden] { display: none !important; }
body.editor-studio #editor-side-panel .sidebar-settings :is(.field-label, .editor-check > span, .editor-note, .field-hint, .colour-readout, .inline-status) { font: 400 13px/1.45 "IBM Plex Sans", sans-serif; letter-spacing: 0; text-transform: none; }
body.editor-studio #editor-side-panel .sidebar-settings :is(.editor-field-row, .editor-geometry-grid, .form-grid, .colour-field-row) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .field:not([hidden]),
body.editor-studio #editor-side-panel .sidebar-settings .settings-choice-row:not([hidden]) { display: grid; grid-template-columns: var(--settings-label) minmax(0, 1fr); gap: 8px 12px; align-items: center; border: 0; padding: 0; margin: 0 0 10px; min-width: 0; min-height: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .field > .field-label { display: block; margin: 0; font-weight: 400; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-choice-row > .field-label { grid-column: 1; grid-row: 1; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-choice-row > .storage-yes-no { grid-column: 2; grid-row: 1; width: 100%; }
body.editor-studio #editor-side-panel .sidebar-settings .field > :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range]), select, textarea, .editor-custom-select-button),
body.editor-studio #editor-side-panel .sidebar-settings .field > .text-colour-trigger { box-sizing: border-box; width: 100%; min-width: 0; height: auto; min-height: 38px; border-radius: 6px; padding: 7px 9px; background-color: var(--editor-dark-raised); color: var(--editor-dark-text); font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings .field > :is(.field-hint, .inline-status, .studio-input-error) { grid-column: 1 / -1; }
body.editor-studio #editor-side-panel .sidebar-settings .text-colour-field > :is(.colour-readout, .colour-contrast-note, .colour-quick-row) { grid-column: 2; margin: 0; }
body.editor-studio #editor-side-panel .sidebar-settings :is(.button, .btn-ghost) { min-height: 38px; padding: 7px 9px; border-radius: 6px; font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings .settings-inset-action { margin-left: calc(var(--settings-label) + 12px + var(--settings-indent)); width: calc(100% - var(--settings-label) - 12px - var(--settings-indent)); }
body.editor-studio #editor-side-panel .sidebar-settings .settings-body > :is(.button, .btn-ghost),
body.editor-studio #editor-side-panel .sidebar-settings .settings-section > :is(.button, .btn-ghost) { display: block; margin: 10px 0 10px calc(var(--settings-label) + 12px); width: calc(100% - var(--settings-label) - 12px); }
body.editor-studio #editor-side-panel .sidebar-settings .editor-warning-picker { background: transparent; border: 0; border-radius: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-warning-picker > .field-label { display: block; }
body.editor-studio #editor-side-panel .sidebar-settings #warning-summary-toggle { min-height: 38px; border: 1px solid var(--editor-dark-line-strong); border-radius: 6px; background: var(--editor-dark-raised); padding: 7px 9px; font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings #warning-adjust-placement > :not(.settings-title):not(summary):not(.field-help-pop):not(.button):not(.btn-ghost) { margin-left: var(--settings-indent); }
body.editor-studio #editor-side-panel .sidebar-settings #warning-adjust-placement > :is(.button, .btn-ghost) { margin-left: calc(var(--settings-indent) + var(--settings-label) + 12px); width: calc(100% - var(--settings-indent) - var(--settings-label) - 12px); }
body.editor-studio #editor-side-panel .sidebar-settings #user-object-more-options { margin-top: 24px; }
body.editor-studio #editor-side-panel .sidebar-settings #studio-text-position { padding: 0; margin-top: 24px; }
body.editor-studio #editor-side-panel .sidebar-settings #studio-text-position .settings-inset { padding-left: var(--settings-indent); }
body.editor-studio #editor-side-panel .sidebar-settings #studio-text-position #selected-placement-label { display: none; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-geometry-grid .editor-aspect-lock { justify-self: end; margin-bottom: 10px; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-align-row { display: grid; grid-template-columns: var(--settings-label) minmax(0,1fr); gap: 12px; margin-bottom: 10px; }
body.editor-studio #editor-side-panel .sidebar-settings .studio-shape-grid { margin-left: var(--settings-indent); grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
body.editor-studio #editor-side-panel .sidebar-settings .studio-shape-choice { min-height: 68px; padding: 8px; gap: 6px; }
body.editor-studio #editor-side-panel .sidebar-settings .studio-shape-preview { width: 24px; height: 24px; }
body.editor-studio #editor-side-panel .sidebar-settings .studio-shape-label { font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings .colour-values { padding-left: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .colour-readout:empty { display: none; }
body.editor-studio #editor-side-panel .sidebar-settings .colour-input { gap: 10px; }
body.editor-studio #editor-side-panel .sidebar-settings .colour-swatch-row { gap: 6px; }
body.editor-studio #editor-side-panel .sidebar-settings #editor-colours-title { padding: 0; margin: 24px 0 14px; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-colours-body { padding-left: var(--settings-indent); }
body.editor-studio #editor-side-panel .sidebar-settings .editor-layer-group-title { padding: 4px 8px; margin: 0; font-size: 13px; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-layer-group-list { padding-left: 8px; gap: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .artwork-group-row + .editor-layer-group-list { padding-left: 24px; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-layer-group + .editor-layer-group { border-top: 0; margin-top: 8px; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-layer { font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings .artwork-recent-heading { margin: 20px 0 12px; }
body.editor-studio #editor-side-panel .sidebar-settings .studio-review-empty { padding: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .finding-group > details > summary { font: 600 14px/1.4 "IBM Plex Sans", sans-serif; letter-spacing: 0; text-transform: none; }
body.editor-studio #editor-side-panel .sidebar-settings :is(.finding-card, .finding-decl-row) { font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
body.editor-studio #editor-side-panel .sidebar-settings .finding-group > details > :not(summary) { margin-left: var(--settings-indent); }
@media (max-width: 900px) {
  body.editor-studio #editor-side-panel .sidebar-settings { --settings-label: min(42%, 192px); }
}
@media (max-width: 440px) {
  body.editor-studio #editor-side-panel .sidebar-settings .field:not([hidden]),
  body.editor-studio #editor-side-panel .sidebar-settings .settings-choice-row:not([hidden]) { grid-template-columns: minmax(0,1fr); }
  body.editor-studio #editor-side-panel .sidebar-settings .settings-choice-row > .storage-yes-no { grid-column: 1; grid-row: 2; }
  body.editor-studio #editor-side-panel .sidebar-settings .settings-inset-action,
  body.editor-studio #editor-side-panel .sidebar-settings .settings-body > :is(.button,.btn-ghost),
  body.editor-studio #editor-side-panel .sidebar-settings .settings-section > :is(.button,.btn-ghost) { margin-left: 0; width: 100%; }
}
@media (pointer: coarse) {
  body.editor-studio #editor-side-panel .sidebar-settings .field > :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range]), select, textarea, .editor-custom-select-button),
  body.editor-studio #editor-side-panel .sidebar-settings .field > .text-colour-trigger,
  body.editor-studio #editor-side-panel .sidebar-settings :is(.button, .btn-ghost, .storage-yes-no button) { min-height: 44px; }
}

/* Seals is nested in the print owner; keep its heading on the section edge. */
body.editor-studio #editor-side-panel .sidebar-settings #surface-seals-group { margin-left: calc(-1 * var(--settings-indent)); }
body.editor-studio #editor-side-panel .sidebar-settings #surface-seals-group > .editor-dimension-group-body { padding-left: var(--settings-indent); }

/* Replace older per-tool column overrides with the reference label column. */
body.editor-studio #editor-side-panel .sidebar-settings:is(#editor-step-contextual, #editor-step-step4) .field:not([hidden]) { grid-template-columns: var(--settings-label) minmax(0,1fr); gap: 8px 12px; margin: 0 0 10px; padding: 0; }

body.editor-studio #editor-side-panel #editor-step-contextual.sidebar-settings #user-object-controls .text-colour-field:not([hidden]) { display: grid; grid-template-columns: var(--settings-label) minmax(0,1fr); gap: 8px 12px; margin: 0 0 10px; padding: 0; }

body.editor-studio #editor-side-panel .sidebar-settings .editor-geometry-grid > * { grid-column: auto; grid-row: auto; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-geometry-grid > .editor-proportion-lock { justify-self: end; margin: 0 0 10px; min-height: 38px; }

body.editor-studio #editor-side-panel .sidebar-settings .editor-action-row:has(> .settings-redundant) { display: block; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-action-row:has(> .settings-redundant) > .editor-action-cell { margin-left: calc(var(--settings-label) + 12px); width: calc(100% - var(--settings-label) - 12px); }
body.editor-studio #editor-side-panel .sidebar-settings .logo-import-field { flex: 1; min-width: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .logo-import-action { width: 100%; box-sizing: border-box; text-align: center; }

/* Final alignment uses the same pane padding and field rhythm as Product details. */
body.editor-studio #editor-side-panel .studio-content-panel.sidebar-settings { padding: 4px 16px 24px; }
body.editor-studio #editor-side-panel .sidebar-settings .editor-field-row { margin: 0; padding: 0; }
body.editor-studio #editor-side-panel .sidebar-settings .field > .text-colour-trigger { height: 38px; padding: 4px; }
body.editor-studio #editor-side-panel #editor-step-contextual.sidebar-settings #user-object-controls .text-colour-field:not([hidden]) { border: 0; }
body.editor-studio #editor-side-panel .sidebar-settings #user-object-more-options > .settings-title { margin-left: calc(-1 * var(--settings-indent)); }
body.editor-studio #editor-side-panel #editor-step-step4.sidebar-settings #editor-colours { border: 0; }
body.editor-studio #editor-side-panel #editor-step-step5.sidebar-settings .editor-warning-picker > #warning-summary-toggle { position: static; inset: auto; grid-column: 2; grid-row: 1; width: 100%; }
body.editor-studio #editor-side-panel #editor-step-step5.sidebar-settings .editor-warning-picker > .field-label { grid-column: 1; grid-row: 1; }
body.editor-studio #editor-side-panel #studio-uploads-panel.sidebar-settings .editor-action-row:has(> .settings-redundant) { display: block; }
body.editor-studio #editor-side-panel #studio-uploads-panel.sidebar-settings #logo-import-controls { border: 0; }
body.editor-studio #editor-side-panel #editor-index-view.sidebar-settings > .settings-section { margin-left: 16px; margin-right: 16px; }
body.editor-studio #editor-side-panel #editor-index-view.sidebar-settings .studio-review-empty { padding: 0 16px; }
body.editor-studio #editor-side-panel .sidebar-settings .user-object-opacity-row > input[type=number] { background: var(--editor-dark-raised); color: var(--editor-dark-text); border: 1px solid var(--editor-dark-line-strong); border-radius: 6px; min-height: 38px; font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
@media (pointer: coarse) { body.editor-studio #editor-side-panel .sidebar-settings .field > .text-colour-trigger { height: 44px; } }

/* Familiar text controls, with the native model owners retained underneath. */
body.editor-studio #editor-side-panel .sidebar-settings .text-alignment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
body.editor-studio #editor-side-panel .sidebar-settings .text-alignment button { display: flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid var(--editor-dark-line-strong); border-radius: 6px; background: var(--editor-dark-raised); color: var(--editor-dark-text); }
body.editor-studio #editor-side-panel .sidebar-settings .text-alignment button[aria-pressed=true] { background: #c44122; border-color: #c44122; color: #fff; }
body.editor-studio #editor-side-panel .sidebar-settings :is(.text-alignment, .text-object-actions) svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.editor-studio #editor-side-panel .sidebar-settings #project-font-upload { margin: 0 0 10px; padding: 0; border: 0; }
body.editor-studio #editor-side-panel .sidebar-settings #project-font-upload > .text-import-font { display: block; margin: 0 0 0 calc(var(--settings-label) + 12px); width: calc(100% - var(--settings-label) - 12px); }
body.editor-studio #editor-side-panel .sidebar-settings #project-font-upload .font-rights-row { font: 400 13px/1.45 "IBM Plex Sans", sans-serif; margin-top: 10px; }
body.editor-studio #editor-side-panel .sidebar-settings #project-font-status:empty { display: none; }
body.editor-studio #editor-step-contextual:has(#user-object-controls:not(.ctx-hidden) #user-object-text-fields:not([hidden])) :is(.settings-object-picker, .settings-nontext-action, #studio-move-clear, #user-object-move-clear) { display: none !important; }
body.editor-studio #editor-side-panel .sidebar-settings #editor-ctx-actions .text-object-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 14px 0; }
body.editor-studio #editor-side-panel .sidebar-settings #editor-ctx-actions .text-object-actions button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 38px; padding: 7px 5px; font: 400 13px/1.45 "IBM Plex Sans", sans-serif; }
@media (pointer: coarse) {
  body.editor-studio #editor-side-panel .sidebar-settings .text-alignment button,
  body.editor-studio #editor-side-panel .sidebar-settings #editor-ctx-actions .text-object-actions button { min-height: 44px; }
}
/* The placement controls already end with a divider. Avoid a second outer rule. */
body.editor-studio #editor-side-panel .sidebar-settings #studio-text-position { border-bottom: 0; }

/* Per-line text sizes are separate full-width rows, not nested label/value columns. */
body.editor-studio #editor-side-panel #editor-step-contextual.sidebar-settings #user-object-line-sizes:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
body.editor-studio #editor-side-panel #editor-step-contextual.sidebar-settings #user-object-line-sizes > .line-size-field {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
