[data-ui-surface="shell"] .secondary-inspector--catalog {
  width: min(var(--arhix-navigator-panel-width), calc(100vw - 2 * var(--arhix-space-edge)));
  height: auto;
  max-height: calc(100dvh - 2 * var(--arhix-space-edge));
  padding: 0;
  overflow: visible;
}
[data-ui-surface="shell"] .secondary-inspector--catalog[data-page="picker"] { height: min(calc(420 * var(--arhix-ui-unit)), calc(100dvh - 2 * var(--arhix-space-edge))); }
[data-ui-surface="shell"] .texture-constructor__header { position: relative; flex: none; height: calc(var(--arhix-control-height) + var(--arhix-space-inset)); min-height: calc(var(--arhix-control-height) + var(--arhix-space-inset)); padding: var(--arhix-space-inset) var(--arhix-space-inset) 0; gap: var(--arhix-space-gap); background: transparent; border-radius: var(--arhix-radius-island) var(--arhix-radius-island) 0 0; }
[data-ui-surface="shell"] .texture-constructor[data-page="picker"] .texture-constructor__header { height: var(--arhix-header-height); min-height: var(--arhix-header-height); padding-block: 0; }
[data-ui-surface="shell"] .texture-constructor__header-main { display: flex; align-items: center; flex: 1; min-width: 0; gap: var(--arhix-space-gap); }
[data-ui-surface="shell"] .texture-constructor__name { flex: 1; width: 0; min-width: 0; margin: 0; }
[data-ui-surface="shell"] :is([data-texture-recipe-save], [data-hatch-save]):disabled { color: var(--arhix-ink-ghost); pointer-events: none; }
[data-ui-surface="shell"] .texture-constructor__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-ui-surface="shell"] .texture-constructor__header button { flex: none; margin-left: 0; font: inherit; }
[data-ui-surface="shell"] :is(.texture-constructor__scroll, .catalog-inspector__scroll) { flex: 1; min-width: 0; overscroll-behavior: contain; border-radius: 0 0 var(--arhix-radius-island) var(--arhix-radius-island); }
[data-ui-surface="shell"] .secondary-inspector--catalog[data-page="picker"] > .inspector-panel__scroll { padding-bottom: var(--arhix-space-inset); }
[data-ui-surface="shell"] .catalog-inspector__empty:not([hidden]) { display: flex; flex-direction: column; padding-bottom: var(--arhix-space-block); }
[data-ui-surface="shell"] .texture-constructor__settings { min-width: 0; padding: 0 0 var(--arhix-space-inset); }
[data-ui-surface="shell"] .texture-constructor__source { gap: var(--arhix-space-gap); }
[data-ui-surface="shell"] .texture-constructor__settings .inspector-panel__graphic-toggle { flex: none; }
[data-ui-surface="shell"] .texture-constructor__settings .inspector-panel__graphic-toggle[aria-expanded="true"] { background: var(--arhix-surface); }
[data-ui-surface="shell"] .texture-constructor__settings .inspector-panel__graphic-toggle:disabled { color: var(--arhix-ink-ghost); pointer-events: none; }
[data-ui-surface="shell"] .texture-constructor__source img { object-fit: cover; }
[data-ui-surface="shell"] .texture-constructor__source span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* CSS background covers fractional SVG viewports without a pale right/bottom fringe. */
[data-ui-surface="shell"] .texture-layout-preview { background: var(--arhix-surface-soft); }
[data-ui-surface="shell"] [data-texture-pattern-preview] { background: var(--arhix-surface-soft); }
[data-ui-surface="shell"] [data-texture-pattern-preview] svg { width: 100%; height: 100%; }
[data-ui-surface="shell"] .texture-constructor__size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--arhix-space-gap); padding-inline: var(--arhix-space-inset); }
[data-ui-surface="shell"] .texture-constructor__size > div { min-width: 0; }
[data-ui-surface="shell"] .texture-constructor__size .inspector-panel__chip { margin-left: 0; }
[data-ui-surface="shell"] .texture-constructor__size .inspector-panel__field { width: 100%; margin-inline: 0; }
[data-ui-surface="shell"] .texture-constructor__size .inspector-panel__field[aria-disabled="true"] { color: var(--arhix-ink-ghost); }
[data-ui-surface="shell"] .texture-constructor__size input:disabled { color: inherit; -webkit-text-fill-color: currentColor; opacity: 1; }
[data-ui-surface="shell"] .texture-constructor__patterns { display: flex; flex-direction: column; }
[data-ui-surface="shell"] .inspector-panel__chip + .texture-constructor__patterns > :first-child { margin-top: var(--arhix-space-block); }
[data-ui-surface="shell"] .texture-constructor__patterns [aria-pressed="true"] { box-shadow: inset 0 0 0 var(--arhix-border-hairline) var(--arhix-accent); }
[data-ui-surface="shell"] .texture-constructor__result { padding-top: var(--arhix-space-block); }
[data-ui-surface="shell"] .texture-constructor__image { height: calc(150 * var(--arhix-ui-unit)); margin-inline: var(--arhix-space-inset); position: relative; overflow: hidden; border-radius: var(--arhix-radius-control); background-color: var(--arhix-surface-soft); }
[data-ui-surface="shell"] .texture-constructor__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui-surface="shell"] [data-texture-repeat-frame] { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: var(--arhix-border-hairline) dashed var(--arhix-ink); pointer-events: none; }
[data-ui-surface="shell"] .texture-constructor__dimensions { margin: 0; padding: var(--arhix-space-inset); display: flex; justify-content: space-between; gap: var(--arhix-space-gap); color: var(--arhix-ink-muted); font-size: var(--arhix-font-size-small); line-height: 1.4; }
[data-ui-surface="shell"] .texture-constructor__adjustments { overflow: visible; max-height: calc(100dvh - 2 * var(--arhix-space-edge)); }
[data-ui-surface="shell"] .texture-constructor__adjustments-scroll { min-height: 0; padding-bottom: var(--arhix-space-inset); border-radius: 0 0 var(--arhix-radius-island) var(--arhix-radius-island); }
[data-ui-surface="shell"] [data-texture-image-controls] { padding-bottom: 0; }
[data-ui-surface="shell"] [data-texture-settings-page="pattern"],
[data-ui-surface="shell"] [data-hatch-settings-body] { padding-top: var(--arhix-space-inset); }
[data-ui-surface="shell"] [data-texture-shuffle] { margin-top: 0; gap: var(--arhix-space-inset); }
[data-ui-surface="shell"] :is([data-texture-shuffle], [data-hatch-shuffle]) [data-ui-icon] { width: var(--arhix-icon-size-compact); height: var(--arhix-icon-size-compact); color: var(--arhix-ink-muted); }
[data-ui-surface="shell"] .texture-constructor__adjustments-scroll > div > .inspector-panel__chip:first-child,
[data-ui-surface="shell"] .texture-constructor__adjustments-scroll > div > [data-texture-pattern-controls]:first-child > .inspector-panel__chip:first-child { margin-top: 0; }
[data-ui-surface="shell"] .texture-constructor__adjustments > .inspector-scroll-indicator { position: absolute; right: calc(100% + var(--arhix-scroll-indicator-gap)); }
[data-ui-surface="shell"] .texture-constructor__adjustments:hover > .inspector-scroll-indicator:not([hidden]) { opacity: 1; }
[data-ui-surface="shell"] .secondary-inspector--catalog > .inspector-scroll-indicator { position: absolute; right: calc(100% + var(--arhix-scroll-indicator-gap)); }
[data-ui-surface="shell"] .secondary-inspector--catalog:hover > .inspector-scroll-indicator:not([hidden]) { opacity: 1; }
[data-ui-surface="shell"] :is([data-texture-recipe-error], [data-texture-delete-error], [data-texture-pattern-controls])[hidden],
[data-ui-surface="shell"] .texture-constructor [hidden] { display: none; }
