@font-face{font-family:IHAccidentals;src:url('/persian-accidentals.ttf') format('truetype');unicode-range:U+1D1E9-1D1EA;font-display:swap}
/* IranHarmonia Melody Lab: one teaching sequence, three levels.
   Plain CSS; no fonts or other additional downloads. */
body.melody-lab-page{background:#fff8ef}
.melody-lab-page .lab-hero{background:radial-gradient(circle at 85% 16%,#ffc77c70,transparent 34%),radial-gradient(circle at 6% 80%,#c5ebd785,transparent 42%),#fff0d8}
.melody-lab-page .lab-selects{display:grid;grid-template-columns:minmax(180px,1.45fr) repeat(2,minmax(160px,1fr));align-items:end;gap:13px}
.lab-selects label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:850;color:#705447}
.lab-selects select{width:100%;min-height:45px;background:#fff;color:#534239;border-radius:10px;padding:9px 12px;border:1px solid #e4ccb6}
.lab-model-info{font-size:12px;margin:15px 0 20px;line-height:1.65}
.degrees-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:13px}
.degrees-heading strong{font-size:17px}
.degrees-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding:10px 2px 18px}
.degree-path{min-width:760px;display:flex;align-items:stretch;gap:6px;direction:ltr;justify-content:space-between}
.scale-note{--tone:#f0cfab;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:109px;min-width:84px;flex:1 1 85px;border-radius:15px;background:var(--tone);border:1px solid #fff8f2;box-shadow:0 4px 0 #a6816822;padding:8px 4px;text-align:center;direction:rtl}
.scale-note .scale-degree{font-weight:900;font-size:11px;color:#755a48}
.scale-note .scale-name{font-size:15px;font-weight:900;color:#463a35;line-height:1.4}
.scale-note .scale-latin{font-size:11px;font-weight:700;color:#655348;direction:ltr;white-space:nowrap}
.scale-note .scale-frequency{font-size:10px;color:#7a6458;direction:ltr}
.scale-note.first{border:2px solid #d38145}
.scale-note.last{border:2px dashed #bc956a}
.scale-gap{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 49px;text-align:center;color:#876d5d;direction:ltr}
.scale-gap .arrow{font-size:21px;line-height:1;color:#bf8763}
.scale-gap .pardeh{font-size:11px;font-weight:950;white-space:nowrap}
.scale-gap .cents{font-size:10px;white-space:nowrap}
.example-keyboard{border:1px solid #ecdbc9;background:#faf1e6;border-radius:16px;padding:15px 15px 8px;margin-top:5px}
.example-keyboard-head{display:flex;align-items:baseline;gap:8px;justify-content:space-between;flex-wrap:wrap;margin-bottom:9px}
.example-keyboard-head strong{font-size:14px}
.example-keyboard-head span{font-size:11px;color:#927968}
.keyboard-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;direction:ltr;padding:4px 1px 15px;-webkit-overflow-scrolling:touch}
.keyboard-scroll:focus-visible{outline:3px solid #2b8177;outline-offset:2px}
.lab-keyboard{width:100%;min-width:750px;direction:ltr;padding:2px 2px 3px}
.lab-keys{height:176px;position:relative;display:flex;background:#d8d4cf;direction:ltr;border:2px solid #8c7d70;border-radius:8px 8px 10px 10px;box-shadow:0 6px 0 #c8af9a,0 9px 11px #0000001c;overflow:hidden}
.lab-keyboard.read-only .lab-keys{height:123px}
.lab-key{display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:3px;box-sizing:border-box;border-radius:0;position:relative;user-select:none;-webkit-user-select:none;text-align:center}
button.lab-key{cursor:pointer;touch-action:manipulation}
.lab-key.disabled{color:#9d9691;cursor:not-allowed!important}
.lab-key.white{width:calc(100% / 14);flex:0 0 calc(100% / 14);height:100%;background:linear-gradient(#eeece9,#dedbd6);border:0;border-right:1px solid #b7afa5;padding:5px 0 9px}
.lab-key.white.allowed{color:#533f33;background:linear-gradient(#fffefb,var(--tone,#f4d8ba));border-bottom:6px solid #fff8ec}
.lab-key.white.allowed:hover{filter:brightness(.98) saturate(1.1)}
.lab-key.black{width:4.7%;height:63%;position:absolute;top:0;transform:translateX(-50%);z-index:2;padding:4px 0 9px;border:1px solid #554d49;border-radius:0 0 6px 6px;background:linear-gradient(90deg,#69615d,#4c4744 72%);color:#bcb5af;box-shadow:2px 4px 5px #0005}
.lab-key.black.allowed{background:linear-gradient(#554d48,var(--tone,#b4d6c7));color:#29352f;border-color:#9b9a8b}
.lab-key .note-latin{direction:ltr;font-size:11px;font-weight:800;white-space:nowrap}
.lab-key.black .note-latin{font-size:10px}
.lab-key .note-persian{direction:rtl;font-family:IHAccidentals,Tahoma,"Segoe UI",system-ui,sans-serif;font-size:10px;font-weight:850;line-height:1.25}
.lab-key.black .note-persian{font-size:9px}
.lab-key .dot{width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid #b78256;margin-bottom:auto;margin-top:12px}
.lab-key.black .dot{width:9px;height:9px;margin-top:7px;border-width:2px}
.lab-keyboard.read-only .lab-key .dot{margin-top:3px}
button.lab-key:focus-visible,button.micro-badge:focus-visible{outline:3px solid #21968d;outline-offset:-2px;z-index:7}
button.lab-key:active{filter:brightness(.89)}
.micro-badge{--tone:#f3d2ae;position:absolute;left:0;bottom:26px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:52px;min-width:62px;max-width:82px;border:2px solid #fff7ef;border-radius:12px;background:var(--tone);color:#433b34;padding:6px 5px;box-shadow:0 3px 10px #332a2850;font-size:10px;font-weight:800;white-space:normal;direction:ltr;text-align:center}
.micro-badge .micro-fa{font-size:11px;font-weight:900;direction:rtl;font-family:IHAccidentals,Tahoma,"Segoe UI",system-ui,sans-serif}
.micro-badge .micro-latin{font-size:10px;font-weight:800}
.micro-badge:after{content:"";width:2px;height:13px;background:#ae8067;position:absolute;bottom:-13px}
.micro-badge[data-lane="1"]{bottom:88px}
button.micro-badge{cursor:pointer;touch-action:manipulation}
button.micro-badge:hover{filter:brightness(1.04)}
.lab-keyboard.read-only .micro-badge{min-height:38px;bottom:20px;min-width:53px;padding:3px;box-shadow:0 2px 5px #332a2830}
.lab-keyboard.read-only .micro-badge[data-lane="1"]{bottom:65px}
.lab-keyboard.read-only .micro-badge .micro-fa{font-size:9px}
.lab-keyboard.read-only .micro-badge .micro-latin{font-size:9px}
.lab-model-note{margin-top:16px}
.exercise-intro{background:#e6f3e9;border:1px solid #c9e2d0;border-radius:13px;padding:12px 14px;font-size:13px;color:#316451;margin:12px 0 16px;font-weight:800}
.choice-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.note-choice{--tone:#f5d8b5;min-width:0;border:1px solid #f7efe7;border-bottom:4px solid #00000010;min-height:104px;background:var(--tone);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 4px;color:#493b34;font-weight:850;cursor:pointer;touch-action:manipulation;transition:transform .14s,box-shadow .14s}
.note-choice strong{font-size:11px}
.note-choice .choice-name{font-size:13px;line-height:1.45;text-align:center;word-break:break-word}
.note-choice .choice-latin{font-size:10px;direction:ltr}
.note-choice.suggested{outline:2px solid #4b987d;outline-offset:1px;box-shadow:0 4px 8px #4a8e7b28}
.note-choice:hover{transform:translateY(-3px)}
.note-choice:disabled{opacity:.45;cursor:not-allowed}
.choice-information{padding:11px 4px 0;color:#8b6a55}
.phrase-trail{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:72px;padding:14px;background:#fff2e5;border:1px dashed #e2b993;border-radius:14px;margin-top:12px}
.phrase-item{--tone:#f8dac7;background:var(--tone);border:1px solid #fff9f2;border-radius:11px;display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 9px;font-size:12px;font-weight:900}
.phrase-item.first{border:2px solid #5f9984}
.phrase-item.rest{background:#e8e0da;border-style:dashed}
.phrase-item .position{font-size:10px;color:#7e6a60}
.phrase-item .length-badge{min-width:36px;min-height:34px;border:1px solid #debca1;background:#fffaf2;border-radius:8px;font-size:11px;color:#735545;cursor:pointer}
.phrase-item .length-badge:hover{background:#e8f2e9}
.melody-progress{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;color:#9b7863;font-size:11px;margin-top:7px}
.melody-progress #melodyCount{font-weight:900;color:#377a6d}
.rhythm-drawer{margin:16px 0 0}
.rhythm-drawer .length-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.rhythm-drawer .rhythm-option{flex:1 1 114px}
.workshop-actions{margin-top:17px}
.piano-play-card{background:linear-gradient(160deg,#fffdf8,#fff5e8)}
.keyboard-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 12px}
.legend-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#856b5b}
.legend-dot{display:inline-block;width:13px;height:13px;border-radius:4px;border:1px solid #b9a392}
.legend-dot.allowed{background:#b1d7c2}.legend-dot.disabled{background:#dedbd6}.legend-dot.quarter{background:#edc18b;border-radius:50%}
body.melody-lab-page .piano-detail{margin-top:13px;font-size:12px;color:#775b48}
@media(max-width:980px){.choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.lab-selects{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-selects label:last-child{grid-column:1/-1}}
@media(max-width:640px){.lab-selects{grid-template-columns:1fr}.lab-selects label:last-child{grid-column:auto}.choice-grid{gap:6px}.note-choice{min-height:83px;padding:5px 2px}.note-choice .choice-name{font-size:11px}.example-keyboard{padding:11px 8px}.lab-keyboard{min-width:750px}.degrees-scroll{padding-bottom:12px}.phrase-trail{padding:9px}.scale-gap{flex-basis:44px}.scale-note{min-width:77px}}

/* Full Persian/English interval-unit labels must not overlap. */
.scale-gap{flex-basis:68px}
.degree-path{min-width:1160px}
@media(max-width:640px){.scale-gap{flex-basis:68px}}

/* v3: Use the original piano key for koron/sori, with Unicode symbols
 * U+1D1EA / U+1D1E9 and a readable name as font fallback. */
.lab-key .key-accidental{
 display:block;flex:0 0 auto;
 font-family:IHAccidentals,"Noto Sans Symbols 2","Segoe UI Symbol",system-ui,sans-serif;
 font-size:24px;font-weight:850;line-height:1.1;
 color:#835034;margin-top:4px;
}
.lab-key .key-accidental-word{
 font-size:10px;color:#704931;font-weight:900;
 direction:rtl;white-space:nowrap;
}
.lab-key.black .key-accidental{
 font-size:18px;margin-top:1px;color:#322b2a
}
.lab-key.black .key-accidental-word{font-size:9px;color:#322b2a}
.lab-keyboard.read-only .key-accidental{font-size:19px}
.lab-keyboard.read-only .key-accidental-word{font-size:8px}
.lab-keyboard.read-only .lab-key.black .key-accidental{font-size:15px}
.lab-keyboard.read-only .lab-key.black .key-accidental-word{font-size:8px}
.lab-keyboard .lab-key.allowed .note-persian{font-weight:900}
.lab-keyboard .lab-key.disabled{filter:grayscale(1);opacity:.83}
.model-info,.lab-model-note,.lab-selects label{
 overflow-wrap:anywhere;
}
.mobile-keyboard-tip{display:none;font-size:11px;color:#8c6b51;font-weight:800;margin:7px 0 4px}
/* Small screens: the three native selects must stay within the card,
 * with 16px input text to prevent iOS focus-zoom and enough tap area. */
@media(max-width:700px){
 .melody-lab-page main{max-width:100%;min-width:0;overflow-x:clip}
 .melody-lab-page .card{min-width:0;max-width:100%;overflow:hidden}
 .melody-lab-page .lab-selects,
 .melody-lab-page .lab-selects label:last-child{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-column:auto;min-width:0;max-width:100%;
 }
 .melody-lab-page .lab-selects{gap:10px;margin-top:13px}
 .melody-lab-page .lab-selects label{
  display:flex;flex-direction:column;align-items:stretch;gap:6px;
  padding:11px 12px 12px;
  border-radius:13px;
  background:#fffaf2;border:1px solid #ecddca;
  font-size:12px;line-height:1.45;
 }
 .melody-lab-page .lab-selects select{
  display:block;min-width:0;max-width:100%;width:100%;
  box-sizing:border-box;padding:10px 12px;
  height:48px;min-height:48px;
  font-size:16px;line-height:24px;
  white-space:nowrap;text-overflow:ellipsis;
  background-color:#fffdf9;color:#493c34;
  border:1px solid #d9b99b;border-radius:10px;
  text-align:start;
 }
 .lab-model-info{margin:13px 0 16px;padding:10px 12px;font-size:11px}
 .degrees-scroll{overflow-x:visible;padding:4px 0 10px}
 .degree-path{
  min-width:0;width:100%;max-width:100%;
  flex-direction:column;align-items:stretch;
  gap:3px;direction:rtl;
 }
 .scale-note{
  min-width:0;width:100%;min-height:54px;max-width:100%;
  flex:0 0 auto;
  flex-direction:row;justify-content:space-between;
  padding:9px 12px;gap:9px;border-radius:11px;
  text-align:start;direction:rtl;
 }
 .scale-note .scale-degree{min-width:54px;font-size:11px}
 .scale-note .scale-name{font-size:14px;flex:1;text-align:center}
 .scale-note .scale-latin{font-size:12px}
 .scale-note .scale-frequency{display:none}
 .scale-gap{
  width:100%;min-height:28px;
  flex:0 0 auto;flex-direction:row;gap:8px;
  justify-content:center;align-items:center;padding:0 4px;
 }
 .scale-gap .arrow{font-size:16px;transform:rotate(90deg)}
 .scale-gap .pardeh,.scale-gap .cents{font-size:10px}
 .example-keyboard{margin-top:7px;padding:11px 8px}
 .example-keyboard-head strong{font-size:13px}
 .example-keyboard-head span{font-size:10px}
 .mobile-keyboard-tip{display:block}
 .learning-card,.creative-card,.piano-play-card{overflow:hidden}
 .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .note-choice{min-height:84px;max-width:100%;padding:5px 2px}
 .note-choice .choice-name{font-size:10px}
 .note-choice .choice-latin{font-size:9px}
 .rhythm-drawer .length-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .rhythm-drawer .rhythm-option{min-width:0}
 .workshop-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .workshop-actions #playPhrase{grid-column:1/-1}
 .workshop-actions .btn{width:100%;min-width:0}
 .lab-keyboard{min-width:735px}
 .lab-key .key-accidental{font-size:22px}
 .lab-keyboard.read-only .key-accidental{font-size:19px}
}
@media(min-width:701px) and (max-width:950px){
 .melody-lab-page .lab-selects{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .melody-lab-page .lab-selects label:last-child{
  grid-column:1/-1
 }
 .melody-lab-page .lab-selects label{min-width:0}
 .melody-lab-page .lab-selects select{min-width:0;max-width:100%}
}

.altered-notes{
 margin:9px 0 4px;
 padding:9px 11px;
 border-radius:9px;
 background:#fff1dd;
 color:#755038;
 font-size:12px;line-height:1.8;
 font-weight:850;overflow-wrap:anywhere;
}
.piano-play-card .altered-notes{
 margin-top:6px;background:#e9f4ec;
 color:#3b7665
}
@media(max-width:700px){
 .altered-notes{font-size:11px;padding:8px 9px}
}

/* Keep readable Latin note roots (Mi, Sol, C, G) with native Persian
   modifier words, including on narrow phones. */
.scale-note .scale-name,.note-choice .choice-name,
.phrase-item span:not(.position),.altered-notes{
 unicode-bidi:plaintext;
}
.scale-note .scale-name,.note-choice .choice-name{direction:ltr}
.lab-key .note-latin{direction:ltr;unicode-bidi:isolate}
.lab-key .key-accidental-word{direction:rtl;unicode-bidi:isolate}
.note-choice .choice-name{overflow-wrap:anywhere}

.explorer-panel{padding:clamp(16px,3vw,28px);margin:24px 0;background:#f0f7f3;border:1px solid #b7d4c7;border-radius:20px}.explorer-panel h2{margin-top:0}.explorer-notes{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.explorer-notes button{white-space:normal;flex:1 1 170px;min-height:48px}.explorer-panel details{padding:14px;border-radius:12px;background:#fff}.explorer-panel summary{cursor:pointer;font-weight:700}

.first-listen{display:flex;flex-direction:column;gap:10px;min-width:0}.first-listen small{line-height:1.7}.ear-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ear-actions button{min-height:48px;white-space:normal;margin:0}.explorer-settings{margin:16px 0}.explorer-settings select{max-width:100%;min-width:0}.explorer-panel{scroll-margin-top:16px}.explorer-panel h3{margin-top:24px}.lab-hero .hero-icon{display:none}@media(max-width:600px){.lab-hero{display:block}.first-listen{margin-top:16px}.lab-selects{grid-template-columns:1fr!important}.explorer-notes button{flex-basis:100%;font-size:1rem}.ear-actions{grid-template-columns:1fr 1fr}.ear-actions button{padding:10px 6px;font-size:.9rem}.ih-welcome{margin:12px auto}.melody-lab-page main{min-width:0}.explorer-panel{padding:14px}}
.shur-path{border-top:6px solid #287565;background:#f0f8f4!important;scroll-margin-top:20px}.shur-path nav,.shur-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.shur-path nav button[aria-current=step]{background:#245f51!important;color:white!important}.shur-path button{min-height:48px;white-space:normal;margin:6px;max-width:100%}.shur-path p{line-height:1.9}.shur-path audio{width:100%;max-width:600px}.shur-review{border-inline-start:4px solid #ad782c;padding:12px;background:#fff5df;border-radius:8px;font-size:.9rem}.shur-actions label{display:grid;gap:8px;flex:1;min-width:140px}.shur-actions input{width:100%;min-width:0;min-height:44px;font:inherit;padding:8px}.shur-learning .first-listen,.shur-learning:not(.shur-composing) .creative-card,.shur-learning:not(.shur-composing) .piano-play-card{display:none}.shur-path [hidden]{display:none!important}@media(max-width:600px){.shur-path{padding:16px!important}.shur-path nav{display:grid;grid-template-columns:1fr 1fr}.shur-path nav button{margin:0;padding:10px 6px}.shur-path button{margin:5px 0}.shur-actions{flex-direction:column}}

.workshop-nav{display:flex;gap:.65rem;flex-wrap:wrap;margin-block:1rem}.workshop-nav a:not([aria-current="page"]){background:white;color:#234f49;border:1px solid #839e96}.workshop-setup{margin-block:1rem}.practice-only .example-keyboard{margin-block-start:1rem}
body:not(.shur-composing) :is(.creative-card,.piano-play-card),body.shur-composing :is(.learning-card,.practice-only,#shurPath,.first-listen){display:none}

.interval-intro{margin:1rem 0;padding:1rem;background:#f1f7f4;border-radius:.7rem}.interval-intro p{max-width:68ch}.interval-buttons{display:flex;gap:.5rem;flex-wrap:wrap}#midiConnection{margin-inline:.6rem}.lab-key.midi-down{box-shadow:inset 0 0 0 4px #d26b21;background:#ffe1ac;color:#271b12}

body:not(.shur-learning) .shur-stones,.shur-composing .shur-stones{display:none}.shur-stones summary{padding:1rem;cursor:pointer;font-weight:700}.shur-stones .palace-stage h2{color:inherit}
.setar-lesson{padding:clamp(12px,2.5vw,28px);border-inline-start:4px solid #398277;background:#f7f1e3;color:#273e39;margin:18px 0;min-width:0}
.setar-scroll{overflow-x:auto;max-width:100%;padding-block:12px}
#setarNeck{position:relative;isolation:isolate;min-width:780px;height:92px;margin:0 43px;background:linear-gradient(to bottom,transparent 28%,#66412e 28%,#986c48 62%,#513627 70%,transparent 70%)}
#setarNeck:before{content:"";position:absolute;inset:48% 0 auto;height:2px;background:#f9dc84;box-shadow:0 1px 2px #39271c}
.setar-guide{position:absolute;top:28%;height:42%;border-left:1px solid #e9d4ac}
#setarNeck .setar-position{position:absolute;top:50%;transform:translate(-50%,-50%);min-height:44px;min-width:50px;margin:0;padding:4px 6px;display:grid;gap:1px;justify-items:center;background:#17605e;color:#fff;border:1px solid #e8cc91;border-radius:8px;font-size:.84rem;line-height:1.4;white-space:nowrap;cursor:pointer}
.setar-position small{font-size:.72rem;color:#ffedc4}
#setarNeck .last-plucked{outline:3px solid #d69837}
#setarReadout{min-height:1.8em}.practice-piano>summary{cursor:pointer;padding:12px;font-weight:700}
#setarNeck{height:130px}
#setarNeck .setar-position{top:25%}
#setarNeck .setar-position:nth-of-type(even){top:75%}
#setarNeck .setar-position:after{content:"";position:absolute;top:100%;height:10px;width:2px;background:#17605e}
#setarNeck .setar-position:nth-of-type(even):after{top:auto;bottom:100%}

#teachingView{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:24px 0 8px}
#teachingView legend{font-weight:700;margin-bottom:8px}
#teachingView label{display:flex;align-items:center;gap:7px;border:1px solid #adbfaf;border-radius:8px;padding:8px 14px;cursor:pointer}
#teachingView input{width:auto;margin:0}
#teachingView label:has(:checked){background:#dceee5;border-color:#276b65}
#teachingDistance{font-weight:650;color:#195b55}
.setar-lesson[hidden],.practice-piano[hidden]{display:none!important}
#setarNeck{min-width:1000px;margin-inline:64px}

/* A small orosi lattice marks the landing point of every composition link. */
.creative-card #makeTitle::before {
  content: "";
  display: block;
  width: min(9rem, 55%);
  height: 8px;
  margin-block: .55rem .7rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, #a38358 5px 6px) center / 40px 8px no-repeat,
    repeating-linear-gradient(-45deg, #436e69 0 5px, #c0a478 5px 6px) center / 40px 8px no-repeat,
    linear-gradient(to right, transparent, #aa8d68 30% 70%, transparent) center / 100% 1px no-repeat;
}
.phrase-monitor{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;margin:.6rem 0;scroll-margin-top:12px}
.sounding-step{min-height:1.6em;font-weight:650}
#setarNeck .phrase-sounding,#referencePiano .phrase-sounding{background:#ffda77;color:#302617;outline:3px solid #805018;outline-offset:-3px}

#compositionInstrument{display:block;width:min(100%,26rem);min-height:44px;margin-block:.4rem;padding:.4rem;font:inherit}
#keepMove[hidden]{display:none}
#moveReadout:empty{display:none}
@media(max-width:600px){#noteChoices{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Touch-friendly phrase editing, including microtonal note labels. */
.phrase-item select{min-height:44px;max-width:100%;font:inherit;padding:6px;border:1px solid #a68a65;border-radius:7px;background:#fffaf2}
.phrase-item .length-badge{min-height:44px;padding:6px 10px}
