/* R5: quiet practice studio; names never wrap and original rows never merge. */
.hacks-portal main{max-width:1200px;padding-top:18px}.hacks-portal h1{margin:10px 0;font-size:clamp(1.7rem,3vw,2.5rem);letter-spacing:-.05em}.guitar-brand{position:relative;min-height:106px;padding:10px 190px 8px 0;border-bottom:1px solid #dad3c5}.guitar-brand p{max-width:700px}.guitar-brand img{position:absolute;right:20px;top:0;width:155px;height:125px;object-fit:contain}.guitar-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin:24px 0}.guitar-stage section{margin:0;min-width:0;padding:26px;border-radius:16px}.guitar-stage .source-panel{background:#17243d;color:#f7f3e9;border:1px solid #34445e}.guitar-stage .result-panel{background:#faf8f1;border:1px solid #d6cfbf;border-top:3px solid #b49a55}.guitar-stage h2{font-size:1.3rem;margin:6px 0 18px}.stage-eyebrow{font-size:.72rem;font-weight:750;letter-spacing:.15em;margin:0;color:#dac58f}.result-panel .stage-eyebrow{color:#655327}.guitar-stage .source-panel h2,.guitar-stage .source-panel label{color:#f7f3e9!important}.chord-board{display:flex;flex-direction:column;gap:12px;margin:16px 0;min-width:0;max-width:100%}.chord-line{display:flex;flex-wrap:nowrap;gap:9px;align-items:stretch;overflow-x:auto;max-width:100%;min-width:0;padding:3px 2px 9px;scrollbar-width:thin;scrollbar-color:#b49a55 transparent}.chord-tile{flex:0 0 auto;min-width:82px;min-height:90px;border:1px solid #586982;border-radius:9px;background:#24344f;padding:12px 14px;display:flex;flex-direction:column;justify-content:space-between;gap:14px}.chord-tile small{font-size:10px;color:#c7cfdf;letter-spacing:.12em}.chord-tile strong{font-size:clamp(19px,2vw,27px);line-height:1.25;color:#fff;white-space:nowrap;word-break:normal;overflow-wrap:normal;max-width:none}.result-panel .chord-tile{background:#f0ebdc;border-color:#c6b98e}.result-panel .chord-tile strong{color:#27344b}.result-panel .chord-tile small{color:#655327}.chord-separator{flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#dac58f;font-size:24px;min-width:16px;white-space:nowrap}.result-panel .chord-separator{color:#655327}.chord-empty,.chord-raw{white-space:pre;overflow:visible;margin:0;padding:14px;font-family:inherit;font-size:.95rem;border:1px dashed #8f96a9;border-radius:8px;min-height:46px}.chord-empty{white-space:normal;color:#55556b}.source-panel .chord-empty,.source-panel .chord-raw,.source-panel .chord-blank{color:#e4e7f0}.chord-blank{font-size:.8rem;opacity:.8}.board-controls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.guitar-stage .board-controls button{min-height:40px;border:1px solid #a8a089;background:transparent;color:inherit;border-radius:6px;font-size:.82rem;padding:8px 12px}.board-controls button[aria-pressed=true]{background:#dbc792;color:#17243d}.board-summary{font-size:.77rem;line-height:1.65;color:#655327;margin:8px 0 18px}.source-panel .board-summary{color:#ded4b7}.guitar-stage textarea{width:100%;box-sizing:border-box;min-height:72px;height:78px;background:#fcfaf4;color:#202139;font-size:1rem;line-height:1.6;resize:vertical;border:1px solid #a8acb4;border-radius:8px}.guitar-stage label{font-size:.86rem;margin-top:12px}.guitar-stage select,.guitar-stage input{width:100%;min-width:0;box-sizing:border-box;background:#fcfaf4;color:#202139;min-height:44px;padding:10px 12px;border:1px solid #a8acb4;border-radius:7px}.stage-settings{margin-top:20px;border-top:1px solid #536078;padding-top:4px}.settings-intro{color:#d3d9e5;font-size:.8rem;margin:12px 0}.stage-settings #trans-controls{display:block}.stage-settings #trans-controls>.row{display:block}.stage-settings #key-wrap{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding:16px;margin:14px 0;background:#22344e;border:1px solid #b49a55;border-radius:10px}.stage-settings #key-wrap label{margin:0;font-weight:700}.stage-settings #key-wrap select{grid-row:2;font-size:1.1rem;font-weight:700;border-color:#d3bd7d}.key-caution{font-size:.78rem;color:#ded4b7;line-height:1.6;grid-column:1/-1;margin:6px 0 0}.guitar-stage [hidden]{display:none!important}.guitar-stage #convert{width:100%;min-height:48px;background:#d8bf7f;color:#16243c;border:1px solid #e6d5a4;font-weight:800;border-radius:8px}.guitar-stage #copy{background:#17243d;color:#f7f3e9;border:1px solid #17243d;margin:14px 0;min-height:44px;border-radius:7px}.guitar-stage #status{color:#f2d79c;font-size:.85rem;line-height:1.65}.stage-context{font-size:.85rem;color:#56536a;min-height:1.5em}.guitar-stage #comparison{margin-top:24px;padding-top:16px;border-top:1px solid #cdc9bd}.guitar-stage #comparison pre{white-space:pre-wrap;overflow-wrap:anywhere}.guitar-stage #comparison h3{font-size:1rem}.guitar-stage #recommendations{padding-left:22px}.guitar-stage #recommendations li{padding:10px 0;border-bottom:1px solid #d5d1c8;font-size:.9rem;overflow-wrap:anywhere}.guitar-stage :focus-visible{outline:3px solid #d1a53d;outline-offset:3px}.hacks-portal main>p.note:first-of-type{margin:8px 0;font-size:.75rem}.hacks-portal .breadcrumb{margin:0 0 10px}.hacks-portal .direct-answer{max-width:850px;font-size:1rem;line-height:1.7}@media(max-width:700px){.guitar-stage{grid-template-columns:1fr;gap:18px;margin-top:18px}.guitar-stage section{padding:18px}.guitar-brand{padding-right:65px;min-height:85px}.guitar-brand img{right:0;width:62px;height:86px;opacity:.8}.guitar-brand h1{font-size:1.6rem}.guitar-brand p{font-size:.85rem;line-height:1.6}.chord-tile{min-height:76px;min-width:72px;padding:10px 12px}.chord-tile strong{font-size:22px}.chord-board{gap:8px}.guitar-stage #key-wrap{padding:12px;gap:6px 10px}.guitar-stage .stage-settings{margin-top:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media(forced-colors:active){.guitar-stage section,.chord-tile{border:1px solid CanvasText}.guitar-stage :focus-visible{outline:3px solid Highlight}}
/* Keep the everyday four-code phrase visible on narrow screens. */
.hacks-portal main .guitar-stage textarea{background:#faf7ed;color:#17243d;border-color:#b8af99}.hacks-portal main .guitar-stage .source-panel textarea{background:#22344e;color:#f7f3e9;border-color:#6a7890}.hacks-portal main .guitar-stage .board-controls button{background:transparent;color:inherit}.hacks-portal main .guitar-stage .board-controls button[aria-pressed=true]{background:#dbc792;color:#17243d}@media(max-width:700px){.guitar-stage .chord-tile{min-width:58px;padding:10px 8px}}

/* R8: input precedes the preview in reading and keyboard order. */
.guitar-brand{min-height:0;padding-top:0;padding-bottom:10px}.guitar-brand .direct-answer{margin:8px 0;font-size:.9rem;line-height:1.5}.mode-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mode-columns section{min-width:0;margin:0;padding:16px;border:1px solid #d6cfbf;border-radius:10px}.mode-columns h4{margin-top:0}
@media(max-width:700px){.hacks-portal main{padding-top:8px}.guitar-brand{padding-right:0;min-height:0}.guitar-brand img{display:none}.guitar-brand h1{font-size:1.4rem;margin:6px 0}.guitar-brand .direct-answer{font-size:.8rem;line-height:1.45;margin:6px 0}.guitar-brand>a{font-size:.8rem}.guitar-stage{margin-top:12px}.guitar-stage section{padding:14px}.guitar-stage h2{margin:4px 0 8px}.guitar-stage .source-panel>label{margin-top:6px}.guitar-stage #chords{height:72px;min-height:72px}.mode-columns{grid-template-columns:1fr}}
@media(max-width:700px){body .hacks-portal.hacks-portal main{padding-top:8px}body .hacks-portal.hacks-portal .guitar-brand .direct-answer{font-size:13px;line-height:1.45}body .hacks-portal.hacks-portal .guitar-stage .stage-eyebrow{font-size:11px;margin:0}body .hacks-portal.hacks-portal .guitar-stage h2{font-size:20px;line-height:1.3;margin:4px 0 8px}body .hacks-portal.hacks-portal .breadcrumb{margin:0 0 6px}body .hacks-portal.hacks-portal .breadcrumb ol{margin:0;padding-top:0;padding-bottom:0}body .hacks-portal.hacks-portal .source-panel>label{display:block;margin:6px 0}}

/* R9: generous link hit areas and a native focusable route to calculation. */
.guitar-brand>a,.source-panel>.convert-jump{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;box-sizing:border-box;padding:4px 8px;border-radius:6px;text-underline-offset:3px}.guitar-brand>a:hover{background:#eee7d7}.source-panel>.convert-jump{color:#f7f3e9;margin-top:4px;font-size:13px}.source-panel>.convert-jump:hover{background:#34445e}.guitar-brand>a:focus-visible,.source-panel>.convert-jump:focus-visible{outline:3px solid #b28316;outline-offset:2px}#convert{scroll-margin-top:24px}

/* E1: one stable shortcut row; previews follow the settings in DOM order. */
.stage-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:340px}.stage-shortcuts>a{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;box-sizing:border-box;padding:4px 6px;border-radius:6px;font-size:13px;text-underline-offset:3px}.stage-shortcuts>a:hover{background:#eee7d7}.stage-shortcuts>a:focus-visible{outline:3px solid #b28316;outline-offset:2px}
@media(max-width:700px){.guitar-brand{padding-bottom:4px}.guitar-stage{margin-top:8px}.guitar-stage .stage-settings{margin-top:8px}}
@media(max-width:700px){body .hacks-portal.hacks-portal .breadcrumb{padding-top:7px;padding-bottom:7px}}

/* Keep established keyboard order while placing the preview after settings. */
.guitar-stage .source-panel{display:flex;flex-direction:column}.source-panel>#source-tiles{order:1}.source-panel>#status{order:2}
.source-panel>.board-controls,.source-panel>.board-summary{order:1}

/* R13 · editorial studio. Existing boards and native controls only. */
.guitar-stage{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:24px}
.guitar-stage .source-panel{position:relative;background:#f3f0e7;color:#27344b;border-color:#d8d1c1;border-radius:12px}
.guitar-stage .source-panel h2,.guitar-stage .source-panel label{color:#27344b!important}
.source-panel>.stage-eyebrow{color:#655327}
.source-panel>h2{max-width:calc(100% - 150px)}
.source-panel>.convert-jump{position:absolute;top:20px;right:22px;width:146px;margin:0;color:#27344b;border:1px solid #b8af99;background:#faf8f1;line-height:1.35;font-size:12px;text-align:center}
.source-panel>.convert-jump:hover{background:#e8e0cc}
.guitar-stage .source-panel #chords{background:#fffdf7;color:#17243d;border-color:#9d957f}
.guitar-stage .source-panel .chord-tile{min-width:66px;min-height:72px;padding:10px 12px;background:#eae5d8;border-color:#c9c1ae;border-radius:5px}
.source-panel .chord-tile strong{color:#27344b;font-size:23px}
.source-panel .chord-tile small,.source-panel .chord-separator{color:#655327}
.source-panel .board-summary,.source-panel .settings-intro,.source-panel .chord-raw,.source-panel .chord-blank{color:#4e5361}
.source-panel .stage-settings{border-color:#c9c1ae}
.source-panel #status{color:#655327}
.source-panel #key-wrap{background:#eae5d8;border-color:#b4a477}
.source-panel .key-caution{color:#4e5361}
.guitar-stage .result-panel{background:#17243d;color:#f7f3e9;border:1px solid #34445e;border-top:4px solid #c9ac68;border-radius:12px;padding:28px}
.result-panel .stage-eyebrow{color:#dac58f;letter-spacing:.19em}
.guitar-stage .result-panel h2{color:#fffaf0;font-size:1.65rem;letter-spacing:-.04em;margin:8px 0 22px}
.result-panel .chord-board{margin:20px 0 8px;gap:16px}
.result-panel .chord-line{gap:10px;padding:3px 1px 12px;scrollbar-color:#dac58f #24344f}
.result-panel .chord-tile{min-width:86px;min-height:116px;padding:12px 15px 16px;background:#f8f3e6;border:1px solid #e3d7b8;border-top:3px solid #c9ac68;border-radius:5px;gap:20px}
.result-panel .chord-tile small{color:#655327;font-size:11px;font-weight:700;letter-spacing:.14em;border-bottom:1px solid #d5cbb3;padding-bottom:8px}
.result-panel .chord-tile strong{color:#17243d;font-size:36px;font-weight:750;letter-spacing:-.035em;line-height:1.15}
.result-panel .chord-separator{color:#dac58f}
.result-panel .stage-context{color:#f1dda8;font-size:.95rem;line-height:1.7;padding:12px 0;margin:0 0 16px;border-bottom:1px solid #536078}
.result-panel label{color:#e4e7f0}
.guitar-stage .result-panel #result{background:#22344e;color:#f7f3e9;border-color:#6a7890;line-height:1.7}
.guitar-stage .result-panel #copy{display:block;width:100%;background:#dac58f;color:#17243d;border-color:#dac58f;font-weight:800;margin:14px 0 18px;min-height:48px}
.guitar-stage .board-controls button{min-height:44px;border-color:#9d957f;font-weight:650}
.guitar-stage .result-panel .board-controls button{border-color:#7e8ba0;color:#f7f3e9}
.guitar-stage .result-panel .board-controls button[aria-pressed=true]{background:#dbc792;color:#17243d}
.result-panel .board-summary{color:#ded4b7;font-size:12px;line-height:1.8}
.result-panel .chord-raw,.result-panel .chord-blank{color:#f7f3e9}
.guitar-stage .result-panel #comparison{border-color:#536078;margin-top:26px}
.result-panel #comparison h3{color:#f1dda8}
.result-panel #comparison p,.result-panel #comparison li{color:#e4e7f0}
.result-panel #comparison pre{padding:12px;background:#22344e;border-left:2px solid #c9ac68;color:#fffaf0}
.result-panel #recommendations li{border-color:#536078}
.guitar-stage .chord-line{overscroll-behavior-x:contain}
@media(max-width:700px){
 .guitar-stage{grid-template-columns:1fr;gap:20px}
 .guitar-stage .result-panel{padding:18px 14px}
 .source-panel>.convert-jump{top:10px;right:14px;width:142px;min-height:44px}
 .source-panel>h2{max-width:calc(100% - 146px)}
 .result-panel .chord-board{margin-top:16px}
 .result-panel .chord-line{gap:6px}
 .guitar-stage .result-panel .chord-tile{box-sizing:border-box;min-width:54px;min-height:100px;padding:10px 9px 14px;gap:16px}
 .result-panel .chord-tile strong{font-size:28px}
 .result-panel .chord-tile small{font-size:10px;padding-bottom:6px}
 .guitar-stage .source-panel .chord-tile{min-width:50px;padding:9px 8px}
 .source-panel .chord-tile strong{font-size:21px}
}
@media(forced-colors:active){.guitar-stage .result-panel,.guitar-stage .chord-tile,.source-panel>.convert-jump{border:1px solid CanvasText}}
/* Explicit heading ink wins the shared editorial heading rule. */
body .hacks-portal.hacks-portal .guitar-stage .result-panel h2{color:#fffaf0!important}
/* A tablet keeps the complete everyday phrase in one reading plane. */
@media(min-width:701px) and (max-width:900px){.guitar-stage{grid-template-columns:1fr}.source-panel>h2{max-width:calc(100% - 160px)}}
