#brochure-dialog{width:min(1100px,94vw);max-width:94vw;height:92dvh;max-height:92dvh;padding:20px;background:#071c32;color:#fff;border:1px solid #b88943;border-radius:8px;box-sizing:border-box}
#brochure-dialog::backdrop{background:rgba(0,0,0,.8)}
#brochure-dialog .brochure-shell{height:100%;display:flex;flex-direction:column;gap:10px}
#brochure-dialog .brochure-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
#brochure-dialog .brochure-head h2{font-size:20px;margin:0}
#brochure-dialog .brochure-viewport{flex:1;min-height:0;position:relative}
#brochure-dialog .brochure-pages{height:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#e8e5df;padding:8px;box-sizing:border-box}
#brochure-dialog .brochure-page{margin:0 0 12px;background:#fff;box-shadow:0 1px 5px #0004}
#brochure-dialog .brochure-page canvas{display:block;width:100%;height:auto}
#brochure-dialog button,#brochure-dialog a{min-height:44px;padding:10px;color:inherit;box-sizing:border-box}
#brochure-dialog button{background:#071c32;color:#fff;border:1px solid #b88943;cursor:pointer}
#brochure-dialog a{display:inline-block;color:#e4c285}
#view-brochure{display:inline-flex;align-items:center;min-height:44px;padding:10px 0;color:#e4c285;border:0;text-decoration:underline;font-size:16px;line-height:1.4}
#view-brochure:hover,#view-brochure:focus-visible{color:#fff}
@media(max-width:640px){#brochure-dialog{height:90dvh;max-height:90dvh;padding:12px}#brochure-dialog .brochure-head h2{font-size:15px}}
