:root{color-scheme:dark;--ground:oklch(.20 .018 70);--sheet:oklch(.96 .025 85);--hover:oklch(.90 .04 85);--ink:oklch(.24 .025 65);--muted:oklch(.48 .025 65);--line:oklch(.80 .035 80);--accent:oklch(.40 .065 155);--accent-strong:oklch(.32 .065 155);--s1:6px;--s2:12px;--s3:20px;--s4:32px;--s5:48px;--ease:cubic-bezier(.23,1,.32,1);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums}
*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--sheet)}button,input,select{font:inherit}button,a,input,select{outline:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid color-mix(in oklch,var(--accent),transparent 30%);outline-offset:0}button{border:1px solid var(--line);border-radius:6px;background:var(--sheet);color:var(--ink);padding:6px 12px;min-height:36px;cursor:pointer;transition:background 160ms var(--ease),transform 110ms var(--ease)}button:active{transform:scale(.98)}button:disabled{opacity:.5;cursor:default;transform:none}button.primary{background:var(--accent);border-color:var(--accent);color:var(--sheet)}button.primary:hover{background:var(--accent-strong)}input,select{width:100%;min-height:38px;border:1px solid var(--line);border-radius:6px;background:var(--sheet);color:var(--ink);padding:6px 12px}input:focus{border-color:var(--accent)}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23595743'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}a{color:inherit}h1,h2,p{margin:0}h1{font-size:25px;line-height:1.25}h2{font-size:21px;line-height:1.35}small,.muted{color:var(--muted)}[hidden]{display:none!important}#scene{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}.hud{position:fixed;inset:20px 20px auto;display:flex;align-items:start;justify-content:space-between;gap:12px;pointer-events:none}.hud>*{pointer-events:auto}.identity{text-shadow:0 1px 4px oklch(.15 .02 60);max-width:50%}.identity h1{font-size:20px}.identity p{font-size:13px}.actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:end}.help{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:20px;right:20px;display:flex;justify-content:space-between;align-items:end;gap:20px;pointer-events:none}.help p{max-width:680px;font-size:13px;text-shadow:0 1px 4px oklch(.15 .02 60)}#hover{position:fixed;top:56%;left:50%;transform:translateX(-50%);background:var(--ground);padding:6px 12px;max-width:80%;text-align:center;border-radius:6px;pointer-events:none}.reticle{position:fixed;top:50%;left:50%;width:4px;height:4px;background:var(--sheet);border-radius:2px;pointer-events:none}.overlay{position:fixed;inset:0;background:oklch(.15 .02 60 / .78);overflow-y:auto;padding:32px 20px;overscroll-behavior:contain}.sheet{max-width:700px;margin:auto;background:var(--sheet);color:var(--ink);padding:32px;border-radius:12px;overflow-wrap:anywhere}.sheet header{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:20px}.sheet h1{margin-bottom:12px}.sheet p{white-space:pre-line}.sheet footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.eyebrow{font-size:11px;font-weight:650;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.toolbar label{font-size:13px}.list{list-style:none;padding:0;margin:0}.list li{border-bottom:1px solid var(--line)}.list button{width:100%;border:0;border-radius:0;text-align:left;padding:12px 0;background:transparent}.list strong,.list small{display:block}.list button:hover{background:var(--hover)}.welcome{position:fixed;inset:0;display:grid;place-items:center;background:var(--ground);padding:20px;overflow-y:auto}.welcome .sheet{width:min(100%,480px)}.welcome form{display:grid;gap:12px;margin-top:20px}.welcome label{font-weight:600}#load-state{position:fixed;inset:0;display:grid;place-items:center;background:var(--ground);z-index:10;padding:20px;text-align:center}#load-state p{margin:12px 0}#fade{position:fixed;inset:0;background:var(--ground);pointer-events:none;opacity:0;transition:opacity 180ms var(--ease);z-index:9}#fade.on{opacity:1}.error{color:oklch(.48 .17 25);min-height:1.5em}.inline-error{color:var(--sheet)}@media(hover:hover) and (pointer:fine){button:hover{background:var(--hover)}}@media(max-width:600px){.hud{inset:12px 12px auto;display:block}.identity{max-width:100%;margin-bottom:12px}.identity h1{font-size:18px}.actions{justify-content:start}.actions button{min-height:44px}.help{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.help p{font-size:12px}.overlay{padding:12px}.sheet{padding:20px;border-radius:8px}.sheet header{gap:12px}.sheet button{min-height:44px}.toolbar{grid-template-columns:1fr}.sheet footer{flex-wrap:wrap}.welcome{align-items:center}}@media(pointer:coarse){input,select,textarea{font-size:16px!important}button{min-height:44px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
