dialog.eoingti-webviewer {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(1080px, 94vw);
    height: 86vh;
    height: min(900px, 88dvh);
    max-height: 95%;
    border: 0;
    border-radius: 14px;
    background: white;
    color: #172d53;
    overflow: hidden;
    box-shadow: 0 24px 80px #07152e55;
}
.eoingti-webviewer[open] { display: flex; flex-direction: column; }

.eoingti-webviewer > header {
    position: static; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 16px 22px; border-bottom: 1px solid #d4dce7; background: white;
}
.eoingti-webviewer header div { min-width: 0; }
.eoingti-webviewer header div > span { font-size: 14px; color: #52627a; }
.eoingti-webviewer h2 { margin: 3px 0 0; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.eoingti-webviewer button { flex-shrink: 0; min-height: 44px; padding: 0 14px; border: 1px solid #bcc7d6; border-radius: 6px; background: white; color: #172d53; cursor: pointer; }
.eoingti-preview-body { flex: 1; min-height: 0; background: #f3f5f8; }
.eoingti-preview-body iframe { display: block; width: 100%; height: 100%; border: 0; }
html:has(.eoingti-webviewer[open]) { overflow: hidden; }
@media (max-width: 650px) {
    dialog.eoingti-webviewer { width: 96vw; max-width: 96vw; height: 93dvh; }
    .eoingti-webviewer > header { padding: 12px; }
    .eoingti-webviewer h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
    .eoingti-webviewer[open] { animation: eoingti-preview-in .18s ease-out; }
    @keyframes eoingti-preview-in { from { opacity: 0; transform: translateY(8px); } }
}
.eoingti-webviewer::backdrop { background:rgb(12 24 43 / 68%); }
.eoingti-brand {display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 18px;border-top:1px solid #d4dce7;background:white;color:#28436a;font:600 13px/1.5 system-ui,sans-serif;}
.eoingti-brand svg {width:26px;height:26px;}
.eoingti-brand a {display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none;border-radius:4px;}
.eoingti-brand a:focus-visible {outline:2px solid #37657e;outline-offset:3px;}
