/* ==========================================================================
   Canvas panel of the shared editor (P9, decision D-9; artboard D9Canvas): Grid, Format, Source, Watermark.
   Markup: `_canvas_category` in pages/new_content/editor_workspace_components.py. Source and Watermark text are
   one-line 40 px fields beside a 62 px label; the keyboard composer (zzzzzzzzzzz_editor_categories.css, text panels)
   owns the field while the keyboard is up. Scoped to the Canvas category.
   ========================================================================== */
#editor-workspace-root [data-category="canvas"] .sp-editor-section-title { margin: 6px 0 0; font: 700 10.5px/15px var(--sp-font-mono); letter-spacing: .1em; color: var(--sp-text-2); }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .sp-editor-row:not(.sp-editor-row--toggle):not(.sp-editor-row--size) > .sp-editor-row-label { flex: 0 0 62px; font: 500 13px/16px var(--sp-font-ui) !important; color: var(--sp-text-2) !important; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .sp-editor-row:not(.sp-editor-row--toggle):not(.sp-editor-row--size) > :last-child { flex: 1 1 auto; max-width: none; min-width: 0; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] :is(.mantine-Textarea-root, .mantine-TextInput-root, .mantine-Select-root) { width: 100%; margin: 0; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] :is(.mantine-Textarea-input, .mantine-TextInput-input, .mantine-Select-input) {
  height: 38px !important; min-height: 38px !important; padding: 0 12px !important; border-radius: 10px !important; border: 1px solid var(--sp-border-strong) !important;
  background: var(--sp-surface) !important; font: 500 14px/36px var(--sp-font-ui) !important; overflow: hidden;
}
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .mantine-Select-input { padding-right: 34px !important; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .mantine-Select-section { width: 34px; color: var(--sp-text-2); }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] :is(.mantine-Textarea-input, .mantine-TextInput-input)::placeholder { color: var(--sp-text-3); }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .sp-editor-row--toggle > .sp-editor-row-label { font: 500 14px/18px var(--sp-font-ui) !important; color: var(--sp-text) !important; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .sp-editor-row--size > .sp-editor-row-label { font: 500 13px/16px var(--sp-font-ui) !important; color: var(--sp-text-2) !important; flex: 0 0 62px; }
/* D9Canvas rhythm: 6 px between rows, 4 px under a section name, 40 px rows (the slider row too). */
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body .sp-editor-category-panel.sp-editor-tool-group[data-category="canvas"] { gap: 6px; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .sp-editor-section-title { margin: 0 0 -2px; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] .sp-editor-row--size { height: 40px; min-height: 40px; }
#editor-workspace-root #editor-tools.sp-editor-sheet .sp-editor-sheet-body [data-category="canvas"] > .sp-text-panel-head { margin-bottom: -8px; }
/* The Format slot only marks where the shell reveals its block (JS reads its position in the tree, not its box). */
#editor-workspace-root [data-category="canvas"] > .sp-editor-shared-slot { display: none; }
