:root{color:#223039;background:#f5f3ed;font-family:system-ui,sans-serif}body{margin:0}.viewer{max-width:640px;margin:40px auto;padding:0 20px}h1{margin:4px 0 24px;font-size:1.8rem}.eyebrow{color:#486656;letter-spacing:.12em;font-size:.8rem}.file-label{margin-bottom:8px;font-weight:600;display:block}input{max-width:100%}input::file-selector-button{color:#223039;cursor:pointer;background:#e3eadd;border:1px solid #486656;border-radius:6px;margin-right:12px;padding:10px 14px}.stage{background:#e5e4dd;justify-content:center;align-items:center;width:480px;max-width:100%;height:480px;display:flex;overflow:hidden}canvas{object-fit:contain;max-width:100%;image-rendering:pixelated;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}canvas[hidden]{display:none}.hint{color:#536168;font-size:.9rem}#messages{color:#8b2d26;overflow-wrap:anywhere}#messages:empty{display:none}.embed{background:#e5e4dd;width:100vw;height:100vh;margin:0;overflow:hidden}@supports (height:100dvh){.embed{height:100dvh}}.embed .stage{width:100%;max-width:none;height:100%;position:relative}.embed #messages{box-sizing:border-box;background:#fff4e8ed;width:100%;max-height:100%;margin:0;padding:16px 16px 16px 36px;position:absolute;bottom:0;left:0;overflow:auto}.modes{border:1px solid #b6bdb3;border-radius:6px;gap:20px;margin-top:20px;display:flex}.modes label{cursor:pointer;padding:8px 0}.modes input{accent-color:#486656;margin-right:6px}.embed-toolbar{z-index:1;align-items:center;gap:8px;display:flex;position:absolute;top:8px;left:8px}.embed-modes{background:#f5f3ed;border:1px solid #b6bdb3;border-radius:8px;gap:4px;padding:4px;display:flex}.embed-modes[hidden]{display:none}.embed-modes button{font:inherit;color:#223039;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;padding:4px 10px;font-size:13px;line-height:20px}.embed-modes button[aria-pressed=true]{color:#fff;background:#486656}.embed-modes button:focus-visible{outline-offset:2px;outline:2px solid #223039}.embed-spread,#spread{font:inherit;color:#223039;cursor:pointer;background:#f5f3ed;border:1px solid #b6bdb3;border-radius:8px;padding:8px 10px;font-size:13px;line-height:20px}.embed-spread[aria-pressed=true],#spread[aria-pressed=true]{color:#fff;background:#486656}.embed-spread:focus-visible,#spread:focus-visible{outline-offset:2px;outline:2px solid #223039}.embed-spread[hidden],#spread[hidden]{display:none}.viewer .eyebrow{color:var(--muted-foreground,#486656)}.viewer .hint{color:var(--muted-foreground,#536168)}
