/* Growing authoring fields; canonical save/preview controls keep their existing owners. */
.editor-studio #editor-side-panel textarea[data-auto-grow] {
  field-sizing: content; box-sizing: border-box; width: 100%; min-width: 0;
  min-height: 38px; max-height: none; overflow-y: hidden; overflow-wrap: anywhere;
  white-space: pre-wrap; resize: none; font: inherit; line-height: 1.5;
}
.editor-studio #editor-side-panel textarea[data-auto-grow][rows="2"] { min-height: 68px; }
.editor-studio #editor-side-panel :is(.product-bilingual-fields, .product-licence-fields) {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 0; margin: 0; border: 0;
}
.editor-studio #editor-side-panel :is(.product-bilingual-fields, .product-licence-fields) > legend { margin-bottom: 12px; }
.editor-studio #editor-side-panel :is(.product-bilingual-fields, .product-licence-fields) .field { margin: 0; }
.product-licence-split, .product-storage-presets { display: grid; gap: 12px; min-width: 0; }
.product-licence-split[hidden] { display: none; }
.product-translation-tools { display: grid; gap: 8px; }
.product-translation-tools :is(select, button) { width: 100%; min-height: 38px; }
.product-storage-temperatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-storage-temperatures[hidden] { display: none; }
.product-storage-presets .editor-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.product-storage-presets .editor-check input { width: 16px; height: 16px; flex: none; }
.product-storage-presets { margin: 0 0 16px; }
.product-translation-tools + .field-hint:empty, .product-licence-fields > .field-hint:empty { display: none; }

/* One visible group title; technical detail stays available on demand. */
.editor-studio .pd-section-fields :is(.product-bilingual-fields, .ingredient-picker) > legend { display: none; }
.editor-studio .colour-visual-field .text-colour-trigger { width: 100%; height: 46px; min-height: 46px; }
.editor-studio .colour-swatch-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.editor-studio .colour-swatch { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px; }
.editor-studio .colour-exact { margin-top: 16px; }
.editor-studio .colour-pantone-note { margin: 8px 0; color: var(--editor-dark-muted); }

.editor-studio .editor-visual-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.editor-studio .editor-visual-choices button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 72px; padding: 8px; white-space: normal; font: inherit; }
.editor-visual-choices svg { width: 54px; height: 44px; flex: none; }
.editor-studio .editor-visual-choices [aria-pressed="true"] { border-color: var(--primary-bright); color: var(--primary-bright); }
.editor-studio .studio-library-only > .editor-action-row { display: none; }
.editor-feature-position, .ink-guides { margin: 8px 0 16px; }
.ink-preview-viewport img + img { margin-top: 12px; }

.editor-reuse, .product-writing-preference { margin: 12px 0; }
.editor-reuse > :is(select, textarea, button), .product-writing-preference > :is(label, button) { margin-top: 8px; width: 100%; }
.editor-reuse-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; max-height: 240px; overflow-y: auto; }
.editor-reuse-preview:empty { display: none; }
.editor-studio #editor-side-panel textarea[aria-label="Paste nutrition table"] { white-space: pre; overflow: auto; min-height: 120px; }
.editor-studio .studio-export-body .editor-rail-actions > .rail-title { display: none; }
.product-translation-tools > :is(select, button) { margin-top: 8px; }

.editor-studio .editor-allergen-builder { padding: 0; margin: 0; border: 0; min-width: 0; }
.editor-studio .editor-allergen-builder .editor-check { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.editor-studio .editor-allergen-builder input[type="checkbox"] { flex: none; width: 16px; height: 16px; }
.editor-studio .editor-allergen-builder a { display: block; margin-top: 12px; }
.editor-studio .editor-rail-actions > .editor-step-title { display: none; }

.editor-studio #background-colour-readout { font-size: 13px; color: var(--editor-dark-text); font-variant-numeric: tabular-nums; margin: 0; }
