:root{--bg: #f7f6f2;--surface: #ffffff;--surface-2: #f0efe9;--fg: #1d1d1f;--muted: #55555a;--line: #c9c7c0;--line-strong: #a8a69e;--accent: #2459c4;--accent-ink: #ffffff;--in-scale: #ffd166;--in-scale-ink: #4a3600;--out-scale: #e6e4de;--out-scale-ink: #45454a;--active: #b8244a;--active-ink: #ffffff;--row-hl: #fff4d6;--focus: #2459c4;--radius: 8px;--tap: 44px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--fg);background:var(--bg);accent-color:var(--accent)}@media(prefers-color-scheme:dark){:root{--bg: #17171b;--surface: #212126;--surface-2: #2a2a30;--fg: #edece7;--muted: #b0afa8;--line: #3d3d44;--line-strong: #56565e;--accent: #8db1ff;--accent-ink: #0d1530;--in-scale: #e3b544;--in-scale-ink: #2a1e00;--out-scale: #2f2f36;--out-scale-ink: #c8c7c0;--active: #ff7a99;--active-ink: #2a0610;--row-hl: #312b17;--focus: #8db1ff}}*{box-sizing:border-box}body{max-width:1100px;margin:0 auto;padding:1.25rem;line-height:1.5}::selection{background:var(--in-scale);color:var(--in-scale-ink)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}h1{margin:0;font-size:clamp(1.4rem,1rem + 1.6vw,1.75rem);line-height:1.2;text-wrap:balance}h2{font-size:1.1rem;margin:2rem 0 .4rem;text-wrap:balance}.formula{color:var(--muted);margin:.25rem 0 1.25rem}.controls{display:flex;flex-wrap:wrap;gap:.9rem 1rem;align-items:end}.controls label{display:flex;flex-direction:column;gap:.3rem;font-size:.85rem;color:var(--muted)}.controls label.wide{min-width:min(100%,22rem)}select,input,button{font:inherit;color:var(--fg);background:var(--surface);min-height:var(--tap);padding:.45rem .7rem;border-radius:6px;border:1px solid var(--line)}input[type=number]{width:9rem;font-variant-numeric:tabular-nums}input[type=range]{padding:0;border:0;background:none;width:10rem}select:hover,input:hover,button:hover{border-color:var(--line-strong)}.status{min-height:1.5em;margin:.75rem 0 0;color:var(--muted);font-size:.9rem}.status:empty{margin:0}.info{margin-top:1rem;padding:1rem 1.1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);max-width:72ch}.info .lead{margin:0 0 .75rem;font-size:1.05rem}.info .facts{display:grid;grid-template-columns:max-content 1fr;gap:.3rem 1rem;margin:0 0 .9rem}.info dt{color:var(--muted)}.info dd{margin:0;font-variant-numeric:tabular-nums}.info .subhead{font-size:.85rem;font-weight:600;color:var(--muted);margin:0 0 .4rem;text-wrap:balance}.intervals{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.35rem}.intervals li{display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:.5rem;padding:.3rem .55rem;background:var(--surface-2);border-radius:6px;font-size:.85rem;font-variant-numeric:tabular-nums}.intervals li.in{background:var(--row-hl)}.intervals span{white-space:nowrap}.intervals .err{color:var(--muted);margin-left:auto}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--surface-2);padding:.05rem .35rem;border-radius:4px;font-size:.95em}.nw{white-space:nowrap}.actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.actions button{display:inline-flex;align-items:center;gap:.45rem;cursor:pointer}.actions button svg{width:1.1rem;height:1.1rem;flex:none;color:var(--accent)}.actions button.quiet svg{color:var(--muted)}.actions button:active{background:var(--surface-2)}.hint{color:var(--muted);font-size:.9rem;margin:0 0 .75rem;max-width:72ch}.hint-coarse{display:none}@media(hover:none)and (pointer:coarse){.hint-fine{display:none}.hint-coarse{display:block}}kbd{font:inherit;font-size:.85em;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;padding:0 .3rem;background:var(--surface)}.keyboard{display:flex;gap:3px;overflow-x:auto;padding:2px 2px .6rem;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.key{flex:1 0 var(--tap);min-height:128px;margin:0;padding:.35rem 0;border-radius:0 0 6px 6px;border:1px solid var(--line-strong);display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:.1rem;font-size:.8rem;line-height:1.2;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:pointer;background:var(--out-scale);color:var(--out-scale-ink)}.key.in-scale{background:var(--in-scale);color:var(--in-scale-ink);font-weight:600}.key.root{box-shadow:inset 0 -4px 0 var(--accent)}.key.active{background:var(--active);color:var(--active-ink)}.key .step{font-weight:400;font-variant-numeric:tabular-nums}.key:hover{border-color:var(--fg)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;font-size:.9rem;background:var(--surface);font-variant-numeric:tabular-nums}caption{text-align:left;color:var(--muted);font-size:.85rem;padding:0 0 .4rem}th,td{border:1px solid var(--line);padding:.3rem .65rem;text-align:right}th{background:var(--surface-2);font-weight:600}tr.in-scale>*{background:var(--row-hl)}tbody th{font-weight:500}@media(max-width:520px){body{padding:1rem}.controls label{flex:1 1 calc(50% - .5rem)}.controls label.wide{flex-basis:100%}.controls select,.controls input[type=number],.controls input[type=range]{width:100%}.actions button{flex:1 1 auto;justify-content:center}}
