html.drawing-preview-open { overflow: hidden; scrollbar-gutter: auto; }
.drawing-preview { position: fixed; inset: 0; box-sizing: border-box; width: min(1800px, calc(100vw - 48px)); max-width: none; height: calc(100dvh - 40px); max-height: none; margin: auto; padding: 0; border: 1px solid #d5dfe9; border-radius: 14px; overflow: hidden; background: #303642; color: #263b50; box-shadow: 0 24px 90px #0f1d3b66; font-family: inherit; }
.drawing-preview[open] { display: flex; flex-direction: column; }
.drawing-preview::backdrop { background: #142135b3; backdrop-filter: blur(3px); }
.drawing-preview-toolbar { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 100%; height: auto; min-height: 74px; margin: 0; gap: 24px; padding: 14px 18px; border-bottom: 1px solid #e1e7ef; background: #fff; }
.drawing-preview-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawing-preview-file-mark { display: grid; place-items: center; width: 42px; height: 46px; flex-shrink: 0; border: 1px solid #f0d8d5; border-radius: 8px; background: #fff3f0; color: #b34b3e; font-size: 11px; font-weight: 750; letter-spacing: .6px; }
.drawing-preview-title { min-width: 0; }
.drawing-preview-title > span { font-size: 11px; color: #8795a7; }
.drawing-preview-title h2 { margin: 4px 0 0; color: #263b50; font-size: 16px; line-height: 1.5; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawing-preview-actions { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.drawing-preview-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid #d7e0ea; border-radius: 7px; background: #fff; color: #41566e; text-decoration: none; cursor: pointer; font-family: inherit; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.drawing-preview-button:hover { background: #f2f6fc; border-color: #b9c9dd; }
.drawing-preview-button:focus-visible { outline: 2px solid #3469e8; outline-offset: 2px; }
.drawing-preview-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawing-preview-download { border-color: #2f63eb; background: #2f63eb; color: #fff; }
.drawing-preview-download:hover { border-color: #2255d5; background: #2255d5; }
.drawing-preview-close { width: 38px; padding: 0; margin-left: 4px; }
.drawing-preview > iframe { display: block; flex: 1; width: 100%; min-width: 0; min-height: 0; height: auto; margin: 0; border: 0; background: #303642; }
.drawing-preview.is-maximized { inset: 0; width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
@media (max-width: 760px) {
  .drawing-preview { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 10px; }
  .drawing-preview-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .drawing-preview-heading { width: 100%; }
  .drawing-preview-file-mark { width: 32px; height: 36px; }
  .drawing-preview-title h2 { font-size: 14px; }
  .drawing-preview-actions { width: 100%; justify-content: flex-end; gap: 8px; }
  .drawing-preview-button { min-height: 34px; }
  .drawing-preview-close { width: 34px; }
}
