.hk-fn{--fn-accent:#57c4c0;border:1px solid #43545d;border-radius:14px;padding:clamp(18px,3vw,30px);color:#eef4f5;background:#10161a;box-shadow:0 12px 30px #0002}.hk-fn .fn-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:22px}.hk-fn .fn-top h2{font-size:1.1rem;margin:0}.hk-fn .fn-top>span,.hk-fn .fn-small{font-size:.82rem;color:#bfced4}.hk-fn .fn-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.hk-fn label{font-weight:600;font-size:.9rem;display:block;margin:0 0 7px}.hk-fn .fn-inputs input{width:100%;min-width:0;min-height:48px;border:1px solid #617680;border-radius:7px;padding:10px 12px;font-size:1.6rem;font-variant-numeric:tabular-nums;color:#82dcd7;background:#10191e}.hk-fn .fn-inputs input[aria-invalid=true]{border-color:#e5aa6c}.hk-fn .fn-small{line-height:1.6;margin:8px 0 16px}.hk-fn .fn-result{margin:0;background:#182328;border:1px solid #536a74;border-radius:10px;padding:20px;text-align:center;display:flex;flex-direction:column;align-items:center;min-width:0}.hk-fn #fn-result-note{font-size:2.8rem;font-weight:600;color:#7edbd5;line-height:1.2}.hk-fn #fn-alternate{color:#c5d6dc;font-size:1rem;margin-top:3px}.hk-fn #fn-nearest{font-variant-numeric:tabular-nums;margin:10px 0}.hk-fn #fn-result-cents{font-variant-numeric:tabular-nums;font-size:1.1rem;color:#eef4f5}.hk-fn .fn-cent-track{position:relative;width:100%;height:12px;border-radius:6px;background:#30464f;margin:14px 0 4px}.hk-fn .fn-cent-track:before{content:'';position:absolute;left:50%;top:-3px;height:18px;width:1px;background:#c6d9dd}.hk-fn #fn-cent-needle{position:absolute;left:50%;top:-2px;height:16px;width:4px;background:#57c4c0;border-radius:2px;transform:translateX(-50%)}.hk-fn .fn-cent-ticks{display:flex;justify-content:space-between;width:100%;font-size:.7rem;color:#b9cbd1}.hk-fn #fn-direction{margin:10px 0 14px;min-height:2.6em}.hk-fn button{min-height:44px;border:1px solid #617680;border-radius:7px;padding:9px 14px;background:#233138;color:#eef4f5}.hk-fn button:hover{background:#2e494e;color:white}.hk-fn button:disabled{opacity:.45;cursor:not-allowed}.hk-fn .fn-transport{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}.hk-fn .fn-transport label{margin:0}.hk-fn select{min-height:44px;max-width:100%;border:1px solid #617680;border-radius:7px;background:#172127;color:#eef4f5;padding:9px 12px}.hk-fn #fn-listen{background:#57c4c0;color:#10161a;border-color:#57c4c0;min-width:175px}.hk-fn #fn-listen:hover{background:#87ddd9;color:#10161a}.hk-fn .fn-feedback{min-height:1.5em;font-size:.88rem;color:#f3cb98;margin:12px 0 14px}.hk-fn .fn-keyboard-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid #43545d;padding-top:16px}.hk-fn .fn-keyboard-bar label{margin:0}.hk-fn #fn-keyboard-range{font-size:.82rem;color:#b9cbd1}.hk-fn .fn-piano{isolation:isolate;height:150px;margin:16px 0 10px;overflow:hidden}.hk-fn .fn-key-white{height:150px;z-index:1}.hk-fn .fn-key-black{height:94px;z-index:3}.hk-fn .fn-key-white.is-selected{box-shadow:inset 0 0 0 3px #14726f}.hk-fn .fn-key-black.is-selected{box-shadow:inset 0 0 0 3px #81e2dc}.hk-fn .fn-key[aria-disabled=true]{cursor:not-allowed;opacity:.42}.hk-fn .fn-key-label{font-size:.65rem;font-weight:600}.hk-fn :is(button,input,select):focus-visible{outline:2px solid #bce9e7;outline-offset:3px}.hk-fn .fn-reference-table,.hk-fn .piano-help{border-top:1px solid #43545d;margin-top:14px;padding-top:8px}.hk-fn summary,.fn-formula summary{cursor:pointer;font-weight:600;padding:8px 0}.hk-fn .piano-help p{font-size:.87rem;line-height:1.7;color:#c4d3d9}.hk-fn table{border-collapse:collapse;width:100%;margin-top:12px;font-variant-numeric:tabular-nums}.hk-fn caption{text-align:left;color:#bfced4;padding:8px 0;font-size:.82rem}.hk-fn th,.hk-fn td{border-bottom:1px solid #43545d;padding:7px 10px;font-size:.86rem;text-align:right}.hk-fn th:first-child{text-align:left}.fn-explanation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.fn-explanation h3{font-size:1rem;margin:0 0 8px}.fn-explanation p{font-size:.92rem;line-height:1.65;margin:0}.fn-formula p{max-width:76ch}
@media(max-width:600px){.hk-fn .fn-workspace{grid-template-columns:1fr;gap:20px}.hk-fn .fn-transport select{flex:1;min-width:0}.hk-fn .fn-transport #fn-listen{width:100%}.hk-fn .fn-result{padding:18px}.hk-fn .fn-key-label{font-size:.65rem}.hk-fn .fn-key-black .fn-key-label{display:none}.fn-explanation{grid-template-columns:1fr;gap:18px}.hk-fn .fn-top>span{font-size:.76rem}.hk-fn #fn-direction{min-height:0}}

/* Local workspace controls: no changes to the shared keyboard. */
.hk-fn .fn-step{font-size:1rem;margin:24px 0 12px}.hk-fn .fn-transport{margin-top:0}.hk-fn .fn-measure-field{min-width:0}.hk-fn .fn-actions{display:flex;flex-wrap:wrap;gap:8px}.hk-fn .fn-volume{display:grid;grid-template-columns:max-content minmax(80px,240px) 4ch;align-items:center;gap:12px;margin-top:18px}.hk-fn .fn-volume label{margin:0}.hk-fn .fn-volume input{width:100%;min-width:0;min-height:44px;accent-color:var(--fn-accent)}.hk-fn .fn-volume output{font-size:.85rem;font-variant-numeric:tabular-nums;white-space:nowrap}.hk-fn .fn-keyboard-bar{border-top:0;padding-top:0}
@media(max-width:600px){.hk-fn .fn-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.hk-fn .fn-measure-field label{min-height:2.8em}.hk-fn .fn-inputs input{font-size:1.4rem;padding:10px 8px}.hk-fn .fn-actions{grid-column:1/-1}.hk-fn .fn-actions button{flex:1;padding:9px 7px;font-size:.82rem}.hk-fn .fn-volume{grid-template-columns:1fr 4ch;gap:4px 10px}.hk-fn .fn-volume label{grid-column:1/-1}.hk-fn .fn-transport label{width:100%}}

.hk-fn .fn-keyboard-sound{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.hk-fn .fn-keyboard-sound label{margin:0}
