/* PRISME 2D CAD — UCS dialogs (cad2d_ucs.js, spec 027 WP-17). Shell classes (cads-*) do the rest. */

.cadu-dialog { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cadu-tab { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cadu-current { color: var(--cad-text); }
.cadu-named { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.cadu-buttons { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cadu-list {
  flex: 1 1 auto;
  min-width: 0;
  height: 190px;
  overflow: auto;
  border: 1px solid var(--cad-border-soft);
  background: var(--cad-bg-input);
  outline: none;
}
.cadu-list:focus-visible { border-color: var(--cad-accent); }
.cadu-row { display: flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 6px; cursor: default; user-select: none; }
.cadu-row[aria-selected="true"] { background: var(--cad-bg-hover); }
.cadu-row.cadu-head { position: sticky; top: 0; background: var(--cad-bg-panel-title); color: var(--cad-text-muted); }
.cadu-mark { flex: none; width: 14px; color: var(--cad-accent); font-size: 10px; }
.cadu-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cadu-depth { flex: none; width: 72px; text-align: right; font-family: var(--cad-font-mono); }
.cadu-error { margin: 0; color: var(--cad-danger); }
.cadu-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cadu-detail { display: flex; justify-content: space-between; gap: 8px; font-family: var(--cad-font-mono); }
.cadu-icon-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cadu-inline { display: flex; gap: 16px; }
.cadu-preview { display: block; width: 180px; height: 120px; border: 1px solid var(--cad-border-soft); }
.cadu-small { min-width: 64px; }
.cadu-color { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; }
.cadu-swatch { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--cad-border); }
.cadu-name-input { width: 100%; }

/* ViewCube rotation arrows (VIEWTWIST), drawn by the shell's renderViewcube. */
.cads-vc-cube { position: relative; }
.cadu-vc-rotates { position: absolute; top: 14px; right: 2px; display: flex; gap: 2px; }
.cadu-vc-rotate {
  display: inline-flex;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cad-text-muted);
}
.cadu-vc-rotate:hover { color: var(--cad-text); }
.cadu-vc-rotate svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 520px) {
  .cadu-named { flex-direction: column; align-items: stretch; }
  .cadu-buttons { flex-direction: row; flex-wrap: wrap; }
  .cadu-icon-top { grid-template-columns: minmax(0, 1fr); }
}
