.water-document-dialog{width:calc(100vw - 2rem);max-width:90rem;height:calc(100dvh - 2rem);max-height:calc(100dvh - 2rem);padding:0;border:0;border-radius:1.5rem;background:#fff;color:#0f172a;box-shadow:0 24px 64px #0f172a33;overflow:hidden}
.water-document-dialog[open]{display:flex;flex-direction:column}
.water-document-dialog::backdrop{background:#0f172a99}
.water-document-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #e2e8f0;flex:none}
.water-document-header h2{font-size:1.25rem;font-weight:500;line-height:1.4;margin:0;overflow-wrap:anywhere}
.water-document-header button{flex:none;width:2.5rem;height:2.5rem;font-size:2rem;line-height:1;border:0;border-radius:.5rem;background:transparent;color:#0f172a;cursor:pointer}
.water-document-header button:hover{background:#f1f5f9}
.water-document-header button:focus-visible,.water-document-footer a:focus-visible{outline:2px solid #15803d;outline-offset:2px}
.water-document-body{flex:1;min-height:0;background:#e2e8f0}
.water-document-body iframe{display:block;width:100%;height:100%;border:0}
.water-document-body iframe[hidden]{display:none}
.water-document-footer{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid #e2e8f0}
.water-document-footer a{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1rem;border:1px solid #cbd5e1;border-radius:.375rem;background:#fff;color:#475569;font-size:.875rem;font-weight:500;line-height:1.25rem;text-decoration:none}
.water-document-footer a:hover{background:#f8fafc;text-decoration:none}
.water-document-footer a[hidden]{display:none}
body:has(.water-document-dialog[open]){overflow:hidden}
@media(max-width:639px){.water-document-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.water-document-header{padding:.75rem 1rem}.water-document-header h2{font-size:1.125rem}.water-document-footer{padding:.75rem 1rem;font-size:.875rem}}
