.viewer-main{max-width:1240px;width:100%;box-sizing:border-box;margin:auto;padding:16px 20px calc(28px + env(safe-area-inset-bottom))}.viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.viewer-title{font-size:1.2rem;line-height:1.3;margin:0;overflow-wrap:anywhere;min-width:0}.viewer-tools{display:flex;gap:2px;flex-shrink:0}.viewer-tools button,.viewer-tools a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;box-sizing:border-box;border:0;border-radius:50%;background:transparent;color:var(--muted,#65596f);cursor:pointer;text-decoration:none}.viewer-tools button:hover,.viewer-tools a:hover{background:var(--soft,#eeeaf5)}.viewer-tools button:focus-visible,.viewer-tools a:focus-visible{outline:2px solid currentColor;outline-offset:2px}.viewer-surface{position:relative;overflow:hidden;border-radius:16px}.viewer-frame{display:block;width:100%;height:calc(100dvh - 220px);min-height:420px;border:0;background:#fff;box-sizing:border-box}.viewer-progress{position:absolute;top:0;left:0;right:0;height:2px;overflow:hidden;z-index:1;pointer-events:none;background:color-mix(in srgb,currentColor 8%,transparent);color:var(--purple,#6730db)}.viewer-progress:after{content:'';position:absolute;inset:0;width:34%;background:currentColor;transform:translateX(-100%);animation:viewer-progress 1.4s ease-in-out infinite}.viewer-status:not(.is-delayed){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.viewer-status.is-delayed{font-size:.78rem;line-height:1.4;color:var(--muted,#65596f);margin:0 0 8px;padding:0}[hidden]{display:none!important}@keyframes viewer-progress{to{transform:translateX(300%)}}@media(prefers-reduced-motion:reduce){.viewer-progress:after{animation:none;transform:none;width:100%;opacity:.45}}@media(max-width:640px){.viewer-main{padding:12px 12px calc(24px + env(safe-area-inset-bottom))}.viewer-frame{min-height:390px;height:calc(100dvh - 190px)}.viewer-surface{border-radius:12px}.viewer-title{font-size:1.05rem}}

.viewer-external{max-width:620px;margin:24px auto;padding:clamp(24px,5vw,44px);border:1px solid var(--line,#ddd7e5);border-radius:24px;background:var(--card,#fff);box-sizing:border-box;text-align:center}.viewer-external-icon{width:60px;height:60px;display:grid;place-items:center;margin:0 auto 18px;border-radius:18px;color:var(--purple,#6730db);background:var(--soft,#f2eef9)}.viewer-external-icon svg{width:30px;height:30px}.viewer-external-domain{font-size:.8rem;color:var(--muted,#65596f);overflow-wrap:anywhere}.viewer-external h2{font-size:clamp(1.4rem,4vw,2rem);line-height:1.2;overflow-wrap:anywhere;margin:14px 0}.viewer-external-body{white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}.viewer-external-note{font-size:.88rem;line-height:1.5;color:var(--muted,#65596f);margin:16px 0 24px}.viewer-external-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;max-width:100%;min-height:48px;box-sizing:border-box;padding:14px 22px;border-radius:14px;text-decoration:none;background:var(--purple,#6730db);color:#fff;font-weight:700;line-height:1.4}.viewer-external-button span{min-width:0;overflow-wrap:anywhere}.viewer-external-button svg{flex-shrink:0}.viewer-external-button:focus-visible{outline:3px solid currentColor;outline-offset:4px}@media(max-width:640px){.viewer-external{margin:12px auto;border-radius:20px}.viewer-external-button{width:100%}}
