
*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#131a1b;color:#efeee4;font:16px/1.48 system-ui,sans-serif}
main{max-width:986px;margin:auto;padding:32px clamp(14px,4vw,36px) 48px}h1,h2,p{margin:0}
header{border-bottom:1px solid #405150;padding:0 0 20px}
.brand{color:#93d5c5;font:600 12px/1.5 ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}
h1{font:500 clamp(34px,6vw,59px)/1.08 Georgia,serif;letter-spacing:-.045em;margin:4px 0 8px}
.intro,.help,.small{color:#b9c9c3}.intro{font-size:17px;max-width:62ch}
.box{margin-top:16px;padding:18px 20px;background:#1d2829;border:1px solid #3e5150;border-radius:13px}
.row,.choice,.below,.sectionhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sectionhead,.below{justify-content:space-between}.row+.row{margin-top:12px}
h2{font:500 23px/1.2 Georgia,serif;color:#f4eedb}.sectionhead{margin-bottom:14px}
h3{margin:16px 0 8px;font:600 12px/1.5 ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;color:#93d5c5}
button,select{font:inherit;border:1px solid #556864;background:#243433;color:#f1eee2;border-radius:6px;padding:7px 10px}
button{cursor:pointer}button:hover{background:#344a46}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #f7c77b;outline-offset:2px}
button:disabled{opacity:.48;cursor:default}
.choice{gap:0}.choice button{border-radius:0;margin-left:-1px}.choice button:first-child{border-radius:6px 0 0 6px;margin-left:0}.choice button:last-child{border-radius:0 6px 6px 0}
.choice button[aria-pressed=true],.primary{background:#e0bf83;color:#182321;border-color:#e0bf83;font-weight:650}
.choice button[aria-pressed=true]:hover{background:#f3d197}
.presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.presets button{border-radius:18px;padding:7px 14px}.presets button[aria-pressed=true]{background:#3e392b;border-color:#e0bf83;color:#f4d491}
kbd{font:600 11px ui-monospace,monospace;opacity:.66;margin-left:6px;padding:1px 4px;border:1px solid currentColor;border-radius:3px}
label{color:#cfdbd5;font-size:14px}.field{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.sliders{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px 22px}
.slider{display:grid;gap:3px;min-width:0}.slider .top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.slider b{font:600 13px ui-monospace,monospace;color:#f1ce88}
input[type=range]{accent-color:#e0bf83;width:100%;margin:0}
.small,.help{font-size:13px}.help{margin-top:10px;max-width:74ch}
.mouth{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.onset{grid-template-columns:repeat(6,minmax(0,1fr))}
.mouth button{padding:8px 2px 6px;display:grid;gap:1px;justify-items:center;min-width:0}
.mouth .name{font-weight:650;font-size:15px}.mouth .alt{font:11px ui-monospace,monospace;opacity:.6;min-height:14px}.mouth .num{font:600 10px ui-monospace,monospace;opacity:.6}
.mouth button[aria-pressed=true]{background:#3e392b;border-color:#e0bf83;color:#f4d491}
.steps{grid-template-columns:repeat(10,minmax(0,1fr));margin-bottom:6px}.steps .name{font:600 12px ui-monospace,monospace}.nokeys .num{visibility:hidden}
.keybed{display:flex;gap:3px;height:clamp(118px,20vw,164px);margin:14px 0 10px;user-select:none;-webkit-user-select:none;touch-action:none}
.keybed button{flex:1;min-width:0;padding:5px 0 8px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;touch-action:none;transition:background 60ms}
.white,.white:hover{background:#eee7d5;color:#212925;border:1px solid #d5c9b2;border-radius:4px 4px 8px 8px;box-shadow:inset 0 -5px 0 #b8af96}
.black,.black:hover{flex:.72!important;align-self:flex-start;height:64%;background:#273434;color:#f8eddb;border-color:#121c1d;border-radius:0 0 5px 5px;box-shadow:inset 0 -5px 0 #172221}
.white[aria-pressed=true]{background:#eec272;box-shadow:inset 0 -3px 0 #b28344}.black[aria-pressed=true]{background:#b47e40;box-shadow:inset 0 -3px 0 #795433}
.white.root:not([aria-pressed=true])::before{content:"";width:6px;height:6px;border-radius:50%;background:#b28344;margin-bottom:auto;margin-top:4px}
.letter{font:600 10px ui-monospace,monospace;opacity:.62}.pitch{font:600 clamp(11px,1.7vw,15px) system-ui}
.monitor{color:#f3d292;font-weight:600;min-height:24px}.monitor2{font:13px ui-monospace,monospace;color:#a7d4c8}
.transport{min-height:24px;margin-top:8px;color:#b7dbd0}
.rec[aria-pressed=true]{background:#7a2f28;border-color:#e58a7c;color:#ffe9e2}
details{margin-top:16px;color:#bbcac3;font-size:13px}summary{cursor:pointer;color:#dce2d8}details p{margin-top:7px;max-width:80ch}
[hidden]{display:none!important}
@media(max-width:600px){main{padding:18px 10px 36px}.box{padding:13px 11px}.onset{grid-template-columns:repeat(3,minmax(0,1fr))}.steps{grid-template-columns:repeat(5,minmax(0,1fr))}.keybed .letter{display:none}}
