/* HertzKit first experience sample. Scoped: production pages retain their styles. */
.hk-studio-preview{--lab-bg:#0d151b;--lab-panel:#151f27;--lab-line:#33424c;--lab-text:#edf1ef;--lab-muted:#afbdc3;--lab-accent:#6accc0;background:var(--lab-bg);color:var(--lab-text)}
.hk-studio-preview main>.wrap,.hk-studio-preview .wrap{max-width:1180px}.lab-ribbon{max-width:1180px;margin:1.1rem auto 0;padding:0 20px;display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.78rem}.lab-ribbon a{color:var(--lab-muted)}.lab-ribbon span{color:#d8ad79;letter-spacing:.08em}.hk-studio-preview .tool-header{padding-top:1.6rem;margin-bottom:1.6rem}.hk-studio-preview .tool-header h1{max-width:950px;font-size:clamp(2rem,3.5vw,3.1rem);line-height:1.16;letter-spacing:-.025em}.hk-studio-preview .tool-intro{max-width:820px;line-height:1.7;color:#c0ccd0}.hk-studio-preview .hk-workspace-category{color:#d8ad79;letter-spacing:.1em;font-size:.75rem}.hk-studio-preview .tool-panel{background:var(--lab-panel);border:1px solid var(--lab-line);border-radius:14px;box-shadow:0 16px 50px #00000020}.hk-studio-preview input,.hk-studio-preview select,.hk-studio-preview textarea{background:#10191f;color:var(--lab-text);border-color:#41515c;border-radius:8px}.hk-studio-preview label{color:#cfdbde;font-size:.88rem}.hk-studio-preview button,.hk-studio-preview a.btn{min-height:44px}.hk-studio-preview a.btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;text-decoration:none}.hk-studio-preview :focus-visible{outline:2px solid #e5b780;outline-offset:4px}.hk-studio-preview details>summary{color:#c8d5d8}.hk-studio-preview .btn{font-weight:600}.hk-studio-preview progress{accent-color:var(--lab-accent)}
.lab-start{display:flex;align-items:flex-start;gap:.7rem;max-width:900px;margin:0 0 1.2rem;color:#becbd0;font-size:.92rem}.lab-start p{margin:0}.lab-dot{width:7px;height:7px;border-radius:50%;background:#d8ad79;flex:0 0 7px;margin-top:.6rem}
.hk-studio-preview .cp-workspace{padding:1.5rem}.hk-studio-preview .cp-global{padding-bottom:1.2rem;border-bottom:1px solid var(--lab-line);gap:1rem}.hk-studio-preview .cp-global select{min-height:46px}.lab-sound{display:grid;grid-template-columns:minmax(160px,240px) minmax(180px,260px) 1fr;align-items:center;gap:1.1rem;padding:1.2rem 0}.lab-sound label{display:grid;gap:.4rem}.lab-volume{display:flex;align-items:center;gap:.8rem}.lab-volume input{width:100%;min-width:60px}.lab-volume output{min-width:3.2rem;font-variant-numeric:tabular-nums;font-size:.8rem;color:var(--lab-muted)}.lab-sound-state{font-size:.8rem;color:var(--lab-muted);text-align:right}.hk-studio-preview .cp-transport{position:sticky;top:8px;z-index:12;display:flex;align-items:center;gap:.65rem;background:#1c2a32;border:1px solid #41515a;border-radius:10px;padding:.8rem;box-shadow:0 6px 20px #00000025}.hk-studio-preview .cp-transport .btn{margin:0}.hk-studio-preview .cp-position,.hk-studio-preview #cp-position{margin-left:auto;font-size:.85rem;font-variant-numeric:tabular-nums}.hk-studio-preview .cp-status{min-height:1.5em;padding:.6rem 0;font-size:.9rem;color:#c5d2d6}.hk-studio-preview .cp-chord{background:#101a21;border:1px solid #3a4852;border-radius:10px;box-shadow:none;transition:border-color .12s,background .12s}.hk-studio-preview .cp-chord-active{background:#173330;border-color:#76d2c5;box-shadow:inset 0 -3px #76d2c5}.hk-studio-preview .cp-symbol{font-size:2.4rem;margin:.6rem 0}.hk-studio-preview .cp-numeral{color:#d7b58e;letter-spacing:.04em}.hk-studio-preview .cp-voicing{color:#b4c2c8;line-height:1.6;font-size:.8rem;min-height:2.5em}.hk-studio-preview .cp-steps{gap:1rem}.hk-studio-preview .cp-settings{border-top:1px solid var(--lab-line);padding:1rem 0;margin:.8rem 0 0}.hk-studio-preview .cp-export{padding:1.3rem 0 .3rem}.hk-studio-preview .cp-caption{color:var(--lab-muted)}.hk-studio-preview .cp-edit summary{font-size:.85rem}.hk-studio-preview .cp-actions .btn--secondary{font-size:.83rem}
.lab-task-nav{display:flex;gap:.25rem;border:1px solid #354852;border-radius:10px;padding:4px;margin:0 0 1.2rem;max-width:580px;background:#101920}.lab-task-nav a{flex:1;text-align:center;text-decoration:none;color:#b7c7cd;padding:.7rem .9rem;border-radius:7px;font-size:.9rem}.lab-task-nav a[aria-current]{background:#243c42;color:#e3f7f2;font-weight:600}.hk-studio-preview .ae-workspace{grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:1.8rem;padding:1.5rem}.hk-studio-preview .ae-listen,.hk-studio-preview .ae-edit{min-width:0}.hk-studio-preview .ae-listen>h2,.hk-studio-preview .ae-edit>h2{font-size:1.25rem;margin-bottom:1.2rem}.lab-step{display:inline-flex;width:25px;height:25px;border-radius:50%;background:#274540;color:#92e1d3;align-items:center;justify-content:center;font:600 .8rem system-ui;margin-right:.45rem;vertical-align:middle}.hk-studio-preview .ae-file-row{gap:.65rem;align-items:center}.hk-studio-preview .ae-file-button,.hk-studio-preview .ae-file-row button{border-radius:8px;padding:.7rem 1rem;min-height:44px;box-sizing:border-box}.hk-studio-preview .ae-file-button{background:#65c7bb;color:#09201f;border:1px solid #65c7bb;font-weight:600}.hk-studio-preview .ae-file-row button{background:transparent;border:1px solid #41525b;color:#cad7db}.hk-studio-preview .ae-wave{height:200px;border-radius:9px;border:1px solid #354752;background:#0b141a}.hk-studio-preview .ae-source-switch{margin:1.1rem 0 .8rem;gap:.4rem}.hk-studio-preview .ae-source-switch button{border-radius:8px}.hk-studio-preview .ae-source-switch button[aria-pressed=true]{background:#253e45;color:#e4f5f2;border-color:#537a7e}.hk-studio-preview .ae-transport{justify-content:flex-start;gap:.6rem;margin:1rem 0}.hk-studio-preview .ae-transport button{min-width:44px;border-radius:8px}.hk-studio-preview .ae-note,.hk-studio-preview .ae-caption{font-size:.82rem;line-height:1.65;color:#aebfc6}.hk-studio-preview .ae-edit{border-left:1px solid #33434c;padding-left:1.5rem}.hk-studio-preview .ae-edit>label,.hk-studio-preview .ae-edit>.ae-fade-row,.hk-studio-preview .ae-edit>.ae-normalize{margin:1rem 0}.hk-studio-preview .ae-actions{border-top:1px solid #34464e;padding-top:1rem;margin-top:1.2rem;display:flex;flex-wrap:wrap;gap:.6rem}.hk-studio-preview .ae-actions a[download]{display:inline-flex;min-height:44px;align-items:center;padding:.6rem 1rem;border-radius:8px;background:#6accc0;color:#0b2420;font-weight:600;text-decoration:none}.hk-studio-preview #ae-join-count{padding:.8rem .9rem;background:#20313b;border-radius:8px;color:#d0e7e3;margin-top:1rem}.hk-studio-preview .ae-result-details{background:#152f2b;border-color:#41645a}.hk-studio-preview .st-times input{min-height:44px}.hk-studio-preview .hk-tool-instructions{box-shadow:none}.hk-studio-preview .hk-support-details>summary{font-weight:500}
.lab-audio-lesson{background:#15232b;border:1px solid #3c535c;border-radius:14px;padding:1.5rem;margin:1.8rem 0 2.4rem}.lab-eyebrow{font-size:.74rem;letter-spacing:.12em;color:#e2b17b;font-weight:600}.lab-audio-lesson h2{font-size:1.8rem;line-height:1.25}.lab-audio-lesson figure{margin:1.4rem 0}.lab-audio-lesson img{max-width:100%;width:100%;height:auto}.lab-audio-lesson figcaption,.lab-credit{font-size:.8rem;color:#afc0c5;line-height:1.6}.lab-audio-pair{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin:1.3rem 0}.lab-audio-pair h3{font-size:.9rem;margin:0 0 .6rem}.lab-audio-pair audio{width:100%;max-width:100%;height:44px}.lab-review{max-width:1180px;margin:0 auto;padding:2.4rem 20px 4rem}.lab-review h1{font-size:clamp(2.2rem,4vw,3.8rem);max-width:840px}.lab-review .lab-lead{font-size:1.12rem;line-height:1.7;max-width:800px;color:#bdcbd0}.lab-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:2rem 0}.lab-review-card{border-top:2px solid #59786f;background:#142128;padding:1.4rem;border-radius:0 0 12px 12px;display:flex;flex-direction:column;gap:.6rem}.lab-review-card h2{font-size:1.6rem;margin:.2rem 0}.lab-review-card p{color:#b7c8ce;line-height:1.7}.lab-review-card>a{margin-top:auto;color:#8ad9ca;font-weight:600}.lab-review-status{display:flex;flex-wrap:wrap;gap:.7rem 1.5rem;border-block:1px solid #34444b;padding:1rem 0;color:#b4c5ca;font-size:.85rem}.lab-next{max-width:800px;line-height:1.75;margin-top:2rem}.lab-next h2{font-size:1.5rem}.lab-next p{color:#afc1c6}
@media(max-width:850px){.hk-studio-preview .ae-workspace{grid-template-columns:1fr}.hk-studio-preview .ae-edit{border-left:0;border-top:1px solid #34454e;padding-left:0;padding-top:1.2rem}.lab-review-grid{grid-template-columns:1fr}.lab-sound{grid-template-columns:1fr 1fr}.lab-sound-state{grid-column:1/-1;text-align:left;font-size:.76rem}.hk-studio-preview .cp-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.hk-studio-preview .tool-header{padding-top:1.1rem;margin-bottom:1.2rem}.hk-studio-preview .tool-intro{font-size:.95rem;line-height:1.6}.lab-ribbon{padding-inline:16px;font-size:.68rem}.hk-studio-preview .cp-workspace,.hk-studio-preview .ae-workspace{padding:1rem}.hk-studio-preview .cp-global{grid-template-columns:1fr 1fr}.hk-studio-preview .cp-global label:last-child{grid-column:1/-1}.hk-studio-preview .cp-transport{flex-wrap:wrap;gap:.5rem;padding:.65rem;top:4px}.hk-studio-preview .cp-transport .cp-tempo{width:85px;flex:none}.hk-studio-preview .cp-transport .cp-tempo input{width:75px}.hk-studio-preview #cp-position{font-size:.75rem}.hk-studio-preview .cp-chord{padding:.8rem}.hk-studio-preview .cp-symbol{font-size:1.9rem}.hk-studio-preview .cp-card-head{flex-wrap:wrap;gap:.3rem}.hk-studio-preview .cp-length{font-size:.7rem}.hk-studio-preview .cp-sequence-head{align-items:flex-start;gap:.6rem}.hk-studio-preview .cp-actions{gap:.35rem}.hk-studio-preview .cp-actions .btn--secondary{padding:.5rem .65rem;font-size:.74rem}.lab-sound{gap:.6rem;padding:.9rem 0}.lab-task-nav a{font-size:.78rem;padding:.65rem .4rem}.hk-studio-preview .ae-wave{height:155px}.hk-studio-preview .ae-file-row{flex-wrap:wrap}.hk-studio-preview .ae-listen>h2,.hk-studio-preview .ae-edit>h2{font-size:1.1rem}.lab-audio-pair{grid-template-columns:1fr}.lab-audio-lesson{padding:1rem}.lab-audio-lesson h2{font-size:1.5rem}.lab-review{padding-top:1.5rem}.lab-review-card{padding:1.1rem}.lab-start{font-size:.85rem}.hk-studio-preview .guide-content{padding-inline:0}}

.hk-studio-preview main{padding-top:8px}.hk-studio-preview .lab-ribbon{margin-top:.5rem;margin-bottom:0}.hk-studio-preview .studio-toolbar{margin:0;padding:.5rem 0;border-bottom:0}.hk-studio-preview .tool-header{padding-top:.5rem;margin-top:0;margin-bottom:1.1rem;padding-bottom:.9rem}.hk-studio-preview .tool-header h1{margin:.35rem 0 .7rem}.hk-studio-preview .tool-header .tool-intro{margin:.3rem 0}.hk-studio-preview .lab-sound{padding:.8rem 0}.hk-studio-preview .cp-global{padding-bottom:.9rem}

.hk-studio-preview .cp-workspace h3.cp-symbol{font-size:2.4rem;line-height:1.15;margin:.7rem 0 .65rem}@media(max-width:520px){.hk-studio-preview .cp-workspace h3.cp-symbol{font-size:1.9rem}}

.hk-studio-preview .lab-playback{margin:.25rem 0 1rem;padding:.25rem 0;border-top:0;border-bottom:1px solid var(--lab-line)}.hk-studio-preview .lab-playback>summary{font-size:.82rem;font-weight:500;color:#b9cbce}.hk-studio-preview .lab-playback .lab-sound{padding:.5rem 0 1rem}

@media(max-width:520px){body.hk-studio-preview .cp-workspace .cp-transport button.btn{width:auto;flex:1 1 105px;min-width:105px}.hk-studio-preview .cp-transport .cp-toggle{flex:0 0 auto}.hk-studio-preview .cp-transport #cp-position{flex:1 0 auto;text-align:right}}

/* 271/02 — Chord/scale reference and construction practice. */
.hk-harmony-preview .hm-modes{display:flex;gap:4px;background:#101920;border:1px solid #354852;border-radius:10px;padding:4px;margin:1rem 0;max-width:500px}.hk-harmony-preview .hm-modes button{flex:1;border:0;border-radius:7px;margin:0;background:transparent;color:#bbccd1}.hk-harmony-preview .hm-modes button[aria-pressed=true]{background:#243c42;color:#e3f7f2}.hk-harmony-preview #tf-explore,.hk-harmony-preview .ct-workspace{padding:1.5rem}.hk-harmony-preview .hm-controls{gap:1rem;padding-bottom:1rem;border-bottom:1px solid #34454e}.hk-harmony-preview .hm-controls select,.hk-harmony-preview .ct-controls select{min-height:46px;width:100%}.hk-harmony-preview .tf-title{font-size:clamp(1.5rem,3vw,2.2rem);margin:1.2rem 0}.hk-harmony-preview .tf-notes{gap:.5rem}.hk-harmony-preview .tf-note{background:#101a21;border-color:#3a4d57;border-radius:9px;padding:.8rem 1rem;min-width:65px}.hk-harmony-preview .tf-note.is-root{border-color:#70cdbd;background:#18342f}.hk-harmony-preview .tf-note-name{font-size:1.5rem}.hk-harmony-preview .tf-formula{font-size:.8rem;line-height:1.8;color:#adbec6}.hk-harmony-preview .hm-transport{border-block:1px solid #354852;padding:.8rem 0;margin:1rem 0 0;display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.hk-harmony-preview .hm-status{min-height:1.7em;margin:.5rem 0;color:#b9ccd1}.hk-harmony-preview .hm-table-scroll{max-width:100%;min-width:0;overflow-x:auto}.hk-harmony-preview .fn-piano{height:172px}.hk-harmony-preview .fn-key-white{background:linear-gradient(#e2e8e7,#f9fbf8);border-color:#99a6aa}.hk-harmony-preview .fn-key-black{background:linear-gradient(#29363d,#0d171c);border-color:#050c10}.hk-harmony-preview .fn-key.is-scale{background:#b6d9d1}.hk-harmony-preview .fn-key.is-root{background:#6acabd}.hk-harmony-preview .fn-key-black.is-scale{background:#3b8f84}.hk-harmony-preview .fn-key.is-active{background:#e8b67d!important}.hk-harmony-preview .fn-key:focus-visible{outline:3px solid #e5b780;outline-offset:-4px}.hk-harmony-preview .hm-register{font-size:.78rem;line-height:1.6}.hk-harmony-preview .piano-help,.hk-harmony-preview .hm-reference{border-top:1px solid #34454e;padding-top:1rem;margin-top:1rem}.hk-harmony-preview .hs-instruction{margin:0 0 1.4rem;max-width:780px;color:#c4d2d5;line-height:1.7}.hk-harmony-preview .ct-bench{gap:1.5rem}.hk-harmony-preview .ct-exercise,.hk-harmony-preview .ct-session{background:#101a21;border:1px solid #354751;border-radius:10px;padding:1.2rem;min-width:0}.hk-harmony-preview #ct-task{font-size:1.8rem}.hk-harmony-preview .ct-notes{gap:.45rem}.hk-harmony-preview .ct-notes button{min-height:48px;border-radius:8px;background:#18252e;color:#dfebec;border-color:#4c616c}.hk-harmony-preview .ct-notes button.is-selected{background:#285950;border-color:#8ad9cb;color:#f0fffb}.hk-harmony-preview .ct-notes button.is-answer{border-color:#8ad9cb}.hk-harmony-preview .ct-notes button.is-wrong{border-color:#efaf87;background:#50382d}.hk-harmony-preview .ct-notes button:disabled{opacity:1}.hk-harmony-preview .ct-status{min-height:3em}.hk-harmony-preview .ct-next{margin-top:1rem}.hk-harmony-preview .ct-result{padding:.9rem;background:#1a302e;border:1px solid #456b61;border-radius:8px}.hk-harmony-preview .ct-result[data-state=wrong]{background:#302820;border-color:#886b53}.hk-harmony-preview .ct-result button{margin-top:.6rem}.hk-harmony-preview .ct-workspace[hidden],.hk-harmony-preview #tf-explore[hidden]{display:none!important}
@media(max-width:650px){.hk-harmony-preview #tf-explore,.hk-harmony-preview .ct-workspace{padding:1rem}.hk-harmony-preview .hm-controls,.hk-harmony-preview .ct-controls{grid-template-columns:1fr 1fr}.hk-harmony-preview .hm-controls label:last-child,.hk-harmony-preview .ct-controls label:last-child{grid-column:1/-1}.hk-harmony-preview .ct-bench{grid-template-columns:1fr}.hk-harmony-preview .ct-exercise,.hk-harmony-preview .ct-session{padding:.85rem}.hk-harmony-preview .hm-transport button{flex:1}.hk-harmony-preview .hm-caption{width:100%;font-size:.78rem}.hk-harmony-preview .tf-note{padding:.6rem .7rem;min-width:54px}.hk-harmony-preview .tf-note-name{font-size:1.25rem}.hk-harmony-preview .ct-actions{display:flex;flex-wrap:wrap}.hk-harmony-preview .ct-actions #ct-check{flex-basis:100%}.hk-harmony-preview .ct-notes{grid-template-columns:repeat(4,minmax(0,1fr))}.hk-harmony-preview .ct-notes button{font-size:.75rem;padding:.45rem .2rem}.hk-harmony-preview .fn-piano{height:160px}}

.hk-harmony-preview .tf-result h2.tf-title,.hk-harmony-preview #ct-task,.hk-harmony-preview .ct-session h2{font-family:inherit;font-weight:600;letter-spacing:-.02em}.hk-harmony-preview .tf-note.is-root .tf-note-sub{color:#b8dcd4}.hk-harmony-preview .tf-note.is-root .tf-note-name{color:#8ce1cf}

.hk-harmony-preview .hs-help{padding:1rem 1.25rem}.hk-harmony-preview .hs-help>summary{cursor:pointer}.hk-harmony-preview .hs-help>summary h2{display:inline;font-size:1rem;font-family:inherit}.hk-harmony-preview .hs-help .help-block{margin-top:1rem}.hk-harmony-preview .tf-note-sub{color:#b8c9ce}

/* 271/03 — Ear training: listening, answers and comparison. */
.hk-ear-preview .ear-workspace{padding:1.5rem}.hk-ear-preview .ear-config{gap:1rem}.hk-ear-preview .ear-config select,.hk-ear-preview #ear-sound{min-height:46px;width:100%}.hk-ear-preview .ear-sound{margin:.8rem 0 0;padding:.4rem 0;border-bottom:1px solid #34454e}.hk-ear-preview .ear-sound-body{display:flex;gap:1.5rem;align-items:center;padding:1rem 0}.hk-ear-preview .ear-sound-body label{width:240px;max-width:100%;display:grid;gap:.4rem}.hk-ear-preview #ear-sound-status{font-size:.8rem;color:#b8ccd1}.hk-ear-preview .ear-config-note{font-size:.8rem;color:#adbec6;margin:.8rem 0 1.2rem}.hk-ear-preview .ear-bench{gap:1.5rem}.hk-ear-preview .ear-exercise,.hk-ear-preview .ear-session{min-width:0;background:#101a21;border:1px solid #354751;border-radius:10px;padding:1.2rem}.hk-ear-preview .ear-stage-head h2,.hk-ear-preview .ear-session h2{font-family:inherit;font-weight:600}.hk-ear-preview #ear-scope{font-size:.95rem;line-height:1.65;color:#bfd0d5;min-height:3.2em}.hk-ear-preview .ear-transport{background:#1c2a32;border:1px solid #41515a;border-radius:10px;padding:.75rem;gap:.6rem}.hk-ear-preview .ear-transport button{margin:0;min-height:46px}.hk-ear-preview #ear-play{background:#6accc0;color:#092420;border-color:#6accc0}.hk-ear-preview .ear-transport>label{color:#c1d1d5}.hk-ear-preview .ear-status-row{min-height:60px}.hk-ear-preview #ear-feedback{font-size:.88rem;line-height:1.55;color:#bed0d5}.hk-ear-preview #ear-feedback[data-state=error]{color:#ffc1ab}.hk-ear-preview .ear-answer-title{font-family:inherit;font-size:1rem;font-weight:600}.hk-ear-preview .ear-options{gap:.6rem}.hk-ear-preview .ear-options button{min-height:52px;border-radius:8px;background:#182730;color:#e0ecee;border:1px solid #4a626e;padding:.65rem .6rem}.hk-ear-preview .ear-options button:disabled{opacity:.5}.hk-ear-preview .ear-options button.is-answer{opacity:1;border-color:#8ad9cb;background:#214a40;color:#e2fff4}.hk-ear-preview .ear-options button.is-wrong{opacity:1;border-color:#efaf87;background:#50382d;color:#ffe3d1}.hk-ear-preview .ear-result{padding:1rem;background:#1a302e;border:1px solid #456b61;border-radius:8px}.hk-ear-preview .ear-result[data-state=wrong]{background:#302820;border-color:#886b53}.hk-ear-preview .ear-review-empty{color:#afc1c7}.hk-ear-preview .ear-next{margin-top:1rem}.hk-ear-preview .ear-results{margin-top:1rem}.hk-ear-preview .ear-help{padding:1rem 1.25rem}.hk-ear-preview .ear-help>summary{cursor:pointer}.hk-ear-preview .ear-help>summary h2{font-family:inherit;font-size:1rem;display:inline}.hk-ear-preview .ear-help>ol{margin-top:1.2rem}.hk-ear-preview .ear-custom{border-color:#415761;border-radius:8px}.hk-ear-preview .ear-custom label{min-height:40px;align-items:center}
@media(max-width:650px){.hk-ear-preview .ear-workspace{padding:1rem}.hk-ear-preview .ear-config{grid-template-columns:1fr}.hk-ear-preview .ear-config-pair{grid-template-columns:1fr 1fr;gap:.7rem}.hk-ear-preview .ear-config-pair label{min-width:0}.hk-ear-preview .ear-sound-body{display:block;padding:.7rem 0}.hk-ear-preview .ear-sound-body label{width:100%}.hk-ear-preview .ear-bench{grid-template-columns:1fr;gap:1rem}.hk-ear-preview .ear-exercise,.hk-ear-preview .ear-session{padding:.85rem}.hk-ear-preview .ear-transport{grid-template-columns:minmax(0,1fr) 90px;padding:.6rem}.hk-ear-preview .ear-transport>label{grid-column:1/-1}.hk-ear-preview .ear-options{grid-template-columns:repeat(2,minmax(0,1fr))}.hk-ear-preview .ear-options button{font-size:.85rem;min-width:0}.hk-ear-preview #ear-scope{min-height:0}.hk-ear-preview .ear-stage-head h2{font-size:1.15rem}.hk-ear-preview .ear-status-row{min-height:60px}}

.hk-ear-preview .ear-config-pair{align-items:end}

/* 271/04 — Voice practice: select, listen/record, review. */
.hk-vocal-preview .vc-workspace{padding:1.5rem}.hk-vocal-preview .vc-bench{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1.5rem}.hk-vocal-preview .vc-bench>section,.hk-vocal-preview .vc-take{padding:1.2rem;background:#101a21;border:1px solid #354751;border-radius:10px}.hk-vocal-preview .vc-workspace h2,.hk-vocal-preview .vc-workspace h3{font-family:inherit;font-weight:600}.hk-vocal-preview .vc-settings{gap:1rem}.hk-vocal-preview .vc-settings select,.hk-vocal-preview .vc-settings input{min-height:46px}.hk-vocal-preview .vc-settings select{font-size:.88rem}.hk-vocal-preview .vc-device-panel,.hk-vocal-preview .vc-extra-settings{border-top:1px solid #34454e;padding-top:1rem;margin-top:1rem}.hk-vocal-preview .vc-device-panel>summary{font-size:.9rem;min-height:32px}.hk-vocal-preview .vc-device-panel .vc-input-strip{margin:.8rem 0 0;padding:.8rem 0 0;border:0;background:transparent}.hk-vocal-preview .vc-device-panel .vc-input-row{display:flex;flex-wrap:wrap;gap:.6rem}.hk-vocal-preview .vc-device-panel .vc-input-row>div{flex:1 1 100%;min-width:0}.hk-vocal-preview #vc-mic-input{width:100%;min-width:0;min-height:44px}.hk-vocal-preview .vc-device-panel .vc-input-row button{flex:1 1 130px;min-width:0;font-size:.8rem}.hk-vocal-preview .vc-workspace .vc-caption{color:#b2c4cb;font-size:.82rem;line-height:1.65}.hk-vocal-preview .vc-view-label{background:#1a3032;border-color:#74cbbc;border-radius:0 8px 8px 0;line-height:1.65}.hk-vocal-preview .vc-transport{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;padding:.85rem;background:#1c2a32;border:1px solid #41515a;border-radius:10px}.hk-vocal-preview .vc-transport button{margin:0;min-width:0;min-height:46px;font-size:.87rem}.hk-vocal-preview #vc-start{grid-column:1/-1;background:#6accc0;color:#092420;border-color:#6accc0}.hk-vocal-preview .vc-mic-summary{font-size:.75rem;min-height:1.5em;color:#b5c6cd;margin:.7rem 0}.hk-vocal-preview .vc-mic-summary[data-state=on]{color:#e8bb86}.hk-vocal-preview .vc-status{min-height:3.2em;padding:.8rem;border-radius:0 8px 8px 0}.hk-vocal-preview .vc-volume{font-size:.8rem;color:#bcd0d6}.hk-vocal-preview .vc-cue{border-radius:10px}.hk-vocal-preview .vc-chart{background:#0b151a;border-color:#3a505b;height:260px}.hk-vocal-preview .vc-results{padding-top:1.4rem}.hk-vocal-preview .vc-takes-grid{gap:1rem}.hk-vocal-preview .vc-take{box-sizing:border-box}.hk-vocal-preview .vc-view-choices[hidden],.hk-vocal-preview #vc-reference-play[hidden]{display:none!important}.hk-vocal-preview .vc-view-choices button[aria-pressed=true]{background:#254c43;border-color:#80d5c4;color:#e2fff4}.hk-vocal-preview .vc-help{padding:1rem 1.25rem}.hk-vocal-preview .vc-help>summary h2{display:inline;font-family:inherit;font-size:1rem}.hk-vocal-preview .vc-help>summary{cursor:pointer}.hk-vocal-preview .vc-table-wrap{max-width:100%;min-width:0;overflow-x:auto}
@media(max-width:900px){.hk-vocal-preview .vc-bench{grid-template-columns:1fr}}@media(max-width:520px){.hk-vocal-preview .vc-workspace{padding:1rem}.hk-vocal-preview .vc-bench>section{padding:.85rem}.hk-vocal-preview .vc-setup .vc-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.hk-vocal-preview .vc-setup .vc-settings>label:first-child{grid-column:1/-1}.hk-vocal-preview .vc-setup .vc-settings select{font-size:.82rem}.hk-vocal-preview .vc-setup .vc-settings>label[for=vc-tone]{grid-column:1/-1}.hk-vocal-preview .vc-extra-settings .vc-settings>label:first-child{grid-column:auto}.hk-vocal-preview .vc-transport{padding:.6rem}.hk-vocal-preview .vc-transport button{font-size:.8rem;padding:.6rem .3rem}.hk-vocal-preview .vc-chart{height:240px}.hk-vocal-preview .vc-results-heading{flex-wrap:wrap}.hk-vocal-preview .vc-results-heading button{font-size:.8rem}.hk-vocal-preview .vc-status{min-height:3.2em}}

.hk-vocal-preview .vc-settings{align-items:end}

/* 271/04b — Fixed two-row transport; recording owns the main action. */
body.hk-vocal-preview #vc-workspace .vc-transport{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(80px,1fr);align-items:stretch;gap:.65rem}
body.hk-vocal-preview #vc-workspace .vc-transport>button{width:100%;max-width:none;min-width:0;box-sizing:border-box;justify-self:stretch;align-self:stretch;display:flex;justify-content:center;align-items:center;text-align:center;white-space:normal;min-height:46px;margin:0}
body.hk-vocal-preview #vc-workspace .vc-transport #vc-reference-play,body.hk-vocal-preview #vc-workspace .vc-transport #vc-stop{background:#18272f;color:#d8e8eb;border:1px solid #57717d;box-shadow:none}
body.hk-vocal-preview #vc-workspace .vc-transport #vc-reference-play:hover:not(:disabled),body.hk-vocal-preview #vc-workspace .vc-transport #vc-stop:hover:not(:disabled){background:#2b424c;color:#fff;border-color:#8ca8b1}
body.hk-vocal-preview #vc-workspace .vc-transport #vc-start{grid-column:1/-1;width:100%;max-width:none;background:#6accc0;border:1px solid #6accc0;color:#092420;font-weight:600}
body.hk-vocal-preview #vc-workspace .vc-transport #vc-start:hover:not(:disabled){background:#94e3d8;border-color:#94e3d8}
body.hk-vocal-preview #vc-workspace #vc-listen-context[hidden]{display:none!important}
@media(max-width:520px){body.hk-vocal-preview #vc-workspace .vc-transport{gap:.55rem}body.hk-vocal-preview #vc-workspace .vc-transport>button{padding:.65rem .4rem}}

body.hk-vocal-preview #vc-workspace .vc-transport>#vc-reference-play[hidden]+#vc-stop{grid-column:1/-1}

body.hk-vocal-preview #vc-workspace .vc-transport>button:disabled{opacity:.45;cursor:not-allowed}

/* 271/05 — Ensayo: reference bench and a single recording action. */
.hk-rehearsal-preview .tool-panel h2,.hk-rehearsal-preview .tool-panel h3{font-family:inherit;font-weight:600}
.hk-rehearsal-preview .re-screen{padding:1.5rem;scroll-margin-top:90px}
.hk-rehearsal-preview .re-tabs{background:#101a21;border:1px solid #354751;border-radius:11px;padding:5px;gap:5px;box-shadow:none;margin:1.25rem 0}
.hk-rehearsal-preview .re-tabs button{background:transparent;border-color:transparent;font-size:.9rem;min-width:0}
.hk-rehearsal-preview .re-tabs button[aria-current=step]{background:#24413f;border-color:#6accc0;color:#e4fff9}
.hk-rehearsal-preview .re-tabs button:disabled{opacity:.55}
.hk-rehearsal-preview .re-purpose{font-size:.88rem;color:#b5c8cf;max-width:72ch}
.hk-rehearsal-preview .hk-flow-note{padding:.1rem 0 .1rem 1rem;border-left:2px solid #6accc0;background:transparent;margin-bottom:1.2rem;line-height:1.65}
.hk-rehearsal-preview .re-quick-start{background:#101a21;border:1px solid #465760;border-top:3px solid #6accc0;border-radius:10px;padding:1.2rem}
.hk-rehearsal-preview .re-quick-start p{color:#c6d6db;max-width:62ch;margin-bottom:1rem}
.hk-rehearsal-preview .re-source-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.hk-rehearsal-preview .re-source-options button{width:100%;min-width:0;background:#101a21;border-color:#455a65;line-height:1.4}
.hk-rehearsal-preview .re-source-options button[aria-pressed=true]{background:#24413f;color:#e4fff9;border-color:#6accc0}
.hk-rehearsal-preview .re-reference-bench{background:#101a21;border:1px solid #354751;border-radius:10px;padding:1.25rem;max-width:850px}
.hk-rehearsal-preview #re-source-label{color:#d8ad79;font-size:.8rem;margin:0 0 .4rem}
.hk-rehearsal-preview .re-reference-meta{font-size:.85rem;font-variant-numeric:tabular-nums;color:#b5c8cf;margin:.4rem 0 1rem}
.hk-rehearsal-preview .re-melody{gap:.5rem}
.hk-rehearsal-preview .re-melody button{background:#19322f;border-color:#5d9b92;color:#e3f9f4;min-width:52px;min-height:48px;font-size:1rem;border-radius:8px;padding:.5rem .65rem;box-shadow:none}
.hk-rehearsal-preview .re-bench-help{font-size:.82rem;line-height:1.6;color:#b5c8cf;margin:.9rem 0}
.hk-rehearsal-preview .re-reference-bench .re-settings{grid-template-columns:minmax(130px,190px) minmax(0,1fr);align-items:end;gap:1rem;margin:1rem 0}
.hk-rehearsal-preview .re-reference-bench .re-settings p{font-size:.82rem;line-height:1.6;color:#b5c8cf;margin:0 0 .6rem}
.hk-rehearsal-preview .re-reference-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;max-width:520px;margin:1rem 0 0}
body.hk-rehearsal-preview .re-reference-controls .btn{width:100%;max-width:none;box-sizing:border-box;margin:0;white-space:normal;min-height:46px}
body.hk-rehearsal-preview .re-reference-controls #re-listen{grid-column:1/-1;background:#223a42;border-color:#718f99;color:#e4f1f2}
.hk-rehearsal-preview .re-navigation{gap:.7rem;margin:1rem 0;padding:1rem 0;border-bottom-color:#354751}
.hk-rehearsal-preview #re-validation{margin:1rem 0;padding:.75rem 1rem;font-size:.86rem;line-height:1.6;background:#162a2b;border-color:#6accc0}
.hk-rehearsal-preview #re-practice-hint{font-variant-numeric:tabular-nums;color:#d2dee1;font-size:.85rem}
.hk-rehearsal-preview .re-mic-state{font-size:.78rem;color:#b5c8cf;min-height:1.5em;margin:.6rem 0}
.hk-rehearsal-preview .re-mic-state[data-state=on],.hk-rehearsal-preview .re-mic-state[data-state=opening]{color:#e9ba83}
.hk-rehearsal-preview .re-journey{margin:1rem 0;background:#101a21;border-color:#3c525d;border-top-color:#6accc0;box-shadow:none;padding:1.25rem}
.hk-rehearsal-preview .re-journey-kicker{display:none}
.hk-rehearsal-preview .re-journey-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;font-size:.78rem;margin:1rem 0;padding:0;counter-reset:practice-part}
.hk-rehearsal-preview .re-journey-steps li{counter-increment:practice-part;display:block;min-width:0;line-height:1.5;padding:.6rem;border:1px solid #344750;border-radius:8px;background:#15212a}
.hk-rehearsal-preview .re-journey-steps li:before{content:counter(practice-part) ' · ';font-variant-numeric:tabular-nums}
.hk-rehearsal-preview .re-journey-steps li[aria-current]{background:#24413f;color:#e4fff9;border-color:#70c7b8}
.hk-rehearsal-preview .re-brief{font-size:.88rem;line-height:1.7;color:#c3d4d9;margin:1rem 0}
.hk-rehearsal-preview .re-task-transport{background:#1b2a33;border-color:#415963;padding:1rem;margin:1rem 0}
body.hk-rehearsal-preview .re-journey [data-j=controls]>.re-source{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;max-width:620px;margin:0 auto}
body.hk-rehearsal-preview .re-journey [data-j=controls]>.re-source>button{width:100%;max-width:none;min-width:0;box-sizing:border-box;white-space:normal;min-height:48px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center}
body.hk-rehearsal-preview #re-repeat-listen{background:#18272f;border:1px solid #718f99;color:#e4f1f2;box-shadow:none}
body.hk-rehearsal-preview #re-attempt{background:#6accc0;border:1px solid #6accc0;color:#092420;font-weight:600}
.hk-rehearsal-preview .btn:disabled{opacity:.45;cursor:not-allowed}
.hk-rehearsal-preview .re-recording-options{border-color:#415963;font-size:.85rem;margin:1rem 0 0}
.hk-rehearsal-preview .re-recording-options>summary{min-height:36px}
.hk-rehearsal-preview .re-mic-setup{background:#101a21;border-color:#415963;font-size:.85rem;margin:1rem 0;padding:.75rem}
.hk-rehearsal-preview .re-mic-setup input,.hk-rehearsal-preview #re-input{width:100%;max-width:100%;box-sizing:border-box}
.hk-rehearsal-preview .re-mic-setup [type=range]{min-height:44px}
.hk-rehearsal-preview .re-live,.hk-rehearsal-preview .re-live.is-busy{position:relative!important;top:auto!important;box-shadow:none!important;background:#14232b;border-color:#47636f;padding:.75rem 1rem;margin:.8rem 0;font-size:.85rem}
.hk-rehearsal-preview .re-live-actions{max-width:none}
.hk-rehearsal-preview #re-status{line-height:1.6}
.hk-rehearsal-preview #re-clock{font-variant-numeric:tabular-nums;white-space:nowrap}
.hk-rehearsal-preview .re-current-note{font-size:clamp(2rem,5vw,3.2rem);font-variant-numeric:tabular-nums;min-height:1.4em}
.hk-rehearsal-preview .re-performance{background:#101a21;border-color:#70c7b8}
.hk-rehearsal-preview .re-guidance:empty{display:none}
.hk-rehearsal-preview .re-tool-help{padding:1rem 1.3rem}
.hk-rehearsal-preview .re-tool-help>summary{min-height:36px;font-size:1rem}
.hk-rehearsal-preview .re-practice-back{margin:.6rem 0;padding:.5rem 0;border:0}
@media(max-width:650px){
 .hk-rehearsal-preview .tool-header{margin-bottom:1rem}.hk-rehearsal-preview .re-screen{padding:1rem}
 .hk-rehearsal-preview .re-tabs button{font-size:.78rem;padding:.5rem .2rem}
 .hk-rehearsal-preview .re-reference-bench,.hk-rehearsal-preview .re-journey{padding:.85rem}
 .hk-rehearsal-preview .re-reference-bench .re-settings{grid-template-columns:minmax(0,1fr);gap:.25rem}
 .hk-rehearsal-preview .re-reference-bench .re-settings input{margin-bottom:.3rem}
 .hk-rehearsal-preview .re-reference-controls{gap:.5rem}
 .hk-rehearsal-preview .re-reference-controls .btn{font-size:.78rem;padding:.6rem .4rem}
 .hk-rehearsal-preview .re-source-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hk-rehearsal-preview .re-melody{gap:.4rem}.hk-rehearsal-preview .re-melody button{min-width:44px;padding:.4rem .5rem}
 .hk-rehearsal-preview .re-task-transport{padding:.7rem}.hk-rehearsal-preview .re-journey-steps{font-size:.7rem;gap:.3rem}
 .hk-rehearsal-preview .re-journey-steps li{padding:.4rem}.hk-rehearsal-preview .re-journey .re-brief{font-size:.83rem}
 .hk-rehearsal-preview .re-live{flex-direction:column;align-items:stretch;gap:.5rem}.hk-rehearsal-preview .re-live-actions{flex-direction:row;justify-content:space-between}
 .hk-rehearsal-preview .re-navigation{display:grid;grid-template-columns:minmax(0,1fr)}
 .hk-rehearsal-preview .re-navigation #re-confirm{grid-row:1}
 .hk-rehearsal-preview .re-navigation .btn{width:100%;max-width:none;box-sizing:border-box;white-space:normal;font-size:.82rem;margin:0}
 .hk-rehearsal-preview .re-practice-back .btn{font-size:.78rem;min-height:40px;padding:.5rem .6rem}
}

/* 271/05b — Excerpt tempo, one local status, optional tap input. */
.hk-rehearsal-preview .re-tempo-panel{margin:1.2rem 0 0;padding:1rem;border:1px solid #3c525d;border-radius:10px;background:#15232c}
.hk-rehearsal-preview .re-tempo-panel h4{font-family:inherit;font-size:1rem;font-weight:600;color:#e1ecee;margin:0 0 .6rem}
.hk-rehearsal-preview #re-tempo-help{font-size:.82rem;color:#b5c8cf;line-height:1.6;margin:.5rem 0}
.hk-rehearsal-preview .re-clip-tempo{display:grid;grid-template-columns:minmax(130px,220px) minmax(130px,180px);align-items:end;gap:.75rem;margin:.8rem 0 0;max-width:520px}
.hk-rehearsal-preview .re-clip-tempo>label{margin:0;min-width:0}
.hk-rehearsal-preview .re-clip-tempo #re-source-bpm{box-sizing:border-box;width:100%;max-width:none;min-height:46px;margin:.4rem 0 0}
.hk-rehearsal-preview .re-clip-tempo>button{width:100%;box-sizing:border-box;min-height:46px;margin:0;white-space:normal;padding:.6rem .8rem}
body.hk-rehearsal-preview #re-tempo-status{color:#c8d8dd;background:transparent;border:0;border-left:2px solid #6accc0;border-radius:0;padding:.6rem .8rem;margin:.8rem 0;font-size:.82rem;line-height:1.65}
body.hk-rehearsal-preview #re-tempo-status[data-state=error]{border-color:#e2ad70;color:#edc393}
.hk-rehearsal-preview .re-tempo-adjust{display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0}
.hk-rehearsal-preview .re-tempo-adjust .btn{font-size:.82rem;min-height:44px;min-width:100px;margin:0}
.hk-rehearsal-preview .re-tempo-options{font-size:.82rem;margin:.8rem 0 0}
.hk-rehearsal-preview .re-tempo-options p{line-height:1.65;color:#b5c8cf}
.hk-rehearsal-preview #re-tempo-tap{min-width:150px;touch-action:manipulation}
.hk-rehearsal-preview #re-tempo-tap-status:empty{display:none}
.hk-rehearsal-preview #re-choose:has(#re-trim:not([hidden])) .hk-file-activity[data-state=done],.hk-rehearsal-preview #re-choose:has(#re-import-status[data-state=error]) .hk-file-activity[data-state=error]{display:none}
.hk-rehearsal-preview #re-trim-hint{font-size:.85rem;line-height:1.65}
@media(max-width:500px){.hk-rehearsal-preview .re-tempo-panel{padding:.75rem}.hk-rehearsal-preview .re-clip-tempo{grid-template-columns:minmax(0,1fr);gap:.65rem}.hk-rehearsal-preview .re-tempo-adjust .btn{flex:1;min-width:0}.hk-rehearsal-preview #re-tempo-tap{width:100%}.hk-rehearsal-preview .re-clip-transport{gap:.5rem}.hk-rehearsal-preview .re-clip-transport button{flex:1;min-width:0;margin:0;min-height:44px;white-space:normal}}

/* 271/05c — Recorded guitar reference and continuous level control. */
.hk-rehearsal-preview .re-reference-sound{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem;align-items:end;max-width:520px;margin:1rem 0}
.hk-rehearsal-preview .re-reference-sound label{min-width:0;display:grid;gap:.4rem}
.hk-rehearsal-preview .re-reference-sound select{min-width:0;width:100%;min-height:46px;box-sizing:border-box;font-size:.85rem}
.hk-rehearsal-preview .re-reference-sound input[type=range]{width:100%;min-height:46px;margin:0;accent-color:#6accc0}
.hk-rehearsal-preview #re-reference-sound-state{grid-column:1/-1;margin:0;font-size:.82rem;color:#c8d8dd;line-height:1.6}
.hk-rehearsal-preview #re-reference-sound-state:empty{display:none}
.hk-midi-natural-preview .midi-sound-label{display:grid;gap:.4rem;max-width:300px;margin:1rem 0;color:#c8d8dd;font-size:.87rem}
.hk-midi-natural-preview .midi-sound-label select{min-width:0;min-height:46px;width:100%;box-sizing:border-box}
.hk-midi-natural-preview .midi-preview-note{font-size:.83rem;line-height:1.65;color:#b5c8cf}
@media(max-width:500px){.hk-rehearsal-preview .re-reference-sound{grid-template-columns:minmax(0,1fr)}.hk-midi-natural-preview .midi-sound-label{max-width:none}}
.hk-rehearsal-preview .re-journey [data-j=controls]>.re-reference-sound{max-width:620px;margin:0 auto 1rem}

/* Shared instrument controls retain compact, touch-friendly rows. */
.midi-sound-label{display:flex;flex-direction:column;gap:.4rem;margin:.8rem 0;max-width:30rem}.midi-sound-label select{min-height:44px;width:100%}.midi-preview-details>label{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0;max-width:30rem}.midi-preview-details>label input{width:55%;min-height:32px}.metro-sound-choice{display:flex;align-items:center;gap:.7rem}.metro-sound-choice select{min-height:44px;max-width:13rem}body[data-metro-natural="true"] #metro-low-box{display:none!important}@media(max-width:540px){.mm-console-volume{flex-wrap:wrap}.metro-sound-choice{width:100%;justify-content:space-between}.midi-sound-label{max-width:none}}
