html,body{background:#fff;height:100%;margin:0;font:14px system-ui,sans-serif;overflow:hidden}#ink{touch-action:none;width:100%;height:100%;position:fixed;inset:0}#live{pointer-events:none;transform-origin:0 0;position:fixed;inset:0}#live .rune-list{pointer-events:auto;box-sizing:border-box;padding:8px;position:absolute;overflow:auto}.rune-list input{box-sizing:border-box;width:100%;font:inherit;padding:4px}.rune-list ul{margin:8px 0 0;padding:0;list-style:none}.rune-list li{justify-content:space-between;align-items:center;padding:4px 0;display:flex}.rune-list li button{font:inherit;padding:0 8px}#live .rune-value{pointer-events:auto;box-sizing:border-box;padding:8px;position:absolute;overflow:auto}.rune-value input{box-sizing:border-box;width:100%;font:inherit;padding:4px}.rune-value p{white-space:pre-wrap;margin:8px 0}.rune-value button{font:inherit;padding:2px 8px}dialog.sheet{box-sizing:border-box;border:1px solid #999;border-radius:8px;width:min(720px,94vw);max-height:90vh;padding:0;overflow-y:auto}dialog.sheet .sheet-body{padding:0 20px 20px}dialog.sheet::backdrop{background:#0000004d}dialog.sheet header{background:#fff;justify-content:space-between;align-items:center;padding:12px 0 8px;display:flex;position:sticky;top:0}dialog.sheet header h1{margin:0}dialog.sheet .close{font:inherit;padding:6px 12px}.rune-sheet h2{border-bottom:1px solid #ccc;margin:24px 0 4px}.rune-sheet h3{margin:0 0 4px;font-family:ui-monospace,monospace}.rune-sheet p{margin:0 0 6px;line-height:1.4}.rune-sheet .note{color:#444}.rune-sheet .rune{align-items:flex-start;gap:16px;padding:10px 0;display:flex}.rune-sheet svg{fill:none;stroke:#000;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:96px;height:96px}.rune-sheet svg polyline{vector-effect:non-scaling-stroke}.rune-sheet svg.example{width:100%;height:auto;display:block}.rune-sheet svg text{fill:#1e5ac8e6;stroke:none;font:11px system-ui,sans-serif}.rune-sheet li{margin:0 0 4px;line-height:1.4}.example-item{width:100%;font:inherit;text-align:left;background:#fff;border:1px solid #999;border-radius:8px;align-items:center;gap:16px;margin:0 0 12px;padding:12px;display:flex}.example-item svg{fill:none;stroke:#000;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:160px;height:120px}.example-item svg polyline{vector-effect:non-scaling-stroke}.example-item h3{margin:0 0 4px}.example-item p,.example-list p{margin:0 0 12px;line-height:1.4}.rune-sheet .build{color:#666;margin:24px 0 0;font-size:12px}.rune-sheet .privacy{margin-top:24px}.rune-sheet .rune>div{flex:1}.rune-sheet .pen{text-align:center;color:#666;flex:none;margin:0;font-size:11px}.rune-sheet .pen svg{stroke:#666;stroke-width:1.5px;width:64px;height:64px;display:block}dialog.calibrate{box-sizing:border-box;border:1px solid #999;border-radius:8px;width:min(640px,94vw);padding:20px}dialog.calibrate::backdrop{background:#0000004d}dialog.calibrate .ruler{box-sizing:border-box;background:linear-gradient(#000,#000) 50%/100% 2px no-repeat;border-left:2px solid #000;border-right:2px solid #000;height:28px;margin:16px 0}dialog.calibrate input[type=range]{width:100%}dialog.calibrate .row{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}dialog.calibrate button{font:inherit;padding:6px 12px}.rune-sheet .calibrate-button{font:inherit;margin-top:8px;padding:6px 12px}#live .rune-list,#live .rune-value{touch-action:pan-y}.rune-count{color:#444;font-variant-numeric:tabular-nums;margin:8px 0}.rune-count:before{content:"count ";color:#888}:root{--ink:#1d2433;--line:#d6dae3;--panel:#ffffffeb;--accent:#2f5fd0;--danger:#c8342f;--guide:#0e7c74;--guide-hover:#0b6760}[hidden]{display:none!important}.strip{background:var(--panel);border:1px solid var(--line);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:14px;align-items:center;gap:4px;padding:4px;display:flex;position:fixed;box-shadow:0 2px 10px #141e3c1f}#bar{top:8px;right:8px}#foot{bottom:8px;right:8px}#tutorial{box-sizing:border-box;width:min(640px,100vw - 16px);color:var(--ink);gap:8px;padding:4px 4px 4px 12px;top:62px;left:50%;transform:translate(-50%)}#tutorial-count{color:#7a8394;font-variant-numeric:tabular-nums}#tutorial-text{flex:1;line-height:1.35}.strip .gap{background:var(--line);align-self:stretch;width:1px;margin:6px 4px}.tool{min-width:40px;height:40px;font:inherit;color:var(--ink);background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 8px;display:inline-flex}.tool:hover{background:#2f5fd014}.tool:active{background:#2f5fd02e}.tool:disabled{opacity:.3}.tool svg,.panel svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.tool.primary{color:#fff;background:var(--accent);padding:0 12px 0 10px;font-weight:600}.tool.primary:hover{background:#2a55bb}.tool.primary svg{fill:currentColor;stroke-width:1.2px}.tool[aria-pressed=true]{color:#fff;background:var(--danger)}.tool.text{font-variant-numeric:tabular-nums;min-width:6ch}#tutorial-pointer{margin-right:4px;display:inline-flex;position:relative}#tutorial-start{color:#fff;background:var(--guide);padding:0 12px;font-weight:600}#tutorial-start:hover{background:var(--guide-hover)}#tutorial-dismiss{width:18px;height:18px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:50%;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;top:-6px;right:-4px;box-shadow:0 1px 3px #141e3c33}#tutorial-dismiss:before{content:"";position:absolute;inset:-8px -2px -8px -8px}@media (width<=520px){#bar:has(#tutorial-pointer:not([hidden])){gap:2px}#bar:has(#tutorial-pointer:not([hidden]))>.tool{min-width:34px;padding:0 6px}#bar:has(#tutorial-pointer:not([hidden])) .gap{margin:6px 2px}#tutorial-pointer{margin-right:6px}#tutorial-start{min-width:0;padding:0 9px;font-size:13px}}#tutorial-dismiss svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;width:12px;height:12px}#go .when-live,#go[data-mode=live] .when-edit{display:none}#go[data-mode=live] .when-live{display:inline-flex}#go[data-mode=live]{background:var(--ink)}#pages{border-left:1px solid var(--line);align-items:center;gap:2px;padding-left:4px;display:inline-flex}#pages .tool{min-width:34px;padding:0 4px}#pages #page{text-align:center;font-variant-numeric:tabular-nums;min-width:4ch;color:var(--ink)}#corner{color:#5b6475;pointer-events:none;-webkit-user-select:none;user-select:none;flex-direction:column;gap:4px;width:140px;font-size:12px;display:flex;position:fixed;bottom:10px;left:10px}#minimap{background:var(--panel);border:1px solid var(--line);pointer-events:auto;touch-action:none;border-radius:10px;width:140px;height:100px;box-shadow:0 2px 10px #141e3c1f}#coords,#status{text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff}#coords{font-variant-numeric:tabular-nums}#status{max-width:calc(100vw - 290px)}.panel{overscroll-behavior:contain;flex-direction:column;align-items:stretch;gap:0;min-width:200px;max-height:calc(100dvh - 128px);padding:6px;top:62px;right:8px;overflow-y:auto}@media (width<=520px){.panel{max-height:calc(100dvh - 184px)}}.panel h2{letter-spacing:.06em;text-transform:uppercase;color:#7a8394;margin:8px 10px 2px;font-size:11px;font-weight:600}.panel button,.panel label{height:40px;font:inherit;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:0 10px;display:flex}.panel button:hover,.panel label:hover{background:#2f5fd014}#menu-panel section{flex-direction:column;display:flex}#menu-panel .about{margin:0}dialog.sheet .about p{line-height:1.5}@media (width<=520px){#corner{width:104px}#minimap{width:104px;height:76px}#status{max-width:104px}}.rune-sheet details.fold{border-bottom:1px solid var(--line)}.rune-sheet details.fold>summary{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;padding:12px 2px;font-size:17px;font-weight:600;list-style:none;display:flex}.rune-sheet details.fold>summary::-webkit-details-marker{display:none}.rune-sheet details.fold>summary:before{content:"";border-bottom:2px solid #7a8394;border-right:2px solid #7a8394;width:8px;height:8px;margin:0 4px;transition:transform .15s;transform:rotate(-45deg)}.rune-sheet details.fold[open]>summary:before{transform:rotate(45deg)}.rune-sheet details.fold[open]{padding-bottom:12px}.panel label{cursor:pointer}.panel input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);margin:0 2px}.panel .swatches{color:#5b6475;flex-wrap:wrap;gap:4px 12px;padding:4px 12px 8px;font-size:12px;display:flex}.panel .grid-controls{color:#5b6475;padding:0 12px 6px 40px;font-size:12px}.panel .grid-controls[hidden]{display:none}.panel .grid-angle{align-items:center;gap:8px;display:flex}.panel .grid-angle input{min-width:0;accent-color:var(--accent);flex:1}.panel .grid-angle span{text-align:right;min-width:3ch}.panel .pen-distances{margin:2px 0 0;line-height:1.4}.panel .swatches span:before{content:"";background:var(--swatch);border-radius:3px;width:10px;height:10px;margin-right:5px;display:inline-block}#ticks{bottom:8px;left:50%;transform:translate(-50%)}#ticks .when-playing,#ticks[data-paused] .when-paused{display:inline-flex}#ticks[data-paused] .when-playing,#ticks:not([data-paused]) .when-paused{display:none}@media (width<=520px){#ticks{bottom:64px}}dialog.message .facts{color:#5b6475;margin:0 0 8px;font-size:13px}dialog.message pre{white-space:pre-wrap;word-break:break-word;background:#f4f6fa;border-radius:8px;max-height:50vh;margin:0;padding:12px;font:13px ui-monospace,monospace;overflow:auto}dialog.message .more{font:inherit;margin-top:12px;padding:6px 12px}.rune-sheet .digits{flex-wrap:wrap;gap:8px;margin:8px 0 0;display:flex}.rune-sheet .digits figure{text-align:center;color:#666;margin:0;font-size:11px}.rune-sheet .digits svg{stroke:#333;stroke-width:1.5px;fill:none;width:40px;height:48px;display:block}#present-exit{background:var(--panel);border:1px solid var(--line);display:none;position:fixed;top:8px;right:8px;box-shadow:0 2px 10px #141e3c1f}body.presenting #present-exit{display:inline-flex}body.presenting #ink,body.presenting .strip,body.presenting #corner{display:none}body.presenting #live>:not(.presented){visibility:hidden}.panel button:disabled{opacity:.4}
