/* Shared AutoCAD-style multi-drawing preview used by every StruTools CAD workflow. */
.cad-preview-slider-shell { position: relative; min-width: 0; }
.cad-preview-surface { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cad-preview-surface[data-bg="dark"] { --cad-background: #0c1516; --cad-foreground: #f3f7f7; --cad-dimension: #bcc5c7; background: #070d0e; }
.cad-preview-surface[data-bg="paper"] { --cad-background: #fff; --cad-foreground: #15191b; --cad-dimension: #656d72; background: #e3e8eb; }
.cad-preview-surface svg { display: block; width: 100%; height: 100%; max-height: 100%; background: var(--cad-background); box-shadow: 0 16px 42px rgba(0, 0, 0, .32); }
.cad-preview-button { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 42px; height: 58px; border: 1px solid rgba(255,255,255,.32); border-radius: 13px; background: rgba(8,18,24,.76); color: #fff; cursor: pointer; font-size: 1.45rem; backdrop-filter: blur(8px); }
.cad-preview-button:disabled { opacity: .24; cursor: default; }
.cad-preview-button.previous { left: 12px; }
.cad-preview-button.next { right: 12px; }
.cad-preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; }
.cad-preview-dots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.cad-preview-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong, #9aa7ba); cursor: pointer; }
.cad-preview-dots button[aria-current="true"] { width: 22px; border-radius: 8px; background: var(--accent); }
.cad-preview-empty { display: grid; gap: 7px; place-items: center; color: var(--muted); text-align: center; }
.cad-preview-empty b { color: var(--text); font-size: 1.05rem; }
@media (max-width: 640px) { .cad-preview-surface { min-height: 260px; } .cad-preview-button { width: 36px; height: 48px; } }
