/* Independent frame offsets; positive values expand the visible frame. */
.adjustable-hover{--hover-top:0px;--hover-bottom:0px;--hover-left:0px;--hover-right:0px;--hover-color:#ffe17a;--hover-width:2px}

.adjustable-hover::after{content:"";position:absolute;pointer-events:none;z-index:20;top:calc(-1 * var(--hover-top));bottom:calc(-1 * var(--hover-bottom));left:calc(-1 * var(--hover-left));right:calc(-1 * var(--hover-right));border:var(--hover-width) solid var(--hover-color);border-radius:inherit;opacity:0;box-sizing:border-box}
@media(hover:hover){.adjustable-hover:hover::after{opacity:1}}
.adjustable-hover:focus-visible::after,.adjustable-hover.touch-armed::after{opacity:1}
.hotspot.touch-armed{background:#ffdd6540!important;box-shadow:0 0 15px #ffe17a;outline:none}
#touch-tip{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:20000;background:#072648;color:white;padding:10px 18px;border:1px solid #ffe17a;border-radius:12px;max-width:80vw;pointer-events:none;font-size:14px}
.hover-editor{position:fixed;right:8px;top:8px;z-index:30000;max-height:calc(100dvh - 16px);overflow:auto;width:min(340px,80vw);padding:16px;box-sizing:border-box;background:#f5f8ff;color:#13243e;border:2px solid #1473a0;border-radius:14px;box-shadow:0 8px 28px #0008;font:14px/1.4 system-ui}
.hover-editor h2{font-size:18px;margin:0}.hover-editor label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}.hover-editor input[type=number]{width:85px}.hover-editor output{display:block;overflow-wrap:anywhere}.hover-editor button{margin:4px;padding:8px}.hover-editor a{color:#064f88}
.feature-page{box-sizing:border-box;max-width:1000px;margin:auto;padding:20px 64px 50px;color:#162b44;background:#f5f8ff;min-height:100dvh;overflow-wrap:anywhere;font:16px/1.5 system-ui}.feature-page a{color:#075494}.feature-page input,.feature-page select,.feature-page textarea{box-sizing:border-box;max-width:100%;font:inherit;padding:8px}.feature-page textarea{display:block;width:100%}.feature-page button{padding:10px 16px;margin:6px 3px;min-height:44px;background:#103d69;color:white;border:1px solid #81b4db;border-radius:9px;font:inherit}.feature-page button:disabled{opacity:.45}.plan-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:16px}.plan-options article{border:1px solid #b6cbe0;border-radius:14px;padding:14px}.assessment-actions{display:flex;flex-wrap:wrap;gap:15px}.curriculum-lessons details{padding:10px;border-bottom:1px solid #d0dce8}.course-answers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:8px}.certificate{border:5px double #947433;padding:25px;background:#fffdf2;text-align:center;margin-top:20px}.pending-content{padding:10px;background:#fff2cc}.theory-link{display:inline-block;margin:12px 0;padding:12px;border-radius:10px;background:#f4d46e;color:#112b48;font-weight:700}.theory-return{position:fixed;left:50%;top:4px;transform:translateX(-50%);z-index:500;padding:6px 12px;border-radius:8px;background:#ffe491;color:#102844;font-size:13px}.encyclopedia-host:has(.theory-return) .encyclopedia-app{padding-top:34px!important}
.ency-scroll-track{position:fixed;right:max(5px,env(safe-area-inset-right));top:72px;bottom:24px;width:48px;background:#163759aa;border:1px solid #99bad7;border-radius:28px;z-index:800;touch-action:none}.ency-scroll-track[hidden]{display:none}.ency-scroll-thumb{position:absolute;left:3px;width:40px;min-height:56px;max-height:100%;border-radius:24px;border:2px solid #fff;background:linear-gradient(#ffe491,#d29b2e);touch-action:none;padding:0;cursor:grab}.ency-scroll-thumb::before{content:'↕';font-size:25px;color:#122b43}.ency-scroll-thumb:active{cursor:grabbing}
/* Keep notation visible within its available width. */
.quiz-staff svg,.review-note svg,.reference-staff svg{max-width:100%;min-width:0!important;display:block;margin:auto;object-fit:contain}
.quiz-staff,.review-note,.reference-staff{min-width:0;overflow:auto}
.quiz-choices{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))!important;gap:8px!important}
.quiz-choices button{min-height:44px!important;padding:8px!important;min-width:0;overflow-wrap:anywhere}
.composer-portrait{min-width:0!important;overflow:hidden}.composer-portrait img{display:block;max-width:100%;width:100%;height:auto;max-height:300px;object-fit:contain!important}.composer-places>*{min-width:0}.composer-flag{box-sizing:border-box;overflow:hidden;flex-shrink:0}
@media(max-width:1000px),(pointer:coarse){
 .encyclopedia-app{padding-right:60px!important;gap:4px!important}.ency-header{min-height:40px!important;padding:3px 7px!important}.ency-brand small,.ency-count{display:none!important}.ency-brand strong{font-size:1rem!important}.ency-category-page>header{padding:5px 9px!important;gap:5px!important}.ency-category-page>header>b,.ency-category-page>header p,.ency-category-page>header small{display:none!important}.ency-category-page h1{font-size:1.1rem!important;margin:0}.ency-category-page header>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ency-content{padding:6px!important}.ency-category{grid-template-columns:48px minmax(0,1fr)!important}.ency-category-rail{padding:3px!important}.ency-category-rail button{padding:3px!important;min-height:40px!important;justify-content:center}.ency-category-rail button span{display:none}.ency-category-rail button b{width:28px}.category-quiz{margin:0;font-size:.7rem}
 .dictionary-tools,.composer-tools,.guide-tools{padding:4px!important;gap:5px!important}.dictionary-tools label>span,.composer-tools label>span,.guide-tools label>span,.dictionary-tools output,.composer-tools output,.composer-note{display:none!important}.dictionary-alphabet{max-height:40px;overflow:auto;padding:3px!important}.dictionary-workspace,.composer-workspace,.guide-workspace{grid-template-columns:minmax(110px,28%) minmax(0,1fr)!important}.dictionary-list,.composer-list,.guide-list{grid-template-columns:1fr!important;gap:4px!important}.dictionary-card,.composer-card,.guide-card{padding:6px!important;min-height:42px!important}.dictionary-detail,.composer-profile,.guide-detail{padding:9px!important;min-width:0!important}.composer-profile{display:block!important}.composer-portrait{display:block!important;float:none;min-height:0!important;max-width:180px;margin:0 auto 10px!important}.composer-portrait img{max-height:160px!important}.composer-story p{font-size:.85rem!important}.composer-places{grid-template-columns:1fr!important}.dictionary-detail dl{grid-template-columns:1fr!important}.dictionary-detail-glyph{display:block!important;max-height:110px}.dictionary-detail-glyph svg{max-width:100%;max-height:105px}.ency-intro{min-height:0!important;padding:12px!important}.ency-intro>span{display:none}.ency-intro h1{font-size:1.5rem}
 .reference-staff{height:auto!important;min-height:135px!important}.reference-staff svg{height:auto!important;max-height:210px}.reference-controls{gap:5px!important}.reference-title{padding:3px!important}.reference-title h2{font-size:1rem!important}.reference-piano-frame{height:140px!important}.learning-app>header{padding:5px!important;gap:5px;flex-wrap:wrap}.learning-app>header h1{font-size:1.15rem}.learning-app>header button{padding:5px 9px!important;min-height:36px}.quiz-question h2{font-size:1.05rem}.quiz-choices button svg{max-height:110px;width:100%}.quiz-question{padding:8px!important}.question-stage{min-height:0!important;height:auto!important}.quiz-staff{height:auto!important}.quiz-staff svg{max-height:170px}.feature-page{padding:14px 56px 35px}.plan-options article{padding:10px}.feature-page h1{font-size:1.6rem}
}
@media(max-width:520px){.dictionary-workspace,.composer-workspace,.guide-workspace{grid-template-columns:1fr!important;grid-template-rows:minmax(70px,24%) minmax(0,1fr)!important}.dictionary-list,.composer-list,.guide-list{max-height:110px}.ency-brand>svg{display:none}.feature-page{padding-left:14px}.review-comparison{grid-template-columns:1fr!important}}
@media print{body.printing-certificate *{visibility:hidden}body.printing-certificate .certificate,body.printing-certificate .certificate *{visibility:visible}body.printing-certificate .certificate{position:fixed;inset:20mm;max-height:200mm}body.printing-certificate .orientation-guard{display:none!important}}

.composer-places section{min-width:0;overflow:hidden}.composer-flag-image,.period-flag{position:relative!important;display:block!important;width:64px!important;height:42px!important;min-width:64px!important;min-height:42px!important;max-width:64px!important;max-height:42px!important;object-fit:contain!important;box-sizing:border-box;overflow:hidden;flex-shrink:0}.composer-places section>span{min-width:0;overflow-wrap:anywhere}
.note-reading-theory{max-width:850px;font-size:1rem;line-height:1.6}.note-reading-theory h3{color:#ffe491}

.notation-card [data-notation]{min-width:0;max-width:100%;overflow:auto}.notation-card svg{display:block;max-width:100%;min-width:0!important;height:auto;max-height:230px;margin:auto}.answer-grid button{min-width:0;overflow-wrap:anywhere}
@media(pointer:coarse),(max-width:1000px){.answer-grid{gap:6px!important}.answer-grid.text-answers button{min-height:44px!important;padding:7px!important;font-size:.85rem!important}.answer-panel{min-width:0!important}.notation-card.large{min-height:120px!important}.notation-card svg{max-height:180px}.dictionary-detail,.dictionary-list{max-height:100%!important}.composer-flag-image,.period-flag{width:54px!important;height:36px!important;min-width:54px!important;min-height:36px!important;max-width:54px!important;max-height:36px!important}}
#frame-tools{padding:10px;display:flex;gap:8px;flex-wrap:wrap;font-size:13px}#frame-tools a{color:#ffe491}#frame-tools button{padding:7px}

#frame-tools[hidden]{display:none}

.learning-app .theory-link{color:#112b48;text-decoration:none}.composer-profile .composer-portrait figure{max-width:100%}
.feature-page{height:100dvh;min-height:0;overflow:auto;overscroll-behavior:contain;color-scheme:light}

/* 3.10.1: permanent compact navigation and a blue subscription surface. */
.app-shell .art-stage{width:min(calc(100vw - 116px),calc(100dvh * var(--art-ratio-num)));height:min(100dvh,calc((100vw - 116px) * var(--art-ratio-inv)))}
.course-locked{cursor:not-allowed!important;filter:saturate(.5);opacity:.82!important}.hotspot.course-locked{background:#04172b55!important;border:1px solid #ffe49166}.course-lock-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:9px;background:#061c40ed;color:#ffe17a;font-size:clamp(16px,2.8vw,28px);line-height:1;pointer-events:none}.hotspot .course-lock-badge{position:absolute;right:5%;top:8%;box-shadow:0 2px 8px #0008}.lesson-button .course-lock-badge{margin-left:8px;font-size:16px}
.subscription-page{height:100dvh;overflow:auto;box-sizing:border-box;padding:18px 68px 36px;background:radial-gradient(ellipse at 50% 0,#14569a 0,#082c59 45%,#03152f 100%);color:#edf7ff;font:16px/1.5 system-ui;color-scheme:dark}.subscription-inner{max-width:1050px;margin:auto}.subscription-back{display:inline-block;color:#b9e5ff;text-decoration:none;margin-bottom:12px}.subscription-art{position:relative;width:100%;aspect-ratio:3.6;overflow:hidden;border-radius:24px 24px 4px 4px;border:1px solid #d9b46666}.subscription-art picture{display:block;width:100%}.subscription-art img{display:block;width:100%;height:auto}.subscription-art::after{content:'';position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#082d59);pointer-events:none}.subscription-heading{text-align:center;padding:14px 0}.subscription-heading small{color:#f9d37e;letter-spacing:.14em;font-weight:800}.subscription-heading h1{font:700 clamp(24px,4vw,40px)/1.15 Georgia,serif;margin:8px 0;color:#fff3cc}.subscription-heading p{margin:0;color:#bddef7}.subscription-current{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #62a4d466;border-radius:18px;padding:14px 22px;background:#061d40aa}.subscription-current small{font-size:11px;letter-spacing:.12em;color:#94cbea}.subscription-current h2{margin:2px 0;font-size:20px}.subscription-current p{margin:0;font-size:14px;color:#c4e0f5}.subscription-plans{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.subscription-plans article{padding:20px;border:1px solid #a7c9eb66;border-radius:22px;background:linear-gradient(135deg,#164b7b,#09264d);text-align:center;box-shadow:0 12px 25px #0003}.subscription-plans article:nth-child(2){border-color:#f8d78488;background:linear-gradient(135deg,#184a80,#172a59)}.subscription-plans h2{font:700 28px Georgia,serif;margin:3px 0}.subscription-plans p{color:#c4def2;margin:8px 0 18px}.plan-symbol{font-size:30px;color:#ffe397}.subscription-plans button,.subscription-primary{display:inline-block;border:1px solid #ffeaa7;border-radius:13px;padding:12px 22px;min-height:48px;background:linear-gradient(#ffe9a1,#efbc52);color:#132c4f;font:800 16px system-ui;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px #0003}.subscription-plans button{width:100%}.subscription-note,.subscription-message{text-align:center;color:#b9d7ed;font-size:14px}.subscription-message:not(:empty){padding:14px;background:#103d68;border-radius:14px;border:1px solid #ffe39788;color:#fff0c7}.subscription-free{display:block;text-align:center;color:#ffe397;margin:18px}.subscription-lock{max-width:600px;margin:clamp(15px,12vh,100px) auto;text-align:center;border:1px solid #77b6e377;border-radius:28px;background:linear-gradient(150deg,#164c7e,#082650);padding:clamp(22px,5vw,50px);box-shadow:0 18px 60px #0005}.subscription-lock>span{font-size:44px}.subscription-lock h1{font:700 clamp(25px,4vw,37px) Georgia,serif;color:#ffedb7}.subscription-lock p{color:#c3def0}.subscription-lock .subscription-primary{margin-top:12px}.reference-text-only{cursor:text;color:inherit;text-decoration:none}
@media(pointer:coarse),(max-width:1000px){.ency-scroll-track{right:60px}.encyclopedia-app{padding-right:114px!important;padding-left:60px!important}.subscription-page{padding:12px 61px 30px}.subscription-plans{gap:10px}.subscription-plans article{padding:12px}.subscription-heading{padding:10px 0}.subscription-current{padding:10px 13px}.subscription-current h2{font-size:17px}.subscription-plans h2{font-size:24px}.subscription-art{border-radius:14px 14px 4px 4px}}
@media(max-width:550px){.subscription-plans{grid-template-columns:1fr}.subscription-current{flex-direction:column;align-items:flex-start;gap:5px}}

.lms-shell-ui.is-content-route .side-dock .dock-button{flex-shrink:0}

.hover-editor {
  position: fixed;
  left: calc(100vw - 350px);
  top: 100px;
}

/* 3.10.1: a single frame owns all four editable edges. */
.hotspot.adjustable-hover:hover,.hotspot.adjustable-hover:focus-visible,.hotspot.adjustable-hover.touch-armed{box-shadow:none!important;outline:none!important}
.hotspot.adjustable-hover::after{box-shadow:inset 0 0 0 3px #083876a3,inset 0 0 24px #ffe2892e,0 0 18px #2c9dff3d}
.hotspot.adjustable-hover:active{transform:none}
.hover-editor{left:auto;right:8px;top:8px;max-height:calc(100dvh - 16px)}
.placement-confirm{padding:14px;background:#102d50;color:white;border:2px solid #ffe17a;border-radius:12px;text-align:center}
.placement-confirm button{margin:8px;min-width:90px;min-height:44px}
.server-account{padding:20px;border:1px solid #77b6e3;border-radius:18px;margin-top:18px}
.server-account input{padding:12px;max-width:90%;font:inherit}
.server-account button{padding:12px;margin:8px;cursor:pointer}

.placement-pending .placement-target{pointer-events:none}
.placement-target.selected::before{opacity:1}
.hotspot-debug.adjustable-hover::after{height:auto}
