/* 3D Studio: uv.js, the UV editor in the dock under the view. */

.d3-uv { background: var(--surface); }
.d3-uv-bar { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; padding: 4px 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.d3-uv-bar::-webkit-scrollbar { display: none; }
.d3-uv-bar > * { flex: none; }
.d3-uv-seg .seg-btn { display: grid; place-items: center; min-width: 30px; padding: 4px 6px; }
.d3-uv-unwrap { width: auto; min-width: 120px; }
.d3-uv-field { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.72rem; }
.d3-uv-num { width: 64px; }
.d3-uv-toggle.is-on { color: var(--tint-text); background: var(--tint); border-color: var(--accent); }
.d3-uv-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.d3-uv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: crosshair; }
.d3-uv-canvas:focus-visible { box-shadow: inset var(--focus-ring); }
.d3-uv-hint { position: absolute; left: 8px; bottom: 6px; z-index: 1; max-width: calc(100% - 16px); margin: 0; padding: 3px 8px; color: var(--muted); background: rgba(20, 17, 31, 0.7); border-radius: 0; font-size: 0.72rem; pointer-events: none; }
.d3-uv-hint:empty { display: none; }
.d3-uv-hint.is-note { color: var(--text); }

@media (max-width: 760px), (pointer: coarse) {
  .d3-uv-seg .seg-btn { min-width: 36px; min-height: 36px; }
  .d3-uv-bar .btn, .d3-uv-bar .vs-ib, .d3-uv-unwrap, .d3-uv-num { min-height: 36px; }
  .d3-uv-bar .vs-ib { min-width: 36px; }
}
