.ency-content.dictionary-root,.ency-content.music-reference-root{display:block;padding:0;overflow:hidden}.dictionary-app,.music-reference{height:100%;min-height:0;display:grid;color:#eefaff}.dictionary-app{grid-template-rows:auto auto minmax(0,1fr);gap:8px;padding:clamp(10px,1.6vw,20px)}.dictionary-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.38fr) auto;align-items:end;gap:10px}.dictionary-tools label,.reference-controls label,.reference-library label{display:grid;gap:4px;color:#9bd9f3;font-size:.66rem;font-weight:850}.dictionary-tools input,.dictionary-tools select,.reference-controls select,.reference-library input{width:100%;min-height:39px;padding:7px 11px;color:#fff;border:1px solid #4c9bc8;border-radius:11px;background:#072653;outline:none}.dictionary-tools input:focus,.dictionary-tools select:focus,.reference-controls select:focus,.reference-library input:focus{border-color:#ffe078;box-shadow:0 0 0 2px #ffe07844}.dictionary-tools output,.reference-library output{padding:8px 11px;color:#082653;border-radius:999px;background:#ffe17a;font-size:.68rem;font-weight:900;white-space:nowrap}.dictionary-alphabet{display:flex;gap:4px;padding-bottom:3px;overflow-x:auto}.dictionary-alphabet button{min-width:31px;min-height:31px;color:#d7f1ff;border:1px solid #2f78aa;border-radius:9px;background:#082c5e;cursor:pointer;font-size:.64rem;font-weight:900}.dictionary-alphabet button.is-active{color:#082653;border-color:#fff;background:#ffe17a}.dictionary-list{min-height:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));align-content:start;gap:9px;padding:2px 4px 8px 1px;overflow:auto}.dictionary-card{display:grid;grid-template-columns:43px minmax(0,1fr);gap:10px;padding:11px;border:1px solid #255f8e;border-radius:15px;background:linear-gradient(145deg,#0b467f,#062653);box-shadow:inset 0 1px #ffffff14}.dictionary-glyph{width:43px;height:43px;display:grid;place-items:center;overflow:hidden;color:#082653;border:1px solid #fff8;border-radius:12px;background:linear-gradient(145deg,#fff,#6ddcff);font:800 1.25rem Georgia,serif}.dictionary-card small{color:#75d9ff;font-size:.55rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.dictionary-card h2{margin:2px 0 4px;color:#ffeaa0;font:800 .9rem Georgia,serif}.dictionary-card p{margin:0;color:#d1ebf6;font-size:.67rem;line-height:1.42}.dictionary-empty{grid-column:1/-1;padding:30px;color:#bde7f8;text-align:center;border:1px dashed #4b9dcc;border-radius:17px}
.music-reference{grid-template-rows:auto minmax(360px,1.55fr) minmax(180px,.65fr);gap:8px;padding:9px;overflow:auto}.reference-controls{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr)) auto;align-items:end;gap:8px}.music-reference[data-kind="scale"] .reference-controls{grid-template-columns:repeat(2,minmax(150px,1fr)) auto}.reference-play{min-height:39px;padding:7px 15px;color:#092752;border:1px solid #fff;border-radius:11px;background:linear-gradient(#ffe991,#ffc64d);cursor:pointer;font-weight:900}.reference-stage{min-height:360px;display:grid;grid-template-columns:minmax(190px,.38fr) minmax(300px,.62fr);grid-template-rows:auto auto clamp(150px,23vh,218px);gap:7px 10px;padding:10px;border:1px solid #2778ae;border-radius:18px;background:radial-gradient(circle at 10% 10%,#146eb944,transparent 40%),#041c41}.reference-title{display:grid;align-content:center;gap:3px;padding:7px 10px}.reference-title small,.reference-library header small{color:#63d8ff;font-size:.55rem;font-weight:950;letter-spacing:.13em}.reference-title h2{margin:0;color:#ffe99c;font:850 clamp(1.05rem,2vw,1.65rem) Georgia,serif}.reference-title p{display:grid;gap:3px;margin:3px 0 0;color:#d8f3ff;font-size:.64rem}.reference-title p b{color:#70e5c4}.reference-staff{min-height:125px;overflow:hidden;border:3px solid #e9c253;border-radius:15px;background:#fffef7}.reference-staff svg{width:100%;height:100%;display:block}.reference-switches{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px 18px}.reference-switches label{display:flex;align-items:center;gap:7px;color:#d9f4ff;font-size:.64rem;font-weight:800}.reference-switches input{width:18px;height:18px;accent-color:#ffd96c}.reference-range-note{color:#79cee9;font-size:.58rem;font-weight:800}.reference-piano-frame{grid-column:1/-1;min-height:0;position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 34px;overflow:hidden;border:3px solid #d3a642;border-radius:16px;background:linear-gradient(90deg,#09264c,#050c19 6%,#050c19 94%,#09264c);box-shadow:inset 0 0 18px #000,0 8px 22px #0006}.reference-piano-edge{z-index:5;display:grid;place-items:end center;padding-bottom:8px;color:#ffe79a;border-inline:1px solid #b78527;background:linear-gradient(90deg,#061731,#0e3968);font-size:.53rem;font-weight:950;writing-mode:vertical-rl}.reference-piano-edge.right{transform:none}.reference-piano{position:relative;width:100%;height:100%;min-height:0;user-select:none;touch-action:none}.reference-key{position:absolute;top:0;padding:0;cursor:pointer;touch-action:none}.reference-key.white{z-index:1;width:calc(100% / var(--white-count) + .5px);height:100%;border:1px solid #6b7482;border-top:0;border-radius:0 0 6px 6px;background:linear-gradient(100deg,#d7dfea,#fff 23%,#eef2f6 87%,#c5ccd5)}.reference-key.black{z-index:3;width:calc(100% / var(--white-count) * .64);height:61%;border:1px solid #02040a;border-radius:0 0 6px 6px;background:linear-gradient(100deg,#070a0f,#263142 38%,#03060a 86%);box-shadow:2px 4px 4px #0008;transform:translateX(-50%)}.reference-key-name{position:absolute;left:50%;bottom:7px;opacity:0;color:#0b2a50;font-size:clamp(10px,1.15vw,15px);font-weight:950;transform:translateX(-50%);pointer-events:none}.reference-key.black .reference-key-name{bottom:6px;color:white;font-size:clamp(8px,.9vw,11px);text-shadow:0 1px 3px #000}.reference-piano.show-all-names .reference-key-name,.reference-key.is-harmony-tone .reference-key-name{opacity:1}.reference-key.is-harmony-tone.white{color:#fff;background:linear-gradient(100deg,#06345d,#0b6f86 52%,#07415f);box-shadow:inset 0 -8px #22d8ba}.reference-key.is-harmony-tone.white .reference-key-name{color:#fff;text-shadow:0 1px 3px #000}.reference-key.is-harmony-tone.black{border:2px solid #42f2d2;background:linear-gradient(100deg,#021d2f,#075267 45%,#011823);box-shadow:0 0 12px #22d6bd}.reference-key.is-root-tone.white{background:linear-gradient(100deg,#4d2b00,#8d5b00 52%,#4a2900);box-shadow:inset 0 -9px #ffd65b}.reference-key.is-root-tone.black{border-color:#ffe078;box-shadow:0 0 15px #ffd652}.reference-note-marker{position:absolute;z-index:6;left:50%;bottom:34%;width:clamp(25px,3vw,39px);height:clamp(25px,3vw,39px);display:grid;place-items:center;color:#082346;border:3px solid #fff;border-radius:50%;background:#ffe073;box-shadow:0 2px 0 #9e6700,0 0 0 4px #052d55aa,0 4px 13px #0009;font:950 clamp(.58rem,1vw,.82rem)/1 Arial,sans-serif;transform:translate(-50%,50%);pointer-events:none}.reference-key.black .reference-note-marker{bottom:24%;width:clamp(21px,2.4vw,32px);height:clamp(21px,2.4vw,32px);font-size:clamp(.5rem,.8vw,.7rem)}.reference-key:not(.is-harmony-tone) .reference-note-marker{opacity:0}.reference-key.is-root-tone .reference-note-marker{color:#fff6c4;border-color:#ffe37e;background:#9a3d00;box-shadow:0 0 0 4px #2b1600aa,0 4px 14px #000}.reference-key.is-pressed.white{transform:translateY(3px);filter:brightness(.83)}.reference-key.is-pressed.black{transform:translate(-50%,3px);filter:brightness(1.35)}.reference-library{min-height:180px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #245e8b;border-radius:16px;background:#041a3b}.reference-library>header{display:grid;grid-template-columns:minmax(170px,1fr) minmax(190px,.65fr) auto;align-items:end;gap:10px;padding:8px 11px;border-bottom:1px solid #245e8b}.reference-library h3{margin:1px 0 0;color:#ffe99c;font:800 .95rem Georgia,serif}.reference-list{min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));align-content:start;gap:6px;padding:8px;overflow:auto}.reference-list button{min-height:45px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:6px 8px;color:#d9f3ff;border:1px solid #256697;border-radius:11px;background:#083466;cursor:pointer;text-align:left}.reference-list button b{color:#ffe47e;font:850 .8rem Georgia,serif}.reference-list button span{font-size:.6rem;font-weight:750}.reference-list button small{display:block;color:#79cee9;font-size:.53rem}.reference-list button.is-active{color:#06234a;border-color:#fff;background:#75dfc2}.reference-list button.is-active b,.reference-list button.is-active small{color:#06234a}
@media(max-height:650px) and (orientation:landscape){.music-reference{grid-template-rows:auto minmax(300px,1.4fr) minmax(145px,.6fr)}.reference-stage{min-height:300px;grid-template-rows:auto auto clamp(125px,24vh,170px)}.reference-staff{min-height:100px}.reference-library>header{padding-block:5px}.dictionary-app{padding:8px}.dictionary-card{padding:8px}.dictionary-card p{font-size:.61rem}}
@media(max-width:800px) and (orientation:landscape){.reference-controls{grid-template-columns:repeat(3,minmax(100px,1fr)) auto}.reference-stage{grid-template-columns:minmax(155px,.36fr) minmax(240px,.64fr)}.reference-library>header{grid-template-columns:minmax(130px,.7fr) minmax(160px,1fr) auto}.dictionary-tools{grid-template-columns:minmax(180px,1fr) minmax(130px,.5fr) auto}}
@media(prefers-reduced-motion:reduce){.dictionary-app *,.music-reference *{transition:none!important;scroll-behavior:auto!important}}

/* Dictionary 3.4.1: a separate, unmistakable teaching panel for every term. */
.dictionary-workspace{min-height:0;display:grid;grid-template-columns:minmax(250px,.42fr) minmax(330px,.58fr);gap:10px;overflow:hidden}.dictionary-workspace .dictionary-list{grid-template-columns:1fr;display:grid;align-content:start;gap:7px;padding:2px 5px 9px 1px;overflow:auto}.dictionary-workspace .dictionary-card{width:100%;min-height:65px;display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:10px;padding:9px 11px;color:#eefaff;border:1px solid #255f8e;border-radius:14px;background:linear-gradient(145deg,#0b467f,#062653);box-shadow:inset 0 1px #ffffff14;cursor:pointer;text-align:left}.dictionary-workspace .dictionary-card>span:last-child{min-width:0;display:grid;gap:2px}.dictionary-workspace .dictionary-card small{color:#75d9ff;font-size:.52rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.dictionary-workspace .dictionary-card strong{overflow:hidden;color:#ffeaa0;font:800 .85rem Georgia,serif;text-overflow:ellipsis;white-space:nowrap}.dictionary-workspace .dictionary-card em{overflow:hidden;color:#c9e8f5;font-size:.6rem;font-style:normal;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.dictionary-workspace .dictionary-card.is-active{color:#051f45;border-color:#ffe37a;background:linear-gradient(145deg,#1cb4ca,#7ce8d0);box-shadow:inset 5px 0 #ffd65b,0 0 17px #38dfe055}.dictionary-workspace .dictionary-card.is-active small,.dictionary-workspace .dictionary-card.is-active strong,.dictionary-workspace .dictionary-card.is-active em{color:#061f45}.dictionary-detail{min-height:0;position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto 1fr;align-content:start;gap:3px 13px;padding:clamp(14px,2vw,24px);overflow:auto;border:2px solid #e5bd4b;border-radius:20px;background:radial-gradient(circle at 90% 10%,#1ea3cb33,transparent 35%),linear-gradient(145deg,#082f66,#031c43);box-shadow:inset 0 0 0 3px #071b38,0 10px 25px #0006}.dictionary-detail-glyph{grid-row:1/3;width:clamp(52px,6vw,75px);height:clamp(52px,6vw,75px);display:grid;place-items:center;color:#082653;border:2px solid white;border-radius:18px;background:linear-gradient(145deg,#fff6bb,#57d8ed);font:900 clamp(1.5rem,3vw,2.4rem) Georgia,serif;box-shadow:0 8px 17px #0006}.dictionary-detail>small{align-self:end;color:#67d9ff;font-size:.58rem;font-weight:950;letter-spacing:.11em;text-transform:uppercase}.dictionary-detail>h2{align-self:start;margin:0;color:#fff0a7;font:850 clamp(1.3rem,2.7vw,2.25rem)/1.05 Georgia,serif}.dictionary-definition-zone{grid-column:1/-1;margin-top:10px;padding:clamp(13px,1.7vw,21px);border:2px solid #ffe27b;border-radius:17px;background:linear-gradient(120deg,#866100,#4d3500);box-shadow:inset 0 1px #fff7b8,0 0 21px #ffcf3e28}.dictionary-definition-zone b{display:block;margin-bottom:6px;color:#92efff;font-size:.55rem;letter-spacing:.13em}.dictionary-definition-zone p{margin:0;color:#fffbed;font-size:clamp(.75rem,1.2vw,1rem);font-weight:760;line-height:1.55}.dictionary-detail dl{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}.dictionary-detail dl>div{padding:10px;border:1px solid #2c76a7;border-radius:13px;background:#061f47}.dictionary-detail dt{color:#58dbef;font-size:.55rem;font-weight:950;text-transform:uppercase}.dictionary-detail dd{margin:4px 0 0;color:#d9f2fb;font-size:.66rem;line-height:1.42}
@media(max-width:820px) and (orientation:landscape){.dictionary-workspace{grid-template-columns:minmax(210px,.38fr) minmax(300px,.62fr)}.dictionary-detail dl{grid-template-columns:1fr}.dictionary-detail{padding:12px}.dictionary-definition-zone{padding:11px}.dictionary-workspace .dictionary-card em{display:none}}

/* Composer atlas */
.ency-content.composers-root{display:block;padding:0;overflow:hidden}.composers-app{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;padding:clamp(10px,1.5vw,18px);color:#eefaff}.composer-tools{display:grid;grid-template-columns:minmax(240px,1fr) minmax(170px,.35fr) auto;align-items:end;gap:9px}.composer-tools label{display:grid;gap:4px;color:#9bd9f3;font-size:.62rem;font-weight:900}.composer-tools input,.composer-tools select{width:100%;min-height:39px;padding:7px 11px;color:#fff;border:1px solid #4c9bc8;border-radius:11px;background:#072653;outline:none}.composer-tools output{padding:8px 11px;color:#082653;border-radius:999px;background:#ffe17a;font-size:.68rem;font-weight:900;white-space:nowrap}.composer-note{display:flex;align-items:center;gap:9px;padding:7px 10px;color:#cfeaf6;border:1px solid #756533;border-radius:11px;background:#2d260d;font-size:.58rem;line-height:1.35}.composer-note b{flex:0 0 auto;color:#ffe68b;text-transform:uppercase}.composer-workspace{min-height:0;display:grid;grid-template-columns:minmax(240px,.34fr) minmax(420px,.66fr);gap:10px;overflow:hidden}.composer-list{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:7px;padding-right:4px;overflow:auto}.composer-card{min-height:69px;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 8px;padding:8px;color:#e5f6fd;border:1px solid #255f8e;border-radius:13px;background:linear-gradient(145deg,#0b467f,#062653);cursor:pointer;text-align:left}.composer-card>span{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;color:#072653;border-radius:11px;background:linear-gradient(145deg,#fff6b3,#5cd8ff);font-size:.72rem;font-weight:950}.composer-card>b{overflow:hidden;color:#ffe9a0;font:800 .71rem Georgia,serif;text-overflow:ellipsis;white-space:nowrap}.composer-card>small{overflow:hidden;color:#92d6ed;font-size:.5rem;text-overflow:ellipsis;white-space:nowrap}.composer-card.is-active{border-color:#ffe073;background:linear-gradient(145deg,#126d95,#0a4f6c);box-shadow:inset 4px 0 #ffe073,0 0 15px #44d8e344}.composer-profile{min-height:0;display:grid;grid-template-columns:minmax(120px,.28fr) minmax(0,.72fr);grid-template-rows:auto auto auto auto;gap:10px 14px;padding:clamp(12px,2vw,23px);overflow:auto;border:2px solid #d8ad45;border-radius:20px;background:radial-gradient(circle at 10% 10%,#e4a51e2c,transparent 32%),linear-gradient(145deg,#082e62,#031a3d);box-shadow:inset 0 0 0 3px #06152e,0 12px 30px #0006}.composer-portrait{grid-row:1/4;min-height:210px;display:grid;place-items:center;align-content:center;gap:8px;overflow:hidden;border:3px solid #dcb34d;border-radius:18px;background:radial-gradient(circle at 50% 30%,#3c90c9,#0a356c 60%,#041b3e);box-shadow:inset 0 0 35px #0006}.composer-portrait img{width:100%;height:100%;object-fit:cover}.composer-portrait>span{width:clamp(76px,10vw,120px);aspect-ratio:1;display:grid;place-items:center;color:#ffe38a;border:2px solid #ffe38a;border-radius:50%;background:#031b41;font:900 clamp(1.7rem,4vw,3.2rem) Georgia,serif}.composer-portrait>small{color:#8bdcf4;font-size:.52rem;font-weight:900;letter-spacing:.11em}.composer-profile-title{align-self:center}.composer-profile-title small{color:#5bdcf2;font-size:.57rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.composer-profile-title h2{margin:3px 0;color:#fff0a8;font:850 clamp(1.35rem,3vw,2.5rem)/1 Georgia,serif}.composer-profile-title strong{color:#fff;font-size:.78rem}.composer-places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.composer-places section{min-width:0;display:grid;grid-template-columns:clamp(49px,5vw,66px) minmax(0,1fr);align-items:center;gap:8px;padding:8px;border:1px solid #2e74a5;border-radius:13px;background:#061f47}.composer-places section>span:last-child{min-width:0;display:grid;gap:2px}.composer-places small{color:#62d8ed;font-size:.48rem;font-weight:950}.composer-places b{color:#f8fbff;font-size:.63rem}.composer-places em{color:#98cfe4;font-size:.49rem;font-style:normal}.period-flag{width:100%;aspect-ratio:3/2;position:relative;display:grid;place-items:center;overflow:hidden;border:2px solid #fff;border-radius:7px;background:#173a68;box-shadow:0 3px 8px #0008}.period-flag i{color:#ffd95c;font-size:1.35rem;font-style:normal;text-shadow:0 1px 3px #000}.composer-story,.composer-works{grid-column:1/-1;padding:11px 13px;border:1px solid #2d70a0;border-radius:13px;background:#061f47}.composer-story>b,.composer-works>small{color:#5adbec;font-size:.53rem;font-weight:950;letter-spacing:.09em;text-transform:uppercase}.composer-story p{margin:5px 0 0;color:#d9f2fb;font-size:.7rem;line-height:1.5}.composer-works{display:grid;gap:4px;border-color:#8d742e;background:#2c240a}.composer-works strong{color:#ffe8a0;font:800 .78rem Georgia,serif}
.flag-france{background:linear-gradient(90deg,#163b91 0 33%,#fff 33% 66%,#e33136 66%)}.flag-italy,.flag-italy-royal{background:linear-gradient(90deg,#17834a 0 33%,#fff 33% 66%,#d92f3a 66%)}.flag-netherlands{background:linear-gradient(#ae1c28 0 33%,#fff 33% 66%,#21468b 66%)}.flag-germany{background:linear-gradient(#171717 0 33%,#d5232f 33% 66%,#f4ca34 66%)}.flag-german-empire{background:linear-gradient(#111 0 33%,#fff 33% 66%,#d82631 66%)}.flag-austria{background:linear-gradient(#d62632 0 33%,#fff 33% 66%,#d62632 66%)}.flag-habsburg{background:linear-gradient(90deg,#171717 0 50%,#f5cc32 50%)}.flag-austria-hungary{background:linear-gradient(90deg,#171717 0 25%,#f4cb32 25% 50%,#c92636 50% 75%,#258052 75%)}.flag-england{background:linear-gradient(transparent 41%,#ce2635 41% 59%,transparent 59%),linear-gradient(90deg,transparent 41%,#ce2635 41% 59%,transparent 59%),#fff}.flag-union,.flag-australia{background:linear-gradient(32deg,transparent 42%,#fff 42% 47%,#d41e32 47% 53%,#fff 53% 58%,transparent 58%),linear-gradient(-32deg,transparent 42%,#fff 42% 47%,#d41e32 47% 53%,#fff 53% 58%,transparent 58%),linear-gradient(90deg,transparent 42%,#fff 42% 47%,#d41e32 47% 53%,#fff 53% 58%,transparent 58%),linear-gradient(transparent 39%,#fff 39% 45%,#d41e32 45% 55%,#fff 55% 61%,transparent 61%),#173b8f}.flag-denmark,.flag-norway,.flag-norway-sweden{background:linear-gradient(transparent 40%,#fff 40% 47%,#154b96 47% 55%,#fff 55% 62%,transparent 62%),linear-gradient(90deg,transparent 31%,#fff 31% 38%,#154b96 38% 46%,#fff 46% 53%,transparent 53%),#c81e36}.flag-finland{background:linear-gradient(transparent 38%,#174f9b 38% 58%,transparent 58%),linear-gradient(90deg,transparent 30%,#174f9b 30% 45%,transparent 45%),#fff}.flag-russian-empire{background:linear-gradient(#111 0 33%,#efc72f 33% 66%,#fff 66%)}.flag-ussr{background:#c8202d}.flag-ussr i{color:#ffd848}.flag-poland{background:linear-gradient(#fff 0 50%,#d82742 50%)}.flag-hungary{background:linear-gradient(#ce2939 0 33%,#fff 33% 66%,#39794b 66%)}.flag-czechoslovakia{background:linear-gradient(28deg,#23539b 0 36%,transparent 37%),linear-gradient(#fff 0 50%,#d82538 50%)}.flag-belgium{background:linear-gradient(90deg,#111 0 33%,#f2cd31 33% 66%,#d92835 66%)}.flag-argentina{background:linear-gradient(#74bce9 0 33%,#fff 33% 66%,#74bce9 66%)}.flag-spain,.flag-spain-royal{background:linear-gradient(#a81e2c 0 25%,#f2c837 25% 75%,#a81e2c 75%)}.flag-usa{background:repeating-linear-gradient(#c92332 0 8%,#fff 8% 16%)}.flag-usa:before{content:'★';position:absolute;inset:0 52% 46% 0;display:grid;place-items:center;color:#fff;background:#1b3d83;font-size:.65rem}.flag-royal-france,.flag-imperial,.flag-papal,.flag-venice,.flag-mantua,.flag-italian-states,.flag-tuscany,.flag-bohemia,.flag-finland-grand,.flag-prussia,.flag-burgundy,.flag-saxony,.flag-hamburg,.flag-bavaria{background:linear-gradient(145deg,#173f86,#08234c)}
@media(max-width:900px) and (orientation:landscape){.composer-workspace{grid-template-columns:minmax(210px,.32fr) minmax(390px,.68fr)}.composer-list{grid-template-columns:1fr}.composer-note{display:none}.composers-app{grid-template-rows:auto minmax(0,1fr)}.composer-profile{grid-template-columns:110px minmax(0,1fr);padding:11px}.composer-portrait{min-height:180px}.composer-story p{font-size:.62rem}}

/* Parent-and-child instrument guide */
.ency-content.instrument-guide-root{display:block;padding:0;overflow:hidden}.instrument-guide-app{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;padding:clamp(10px,1.5vw,18px);color:#eefaff}.guide-tools{display:grid;grid-template-columns:minmax(230px,1fr) repeat(2,minmax(150px,.32fr));align-items:end;gap:9px}.guide-tools label{display:grid;gap:4px;color:#9bd9f3;font-size:.62rem;font-weight:900}.guide-tools input,.guide-tools select{width:100%;min-height:39px;padding:7px 11px;color:#fff;border:1px solid #4c9bc8;border-radius:11px;background:#072653;outline:none}.guide-disclaimer{display:flex;gap:9px;padding:7px 10px;color:#d7edf6;border:1px solid #4d806e;border-radius:11px;background:#0b392f;font-size:.58rem;line-height:1.35}.guide-disclaimer b{color:#8ff2ca;white-space:nowrap}.guide-workspace{min-height:0;display:grid;grid-template-columns:minmax(245px,.34fr) minmax(400px,.66fr);gap:10px;overflow:hidden}.guide-list{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:7px;padding-right:4px;overflow:auto}.guide-card{min-height:68px;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 8px;padding:8px;color:#e5f6fd;border:1px solid #255f8e;border-radius:13px;background:linear-gradient(145deg,#0b467f,#062653);cursor:pointer;text-align:left}.guide-card>span{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;color:#072653;border-radius:50%;background:linear-gradient(145deg,#dffff2,#64dfbb);font-weight:950}.guide-card>b{color:#fff0aa;font:800 .72rem Georgia,serif}.guide-card>small{color:#92d6ed;font-size:.51rem}.guide-card.is-active{border-color:#75e4bd;background:linear-gradient(145deg,#126e72,#0a4a5c);box-shadow:inset 4px 0 #ffe073,0 0 15px #44d8e344}.guide-detail{min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;gap:10px 13px;padding:clamp(12px,2vw,22px);overflow:auto;border:2px solid #66d7b0;border-radius:20px;background:radial-gradient(circle at 8% 8%,#38c7972b,transparent 31%),linear-gradient(145deg,#082e62,#031a3d);box-shadow:inset 0 0 0 3px #06152e,0 12px 30px #0006}.guide-instrument-icon{width:clamp(62px,7vw,88px);height:clamp(62px,7vw,88px);display:grid;place-items:center;color:#06264c;border:2px solid white;border-radius:22px;background:linear-gradient(145deg,#eafff5,#54d9b1);font:900 clamp(1.6rem,3vw,2.5rem) Georgia,serif}.guide-heading{align-self:center}.guide-heading small{color:#6ce0bc;font-size:.54rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}.guide-heading h2{margin:3px 0 6px;color:#fff0a8;font:850 clamp(1.25rem,2.7vw,2.3rem)/1 Georgia,serif}.cost-pill{display:inline-flex;padding:4px 8px;color:#06244a;border-radius:999px;background:#ffe076;font-size:.55rem;font-weight:950}.guide-detail>section{grid-column:1/-1;padding:11px 13px;border:1px solid #2d70a0;border-radius:13px;background:#061f47}.guide-detail>section b{color:#62e5c0;font-size:.6rem;text-transform:uppercase}.guide-detail>section p{margin:5px 0 0;color:#d9f2fb;font-size:.7rem;line-height:1.48}.guide-advice{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.guide-advice h3{grid-column:1/-1;margin:4px 0 0;color:#ffe99d;font:850 .95rem Georgia,serif}.guide-advice details{border:1px solid #367ba2;border-radius:11px;background:#082956}.guide-advice summary{padding:8px 10px;color:#7fe5c4;cursor:pointer;font-size:.62rem;font-weight:900}.guide-advice p{margin:0;padding:0 10px 10px;color:#d5ebf5;font-size:.6rem;line-height:1.42}
@media(max-width:900px) and (orientation:landscape){.guide-workspace{grid-template-columns:minmax(205px,.31fr) minmax(390px,.69fr)}.guide-list{grid-template-columns:1fr}.guide-disclaimer{display:none}.instrument-guide-app{grid-template-rows:auto minmax(0,1fr)}.guide-detail{padding:11px}.guide-detail>section p{font-size:.62rem}.guide-advice{grid-template-columns:1fr}}
/* 3.5: independent list/detail scrolling and content-sized inner panels. */
.dictionary-detail{grid-template-rows:auto auto auto auto;align-self:start;max-height:100%}.dictionary-detail dl{align-items:start}.dictionary-detail dl>div{align-self:start}.composer-profile,.guide-detail{align-content:start;align-self:start;max-height:100%}.dictionary-workspace,.composer-workspace,.guide-workspace{height:100%;min-height:0}.music-reference{grid-template-rows:auto auto auto;height:100%;align-content:start}.reference-stage{min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto;align-content:start}.reference-title{padding:4px}.reference-staff{height:205px;min-height:0;width:100%;overflow:auto}.reference-staff svg{min-width:560px;height:205px}.reference-switches,.reference-piano-frame{grid-column:1}.reference-piano-frame{height:180px;min-height:0}.reference-library{min-height:0;overflow:visible;grid-template-rows:auto auto}.reference-list{max-height:290px;align-items:start}.reference-controls,.music-reference[data-kind="scale"] .reference-controls{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.scale-lesson{font-size:.8rem;line-height:1.5;min-width:0}.scale-lesson p{margin:10px 0}.degree-row,.step-row,.function-row{display:flex;flex-wrap:wrap;gap:8px}.degree,.step-row>span,.function-row article{display:grid;gap:3px;padding:8px;border:1px solid #39739b;border-radius:9px;background:#092e54}.degree.stable{border-color:#63e9b7;background:#104537}.degree small{font-size:.6rem}.degree b{color:#ffe491}.step-row>span{flex:1;min-width:90px}.step-row b{font-size:.68rem}.function-row article{flex:1;min-width:140px}.scale-lesson details{padding:9px;border:1px solid #39739b;border-radius:9px;margin-top:8px}.scale-lesson summary{cursor:pointer;color:#ffe491}
@media(max-width:800px){.dictionary-tools,.composer-tools,.guide-tools{grid-template-columns:minmax(0,1fr) minmax(100px,.7fr)}.dictionary-tools output,.composer-tools output{grid-column:1/-1;justify-self:start}.dictionary-workspace,.composer-workspace,.guide-workspace{grid-template-columns:minmax(120px,.36fr) minmax(0,.64fr)}.dictionary-detail{padding:10px;grid-template-columns:1fr}.dictionary-detail-glyph{display:none}.dictionary-detail dl{grid-template-columns:1fr}.dictionary-card{grid-template-columns:1fr!important}.dictionary-glyph{display:none}.composer-list,.guide-list{grid-template-columns:1fr}.composer-profile{grid-template-columns:1fr}.composer-portrait{display:none}.composer-places{grid-template-columns:1fr}.reference-library>header{grid-template-columns:1fr}.reference-title h2{font-size:1.2rem}.dictionary-detail>h2{font-size:1.1rem}}
.ency-content.theory-reference{display:block}.theory-reference section>label{display:block;margin:15px 0}.theory-reference select{padding:10px;background:#092c51;color:white}.theory-reference a{color:#ffe491}.theory-reference [data-cards]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(350px,100%),1fr));gap:12px}.theory-reference article{min-width:0;align-self:start;border:1px solid #3977a4;border-radius:12px;padding:12px;background:#08213e}.theory-reference h3{color:#ffe491;margin:5px 0}.theory-reference p{font-size:.85rem;line-height:1.5}.theory-reference [data-staff],.theory-reference [data-signs]{background:#fffdf5;border-radius:9px;overflow:auto}.theory-reference svg{display:block;max-width:100%;height:auto}

.instrument-section-nav { display:flex; flex-wrap:wrap; gap:12px; margin:0 0 16px; }
.instrument-section-nav a { color:#c8f4ff; padding:10px 14px; border:1px solid #45657c; border-radius:12px; text-decoration:none; }
.instrument-section-nav a[aria-current="page"] { background:#123b50; }
.instrument-section-nav a:focus-visible { outline:3px solid #ffd05f; outline-offset:3px; }
