html.cosmic-viewer-open, .cosmic-viewer-open body { overflow: hidden; }
.cosmic-dialog { box-sizing: border-box; width: min(1120px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #d7d5cf; border-radius: 18px; background: #f7f6f2; color: #171719; box-shadow: 0 24px 100px #0005; font-family: Arial, sans-serif; }
.cosmic-dialog::backdrop { background: #141124b8; backdrop-filter: blur(8px); }
.cosmic-dialog *, .cosmic-dialog *::before, .cosmic-dialog *::after { box-sizing: border-box; }
.cosmic-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid #17171920; }
.cosmic-eyebrow { margin: 0 0 6px; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: #6a636f; }
.cosmic-dialog h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 500; }
.cosmic-dialog button, .cosmic-actions a { font: inherit; color: inherit; cursor: pointer; border: 1px solid #17171935; border-radius: 999px; padding: 10px 16px; background: transparent; text-decoration: none; }
.cosmic-dialog .cosmic-close { width: 44px; height: 44px; padding: 0; font-size: 30px; line-height: 1; flex-shrink: 0; }
.cosmic-dialog button:hover, .cosmic-actions a:hover { background: #e8e5df; color: #171719; }
.cosmic-dialog :focus-visible { outline: 3px solid #6555bc; outline-offset: 3px; }
.cosmic-stage { position: relative; background: radial-gradient(ellipse at 50% 40%, #d7d8db, #b8bbc2); }
.cosmic-views { display: flex; gap: 8px; padding: 12px 26px; font-size: 12px; }
.cosmic-views [aria-pressed="true"] { background: #272332; color: #fff; }
.cosmic-variants { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 14px; font-size: 12px; }
.cosmic-variants button { border-radius: 8px; padding: 10px 14px; }
.cosmic-variants button span { margin-right: 8px; opacity: .6; font-size: 10px; }
.cosmic-variants [aria-pressed="true"] { background: #e8e3f3; border-color: #776891; }
.cosmic-stage model-viewer { display: block; width: 100%; height: clamp(240px, 54dvh, 570px); touch-action: none; --progress-bar-color: #5d48a4; }
.cosmic-status { position: absolute; inset: 0; display: flex; gap: 16px; flex-direction: column; justify-content: center; align-items: center; padding: 28px; text-align: center; background: #d7d8dbee; font-size: 14px; }
.cosmic-dialog [hidden] { display: none; }
.cosmic-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 26px; border-top: 1px solid #17171920; }
.cosmic-footer p { margin: 0; font-size: 12px; line-height: 1.6; color: #66616d; }
.cosmic-actions { display: flex; flex-shrink: 0; gap: 8px; font-size: 13px; }
.cosmic-actions .cosmic-project { background: #272332; color: #fff; }
@media (max-width: 640px) {
  .cosmic-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .cosmic-header { padding: 18px; }
  .cosmic-variants { display: grid; grid-template-columns: 1fr 1fr; padding: 0 18px 14px; }
  .cosmic-variants button { padding: 10px 8px; text-align: left; }
  .cosmic-views { padding-inline: 18px; }
  .cosmic-stage model-viewer { height: 40dvh; min-height: 200px; }
  .cosmic-footer { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
}
