html,body{height:100%}#viewer{height:100%;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom)}.brand{height:48px;flex:none;display:flex;align-items:center;justify-content:space-between}.home{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:var(--text-16);color:var(--text);text-decoration:none;min-height:44px}.mark{width:24px;height:24px;shape-rendering:crispEdges}.view{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.view.grouped{justify-content:center}.view.grouped .stage{flex:none}.stage{flex:1;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.art{display:block;flex:none;image-rendering:pixelated;background:repeating-conic-gradient(var(--checker-a) 0 25%,var(--checker-b) 0 50%) 0 0 / 16px 16px}.info{flex:none;width:100%;align-self:center;display:flex;flex-direction:column;gap:12px;padding-bottom:8px}.caption{display:flex;align-items:center;gap:12px}.cap-text{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-dim)}.doc-title{display:inline;margin:0;color:var(--text);font-size:var(--text-16);font-weight:700}.foot{flex:none;text-align:center;padding:8px 0 12px;font-size:var(--text-14)}.foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--text-dim);text-decoration:underline}.glyph{width:24px;height:24px;shape-rendering:crispEdges}@media(orientation:landscape)and (max-height:500px){.broken{display:none}.foot{padding:0 0 4px}.view{flex-direction:row;align-items:center;gap:24px}.stage{height:100%}.info{width:40%;max-width:320px}}@media(min-width:768px)and (min-height:501px){.view{max-width:720px;width:100%;margin:0 auto}}.btn,.round{min-height:48px;border:0;cursor:pointer;font:inherit;font-weight:800;text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;padding:0 24px;border-radius:var(--radius-control)}.btn.primary{background:var(--accent);color:var(--on-accent)}.btn.wide{width:100%}.round{width:48px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:50%;background:var(--surface-2);color:var(--text);border:1px solid var(--border-strong)}.btn:focus-visible,.round:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.msg{margin:auto;width:100%;max-width:360px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.msg h1{margin:0;font-size:var(--text-20)}.msg p{margin:0 0 16px;color:var(--text-dim);font-size:var(--text-16)}.broken{width:96px;height:96px;shape-rendering:crispEdges;margin-bottom:8px}.report{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:var(--text-dim);font-size:var(--text-14);text-decoration:underline}.report:focus-visible,.home:focus-visible,.foot a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.banner{flex:none;margin:0 -16px;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--warn-bg);border-bottom:1px solid var(--warn);font-size:var(--text-14)}.banner-text{display:inline-flex;align-items:center;gap:8px;min-width:0}.banner-icon{width:20px;height:18px;flex:none;color:var(--warn);shape-rendering:crispEdges}.btn-outline{flex:none;min-height:44px;padding:0 14px;border:1px solid var(--warn);border-radius:var(--radius-control);background:transparent;color:var(--text);font:inherit;font-weight:700;cursor:pointer}.btn-outline:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn.dashed{background:transparent;color:var(--text);border:1px dashed var(--border-strong)}.btn.dashed[aria-disabled=true]{color:var(--text-dim);cursor:default}.stage-box{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:var(--surface);border-radius:var(--radius-control);color:var(--text-dim)}.info-ghost{flex:none;height:48px;border-radius:var(--radius-control);background:var(--surface-2);margin-bottom:8px}.spin{position:relative;display:block;width:40px;height:40px}.spin i{position:absolute;width:8px;height:8px;background:currentColor;opacity:.25;animation:spin-fade .8s steps(8) infinite}.spin i:nth-child(1){left:16px;top:0;animation-delay:-.8s}.spin i:nth-child(2){left:28px;top:4px;animation-delay:-.7s}.spin i:nth-child(3){left:32px;top:16px;animation-delay:-.6s}.spin i:nth-child(4){left:28px;top:28px;animation-delay:-.5s}.spin i:nth-child(5){left:16px;top:32px;animation-delay:-.4s}.spin i:nth-child(6){left:4px;top:28px;animation-delay:-.3s}.spin i:nth-child(7){left:0;top:16px;animation-delay:-.2s}.spin i:nth-child(8){left:4px;top:4px;animation-delay:-.1s}@keyframes spin-fade{0%{opacity:1}to{opacity:.25}}@media(prefers-reduced-motion:reduce){.spin i{animation:none;opacity:.6}}@media(max-height:560px)and (orientation:portrait){.banner{padding:2px 12px}.banner-text{font-size:var(--text-14)}.view{gap:8px}.foot{padding:0}}.btn.dashed{padding:6px 14px;font-size:var(--text-14);line-height:1.25;text-align:center;white-space:normal}.banner-text>span{min-width:0;overflow-wrap:anywhere}@media(min-width:768px)and (min-height:501px){.view{gap:24px;padding-top:16px}.info{max-width:360px;gap:16px;padding-bottom:16px}.foot{padding:8px 0 24px}.btn{font-size:16px}.cap-text,.doc-title,.btn.dashed{font-size:15px}}.actions{display:flex;gap:12px}.actions:empty{display:none}.actions .btn{flex:1}.btn.secondary{min-height:44px;padding:0 16px;background:var(--surface-2);color:var(--text);border:1px solid var(--border-strong)}.btn.secondary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.embed-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--border-strong);border-radius:var(--radius-sheet);background:var(--surface);color:var(--text)}.embed-dialog::backdrop{background:var(--scrim)}.embed-dialog h2{margin:0 0 8px;font-size:var(--text-20)}.embed-help{margin:0 0 12px;color:var(--text-dim);font-size:var(--text-14)}.embed-code{display:block;width:100%;box-sizing:border-box;padding:10px;resize:none;border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface-2);color:var(--text);font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.embed-code:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.embed-status{min-height:20px;margin:8px 0;color:var(--text-dim);font-size:var(--text-14)}.embed-row{display:flex;gap:12px}.embed-row .btn{flex:1}#viewer.embed-mode{height:100%;padding:8px}#viewer.embed-mode .view{flex-direction:column;align-items:stretch;gap:0;max-width:none;padding-top:0}#viewer.embed-mode .stage{height:auto}#viewer.embed-mode .msg{padding:0 8px}.embed-foot{display:flex;align-items:center;justify-content:center;gap:12px;height:60px;padding:0}.embed-foot .round{width:44px;min-height:44px;height:44px}@media(max-height:560px)and (orientation:portrait){#viewer:not(.embed-mode) .foot{display:none}.info{gap:8px;padding-bottom:0}}
