[data-ui-surface="shell"] .hatch-inspector { overflow: visible; }

[data-ui-surface="shell"] .hatch-inspector__body {
  display: flex;
  flex-direction: column;
  gap: var(--arhix-space-row);
  padding: var(--arhix-space-micro);
  overflow-y: auto;
  max-height: min(calc(480 * var(--arhix-ui-unit)), calc(100vh - 2 * var(--arhix-space-edge)));
  box-sizing: border-box;
  border-radius: inherit;
}

[data-ui-surface="shell"] :is(.hatch-preview, .inspector-graphic-preview[data-preview="hatch"]) {
  overflow: hidden;
  --arhix-canvas-ink: var(--arhix-drawing-preview-ink);
}

[data-ui-surface="shell"] :is(.hatch-preview, .inspector-graphic-preview[data-preview="hatch"]) > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The hatch sample occupies the same surface as the colour picker. */
[data-ui-surface="shell"] [data-hatch-definition-preview] {
  box-sizing: border-box;
  border: 1px solid var(--arhix-line);
  background: var(--arhix-drawing-preview-bg);
}
[data-ui-surface="shell"] [data-hatch-definition-preview] > svg {
  display: block;
  width: 100%;
  height: 100%;
}
[data-ui-surface="shell"] [data-ui-theme-scope="dark"] [data-hatch-definition-preview] {
  background: var(--arhix-surface-soft);
  --arhix-canvas-ink: var(--arhix-scene-card-ink);
}

[data-ui-surface="shell"] [data-ui-theme-scope="dark"] :is(.hatch-preview, .inspector-graphic-preview[data-preview="hatch"]) {
  --arhix-canvas-ink: var(--arhix-scene-card-ink);
}
