html,body{height:100%;min-height:0;box-sizing:border-box}body{display:flex;flex-direction:column;margin:0;padding:0}main.wrap{width:100%;max-width:1400px;flex:1;min-height:0;display:flex;flex-direction:column;margin:0 auto;padding:8px 16px;gap:7px}.hero{flex:none;min-height:55px;margin:0;padding:5px 270px;text-align:center}.hero h1{font-size:23px;margin:0 0 3px}.hero p{font-size:12px;margin:0}.card{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px;gap:6px}.card>.topbar,.card>.controls,.card>.message,.card>.answer-panel{flex:none}.card>.hint{display:none}.card>.extras-toggle{display:none}.card #staffbox{height:260px;min-height:0;margin:0;flex:1}.card .message{min-height:23px;padding:3px;margin:0;font-size:13px}.answer-panel{padding:6px;margin:0}.quick-answer-row{margin:3px 0;padding:3px;gap:5px}.quick-answer-panel button{padding:5px 8px}.card>.controls{margin:0;gap:6px}.card>.topbar{margin:0}body>footer{padding:3px!important;margin:0!important;font-size:10px!important;line-height:14px!important}.chord-studio-brand{position:fixed;right:65px;top:14px;z-index:1000;display:flex;align-items:center;gap:8px;direction:ltr;min-height:38px;font:800 17px/1.2 system-ui;color:var(--text,#eef4fc);white-space:nowrap}.chord-studio-brand img{width:30px;height:30px}.chord-game-fullscreen{position:fixed;top:14px;left:66px;z-index:1000;min-height:38px;padding:7px 12px;border:1px solid #63c9ef;border-radius:9px;background:#17415e;color:#fff;font:700 13px system-ui;cursor:pointer}@media(max-height:700px){.hero p{display:none}.answer-panel{zoom:.8}}@media(max-width:700px){.hero{padding:62px 0 0}.hero h1{font-size:18px}.hero p{display:none}.chord-studio-brand{font-size:13px}.chord-studio-brand img{width:25px;height:25px}.chord-game-fullscreen{font-size:11px;padding:6px}.answer-panel{zoom:.75}}

.chord-notation-plane{position:absolute;left:0;top:0;transform-origin:top left;direction:ltr}.card #staffbox{position:relative;overflow:hidden}

.chord-input-sidebar{border:1px solid #53677f;border-radius:13px;background:#192738;padding:12px;display:flex;flex-direction:column;gap:16px;min-width:0}
.chord-input-sidebar h2{font-size:17px;margin:0;color:#b3d8f7}
.chord-input-sidebar .midi,.chord-input-sidebar .acoustic{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:0;padding:0;border:0;background:none}
.chord-input-sidebar .acoustic{border-top:1px solid #465970;padding-top:14px}
.chord-input-sidebar button,.chord-input-sidebar select{width:100%;max-width:100%;box-sizing:border-box;font-size:12px;padding:7px}
.chord-input-sidebar #midiStatus,.chord-input-sidebar #micStatus{font-size:12px;line-height:1.5}
@media(min-width:900px){
.card{display:grid;grid-template-columns:minmax(0,1fr) 245px;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:8px 12px;direction:ltr}
.card>.topbar{grid-column:1;grid-row:1;direction:rtl}
.card>.controls{grid-column:1;grid-row:2;direction:rtl}
.card>#staffbox{grid-column:1;grid-row:3;height:100%;min-height:0}
.card>.message{grid-column:1;grid-row:4;direction:rtl}
.card>.answer-panel{grid-column:1;grid-row:5;direction:rtl}
.card>.chord-input-sidebar{grid-column:2;grid-row:1/6;direction:rtl}
}
@media(max-width:899px){.chord-input-sidebar{flex-direction:row;flex-wrap:wrap;gap:8px;padding:8px}.chord-input-sidebar h2{width:100%;font-size:14px}.chord-input-sidebar .midi,.chord-input-sidebar .acoustic{flex:1;min-width:140px}.chord-input-sidebar .acoustic{padding:0;border:0}}

#speed{direction:ltr!important;writing-mode:horizontal-tb!important}

.chord-sidebar-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-bottom:10px;border-bottom:1px solid #465970}
.chord-sidebar-stats .pill{font-size:12px;padding:7px 8px;text-align:center}
.card>.topbar:not(:has(button)):not(:has(a)):not(:has(.stats)){display:none}
#quickAnswerPanel .quick-chord-grid{grid-template-rows:47px 39px!important;min-height:86px}
#quickAnswerPanel .quick-chord{font-size:15px!important;font-weight:800!important}
#quickAnswerPanel .quick-chord .enh{font-size:11px!important;line-height:1.25}

/* Piano geometry: full-length white keys with raised, shorter black keys. */
#quickAnswerPanel .quick-chord-grid{position:relative;grid-template-rows:60px 40px!important;min-height:100px;column-gap:2px;row-gap:0;padding:5px 5px 7px;background:#101722;border:1px solid #536174;border-radius:10px;box-shadow:inset 0 4px 9px #0007}
#quickAnswerPanel .quick-chord-grid>.quick-chord[data-acc="0"]{grid-row:1/3!important;height:100%;margin:0!important;align-self:stretch;display:flex;align-items:flex-end;justify-content:center;padding:5px 2px 9px!important;background:linear-gradient(#fff,#faf9f4 85%,#e3e4df)!important;color:#172434!important;border:1px solid #929cab!important;border-radius:0 0 6px 6px!important;box-shadow:0 3px 0 #bac2c9!important;z-index:1}
#quickAnswerPanel .quick-chord-grid>.quick-chord[data-acc="-1"]{grid-row:1!important;height:61px!important;margin:0 9%!important;align-self:start;display:flex;align-items:flex-end;justify-content:center;padding:3px 1px 6px!important;background:linear-gradient(100deg,#303844,#080d15 35%,#111b28)!important;color:#fff!important;border:1px solid #040810!important;border-bottom:4px solid #354254!important;border-radius:0 0 5px 5px!important;box-shadow:2px 4px 4px #0006!important;z-index:3}
#quickAnswerPanel .quick-chord-grid>.quick-chord[data-acc="0"].active{background:linear-gradient(#d3eeff,#9acbec)!important;box-shadow:inset 0 0 0 2px #438dbe!important}
#quickAnswerPanel .quick-chord-grid>.quick-chord[data-acc="-1"].active{background:linear-gradient(#245c86,#102d4f)!important;border-color:#74c7fb!important}
#quickAnswerPanel .quick-chord .enh{font-size:10px!important;line-height:1.15}

.chord-input-sidebar #midiBtn{background:#245b80;color:#f1faff;border:1px solid #78b8de;font-weight:700}.chord-input-sidebar #midiBtn:hover{background:#30749e}.chord-input-sidebar #midiSelect{background:#1b405b;color:#eef8ff;border:1px solid #6a9dbc;font-weight:600}.chord-input-sidebar #midiSelect option{background:#1b3045;color:#fff}

.btn.difficulty[data-level="1"]{--level-bg:#224c40;--level-fg:#a5e2c5;--level-edge:#70b999}
.btn.difficulty[data-level="2"]{--level-bg:#244866;--level-fg:#b0d9fb;--level-edge:#7badd4}
.btn.difficulty[data-level="3"]{--level-bg:#5b4525;--level-fg:#f4d29a;--level-edge:#c9a263}
.btn.difficulty[data-level="4"]{--level-bg:#593348;--level-fg:#f1b2cb;--level-edge:#c381a0}
.btn.difficulty{background:var(--level-bg);color:var(--level-fg);border:1px solid var(--level-edge);font-weight:700}
.btn.difficulty.active{background:var(--level-fg);color:#12202b;border-color:var(--level-fg);box-shadow:0 0 0 2px var(--level-edge)}

.chord-game-info,.chord-input-sidebar button.chord-game-info{display:inline-flex;align-items:center;justify-content:center;width:22px;min-width:22px;height:22px;padding:0;border:1px solid #ad91cf;border-radius:5px;background:#49375f;color:#f0e2ff;font:700 15px/1 system-ui;cursor:pointer;flex:none}
.chord-game-info-dialog{position:fixed;inset:0;margin:auto;width:min(530px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 48px);overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #8199b6;border-radius:15px;background:#1c2939;color:#eef4fc;font:16px/1.7 system-ui;direction:rtl}
.chord-game-info-dialog::backdrop{background:#030915aa}.chord-game-info-dialog h2{margin:0 0 12px;font-size:22px}.chord-game-info-dialog p{margin:0 0 16px}.chord-game-info-dialog button{padding:7px 15px;border:1px solid #ad91cf;border-radius:7px;background:#49375f;color:#fff}

.controls,.chord-game-primary-controls,.chord-game-playback{align-items:center!important}.chord-game-playback{display:flex;gap:8px}.chord-game-playback #continueBtn,.chord-game-playback #pauseBtn,.chord-game-more-controls>summary{height:44px!important;min-height:44px!important;box-sizing:border-box;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-block:0!important;line-height:1.2}.chord-game-playback>.chord-game-info{align-self:center!important;margin-block:0!important}.chord-game-more-controls{align-self:center;margin-block:0!important}

/* Natural keyboard proportions: narrower octave span and longer white keys. */
#majorQuickGrid{width:100%!important;max-width:850px!important;min-width:650px!important;margin-inline:auto;grid-template-rows:100px 60px!important}
#majorQuickGrid>.choice[data-acc="0"]{height:160px!important;min-height:160px!important;align-self:start;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px!important}
#majorQuickGrid>.choice[data-acc="-1"]{height:100px!important;min-height:100px!important;align-self:start;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px!important}
.quick-keyboard-captions{width:100%;max-width:850px;min-width:650px!important;margin-inline:auto}
@media(max-height:700px),(max-width:899px){#majorQuickGrid{grid-template-rows:76px 44px!important}#majorQuickGrid>.choice[data-acc="0"]{height:120px!important;min-height:120px!important}#majorQuickGrid>.choice[data-acc="-1"]{height:76px!important;min-height:76px!important}}

#quickAnswerPanel,#quickAnswerPanel .quick-answer-row:first-child{overflow:visible!important;min-height:0;max-height:none!important;height:auto!important}
#quickAnswerPanel #majorQuickGrid{min-width:0!important;max-width:850px;width:100%!important;box-sizing:border-box;column-gap:2px!important}
#quickAnswerPanel .quick-keyboard-captions{min-width:0!important;max-width:850px;width:100%;box-sizing:border-box}
#quickAnswerPanel .quick-answer-row:first-child{padding:0!important;margin:0!important}
#quickAnswerPanel .choice{min-width:0!important;overflow:hidden;font-size:12px!important;padding-inline:2px!important}
@media(max-height:800px){#quickAnswerPanel #majorQuickGrid{grid-template-rows:68px 42px!important}#quickAnswerPanel #majorQuickGrid>.choice[data-acc="0"]{height:110px!important;min-height:110px!important}#quickAnswerPanel #majorQuickGrid>.choice[data-acc="-1"]{height:68px!important;min-height:68px!important}}

:root #quickAnswerPanel #majorQuickGrid>.major[data-acc="0"]{background:linear-gradient(#e5f3ff,#badcf5)!important;color:#173e62!important;border-color:#7aafd5!important}
:root #quickAnswerPanel #majorQuickGrid>.minor[data-acc="0"]{background:linear-gradient(#f1e8ff,#d5bdf0)!important;color:#50306c!important;border-color:#aa87ca!important}
:root #quickAnswerPanel #majorQuickGrid>.major[data-acc="0"].active{background:#3888cb!important;color:#f4faff!important;border-color:#8dd3ff!important}
:root #quickAnswerPanel #majorQuickGrid>.minor[data-acc="0"].active{background:#8752b8!important;color:#fcf6ff!important;border-color:#d6acff!important}
:root #quickAnswerPanel #majorQuickGrid>.major[data-acc="-1"]{border-bottom:3px solid #70b8ed!important}
:root #quickAnswerPanel #majorQuickGrid>.minor[data-acc="-1"]{border-bottom:3px solid #bb8fe2!important}

.chord-game-extra-controls{color:#edf4fc;font-family:system-ui,Arial,sans-serif;font-size:14px}
.chord-game-extra-controls .control-group strong{color:#d8e5f5!important;font-size:13px!important;font-weight:700;opacity:1}
.chord-game-extra-controls .btn,.chord-game-extra-controls select{font-family:system-ui,Arial,sans-serif!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;min-height:38px;padding:8px 11px!important;border-color:#65758c!important;color:#f1f5fb!important;background:#253449!important;box-sizing:border-box}
.chord-game-extra-controls .btn.active,.chord-game-extra-controls .btn[aria-pressed=true]{background:#93c5fd!important;border-color:#c4e2ff!important;color:#173451!important;font-weight:750!important;box-shadow:inset 0 0 0 1px #c4e2ff!important}
.chord-game-extra-controls .btn:hover{border-color:#a6c8eb!important;filter:brightness(1.08)}
.chord-game-extra-controls .btn:focus-visible,.chord-game-extra-controls select:focus-visible{outline:3px solid #67d0ef;outline-offset:2px}

html body #continueBtn{font-family:system-ui,Arial,sans-serif!important;font-size:14px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:0!important;min-width:92px!important;min-height:44px!important;color:#083c34!important;background:#58d0b8!important;border:1px solid #89e8d3!important;text-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}

html body .chord-game-primary-controls .btn.mode{font-family:system-ui,Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;line-height:1.3!important;min-height:36px!important;padding:7px 12px!important;color:#edf4fc!important;background:#26374c!important;border-color:#667c97!important}html body .chord-game-primary-controls .btn.mode.active{color:#173451!important;background:#93c5fd!important;border-color:#c8e6ff!important;box-shadow:inset 0 0 0 1px #c8e6ff}

html body #pauseBtn{background:#a92f42!important;border-color:#eb8794!important;color:#fff4f6!important;font-family:system-ui,Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;line-height:1.3!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}html body #pauseBtn:hover{background:#c03a4e!important}

html body #continueBtn.transport-stop{background:#a92f42!important;border-color:#eb8794!important;color:#fff4f6!important}html body #pauseBtn{background:#26374c!important;border-color:#7c91ae!important;color:#f0f5fc!important;min-width:94px}html body #pauseBtn.active{background:#e6ba60!important;color:#392b12!important;border-color:#ffe0a0!important}html body #pauseBtn:disabled{opacity:.45;cursor:default}

#staffbox .chord-runner-name{width:max-content!important;min-width:44px;transform:translateX(-50%);text-align:center!important;color:#244d91!important;background:#f8faf0e8;border-radius:5px;padding:2px 6px;font:800 24px/1.3 system-ui,Arial,sans-serif!important;letter-spacing:0;text-shadow:none;white-space:nowrap}

.quick-keyboard-captions .keyboard-quality-select{max-width:90%;width:230px;min-height:32px;padding:5px 9px;border:1px solid #7b93b3;border-radius:7px;background:#243449;color:#eff5fc;font:600 12px/1.3 system-ui,Arial,sans-serif;direction:ltr}

.chord-game-extra-controls .control-group:has(.chord-size){display:none!important}.quick-keyboard-captions>span{font-weight:750;font-size:14px;line-height:1.4}

.chord-input-sidebar .chord-sidebar-options{width:100%;margin:0;border-top:1px solid #465970;padding-top:10px;align-self:stretch}
.chord-input-sidebar .chord-sidebar-options>summary{width:100%;height:36px!important;min-height:36px!important;justify-content:space-between!important}
.chord-input-sidebar .chord-sidebar-options>.chord-game-extra-controls{position:static!important;inset:auto!important;width:100%!important;padding:10px 0 0;box-shadow:none;border:0;background:transparent;gap:10px}
.chord-input-sidebar .chord-game-extra-controls .control-group{width:100%;gap:5px;justify-content:flex-start}
.chord-input-sidebar .chord-game-extra-controls .btn{width:auto;max-width:100%;flex:0 1 auto;padding:6px 8px!important;min-height:32px;font-size:12px!important}
.chord-input-sidebar .chord-game-extra-controls .control-group strong{width:100%;margin:0 0 3px}.chord-main-names{min-height:36px!important;font:600 12px/1.3 system-ui,Arial,sans-serif!important}
@media(min-width:900px){.chord-input-sidebar{overflow-y:auto;max-height:100%}}

.chord-sidebar-stats>.pill:not(:has(#score)):not(:has(#best)){display:none!important}
.chord-sidebar-stats{grid-template-columns:1fr 1fr!important;gap:6px;padding-bottom:8px}
.chord-input-sidebar{gap:10px;padding:10px}
.chord-input-sidebar .midi,.chord-input-sidebar .acoustic{gap:7px}
.chord-input-sidebar .acoustic{padding-top:10px}.chord-input-sidebar h2{font-size:15px;margin:0}
.chord-input-sidebar #midiStatus,.chord-input-sidebar #micStatus{font-size:11px;line-height:1.3;margin:0}
.chord-input-sidebar .chord-sidebar-options{padding-top:7px}
@media(min-width:900px){.chord-input-sidebar{overflow:visible;max-height:none}.chord-input-sidebar .chord-sidebar-options[open]>.chord-game-extra-controls{position:absolute!important;inset-inline-end:calc(100% + 12px)!important;top:auto!important;bottom:0!important;width:300px!important;padding:14px!important;background:#1c2939;border:1px solid #65758c;border-radius:10px;box-shadow:0 8px 24px #0005;z-index:40}}

html body #namesBtn{font:700 13px/1.35 system-ui,Arial,sans-serif!important;min-height:38px!important;padding:8px 11px!important;background:#26374c!important;border-color:#7188a6!important;color:#f0f5fc!important;display:inline-flex;align-items:center;justify-content:center;gap:7px}html body #namesBtn.active{background:#93c5fd!important;border-color:#c8e6ff!important;color:#173451!important}html body #namesBtn::before{content:"♫";font:22px/1 Arial,sans-serif}

.quick-chord-grid .enh>.chord-key-suffix{color:#f2e9ff!important;font:700 12px/1.1 system-ui,Arial,sans-serif;margin-top:2px;white-space:nowrap}

.quick-chord-grid .enh>.chord-key-roots{white-space:nowrap;direction:ltr;color:#e6f4ff!important;font-size:10px!important}.quick-chord-grid .enh>.chord-key-suffix{color:#eedcff!important}

#quickAnswerPanel #majorQuickGrid{grid-template-columns:repeat(14,minmax(0,1fr)) 6px repeat(14,minmax(0,1fr))!important}.quick-keyboard-captions{direction:rtl!important;gap:6px}.quick-keyboard-captions>span:first-child{color:#78b8ff}.quick-keyboard-captions>span:last-child{color:#c2a0ff}

.btn.difficulty[data-level="5"]{--level-bg:#4d3f66;--level-fg:#dec4ff;--level-edge:#b28dd9}

.btn.difficulty[data-level="6"]{--level-bg:#24504d;--level-fg:#b2f0dc;--level-edge:#76c9b2}:root #quickAnswerPanel #majorQuickGrid>[data-bank="2"][data-acc="0"]{background:linear-gradient(#fff0d4,#edcca0)!important;color:#65421e!important;border-color:#c7a16d!important}.quick-keyboard-captions>span:nth-child(3){background:#805c2d33;color:#f0c886}

.chord-input-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;border:1px solid #7b93b3;border-radius:8px;background:#243449;color:#d9eaff;font:600 12px/1.3 system-ui,Arial,sans-serif;cursor:pointer}
body.chord-input-hidden .chord-input-sidebar{display:none!important}
@media(min-width:900px){body.chord-input-hidden .card{grid-template-columns:minmax(0,1fr)!important}}
body.chord-input-hidden #quickAnswerPanel #majorQuickGrid,body.chord-input-hidden .quick-keyboard-captions{max-width:1050px!important}

:root #quickAnswerPanel #majorQuickGrid>[data-quality^="maj"][data-acc="0"]{background:linear-gradient(#e5f3ff,#badcf5)!important;color:#173e62!important;border-color:#7aafd5!important}
:root #quickAnswerPanel #majorQuickGrid>[data-quality^="min"][data-acc="0"]{background:linear-gradient(#f1e8ff,#d5bdf0)!important;color:#50306c!important;border-color:#aa87ca!important}
:root #quickAnswerPanel #majorQuickGrid>[data-quality^="dom"][data-acc="0"]{background:linear-gradient(#fff0d4,#edcca0)!important;color:#65421e!important;border-color:#c7a16d!important}
:root #quickAnswerPanel #majorQuickGrid>.choice.active[data-acc="0"]{background:#28618e!important;color:#f1f8ff!important;border-color:#8dd3ff!important}

/* Keep the panel toggle outside the column that expands when input is hidden. */
.hero{position:relative}
.hero>.chord-input-toggle{position:absolute;left:200px;bottom:4px;width:185px;white-space:nowrap}
@media(max-width:700px){.hero>.chord-input-toggle{position:static;display:flex;margin:6px auto 0;width:185px}}


.card>.topbar{justify-content:flex-start!important;overflow:visible}
.chord-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;direction:rtl}
.chord-top-actions>.chord-game-more-controls{display:block!important;position:relative;margin:0!important}
.chord-top-actions summary{color:#eef6ff!important;background:#245b80!important;border:1px solid #78b8de!important;min-width:95px}

/* Collapse handle follows the input panel edge, leaving the header clear. */
.card{position:relative}
.card>.chord-input-toggle{position:absolute;right:246px;top:12px;z-index:45;width:26px;min-height:36px;padding:0;border-radius:7px 0 0 7px;font:700 26px/1 system-ui;box-shadow:0 2px 6px #0004}
body.chord-input-hidden .card>.chord-input-toggle{right:0}
@media(max-width:899px){.card>.chord-input-toggle{right:10px;top:auto;bottom:12px;border-radius:7px}body.chord-input-hidden .card>.chord-input-toggle{right:0;bottom:12px}}

/* A centered edge tab keeps the collapse control clear of scores and actions. */
.card>.chord-input-toggle{right:254px;top:50%;bottom:auto;transform:translateY(-50%);width:22px;min-height:48px;border-radius:9px 0 0 9px;background:#263b52;border:1px solid #7995af;border-right:0;color:#e7f3ff;font-size:25px;box-shadow:-2px 2px 6px #0003}
.card>.chord-input-toggle:hover{background:#345573;color:#fff}
.card>.chord-input-toggle:focus-visible{outline:2px solid #82d4ff;outline-offset:2px}
body.chord-input-hidden .card>.chord-input-toggle{right:0}
@media(max-width:899px){.card>.chord-input-toggle{right:0;top:auto;bottom:16px;transform:none}body.chord-input-hidden .card>.chord-input-toggle{bottom:16px}}

.card>.chord-input-toggle{background:#17636b;border-color:#63c8cc;color:#edffff}
.card>.chord-input-toggle:hover{background:#227f87;color:#fff}

/* Match the other apps: collapse control at the top of the panel edge. */
.card>.chord-input-toggle{top:12px;bottom:auto;transform:none;width:26px;min-height:34px;border-radius:7px 0 0 7px}
body.chord-input-hidden .card>.chord-input-toggle{top:12px;bottom:auto}
@media(max-width:899px){.card>.chord-input-toggle{top:12px;bottom:auto}body.chord-input-hidden .card>.chord-input-toggle{top:12px;bottom:auto}}

.card>.chord-input-toggle{width:34px;min-height:34px;background:#1e2d40;border:2px solid #f3f5f8;border-radius:12px;color:#fff;box-shadow:0 0 0 2px #101722;display:flex;align-items:center;justify-content:center}
.card>.chord-input-toggle:hover{background:#30465f}
.card>.chord-input-toggle svg{display:block;transition:transform .15s ease}
.card>.chord-input-toggle.is-collapsed svg{transform:rotate(-90deg)}

/* Keep the collapse button inside the input panel's rounded border. */
@media(min-width:900px){.chord-input-sidebar{padding-top:52px}.card>.chord-input-toggle{right:210px;top:20px}body.chord-input-hidden .card>.chord-input-toggle{right:12px;top:12px}}
@media(max-width:899px){.chord-input-sidebar{position:relative;padding-top:48px}.card>.chord-input-toggle{position:relative;align-self:flex-end;right:auto;top:auto;bottom:auto;margin-top:-44px;margin-right:12px;margin-bottom:10px}body.chord-input-hidden .card>.chord-input-toggle{position:absolute;right:12px;top:12px;margin:0}}

@media(min-width:900px){body.chord-input-hidden .card>.chord-input-toggle{right:210px;top:20px}.card>.topbar{padding-left:44px}}
@media(max-width:899px){.card>.chord-input-toggle,body.chord-input-hidden .card>.chord-input-toggle{position:absolute;right:12px;top:12px;bottom:auto;margin:0}.card>.topbar{padding-right:44px}}

.card>.chord-input-toggle,body.chord-input-hidden .card>.chord-input-toggle{right:20px;top:20px}
.card>.topbar{padding-left:0;padding-right:54px}

.chord-keyboard-actions{display:flex;justify-content:flex-start;direction:rtl;align-items:center;padding:5px 2px 0;gap:8px}

@media(max-width:899px){.chord-game-primary-controls{display:flex!important}}

html body .card>.controls>.chord-game-primary-controls{display:flex!important}
