/* =====================================================================
   v71 · STUDIO UNIT – black brushed chassis, amber VU meter, jewel lamp,
   aluminium knobs, toggle switch (tuner + metronome, on the concrete floor).
   Hebrew in the handwritten Amatic SC, numbers and silk-screen in Space Mono.
   ===================================================================== */
#tnBox,#mtBox{max-width:620px;margin:0 auto}
.mono{font-family:"Space Mono",ui-monospace,"SFMono-Regular",Menlo,monospace !important;font-weight:700}
.bfwrap{display:flex;align-items:stretch;border-radius:16px;overflow:hidden;
  border:2px solid #343439;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,rgba(0,0,0,.08) 1px 3px),#151517;
  box-shadow:0 30px 70px rgba(0,0,0,.8),0 10px 20px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.14),inset 0 -2px 6px rgba(0,0,0,.5)}
.bf{position:relative;flex:1;min-width:0;padding:18px 14px 16px;display:flex;flex-direction:column;gap:12px;color:#fff;
  font-family:"Amatic SC","Noto Sans Hebrew",var(--sans);font-weight:700}
.bf *{font-weight:inherit}
/* rack ears (computer / tablet) and corner screws (phone) */
.bfear{display:none;width:40px;flex:0 0 40px;flex-direction:column;align-items:center;justify-content:space-between;padding:18px 0;
  background:linear-gradient(180deg,#1d1d20,#101012);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.bfear.r{border-left:1px solid #343439}.bfear.l{border-right:1px solid #343439}
.bfear > div{display:flex;flex-direction:column;align-items:center;gap:16px}
.bfear span{font-size:9px;letter-spacing:.25em;color:#71717a;writing-mode:vertical-rl;white-space:nowrap}
.bfear.r span{transform:rotate(180deg)}
.bfscrew,.bfc{width:16px;height:16px;border-radius:50%;position:relative;display:block;
  background:radial-gradient(circle at 35% 35%,#71717a,#27272a 70%,#09090b);border:1px solid #09090b;box-shadow:0 2px 4px rgba(0,0,0,.85),inset 0 1px 1px rgba(255,255,255,.28)}
.bfscrew::after,.bfc::after{content:"";position:absolute;top:50%;left:18%;right:18%;height:2px;background:#121214;transform:translateY(-50%) rotate(-32deg);box-shadow:0 1px 0 rgba(255,255,255,.2)}
.bfslot{display:block;width:22px;height:10px;border-radius:99px;background:#070708;border:1px solid #3f3f46;box-shadow:inset 0 2px 4px rgba(0,0,0,.95)}
.bfc{position:absolute;width:12px;height:12px}
.bfc.a{top:7px;right:7px}.bfc.b{top:7px;left:7px}.bfc.c{bottom:7px;right:7px}.bfc.d{bottom:7px;left:7px}
.bfc.b::after{transform:translateY(-50%) rotate(20deg)}.bfc.c::after{transform:translateY(-50%) rotate(75deg)}
@media (min-width:600px){ .bfear{display:flex} .bfc{display:none} .bf{padding:20px 20px 18px} }
/* head: silk-screen badge + jewel pilot lamp */
.bfhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 4px 12px;border-bottom:1px solid #343439}
.bfbadge{display:flex;align-items:center;gap:10px;padding:6px 14px;border-radius:6px;background:#0c0c0e;border:1px solid #3f3f46;box-shadow:inset 0 2px 4px rgba(0,0,0,.6);direction:ltr}
.bfwm{font-family:"Outfit",var(--sans);font-weight:800;font-size:1.15rem;letter-spacing:-.3px;color:#fff}
.bfwm em{font-style:normal;color:#fbbf24}
.bfbadge > i{width:1px;height:14px;background:#3f3f46}
.bfbadge .mono{font-size:.8rem;letter-spacing:.22em;color:#fff}
.jewel{display:block;width:22px;height:22px;border-radius:50%;border:2px solid #52525b;flex:0 0 auto;
  background:radial-gradient(circle at 35% 30%,#571919,#240808 75%);box-shadow:inset 0 2px 4px rgba(0,0,0,.85),0 1px 2px rgba(255,255,255,.15);transition:all .25s}
.jewel.active{background:radial-gradient(circle at 35% 30%,#fed7aa,#f59e0b 48%,#9a3412 85%);box-shadow:0 0 16px rgba(245,158,11,.85),0 0 30px rgba(245,158,11,.45),inset 0 1px 3px rgba(255,255,255,.85)}
.jewel.tuned{background:radial-gradient(circle at 35% 30%,#d1fae5,#10b981 45%,#065f46 85%);box-shadow:0 0 20px rgba(16,185,129,.9),0 0 36px rgba(16,185,129,.55),inset 0 1px 3px rgba(255,255,255,.9)}
/* the VU meter */
.vubezel{position:relative;padding:10px;border-radius:14px;background:linear-gradient(145deg,#09090b,#1a1a1e);border:3px solid #4a4a52;
  box-shadow:0 12px 28px rgba(0,0,0,.65),inset 0 2px 4px rgba(255,255,255,.14),inset 0 -3px 8px rgba(0,0,0,.75)}
.vubezel > i{position:absolute;width:7px;height:7px;border-radius:50%;background:#52525b}
.vubezel > i:nth-child(1){top:5px;left:5px}.vubezel > i:nth-child(2){top:5px;right:5px}.vubezel > i:nth-child(3){bottom:5px;left:5px}.vubezel > i:nth-child(4){bottom:5px;right:5px}
.vuface{position:relative;border-radius:9px;overflow:hidden;direction:ltr;
  background:radial-gradient(ellipse 85% 75% at 50% 62%,#fef3c7 0%,#fde68a 46%,#f59e0b 92%,#b45309 100%);
  box-shadow:inset 0 0 32px rgba(180,83,9,.6),inset 0 4px 14px rgba(0,0,0,.55)}
.vuface svg{display:block;width:100%;height:auto}
.vuglass{position:absolute;inset:0;pointer-events:none;background:linear-gradient(165deg,rgba(255,255,255,.3) 0%,rgba(255,255,255,.08) 36%,rgba(255,255,255,0) 37%,rgba(255,220,150,.06) 100%)}
.vut{font:700 13px "Space Mono",monospace;fill:#18181b}.vut.s{font-size:12px}.vut.g{fill:#15803d;font-size:15px}.vut.r{fill:#dc2626}
.vut.f{font-size:10px;letter-spacing:1.5px;fill:#451a03}.vut.f.r{fill:#991b1b}
.vubig{font:700 22px "Space Mono",monospace;letter-spacing:3px;fill:#18181b;opacity:.85;text-anchor:middle}
.vusub{font:700 8.5px "Space Mono",monospace;letter-spacing:1.8px;fill:#451a03;text-anchor:middle}
.vuneedle{transform-box:view-box;transform-origin:220px 212px;transition:transform .13s cubic-bezier(.22,1.12,.36,1)}
.bfmetro .vuneedle{transition:none}
/* recessed panels */
.bfpanel{border-radius:12px;padding:12px 14px;background:#0d0d0f;border:1px solid #28282d;box-shadow:inset 0 2px 10px rgba(0,0,0,.45),0 1px 0 rgba(255,255,255,.06)}
/* tuner read-out: the note heard, the string, the Hz, what to do */
.bfread{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;transition:border-color .2s,background .2s}
.bfnote{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:98px;padding-inline-end:14px;border-inline-end:1px solid #27272a;line-height:1}
.bfnote b{font-size:3.6rem;color:#fbbf24;line-height:.95}
.bfnote .mono{font-size:1.5rem;color:#fbbf24;margin-top:4px}
.bfinfo{display:flex;flex-direction:column;gap:8px;min-width:0}
.bfrow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.bfstr{padding:2px 12px;border-radius:6px;background:#18181b;border:1px solid rgba(245,158,11,.4);color:#fcd34d;font-size:1.45rem;line-height:1.35}
.bfstr .mono{font-size:.95rem}
.bfhz{font-size:.85rem;color:#a1a1aa;white-space:nowrap}
.bfhz b{color:#fff;font-size:1.05rem}.bfhz i{color:#52525b;font-style:normal}.bfhz em{color:#fbbf24;font-style:normal}
.bfguide{padding:6px 10px;border-radius:8px;background:rgba(24,24,27,.9);border:1px solid #27272a;text-align:center;font-size:2rem;line-height:1.15;color:#e4e4e7;transition:all .2s}
.bfguide .mono{font-size:.95rem;margin-inline-start:6px}
.bfread.ok{border-color:rgba(16,185,129,.6)}
.bfread.ok .bfnote b,.bfread.ok .bfnote .mono{color:#34d399}
.bfread.ok .bfguide{background:rgba(6,78,59,.8);border-color:rgba(16,185,129,.7);color:#6ee7b7}
.bfread.near .bfguide{background:rgba(69,26,3,.55);border-color:rgba(245,158,11,.6);color:#fcd34d}
.bfread.far .bfnote b,.bfread.far .bfnote .mono{color:#f87171}
.bfread.far .bfguide{background:rgba(69,10,10,.7);border-color:rgba(239,68,68,.6);color:#fca5a5}
/* the six strings: reference tone + which string is being tuned */
.bfstrings{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.bfstrings button{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px 6px;border-radius:10px;cursor:pointer;color:#a1a1aa;
  background:linear-gradient(180deg,#202024,#131316);border:1px solid #3a3a40;box-shadow:0 4px 10px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08);font:inherit;transition:all .18s}
.bfstrings button b{font-size:1.05rem;color:#fff;line-height:1.1}
.bfstrings button span{font-size:1.15rem;line-height:1}
.bfstrings button small{font-size:.95rem;color:#71717a;line-height:1}
.bfstrings button:active{transform:scale(.97)}
.bfstrings button.on{border-color:#fbbf24;background:rgba(69,26,3,.5);box-shadow:0 0 14px rgba(245,158,11,.25)}
.bfstrings button.on b,.bfstrings button.on span{color:#fbbf24}
.bfstrings button.ok{border-color:#34d399;background:rgba(6,78,59,.6);box-shadow:0 0 15px rgba(16,185,129,.35)}
.bfstrings button.ok b,.bfstrings button.ok span{color:#6ee7b7}
.bfmsg{padding:10px 12px;border-radius:10px;background:rgba(69,26,3,.8);border:1px solid rgba(245,158,11,.6);color:#fde68a;font-size:1.35rem;text-align:center}
.bfbtn{display:block;margin:8px auto 0;padding:6px 18px;border-radius:8px;background:#18181b;border:1px solid #fbbf24;color:#fbbf24;font:inherit;font-size:1.3rem;cursor:pointer}
/* metronome */
.mtleds{display:flex;justify-content:center;gap:12px;padding:10px;direction:ltr}
.mtleds i{width:16px;height:16px;border-radius:50%;border:2px solid #52525b;background:radial-gradient(circle at 35% 30%,#4a3a12,#1f1606 75%);box-shadow:inset 0 2px 3px rgba(0,0,0,.85)}
.mtleds i.acc{background:radial-gradient(circle at 35% 30%,#571919,#240808 75%)}
.mtleds i.on{background:radial-gradient(circle at 35% 30%,#fed7aa,#f59e0b 48%,#9a3412 85%);box-shadow:0 0 14px rgba(245,158,11,.85),0 0 26px rgba(245,158,11,.45)}
.mtleds i.acc.on{background:radial-gradient(circle at 35% 30%,#fecaca,#ef4444 48%,#7f1d1d 85%);box-shadow:0 0 14px rgba(239,68,68,.85),0 0 26px rgba(239,68,68,.45)}
.mtread{display:flex;flex-direction:column;align-items:center;gap:4px}
.bfled7{position:relative;direction:ltr;font-size:3.4rem;line-height:1;color:#fbbf24;text-shadow:0 0 14px rgba(245,158,11,.75);letter-spacing:2px;font-variant-numeric:tabular-nums}
.bfled7 .ghost{position:absolute;left:0;color:rgba(251,191,36,.07);text-shadow:none}
.bfled7 #mtBpm{position:relative;display:inline-block;min-width:3ch;text-align:right}
.bfled7 small{font-size:.8rem;letter-spacing:.2em;margin-left:8px;color:#a1a1aa;text-shadow:none}
.mtterm{font-size:.82rem;letter-spacing:.3em;text-transform:uppercase;color:#d4d4d8}
.bfmetro.running .bfled7{color:#fcd34d}
.mtctl{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px}
.pdk{display:flex;flex-direction:column;align-items:center;gap:4px}
.pdk label{font-size:.7rem;letter-spacing:.2em;color:#a1a1aa;direction:ltr;white-space:nowrap}
.pdk label b{color:#fbbf24;letter-spacing:0;margin-left:4px;font-size:.95rem}
.pdkw{touch-action:none;cursor:grab;border-radius:50%}
.pdkw.turning{cursor:grabbing}
.pdknob{display:block;max-width:100%;height:auto}
.pdknob.big{width:min(164px,40vw);height:auto}
.pdknob .pdcap{transition:transform .04s linear}
.bftap{width:76px;height:62px;border-radius:12px;cursor:pointer;color:#fbbf24;font-size:1rem !important;letter-spacing:.2em;
  background:linear-gradient(180deg,#202024,#131316);border:1px solid #3a3a40;box-shadow:0 6px 0 #09090b,0 10px 16px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.1);transition:transform .06s,box-shadow .06s}
.bftap:active{transform:translateY(4px);box-shadow:0 2px 0 #09090b,0 4px 8px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.1)}
.mtfoot{display:flex;align-items:center;justify-content:center;gap:16px}
.mtfoot label{font-size:.75rem;letter-spacing:.2em;color:#a1a1aa}
.toggle-well{width:40px;height:62px;border-radius:9px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;
  background:linear-gradient(180deg,#09090b,#202024);border:2px solid #52525b;box-shadow:inset 0 3px 6px rgba(0,0,0,.9),0 2px 4px rgba(0,0,0,.6)}
.toggle-bat{display:block;width:14px;height:32px;border-radius:7px;background:linear-gradient(90deg,#71717a 0%,#f4f4f5 45%,#52525b 100%);
  box-shadow:0 4px 6px rgba(0,0,0,.85);transform:translateY(9px);transition:transform .18s cubic-bezier(.34,1.56,.64,1)}
.toggle-well.on .toggle-bat{transform:translateY(-9px)}
/* the pages of the two units: concrete floor, handwritten titles */
body.pedalbg header{background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,0)) !important;border-bottom:0 !important}
body.pedalbg header p:empty{display:none}
body.pedalbg header h1{font-family:"Amatic SC","Noto Sans Hebrew",var(--sans) !important;font-weight:700 !important;font-size:2.5rem !important;letter-spacing:.5px}
body.pedalbg .back{background:rgba(21,21,23,.92) !important;border:1px solid #343439 !important}
/* ---- v71b: a read-out that never changes size; Hebrew sizes follow the font that actually loaded ---- */
.bf{--hs:1}
html.amatic-ok .bf,html.amatic-ok body.pedalbg header{--hs:1.22}
.bfread{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);grid-template-areas:"note info" "guide guide";gap:10px 12px;padding:12px}
.bfnote{grid-area:note;height:calc(5.4rem*var(--hs));min-width:0;padding-inline-end:12px;overflow:hidden}
.bfnote b{font-size:calc(3.1rem*var(--hs));white-space:nowrap}
.bfnote .mono{font-size:1.35rem}
.bfinfo{grid-area:info;justify-content:center;gap:10px}
.bfstr{font-size:calc(1.15rem*var(--hs));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding:3px 8px}
.bfstr .mono{font-size:.9rem}
.bfhz{font-size:.8rem;text-align:center;white-space:nowrap;overflow:hidden}
.bfhz b{font-size:1rem}
.bfguide{grid-area:guide;height:calc(2.7rem*var(--hs));display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;overflow:hidden;font-size:calc(1.45rem*var(--hs));padding:0 10px}
.bfguide .mono{font-size:.95rem;margin:0}
.bfstrings button{padding:6px 2px 5px;gap:0}
.bfstrings button small{font-size:.7rem;color:#71717a}
.bfstrings button b{font-size:1.15rem}
.bfstrings button span{font-size:calc(.95rem*var(--hs));white-space:nowrap}
.bfmsg{font-size:calc(1.05rem*var(--hs))}.bfbtn{font-size:calc(1rem*var(--hs))}
body.pedalbg header h1{font-size:calc(1.9rem*var(--hs)) !important}
.bfhz{font-size:1rem;color:#a1a1aa}.bfhz b{font-size:1.45rem;color:#fff}
.bfstr{font-size:calc(1.35rem*var(--hs))}
.bfguide .mono,.bfled7,.bfhz{unicode-bidi:isolate}
body.pedalbg header h1{font-size:calc(2.2rem*var(--hs)) !important}
.mtfoot{gap:18px;padding:10px 14px}
.tgl{display:flex;flex-direction:column;align-items:center;gap:4px}
.tgl label{font-size:.62rem;letter-spacing:.2em;color:#a1a1aa}
.mtpow{font-size:.75rem;letter-spacing:.3em;color:#d4d4d8}
/* metronome: subdivisions (♩ ♫ triplets ♬) + power, side by side */
.mtfoot{justify-content:space-between;gap:12px}
.mtsubg,.mtpowg{display:flex;align-items:center;gap:12px}
.mtsubg{flex-direction:column;gap:5px}
.mtsubg > .mono{font-size:.6rem;letter-spacing:.2em;color:#a1a1aa}
.mtsub{display:flex;gap:6px;direction:ltr}
.mtsub button{position:relative;width:44px;height:48px;padding:12px 6px 4px;border-radius:9px;cursor:pointer;color:#a1a1aa;
  background:linear-gradient(180deg,#202024,#131316);border:1px solid #3a3a40;box-shadow:0 4px 0 #09090b,0 6px 10px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.08);transition:transform .06s,box-shadow .06s}
.mtsub button svg{display:block;width:100%;height:100%}
.mtsub button i{position:absolute;top:4px;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#2a1d08;box-shadow:inset 0 1px 1px rgba(0,0,0,.8)}
.mtsub button:active{transform:translateY(3px);box-shadow:0 1px 0 #09090b,0 2px 4px rgba(0,0,0,.5)}
.mtsub button.on{color:#fbbf24;border-color:rgba(245,158,11,.55);transform:translateY(2px);box-shadow:0 2px 0 #09090b,0 3px 6px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.06)}
.mtsub button.on i{background:radial-gradient(circle at 35% 30%,#fed7aa,#f59e0b 55%,#9a3412);box-shadow:0 0 8px rgba(245,158,11,.9)}
/* v73: subdivisions on their own row (5 incl. swing), sound + power below */
.mtsubg{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 12px 8px}
.mtsub{gap:8px}
.mtsub button{width:48px;height:50px}
.mtsndg{display:flex;align-items:center;gap:10px}
.mtlcd{min-width:76px;padding:7px 10px;border-radius:7px;background:#0a0703;border:1px solid #27272a;box-shadow:inset 0 2px 6px #000;
  color:#fbbf24;text-shadow:0 0 8px rgba(245,158,11,.7);font-size:.9rem;letter-spacing:.18em;text-align:center}
.mtsndb{width:auto;height:44px;padding:0 12px;font-size:.72rem !important;letter-spacing:.18em;color:#d4d4d8}
/* v74 tuner: ±5-cent fine scale, tuning selector, A4 calibration */
.tnfine{display:flex;justify-content:center;align-items:center;gap:7px;padding:9px 10px}
.tnfine i{width:14px;height:14px;border-radius:50%;border:2px solid #3f3f46;background:radial-gradient(circle at 35% 30%,#3a2a12,#1a1206 75%);box-shadow:inset 0 2px 3px rgba(0,0,0,.85)}
.tnfine i.c{width:18px;height:18px;border-color:#52525b;background:radial-gradient(circle at 35% 30%,#123a2a,#061a12 75%)}
.tnfine i.on{background:radial-gradient(circle at 35% 30%,#fed7aa,#f59e0b 48%,#9a3412 85%);box-shadow:0 0 12px rgba(245,158,11,.85)}
.tnfine i.on.over{background:radial-gradient(circle at 35% 30%,#fecaca,#ef4444 48%,#7f1d1d 85%);box-shadow:0 0 12px rgba(239,68,68,.85)}
.tnfine i.on.ok{background:radial-gradient(circle at 35% 30%,#d1fae5,#10b981 45%,#065f46 85%);box-shadow:0 0 14px rgba(16,185,129,.9),0 0 26px rgba(16,185,129,.5)}
.tntune{display:flex;align-items:center;gap:10px;padding:8px 10px}
.tntune .bftap{width:46px;height:46px;font-size:.95rem !important;letter-spacing:0;flex:0 0 auto}
.tnlcd{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 8px;border-radius:7px;background:#0a0703;border:1px solid #27272a;box-shadow:inset 0 2px 6px #000}
.tnlcd b{font-size:calc(1.25rem*var(--hs));color:#fbbf24;text-shadow:0 0 8px rgba(245,158,11,.55);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tnlcd .mono{font-size:.85rem;letter-spacing:.3em;color:#d4d4d8}
.tna4{display:flex;align-items:center;gap:4px;padding:3px;border-radius:7px;background:#0c0c0e;border:1px solid #3f3f46}
.tna4 button{width:26px;height:26px;border-radius:6px;border:1px solid #3a3a40;background:linear-gradient(180deg,#202024,#131316);color:#d4d4d8;font:700 1rem "Space Mono",monospace;cursor:pointer;padding:0}
.tna4 button:active{transform:translateY(1px)}
.tna4 .mono{display:flex;align-items:baseline;gap:3px;padding:0 3px}
.tna4 small{font-size:.6rem;color:#a1a1aa}.tna4 b{font-size:.95rem;color:#fbbf24}
.bfhead{gap:8px}
/* v75 metronome: sounds by name; ON/OFF next to the pilot lamp */
.mthpow{display:flex;align-items:center;gap:10px}
.mthpow .tgl{flex-direction:row;gap:6px}
.mthpow .toggle-well{width:34px;height:50px}
.mthpow .toggle-bat{height:26px;transform:translateY(7px)}
.mthpow .toggle-well.on .toggle-bat{transform:translateY(-7px)}
.mtsnd button{width:64px !important;height:52px !important;padding:12px 2px 4px !important}
.mtsnd button span{display:block;font-size:.6rem !important;line-height:1.15;letter-spacing:.06em;color:inherit}
.tforgot{display:block;margin:12px auto 0;font-size:.9rem}

/* ===== v77–v84 (Netlify agent): instrument workspace, bass, speed trainer, home sizing ===== */
/* Keep home text large, using tighter spacing before screen fitting. */
#home .tquick { gap: 6px; margin-bottom: 14px !important; }
#home .tquick button { margin: 0; padding: 8px 2px 6px !important; gap: 6px; min-width: 0; }
#home .tquick .qi { width: 52px; height: 52px; }
#home .tquick .qi .mi { width: 44px; height: 44px; }
#home .tquick small { font-size: 1.1rem !important; }
#home .tlist button { padding: 10px 6px !important; gap: 18px; }
#home .tlist button > span:nth-child(2),
#home .tcard > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
#home .tlist .ti { flex-basis: 48px !important; width: 48px !important; height: 48px !important; }
#home .tlist .ti .mi,
#home .tcard .badge .mi { width: 40px; height: 40px; }
#home .tlist b { font-size: 1.8rem !important; }
#home .tlist small { font-size: 1.15rem !important; line-height: 1.35; margin-top: 3px; }
#home .tcard { padding: 14px 16px !important; }
#home .tcard .badge { width: 44px !important; height: 44px !important; }
#home .tcard b { font-size: 1.75rem !important; }
#home .tcard small { font-size: 1.15rem; line-height: 1.5; }
#home .chev { flex-shrink: 0; }
#home .chev .mi { width: 26px; height: 26px; }
#home .installbtn { font-size: 1.1rem; padding: 16px 20px; }
#home .homefoot .reset { font-size: 1rem; padding: 6px 12px; }
#home .copy, #home .copy .linkbtn { font-size: .9rem; line-height: 1.6; }
@media (max-width: 380px) {
  #home .tquick small { font-size: 1rem !important; }
  #home .tlist button { gap: 12px; }
  #home .tlist b { font-size: 1.65rem !important; }
  #home .tcard { gap: 12px; padding-inline: 12px !important; }
}

#teacher .t-install-share { margin-top: 16px; }
#teacher .t-install-share .btn { width: 100% !important; justify-content: center; text-align: center; }
#teacher .t-install-share p { line-height: 1.6; }
#teacher .t-install-share [role="status"]:empty { display: none; }
#teacher .t-install-share label { display: block; margin-bottom: 8px; }
#teacher .t-install-share input { width: 100%; min-width: 0; font: inherit; }

/* Keep the shared back button centered above the device safe area. */
#backBtn {
  position: fixed !important;
  inset-inline: auto !important;
  top: auto !important;
  right: auto !important;
  left: 50% !important;
  bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
  transform: translateX(-50%);
  z-index: 60;
}

/* Home uses the whole viewport, with the exercise rows sharing spare height. */
.app:has(#home.on) { min-height: 100vh; min-height: 100dvh; }
main:has(#home.on) { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
#home.on { display: flex; flex-direction: column; }
#home > * { width: 100%; flex-shrink: 0; }
#home .hometopics { flex: 1; display: flex; flex-direction: column; }
#home .tlist { flex: 1; display: flex !important; flex-direction: column; }
#home .tlist button { flex: 1; }
#home .copy { margin-bottom: 0; }

/* Let both instruments use the space previously occupied by the page heading. */
body.pedalbg header{display:none}
body.pedalbg main{padding:8px 12px calc(64px + env(safe-area-inset-bottom))}
body.pedalbg #tnBox,body.pedalbg #mtBox{max-width:720px}
body.pedalbg .bfwrap{min-height:calc(100svh - 80px - env(safe-area-inset-bottom))}
body.pedalbg .bf{justify-content:space-between;gap:14px}
body.pedalbg .bfhead .bfbadge{direction:ltr}
.bfmetro .bfhead .bfbadge>.mono{font-size:clamp(.65rem,2.7vw,1rem);letter-spacing:.08em}
.mtpower{display:flex;align-items:center;justify-content:center;gap:16px;direction:ltr;margin-top:auto;padding:14px}
.mtpower>.mono{font-size:.75rem;color:#a1a1aa;letter-spacing:.15em}
.mtpower .toggle-well{width:148px;height:48px;touch-action:pan-y}
.mtpower .toggle-bat{width:54px;height:32px;transform:translateX(40px);background:linear-gradient(180deg,#f4f4f5,#a1a1aa 45%,#52525b)}
.mtpower .toggle-well.on .toggle-bat{transform:translateX(-40px)}
.mtpower .toggle-well:focus-visible{outline:2px solid #fbbf24;outline-offset:4px}
@media(max-width:380px){body.pedalbg main{padding-inline:6px}body.pedalbg .bf{padding-inline:10px}.mtctl{gap:2px}.bftap{width:62px}.mtsub{gap:6px}}

/* Scale the complete device to the available viewport, including short screens. */
body.pedalbg .bfwrap{min-height:0;transform-origin:top center;box-sizing:border-box}
body.pedalbg #tnBox,body.pedalbg #mtBox{position:relative}
body.pedalbg main{padding-top:6px;padding-bottom:calc(62px + env(safe-area-inset-bottom))}
body.pedalbg .bf{gap:10px}
.tninstruments{display:grid;grid-template-columns:1fr 1fr;gap:10px;direction:rtl}
.tninstruments button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:64px;padding:4px 10px;border:1px solid #52525b;border-radius:10px;background:linear-gradient(180deg,#252529,#151517);color:#a1a1aa;font:inherit;font-size:1.35rem;cursor:pointer}
.tninstruments svg{width:82px;height:58px;flex-shrink:0}
.tninstruments button[aria-pressed="true"]{color:#fbbf24;border-color:#fbbf24;background:#33260f;box-shadow:inset 0 1px #ffffff1a}
.tninstruments button:focus-visible{outline:2px solid #fbbf24;outline-offset:3px}
.tninstruments button:active{transform:translateY(1px)}
.tntune button:disabled{opacity:.3;cursor:default;box-shadow:none}
@media(max-width:380px){.tninstruments button{padding-inline:4px;font-size:1.15rem}.tninstruments svg{width:64px}}

.bfwrap[hidden],.instrument-add[hidden]{display:none!important}
.bftuner .bfhead{display:grid;grid-template-columns:1fr auto 1fr}
.bftuner .bfhead>.bfhz{justify-self:center;font-size:.8rem}
.bftuner .bfhead>.bfhz b{font-size:1.3rem}
.bftuner .bfhead>.jewel{justify-self:end}
.bftuner .bfinfo .tna4{justify-content:center;align-self:center}
.mtadvanced,.trainer button,.instrument-add{font:inherit;color:#fbbf24;border:1px solid #74603b;border-radius:10px;background:linear-gradient(#29251e,#171614);cursor:pointer;padding:10px 14px}
.mtadvanced{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:1.5rem;min-height:56px;padding:12px 18px}
.mtadvanced .mono{font-size:.65rem;letter-spacing:.08em}
.mtadvanced:focus-visible,.trainer button:focus-visible,.instrument-add:focus-visible{outline:2px solid #fbbf24;outline-offset:3px}
.trainer .bf{padding:20px;gap:16px}
.trainer-heading{display:flex;justify-content:space-between;align-items:center;color:#a1a1aa}
.trainer-heading button{font-size:1.15rem;padding:7px 12px}
.trainer-title{text-align:center}
.trainer-title>.mono{font-size:.75rem;letter-spacing:.15em;color:#fbbf24}
.trainer-title h2{font-size:2.8rem;margin:6px 0;line-height:1.1}
.trainer-title p,.trainer-meter{margin:0;color:#b7b7be;font-size:1.25rem;text-align:center}
.trainer-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.trainer-settings label{display:flex;flex-direction:column;gap:5px;font-size:1.35rem;color:#dedee3}
.trainer-settings label>.mono{font-size:.65rem;color:#9b9ba5}
.trainer-settings input{box-sizing:border-box;width:100%;min-width:0;padding:10px;border-radius:9px;background:#0d0e10;color:#fbbf24;border:1px solid #52525b;font:700 1.6rem Space Mono,monospace;text-align:center;direction:ltr}
.trainer-settings input:focus{outline:2px solid #fbbf24;outline-offset:2px}
.trainer-settings input:disabled{opacity:.55}
.trainer-readout{display:grid;grid-template-columns:1.3fr 1fr;gap:12px;text-align:center}
.trainer-readout>div{display:flex;flex-direction:column;justify-content:center;border:1px solid #38383d;border-radius:12px;background:#0d0e10;padding:16px 6px;color:#fbbf24}
.trainer-readout b{font-size:3.2rem;line-height:1.1;font-variant-numeric:tabular-nums}
.trainer-readout small{font-size:1.15rem;color:#b7b7be}
.trainer-readout small.mono{font-size:.8rem}
.trainer-status{margin:0;text-align:center;font-size:1.4rem;color:#fcd88a;min-height:1.5em}
.trainer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.trainer-actions button{font-size:1.6rem;min-height:50px}
.trainer-actions .trainer-start{grid-column:1/-1;background:#d9ae56;color:#1b1915;border-color:#f1cf83;font-size:2rem;min-height:64px}
.trainer-actions button:disabled{opacity:.4;cursor:default}
.instrument-add{position:fixed;top:24px;left:max(18px,calc((100vw - 1040px)/2 - 150px));max-width:150px;z-index:65;font-size:1.05rem;box-shadow:0 8px 20px #0005}
@media(min-width:900px) and (hover:hover) and (pointer:fine){
 body.instrument-duo .app{max-width:1400px}
 body.instrument-duo main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding-top:58px}
 body.instrument-duo #tuner{grid-column:1;grid-row:1;min-width:0}
 body.instrument-duo #metro{grid-column:2;grid-row:1;min-width:0}
 body.instrument-duo .bfear{display:none}
 body.instrument-duo .instrument-add{top:8px;left:18px;max-width:none;padding:8px 16px}
 body.pedalbg:not(.instrument-duo) .app{max-width:1040px}
}
@media(max-width:1199px){.instrument-add{top:12px;left:16px}body.pedalbg:not(.instrument-duo):has(.instrument-add:not([hidden])) main{padding-top:64px}}
.bftuner .bfhead{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.bftuner .bfbadge{justify-self:start;gap:5px;padding:6px 8px}
.bftuner .bfbadge .mono{font-size:.65rem;letter-spacing:.08em}
.bftuner .bfwm{font-size:1rem}
@media(max-width:400px){.bftuner .bfbadge{gap:4px;padding:6px}.bftuner .bfbadge .mono{font-size:.55rem}.bftuner .bfwm{font-size:.85rem}.bftuner .bfhead>.bfhz b{font-size:1.1rem}}

/* Every instrument keeps the same full-size frame; only its controls scale to fit. */
body.pedalbg .bfwrap{transform:none;overflow:hidden}
body.pedalbg .bf{box-sizing:border-box;flex-shrink:0}
body.pedalbg .bfear{display:none}
body.pedalbg #tnBox,body.pedalbg #mtBox{width:100%;max-width:720px}
.tavin-brand{display:block;width:44px;height:44px;object-fit:contain;flex-shrink:0;border-radius:11px}
.bfbadge{padding:4px 8px}
.bftuner .bfbadge .tavin-brand{width:38px;height:38px;border-radius:9px}
.trainer-heading .tavin-brand{width:44px;height:44px}
.trainer .bf{gap:12px}
.trainer-settings{align-items:stretch;gap:12px}
.trainer-settings>label,.trainer-dial-field{box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;gap:6px;padding:12px;border:1px solid #38383d;border-radius:12px;background:#121215}
.trainer-dial-field>label,.trainer-settings>.trainer-bars{font-size:1.45rem;line-height:1.2}
.trainer-field-unit{display:block;font-size:.7rem!important;color:#a1a1aa;min-height:16px;line-height:16px}
.trainer-settings .trainer-bars .trainer-field-unit{font-size:1rem!important}
.trainer-dial-control{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:10px;direction:ltr}
.trainer .trainer-dial{width:92px;height:92px;min-height:0;padding:6px;touch-action:none;cursor:ns-resize;border-radius:50%;border:1px solid #56565e;background:repeating-conic-gradient(#72727c 0deg 2deg,#27272e 2deg 10deg);box-shadow:0 5px 10px #0008,inset 0 1px #ffffff55}
.trainer-dial-cap{position:relative;display:block;width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 35% 25%,#e1e1e7,#93939e 55%,#45454e);box-shadow:inset 0 0 0 3px #a7a7b0,inset 0 0 0 5px #595962;transform:rotate(var(--dial-angle,-135deg))}
.trainer-dial-cap i{position:absolute;left:calc(50% - 2px);top:9px;width:4px;height:18px;border-radius:2px;background:#25252b;box-shadow:1px 0 #ffffff80}
.trainer .trainer-dial.dragging{cursor:grabbing;box-shadow:0 2px 4px #0008,inset 0 0 0 2px #fbbf24}
.trainer-settings input{height:58px;font-size:1.85rem;appearance:textfield;-moz-appearance:textfield;padding:8px 2px}
.trainer-settings input::-webkit-inner-spin-button,.trainer-settings input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.trainer-readout{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.trainer-readout>div{min-width:0;min-height:94px;box-sizing:border-box;padding:12px 6px}
.trainer-readout b{font-size:2.8rem;white-space:nowrap}
.trainer-readout #trainTime{font-size:clamp(1.6rem,3vw,2.5rem)}
.trainer-status:empty{display:none}
@media(min-width:900px) and (hover:hover) and (pointer:fine){
 body.instrument-duo .app{max-width:1520px}
 body.instrument-duo main{gap:20px;padding-inline:20px;padding-top:58px;align-items:start;justify-content:center}
 body.instrument-duo #tnBox,body.instrument-duo #mtBox{max-width:none}
}
@media(max-width:480px){
 .trainer .bf{padding:14px;gap:10px}
 .trainer-settings{gap:8px}
 .trainer-settings>label,.trainer-dial-field{padding:10px 8px}
 .trainer-dial-control{grid-template-columns:72px minmax(0,1fr);gap:6px}
 .trainer .trainer-dial{width:72px;height:72px}
 .trainer-settings input{font-size:1.6rem;height:54px}
 .trainer-dial-field>label,.trainer-settings>.trainer-bars{font-size:1.3rem}
 .trainer-readout{gap:8px}
}
/* Leave room for readable controls when a wide meter shares a desktop row. */
body.pedalbg .vuface svg{max-height:260px}

/* Center the visible bounds even when the fitter expands a screen before scaling. */
@media(min-width:900px){
 .screen{margin-inline:auto}
 .screen.fit{position:relative;inset-inline-start:50%;translate:50% 0;transform-origin:top center}
 body.pedalbg main>.screen{width:100%;margin-inline:auto}
 body.pedalbg #tnBox,body.pedalbg #mtBox{margin-inline:auto}
 body.instrument-duo main>.screen{min-width:0}
}

/* Keep dial gestures on their capture surface. */
.pdkw,.trainer-dial{user-select:none;-webkit-user-select:none;touch-action:none}
.pdkw svg,.trainer-dial-cap{pointer-events:none}
.pdkw:focus-visible{outline:2px solid #fbbf24;outline-offset:3px}


/* v93: narrower tuner / metronome with bigger, clearer labels */
body.pedalbg:not(.instrument-duo) #tnBox,body.pedalbg:not(.instrument-duo) #mtBox{max-width:470px !important}
body.instrument-duo #tnBox,body.instrument-duo #mtBox{max-width:470px !important;margin-inline:auto}
.bfbadge .mono{font-size:.9rem}
.bfhz,.bftuner .bfhead>.bfhz{font-size:1rem}
.pdk label,.mtfoot label,.tgl label{font-size:.85rem;letter-spacing:.14em}
.pdk label b{font-size:1.1rem}
.mtsubg > .mono,.mtpower>.mono,.mtadvanced .mono{font-size:.85rem;letter-spacing:.12em}
.mtpow{font-size:.9rem}
.mtterm,.tnlcd .mono,.bfled7 small{font-size:.95rem}
.mtsndb{font-size:.85rem !important;height:48px}
.mtsnd button span{font-size:.78rem !important}
.tna4 small{font-size:.8rem}.tna4 b{font-size:1.1rem}
.bfstrings button small{font-size:.95rem}
.vut.f{font-size:12px}

/* v93: bigger metronome controls that react instantly to a touch */
.bfmetro button,.bfmetro .toggle-well,.bftuner button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mtsub button{width:58px !important;height:64px !important;padding:16px 8px 6px !important}
.mtsnd button{width:78px !important;height:62px !important;padding:16px 4px 6px !important}
.mtsnd button span{font-size:.85rem !important}
.bfmetro .bftap{width:84px !important;height:84px !important;font-size:1.25rem !important}
.mtadvanced{min-height:60px}
.bfmetro button:active,.mtsub button:active,.mtsnd button:active{transform:translateY(3px) scale(.97);transition:transform .04s}
/* the close button on each device when both are open */
.instrument-close{display:block;margin:0 auto 10px;padding:8px 18px;border-radius:10px;border:1px solid #3f3f46;background:rgba(20,20,22,.92);color:#fbbf24;font:600 .95rem var(--sans);cursor:pointer}
.instrument-close:hover{border-color:#fbbf24}

/* v94: the floor under the devices fills the whole screen, also when scrolling */
body.pedalbg{height:auto !important;min-height:100vh;min-height:100dvh;background-attachment:fixed !important;background-color:#5f5f58}
html:has(body.pedalbg){background-color:#5f5f58}
/* the bigger ON/OFF switch keeps its labels clear */
/* speed trainer: same proportions as the tuner next to it */
.trainer-title h2{font-size:2.2rem}
.trainer-title p,.trainer-meter{font-size:1.1rem}
.trainer-settings label{font-size:1.15rem}
.trainer .bf{justify-content:space-between}

/* v94: a big ON/OFF switch with clear labels on both sides; the handle follows the finger */
.mtpower{gap:0 !important;justify-content:space-between !important;padding:14px 22px !important}
.mtpower>.mono{flex:1;text-align:center;font-size:1.05rem !important;letter-spacing:.2em !important;color:#a1a1aa !important;transition:color .15s,text-shadow .15s}
.bfmetro .mtpower .toggle-well{width:180px;height:58px;flex:0 0 auto;touch-action:pan-y !important}
.mtpower .toggle-bat{width:66px !important;height:40px !important;transform:translateX(51px);transition:transform .18s ease}
.mtpower .toggle-well.on .toggle-bat{transform:translateX(-51px)}
.mtpower .toggle-well.dragging{cursor:grabbing}
.mtpower:has(.toggle-well.on)>.mono:first-child,.mtpower:has(.toggle-well.near-on)>.mono:first-child{color:#fbbf24 !important;text-shadow:0 0 10px rgba(245,158,11,.7)}
.mtpower:has(.toggle-well:not(.on):not(.near-on))>.mono:last-child{color:#f4f4f5 !important}

/* v95: the in-app back button only on Apple phones / tablets; Android and computers use the system / browser back */
html:not(.ios):not(.desk) #backBtn{display:none !important}
html:not(.ios) body.pedalbg main{padding-bottom:14px}

/* v96: three instruments on the tuner (guitar · bass · ukulele) */
.tninstruments{grid-template-columns:repeat(3,1fr) !important;gap:8px}
.tninstruments button{flex-direction:column;gap:0;min-height:74px;padding:4px 4px 6px;font-size:1.05rem}
.tninstruments svg{width:64px;height:44px}

/* v98: tuner face – lights on the half circle instead of a needle */
.tnface .tnled .off{fill:#6b5221;fill-opacity:.42;stroke:#3b2a10;stroke-opacity:.6;stroke-width:1.2}
.tnface .tnled.c .off{fill:#14532d;fill-opacity:.55;stroke:#0b2417;stroke-width:2}
.tnface .tnled .lit{fill:#dc2626;stroke:#fff7ed;stroke-width:1.6;filter:drop-shadow(0 0 6px rgba(220,38,38,.95))}
.tnface[data-state="near"] .tnled .lit{fill:#ea580c;filter:drop-shadow(0 0 6px rgba(234,88,12,.95))}
.tnface[data-state="ok"] .tnled .lit{fill:#16a34a;filter:drop-shadow(0 0 8px rgba(22,163,74,1))}
.tnface .vut{font-size:15px}
.tnface .vuhe{font-family:var(--sans,"Noto Sans Hebrew",sans-serif);font-size:15px;font-weight:700;letter-spacing:0}
.tnface .vusym{font-size:20px;letter-spacing:0}
/* v104: tap a light to mute that beat */
.mtleds i{cursor:pointer;position:relative}
.mtleds i::after{content:"";position:absolute;inset:-9px}
.mtleds i.muted,.mtleds i.muted.on{background:#18181b !important;box-shadow:none !important;border-color:#3f3f46;opacity:.75}
.mtleds i.muted::before{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;width:2px;background:#a1a1aa;transform:translateX(-50%) rotate(45deg)}
.mtmutehint{font-size:.78rem;color:#a1a1aa;text-align:center;margin:-4px 0 4px}
/* v104: computer – the two devices sit side by side in the middle, each the same size as when it is alone */
@media (min-width:900px){
  body.instrument-duo main{grid-template-columns:auto auto !important;justify-content:center !important;gap:clamp(48px,6vw,110px) !important}
  body.instrument-duo #tnBox,body.instrument-duo #mtBox,body.pedalbg:not(.instrument-duo) #tnBox,body.pedalbg:not(.instrument-duo) #mtBox{margin-inline:auto}
}

/* =====================================================================
   v108: TUNER / METRONOME
   ===================================================================== */
/* the Hz and "tighten / loosen" strip, right under the meter */
.tnclose{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px !important;margin-top:-2px;direction:rtl}
.tnclose .bfhz{font-size:1.25rem !important;color:#fbbf24 !important;margin:0;order:2}
.tnclose .bfhz b{font-size:1.9rem !important;color:#fff !important}
.tnclose .bfguide{flex:1 1 auto;height:auto !important;min-height:3rem;font-size:1.6rem !important;margin:0;order:1}
.tnclose.ok .bfguide{background:rgba(6,78,59,.8);border-color:rgba(16,185,129,.7);color:#6ee7b7}
.tnclose.near .bfguide{background:rgba(69,26,3,.55);border-color:rgba(245,158,11,.6);color:#fcd34d}
.tnclose.far .bfguide{background:rgba(69,10,10,.7);border-color:rgba(239,68,68,.6);color:#fca5a5}
#tnRead{grid-template-areas:"note info" !important}

/* the tuner alone on a computer (or a phone turned sideways): meter on one side, controls on the other */
#tuner.tnwide #tnBox{margin-inline:auto}
#tuner.tnwide .bftuner .bf{display:grid !important;grid-template-columns:1.35fr 1fr;column-gap:22px;row-gap:12px;align-items:start;
  grid-template-areas:"head head" "face inst" "face read" "close strings" "close tune"}
#tuner.tnwide .bftuner .bf>.bfhead{grid-area:head}
#tuner.tnwide .bftuner .bf>.tninstruments{grid-area:inst}
#tuner.tnwide .bftuner .bf>.tnface{grid-area:face}
#tuner.tnwide .bftuner .bf>.tnclose{grid-area:close}
#tuner.tnwide .bftuner .bf>.bfread{grid-area:read}
#tuner.tnwide .bftuner .bf>.bfstrings{grid-area:strings}
#tuner.tnwide .bftuner .bf>.tntune{grid-area:tune}
#tuner.tnwide .bftuner .bf>#tnErr{grid-column:1/-1}
#tuner.tnwide .bftuner .bf>.bfc{position:absolute}

/* bigger writing everywhere on the two devices */
.tninstruments button span{font-size:1.2rem}
.bfstrings button b{font-size:1.4rem !important}
.bfstrings button span{font-size:1.1rem !important}
.bfstrings button small{font-size:.85rem !important}
.bfnote b{font-size:3rem}
.bfstr{font-size:1.35rem !important}
.tnlcd b{font-size:1.35rem !important}.tnlcd .mono{font-size:1rem !important}
.pdk label,.mtfoot label,.tgl label{font-size:1rem !important}
.pdk label b{font-size:1.3rem !important}
.mtsubg > .mono,.mtpower>.mono{font-size:1rem !important}
.mtadvanced{font-size:1.7rem !important;min-height:66px !important}
.mtadvanced .mono{font-size:.95rem !important}
.mtsnd button .mono{font-size:.85rem !important}
.mtmutehint{font-size:.95rem !important}

/* new buttons: backlit "studio keys" – a raised key, a little light under it that glows amber when chosen */
.tninstruments button,.bfstrings button,.bftap,.mtsub button{
  position:relative;overflow:hidden;border-radius:14px !important;border:1px solid #3b3b44 !important;color:#d4d4d8;
  background:linear-gradient(180deg,#30303a 0%,#1c1c22 55%,#141418 100%) !important;
  box-shadow:0 4px 0 #09090b,0 7px 14px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.14),inset 0 -2px 0 rgba(0,0,0,.45) !important;
  transition:transform .08s ease,box-shadow .12s ease,border-color .15s ease,color .15s ease}
.tninstruments button::after,.bfstrings button::after,.mtsub button::after{content:"";position:absolute;left:26%;right:26%;bottom:5px;height:3px;border-radius:3px;background:#3f3f46;transition:background .15s,box-shadow .15s}
.tninstruments button:hover,.bfstrings button:hover,.bftap:hover,.mtsub button:hover{border-color:#52525b !important}
.tninstruments button:active,.bfstrings button:active,.bftap:active,.mtsub button:active{transform:translateY(4px) !important;box-shadow:0 0 0 #09090b,0 2px 6px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08) !important}
.tninstruments button[aria-pressed="true"],.bfstrings button.on,.mtsub button.on{
  color:#fde68a !important;border-color:#f59e0b !important;transform:translateY(2px);
  background:linear-gradient(180deg,#3a2a10 0%,#22180a 60%,#171107 100%) !important;
  box-shadow:0 2px 0 #09090b,0 0 0 1px rgba(245,158,11,.35),0 0 20px rgba(245,158,11,.35),inset 0 0 18px rgba(245,158,11,.14) !important}
.tninstruments button[aria-pressed="true"]::after,.bfstrings button.on::after,.mtsub button.on::after{background:#fbbf24;box-shadow:0 0 8px #f59e0b,0 0 16px rgba(245,158,11,.7)}
.bfstrings button.ok{color:#bbf7d0 !important;border-color:#34d399 !important;background:linear-gradient(180deg,#0f3b2c,#082a1f) !important;
  box-shadow:0 2px 0 #09090b,0 0 20px rgba(16,185,129,.4),inset 0 0 18px rgba(16,185,129,.18) !important}
.bfstrings button.ok::after{background:#34d399;box-shadow:0 0 8px #10b981,0 0 16px rgba(16,185,129,.7)}
.bftap{color:#fbbf24 !important;text-shadow:0 0 10px rgba(245,158,11,.55)}
#tuner.tnwide #tnBox{overflow:hidden}
html:has(#tuner.tnwide.on),html:has(#tuner.tnwide.on) body{overflow-x:hidden}
html:has(#tuner.tnwide.on) .app{max-width:none !important}
html:has(#tuner.tnwide.on) main{padding-inline:8px !important}
.tninstruments button,.bfstrings button{padding-bottom:12px !important}
.tninstruments button::after,.bfstrings button::after,.mtsub button::after{bottom:3px !important;height:3px}

/* =====================================================================
   v109: FULL SCREEN devices on a computer – no background around them
   ===================================================================== */
body.instfull .app{max-width:none !important}
body.instfull main{padding:0 !important}
body.instfull #tuner.on,body.instfull #metro.on{margin:0 !important;position:relative}
body.instfull .bfear{display:none !important}
body.instfull .bfwrap{border-radius:0 !important;margin:0 !important}
body.instfull .bfwrap>.bf{border-radius:0 !important;margin:0 !important}
body.instfull #tnBox,body.instfull #mtBox{margin:0 !important}
body.instrument-duo.instfull main{gap:0 !important;padding:0 !important;grid-template-columns:auto auto !important;justify-content:center !important}
body.instrument-duo.instfull .instrument-close{position:absolute !important;top:12px;left:14px;z-index:6;margin:0 !important}
body.instrument-duo.instfull #tuner{border-inline-start:2px solid #0b0b0d}
body.instfull .instrument-add{top:12px !important;left:14px !important;z-index:6}
/* the metronome alone, across the width: meter on one side, controls on the other */
#metro.mtwide .bfmetro .bf{display:grid !important;grid-template-columns:1.25fr 1fr;column-gap:22px;row-gap:10px;align-content:start;
  grid-template-areas:"head head" "vu ctl" "vu sub" "leds snd" "hint adv" "read power"}
#metro.mtwide .bf>.bfhead{grid-area:head}
#metro.mtwide .bf>.vubezel{grid-area:vu}
#metro.mtwide .bf>.mtleds{grid-area:leds}
#metro.mtwide .bf>.mtmutehint{grid-area:hint;margin:0 !important}
#metro.mtwide .bf>.mtread{grid-area:read}
#metro.mtwide .bf>.mtctl{grid-area:ctl}
#metro.mtwide .bf>.mtsubg:not(.mtsndrow){grid-area:sub}
#metro.mtwide .bf>.mtsndrow{grid-area:snd}
#metro.mtwide .bf>.mtadvanced{grid-area:adv}
#metro.mtwide .bf>.mtpower{grid-area:power}
#metro.mtwide .bf>.bfc{position:absolute}
html:has(#metro.mtwide.on),html:has(#metro.mtwide.on) body,html:has(body.instfull) body{overflow-x:hidden}
#tnJewel,.bftuner .bfhead .jewel{display:none !important}   /* v109: no orange light on top */
/* v113: the tuner's direction – a big arrow that nudges the way to turn */
.tnarr{display:inline-block;font-size:1.25em;margin-inline-end:6px;line-height:1}
.tnarr.up{color:#fbbf24;animation:tnup .8s ease-in-out infinite}
.tnarr.down{color:#fb923c;animation:tndown .8s ease-in-out infinite}
.tnarr.ok{color:#34d399}
@keyframes tnup{0%,100%{transform:translateY(2px)}50%{transform:translateY(-4px)}}
@keyframes tndown{0%,100%{transform:translateY(-2px)}50%{transform:translateY(4px)}}
/* v113: the tuner's direction – a big arrow that nudges the way to turn */
.tnarr{display:inline-block;font-size:1.25em;margin-inline-end:6px;line-height:1}
.tnarr.up{color:#fbbf24;animation:tnup .8s ease-in-out infinite}
.tnarr.down{color:#fb923c;animation:tndown .8s ease-in-out infinite}
.tnarr.ok{color:#34d399}
@keyframes tnup{0%,100%{transform:translateY(2px)}50%{transform:translateY(-4px)}}
@keyframes tndown{0%,100%{transform:translateY(-2px)}50%{transform:translateY(4px)}}
/* v115: bigger tempo and beat knobs, − / + buttons (1 BPM each) on both sides of the tempo knob */
.mtctl.mtctl2{display:flex !important;flex-direction:column;align-items:center;gap:14px}
.mtctl2 .mtrow1{display:flex;align-items:center;justify-content:center;gap:10px;width:100%}
.mtctl2 .mtrow2{display:flex;align-items:center;justify-content:space-around;width:100%}
.mtctl2 .pdknob.big{width:min(250px,62vw) !important}   /* v115: the tempo knob – extra big */
.mtctl2 .mtrow1 .mtstep{margin-inline:-8px;position:relative;z-index:1}
.mtctl2 #mtBeatsK{width:min(115px,30vw) !important}
.mtstep{flex:0 0 auto;width:62px;height:62px;border-radius:50%;border:0;cursor:pointer;font:700 2.1rem/1 system-ui;color:#fbbf24;padding:0 0 3px;
  background:radial-gradient(circle at 35% 30%,#3f3f46,#18181b 70%);box-shadow:0 6px 14px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.18),0 0 0 2px #0b0b0c,0 0 0 3px #3f3f46;
  text-shadow:0 0 10px rgba(245,158,11,.6);display:grid;place-items:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;transition:transform .08s}
.mtstep:active{transform:scale(.92);box-shadow:0 2px 6px rgba(0,0,0,.6),inset 0 2px 6px rgba(0,0,0,.6),0 0 0 2px #0b0b0c,0 0 0 3px #f59e0b}
@media(max-width:380px){.mtstep{width:52px;height:52px;font-size:1.8rem}.mtctl2 .mtrow1{gap:4px}}
/* v115: across the width – the − TEMPO + row and BEAT/TAP side by side, so the meter is not stretched */
#metro.mtwide .mtctl.mtctl2{flex-direction:row !important;justify-content:space-evenly;align-items:center;gap:10px}
#metro.mtwide .mtctl2 .mtrow1{width:auto}
#metro.mtwide .mtctl2 .mtrow2{width:auto;flex-direction:column;gap:12px}
#metro.mtwide .mtctl2 #mtBeatsK{width:96px !important}
#metro.mtwide .mtctl2 .pdknob.big{width:min(240px,22vw) !important}
/* v117: the metronome across the width – a small meter, everything you touch is big.
   Right column: meter, beat lights, BPM, speed trainer, on/off. Left column: tempo (− knob +), beat & tap, subdivision, sound. */
#metro.mtwide .bfmetro .bf{grid-template-columns:1fr 1.45fr !important;column-gap:18px !important;row-gap:12px !important;align-items:center;
  grid-template-areas:"head head" "vu ctl" "leds ctl" "hint ctl" "read sub" "adv snd" "power snd" !important}
#metro.mtwide .bf>.vubezel{zoom:.62;justify-self:center;width:100%}
#metro.mtwide .bf>.mtleds{zoom:1.9;padding:6px;gap:14px}
#metro.mtwide .bf>.mtleds i{width:20px;height:20px}
#metro.mtwide .bf>.mtmutehint{font-size:.95rem}
#metro.mtwide .bf>.mtread{zoom:1.15}
#metro.mtwide .bf>.mtctl{zoom:1.3}
#metro.mtwide .bf>.mtsubg{zoom:1.35}
#metro.mtwide .bf>.mtadvanced{zoom:1.25}
#metro.mtwide .bf>.mtpower{zoom:1.35;margin-top:0;padding:10px}
/* v118: the speed trainer has one start / stop button */
.trainer-actions{grid-template-columns:1fr !important}
.trainer-actions .trainer-start.running{background:#3f3f46;color:#fbbf24;border-color:#f59e0b}
/* v118: computer, metronome + tuner together – a smaller meter, a bigger tempo knob with − / +, bigger beat lights and a bigger speed-trainer row */
html.desk body.instrument-duo #metro .bf>.vubezel{zoom:.72}
html.desk body.instrument-duo #metro .bf>.mtleds{zoom:2;padding:4px}
html.desk body.instrument-duo #metro .bf>.mtctl{zoom:1.3}
html.desk body.instrument-duo #metro .mtctl2 .mtrow1 .mtstep{width:70px;height:70px;font-size:2.4rem}
html.desk body.instrument-duo #metro .bf>.mtadvanced{zoom:1.35}
html.desk body.instrument-duo #metro .bf>.mtpower{zoom:1.25}
/* v120: on a phone the tuner / metronome covers the whole screen, upright and sideways – no background shows,
   and the page cannot scroll or bounce (so Safari's bars stay put and no knob or button moves) */
html:has(body.instfull:not(.instrument-duo)),body.instfull:not(.instrument-duo){overflow:hidden !important;overscroll-behavior:none;background:#151517 !important;background-image:none !important}
body.instfull:not(.instrument-duo) main{position:fixed !important;inset:0;overflow:hidden;padding:0 !important;margin:0 !important}
body.instfull .bfwrap{border:0 !important;box-shadow:none !important}
body.instfull:not(.instrument-duo) .bf{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
html:has(#tuner.tnwide.on) body.instfull:not(.instrument-duo) main{padding:0 !important}
/* v120: the tempo knob row has a fixed size – the knob never moves while it turns */
.mtctl2 .mtrow1 .pdk.main{flex:0 0 auto}
#mtBpm{display:inline-block;min-width:3ch;text-align:center}
/* v120: a bigger TEMPO knob (every skin). The whole device is fitted to the screen height, so to give the knob
   room the pendulum meter of the metronome is a little shorter. */
.bfmetro .mtctl2 .pdknob.big{width:min(300px,74vw) !important}
#metro:not(.mtwide) .bfmetro .vubezel .vuface svg{max-height:150px}
#metro.mtwide .mtctl2 .pdknob.big{width:min(290px,27vw) !important}

/* v120: "הגדרות נוספות" – subdivision + sound in a sheet; the face of the metronome has more room */
.mtmore{display:flex;align-items:center;gap:12px;width:100%;padding:14px 18px;font:inherit;cursor:pointer;text-align:start;color:#f4f4f5;border-radius:14px}
.mtmore .mtmorei{font-size:1.6rem;line-height:1}
.mtmore .mtmoret{flex:1;display:flex;flex-direction:column;gap:2px}
.mtmore .mtmoret b{font-size:1.4rem}
.mtmore .mtmoret small{font-size:.95rem;color:#a1a1aa;font-family:system-ui,sans-serif;font-weight:700}
.mtmore .mtmorec{font-size:2rem;color:#a1a1aa;line-height:1}
.mtsheet{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;padding:12px}
.mtsheet[hidden]{display:none}
.mtsheetbox{width:min(560px,100%);max-height:92vh;overflow:auto;border-radius:24px;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:#151517;border:1.5px solid #52525b;
  display:flex;flex-direction:column;gap:14px;color:#f4f4f5;font-family:"Noto Sans Hebrew",system-ui,sans-serif;font-weight:700;box-shadow:0 -10px 40px rgba(0,0,0,.6)}
.mtsheethd{display:flex;align-items:center;justify-content:space-between}
.mtsheethd b{font-size:1.4rem}
.mtsheethd button{width:44px;height:44px;border-radius:50%;border:0;background:#27272a;color:#f4f4f5;font-size:1.2rem;cursor:pointer}
.mtsheet .mtsubg{padding:14px 10px 10px !important}
.mtsheet .mtsub{flex-wrap:wrap;justify-content:center;max-width:100%}
.mtsheetok{height:58px;border-radius:16px;border:0;background:#f59e0b;color:#111;font:800 1.25rem "Noto Sans Hebrew",system-ui,sans-serif;cursor:pointer}
@media(min-width:700px){.mtsheet{align-items:center}}
/* sideways: the sheet's two panels are gone from the face – the button takes their place */
#metro.mtwide .bf>.mtmore{grid-area:more;zoom:1.25}
#metro.mtwide .bfmetro .bf{grid-template-areas:"head head" "vu ctl" "leds ctl" "hint ctl" "read ctl" "adv more" "power more" !important}
#metro.mtwide .bf>.mtctl{align-self:stretch}
#metro.mtwide .bf>.mtmore{align-self:stretch}
.mtsheet .mtsub{gap:6px !important;flex-wrap:nowrap}
.mtsheet .mtsub button{width:54px !important;height:62px !important}
.mtsheet .mtsnd button{width:68px !important;height:62px !important}
.mtsheet .mtsubg{padding-inline:4px !important}
/* v120: studio tuner – a needle instead of the lights (the light skins keep the lights) */
.tnface .tnndl,.tnface .tnndlhub{display:none}
.screen:not(.mnskin) .tnface .tnndl,.screen:not(.mnskin) .tnface .tnndlhub{display:inline}
.screen:not(.mnskin) .tnface .tnled{display:none}
.tnface .tnndlbar{stroke:#b91c1c}
.tnface[data-state="near"] .tnndlbar{stroke:#d97706}
.tnface[data-state="ok"] .tnndlbar{stroke:#15803d}
.tnface .tnndlhub{fill:#18181b;stroke:#52525b;stroke-width:2}
/* v120: the instrument pictures are always drawn full (body + neck filled), selected or not, in every look */
.tninstruments svg path[fill]{fill:currentColor !important}
.tninstruments svg circle:not(.tun),.tninstruments svg .hole{fill:#18181b;stroke:none}
.mnskin .tninstruments button:not([aria-pressed="true"]) svg circle:not(.tun),.mnskin .tninstruments button:not([aria-pressed="true"]) svg .hole{fill:var(--mn-card)}
.mnskin .tninstruments button[aria-pressed="true"] svg circle:not(.tun),.mnskin .tninstruments button[aria-pressed="true"] svg .hole{fill:var(--mn-sel)}
.tninstruments svg path[stroke-width=".5"]{stroke:rgba(0,0,0,.45)}
.mnskin .tninstruments button:not([aria-pressed="true"]) svg path[stroke-width=".5"]{stroke:rgba(255,255,255,.6)}
.mnskin .tninstruments button:not([aria-pressed="true"]) svg{color:var(--mn-ink) !important}
.tninstruments svg .tun{fill:currentColor !important}
/* v120: tuner + metronome side by side – a clear divider in the middle */
body.instrument-duo #metro{position:relative;overflow:visible !important}
body.instrument-duo #metro.on::before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:-4px;width:8px;border-radius:3px;z-index:3;pointer-events:none;
  background:#d4d4d8;box-shadow:0 0 0 2px #09090b,0 0 18px rgba(0,0,0,.6)}
html:has(#metro.mnskin.on) body.instrument-duo #metro.on::before,html:has(#tuner.mnskin.on) body.instrument-duo #metro.on::before{background:#0f172a;box-shadow:0 0 0 3px #fff,0 0 16px rgba(15,23,42,.25)}
/* v123: tuner – the last reading stays on screen in silence, slightly dimmed */
.bfread.held,.tnclose.held{opacity:.72;transition:opacity .4s}
.tnface.held .tnndlbar{opacity:.75}
/* v123: the "גלגל" tuner look – a cream drum of note names that turns behind a fixed line */
.tnface .tndrum{display:none}
#tuner[data-skin="drum"] .tnface svg{display:none}
#tuner[data-skin="drum"] .tnface .vuface{background:linear-gradient(180deg,#c9a05a,#a87b35) !important;padding:12px 10px 14px !important;display:flex;align-items:center}
#tuner[data-skin="drum"] .tnface .vuglass{display:none}
#tuner[data-skin="drum"] .tnface .tndrum{display:flex;flex-direction:column;gap:8px;width:100%}
.tndcent{position:relative;height:30px;border-radius:8px;background:linear-gradient(180deg,#3f3f46,#27272a);box-shadow:inset 0 2px 4px rgba(0,0,0,.6),0 0 0 2px #8a6526;overflow:hidden;
  background-image:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),rgba(255,255,255,.35) calc(10% - 1px) 10%),linear-gradient(180deg,#3f3f46,#27272a)}
.tndcent::after{content:"";position:absolute;left:calc(50% - 1.5px);top:0;bottom:0;width:3px;background:#dc2626}
.tndcent span{position:absolute;top:50%;transform:translate(-50%,-50%);font:700 11px system-ui,sans-serif;color:#d4d4d8}
.tndcent .m{left:8%}.tndcent .z{left:50%;opacity:0}.tndcent .p{left:92%}
.tndcent #tnDrumMark{position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;transform:rotate(45deg);background:#fff;border-radius:2px;box-shadow:0 0 8px rgba(255,255,255,.7);transition:left .08s linear}
.tndwin{position:relative;height:clamp(92px,24vw,140px);border-radius:12px;overflow:hidden;box-shadow:inset 0 0 0 3px #7a5620,0 3px 8px rgba(0,0,0,.4);
  background:#f6efdd}
/* the drum's roundness: darker at both ends */
.tndwin::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(60,40,15,.55),rgba(60,40,15,0) 22%,rgba(255,255,255,.25) 50%,rgba(60,40,15,0) 78%,rgba(60,40,15,.55))}
.tndstrip{position:absolute;top:0;bottom:0;left:0;will-change:transform;
  background-image:repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 12px),repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 12px);
  background-size:100% 14px,100% 14px;background-position:0 0,0 100%;background-repeat:repeat-x}
.tndc{position:absolute;top:0;bottom:0;width:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:#3b2410}
.tndc::before{content:"";position:absolute;left:59px;top:0;width:2px;height:24px;background:#3b2410}
.tndc::after{content:"";position:absolute;left:59px;bottom:0;width:2px;height:24px;background:#3b2410}
.tndc b{font:800 clamp(40px,11vw,62px)/1 Georgia,"Times New Roman",serif;letter-spacing:-1px}
.tndc small{font:700 13px "Noto Sans Hebrew",system-ui,sans-serif;opacity:.75;margin-top:2px}
.tndc.acc b{font-size:clamp(30px,8vw,46px);opacity:.85}
.tndline{position:absolute;z-index:3;left:calc(50% - 2px);top:0;bottom:0;width:4px;background:#dc2626;box-shadow:0 0 8px rgba(220,38,38,.6);transition:background .2s,box-shadow .2s}
.tnface[data-state="near"] .tndline{background:#f59e0b;box-shadow:0 0 10px rgba(245,158,11,.7)}
.tnface[data-state="ok"] .tndline,.tnface[data-state="ok"] .tndcent::after{background:#16a34a;box-shadow:0 0 14px rgba(22,163,74,.8)}
.tnface[data-state="ok"] .tndwin{box-shadow:inset 0 0 0 3px #16a34a,0 0 18px rgba(22,163,74,.45)}
.tnface.held .tndwin{opacity:.85}

/* v124: beat circles – bigger, numbered, easy to tap. Tap: accent → plain → silent */
.bfmetro .mtleds{gap:14px !important;padding:12px !important;flex-wrap:wrap;justify-content:center}
.bfmetro .mtleds i{width:46px !important;height:46px !important;border-radius:50% !important;display:grid !important;place-items:center;cursor:pointer;position:relative;
  background:#2a2418 !important;border:2px solid #57534e !important;box-shadow:inset 0 2px 5px rgba(0,0,0,.6) !important;-webkit-tap-highlight-color:transparent}
.bfmetro .mtleds i b{font:800 1.1rem system-ui,sans-serif;color:#a8a29e;pointer-events:none}
.bfmetro .mtleds i.acc{border:3px solid #f59e0b !important}
.bfmetro .mtleds i.acc b{color:#fbbf24}
.bfmetro .mtleds i.acc::after{content:">";position:absolute;top:-17px;font:900 14px system-ui,sans-serif;color:#f59e0b}
.bfmetro .mtleds i.muted{background:transparent !important;border:2px dashed #57534e !important;box-shadow:none !important}
.bfmetro .mtleds i.muted b{color:#57534e;text-decoration:line-through}
.bfmetro .mtleds i.on{background:radial-gradient(circle at 40% 35%,#fde68a,#f59e0b 60%,#b45309) !important;box-shadow:0 0 14px rgba(245,158,11,.8) !important}
.bfmetro .mtleds i.on b{color:#1c1917}
.bfmetro .mtleds i.on.acc{background:radial-gradient(circle at 40% 35%,#fecaca,#ef4444 60%,#991b1b) !important;box-shadow:0 0 16px rgba(239,68,68,.85) !important}
.bfmetro .mtmutehint{font-weight:700}
/* v124: the "גלגל" metronome – a drum of tempo numbers instead of the TEMPO knob */
.bfmetro .mtdrum{display:none}
#metro[data-skin="drum"] .bfmetro .mtrow1 .pdk.main{display:none}
#metro[data-skin="drum"] .bfmetro .mtdrum{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1 1 auto;min-width:0}
#metro[data-skin="drum"] .bfmetro .mtrow1{display:flex;align-items:center;gap:10px;width:100%}
.mtdwin{position:relative;width:100%;height:120px;border-radius:14px;overflow:hidden;cursor:ew-resize;touch-action:none;user-select:none;-webkit-user-select:none;
  background:#f6efdd;box-shadow:inset 0 0 0 3px #7a5620,0 3px 8px rgba(0,0,0,.45),0 0 0 4px #b8873d}
.mtdwin::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(60,40,15,.6),rgba(60,40,15,0) 24%,rgba(255,255,255,.25) 50%,rgba(60,40,15,0) 76%,rgba(60,40,15,.6))}
.mtdstrip{position:absolute;top:0;bottom:0;left:0;width:2200px;will-change:transform;transition:transform .06s linear;
  background-image:repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 9px),repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 9px);
  background-size:2400px 16px,2400px 16px;background-position:0 0,0 100%;background-repeat:repeat-x}
.mtdwin.turning .mtdstrip{transition:none}
.mtdn{position:absolute;top:50%;transform:translate(-50%,-50%);font:800 30px/1 Georgia,"Times New Roman",serif;color:#3b2410}
.mtdn::before,.mtdn::after{content:"";position:absolute;left:50%;width:3px;height:26px;margin-left:-1.5px;background:#3b2410}
.mtdn::before{top:-42px}.mtdn::after{bottom:-42px}
.mtdn.big{font-size:40px}
.mtdline{position:absolute;z-index:3;left:calc(50% - 2px);top:0;bottom:0;width:4px;background:#dc2626;box-shadow:0 0 8px rgba(220,38,38,.6)}
/* v124: "גלגל" metronome – the beats as a small drum, and a big drum-style ON / OFF switch */
.bfmetro .mtbdrum{display:none}
#metro[data-skin="drum"] .bfmetro .mtbeatk #mtBeatsW{display:none}
#metro[data-skin="drum"] .bfmetro .mtbdrum{display:block;width:min(200px,46vw)}
.mtbwin{height:84px}
.mtbwin .mtdstrip{width:420px;background-size:420px 14px,420px 14px;background-image:repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 46px),repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 46px);background-position:-1px 0,-1px 100%}
.mtbwin .mtdn{font-size:30px;opacity:.55;transition:opacity .15s,font-size .15s}
.mtbwin .mtdn::before,.mtbwin .mtdn::after{display:none}
.mtbwin .mtdn.cur{font-size:44px;opacity:1}
#metro[data-skin="drum"] .bfmetro .mtrow2{align-items:center}

#metro[data-skin="drum"] .bfmetro .mtpower{padding:12px 14px !important;gap:10px}
#metro[data-skin="drum"] .bfmetro .mtpower>.mono{font:800 1.1rem Georgia,serif;color:#e7d3a8;letter-spacing:2px;flex:0 0 auto}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well{flex:1 1 auto;width:auto !important;height:76px !important;border-radius:16px !important;border:0 !important;
  background:#f6efdd !important;box-shadow:inset 0 0 0 3px #7a5620,0 3px 8px rgba(0,0,0,.45),0 0 0 4px #b8873d !important;position:relative;overflow:hidden;
  background-image:repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 12px),repeating-linear-gradient(90deg,#5b3a1a 0 2px,transparent 2px 12px),linear-gradient(90deg,rgba(60,40,15,.5),rgba(60,40,15,0) 25%,rgba(255,255,255,.3) 50%,rgba(60,40,15,0) 75%,rgba(60,40,15,.5)) !important;
  background-size:100% 12px,100% 12px,100% 100% !important;background-position:0 0,0 100%,0 0 !important;background-repeat:repeat-x,repeat-x,no-repeat !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat{width:44% !important;height:58px !important;border-radius:12px !important;transform:translateX(56%) !important;
  background:linear-gradient(180deg,#e9c46a,#b8873d 55%,#7a5620) !important;box-shadow:0 4px 10px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.5) !important;position:relative}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat::after{content:"OFF";position:absolute;inset:0;display:grid;place-items:center;font:800 1.35rem Georgia,serif;color:#3b2410;letter-spacing:2px;
  background:repeating-linear-gradient(90deg,transparent 0 7px,rgba(59,36,16,.18) 7px 9px);border-radius:12px}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat{transform:translateX(-56%) !important;background:linear-gradient(180deg,#86efac,#16a34a 55%,#14532d) !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat::after{content:"ON";color:#052e16}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on{box-shadow:inset 0 0 0 3px #16a34a,0 0 18px rgba(22,163,74,.5),0 0 0 4px #b8873d !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.dragging .toggle-bat{transition:none}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat::before{display:none !important}
#metro[data-skin="drum"] .bfmetro .mtpower>.mono{display:none !important}
/* v124b: "גלגל" ON / OFF – one big brass-framed key: ▶ הפעלה when off, ■ עצירה (green, softly breathing) when on.
   A tap toggles it (sliding still works). */
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well{background:linear-gradient(180deg,#3a2614,#24170b) !important;background-image:none !important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.7),0 0 0 3px #b8873d,0 0 0 5px #5b3a1a,0 6px 14px rgba(0,0,0,.5) !important;padding:6px !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat,#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat{width:100% !important;height:100% !important;transform:none !important;border-radius:11px !important;
  background:linear-gradient(180deg,#fbf6ea,#efe3c6 55%,#d9c49a) !important;box-shadow:inset 0 1px 0 #fff,inset 0 -3px 6px rgba(91,58,26,.25),0 2px 4px rgba(0,0,0,.4) !important;transition:background .25s,box-shadow .25s}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat::after{content:"▶\00a0\00a0הפעלה";background:none !important;font:800 1.55rem "Noto Sans Hebrew",Georgia,serif !important;color:#3b2410 !important;letter-spacing:.5px !important;direction:rtl}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat{background:linear-gradient(180deg,#22c55e,#15803d 60%,#14532d) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -3px 6px rgba(0,0,0,.3),0 0 22px rgba(34,197,94,.55) !important;animation:mtbreath 1.8s ease-in-out infinite}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat::after{content:"■\00a0\00a0עצירה";color:#f0fdf4 !important;text-shadow:0 1px 2px rgba(0,0,0,.4)}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on{box-shadow:inset 0 2px 6px rgba(0,0,0,.7),0 0 0 3px #b8873d,0 0 0 5px #5b3a1a,0 0 24px rgba(34,197,94,.35) !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well:active .toggle-bat{transform:translateY(2px) !important}
@keyframes mtbreath{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12)}}
/* v124c: "גלגל" – the − / + keys sit beside the drum, never on it */
#metro[data-skin="drum"] .bfmetro .mtctl2 .mtrow1{gap:12px !important;padding-inline:4px}
#metro[data-skin="drum"] .bfmetro .mtctl2 .mtrow1 .mtstep{margin:0 !important;flex:0 0 auto;width:72px !important;height:72px !important;font-size:2.6rem !important}
#metro[data-skin="drum"] .bfmetro .mtdrum{flex:1 1 0 !important;min-width:0}
/* v124c: one key – green "▶ הפעל" when stopped, rose "■ עצור" (the colour of the app's "סיום") while it plays */
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat,#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well:not(.on) .toggle-bat{
  background:linear-gradient(180deg,#22c55e,#15803d 60%,#14532d) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -3px 6px rgba(0,0,0,.3),0 0 16px rgba(34,197,94,.35) !important;animation:none !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat::after{content:"▶\00a0\00a0הפעל" !important;color:#f0fdf4 !important;text-shadow:0 1px 2px rgba(0,0,0,.4)}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat{background:linear-gradient(180deg,#4a232b,#2f151a) !important;
  box-shadow:inset 0 0 0 2px rgba(248,113,113,.6),inset 0 1px 0 rgba(255,255,255,.08),0 0 18px rgba(220,38,38,.25) !important;animation:none !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat::after{content:"■\00a0\00a0עצור" !important;color:#fecaca !important;text-shadow:0 0 8px rgba(248,113,113,.5)}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on{box-shadow:inset 0 2px 6px rgba(0,0,0,.7),0 0 0 3px #b8873d,0 0 0 5px #5b3a1a,0 0 20px rgba(248,113,113,.25) !important}
/* v124d: the key reads ON (green) / OFF (rose), in English */
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-bat::after{content:"▶\00a0\00a0ON" !important;font-family:Georgia,"Times New Roman",serif !important;letter-spacing:3px !important;direction:ltr !important}
#metro[data-skin="drum"] .bfmetro .mtpower .toggle-well.on .toggle-bat::after{content:"■\00a0\00a0OFF" !important}

/* v125: the metronome's volume – a big, easy slider */
.bfmetro .mtvol{display:flex;align-items:center;gap:12px;padding:14px 14px !important;direction:ltr}
.bfmetro .mtvol .mtvi{flex:0 0 auto;width:54px;height:54px;border-radius:16px;border:0;font-size:1.6rem;cursor:pointer;background:#27272a;box-shadow:inset 0 0 0 1.5px #52525b;color:#fff}
.bfmetro .mtvol .mtvi:active{transform:translateY(1px)}
.bfmetro .mtvtrack{position:relative;flex:1 1 auto;min-width:0;height:54px;display:flex;align-items:center}
.bfmetro .mtvol input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:54px;margin:0;background:transparent;cursor:pointer;touch-action:pan-y;--p:80%}
.bfmetro .mtvol input[type=range]::-webkit-slider-runnable-track{height:18px;border-radius:9px;background:linear-gradient(90deg,#f59e0b 0 var(--p),#3f3f46 var(--p) 100%);box-shadow:inset 0 2px 4px rgba(0,0,0,.6)}
.bfmetro .mtvol input[type=range]::-moz-range-track{height:18px;border-radius:9px;background:linear-gradient(90deg,#f59e0b 0 var(--p),#3f3f46 var(--p) 100%)}
.bfmetro .mtvol input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:46px;height:46px;margin-top:-14px;border-radius:50%;border:3px solid #18181b;background:radial-gradient(circle at 35% 30%,#fff,#d4d4d8 55%,#71717a);box-shadow:0 4px 10px rgba(0,0,0,.6)}
.bfmetro .mtvol input[type=range]::-moz-range-thumb{width:42px;height:42px;border-radius:50%;border:3px solid #18181b;background:radial-gradient(circle at 35% 30%,#fff,#d4d4d8 55%,#71717a)}
.bfmetro .mtvval{position:absolute;top:-6px;left:0;right:0;text-align:center;font:800 .95rem system-ui,sans-serif;color:#e4e4e7;pointer-events:none}
.bfmetro .mtvol.mute .mtvval{color:#f87171}
#metro.mtwide .bf>.mtvol{grid-area:vol}
#metro.mtwide .bfmetro .bf{grid-template-areas:"head head" "vu ctl" "leds ctl" "hint ctl" "read ctl" "adv more" "power vol" !important}
/* "גלגל" look: cream track, brass knob */
#metro[data-skin="drum"] .bfmetro .mtvol input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#16a34a 0 var(--p),#f6efdd var(--p) 100%);box-shadow:inset 0 0 0 2px #7a5620,0 0 0 3px #b8873d}
#metro[data-skin="drum"] .bfmetro .mtvol input[type=range]::-webkit-slider-thumb{background:linear-gradient(180deg,#e9c46a,#b8873d 55%,#7a5620);border-color:#3b2410}
#metro[data-skin="drum"] .bfmetro .mtvol .mtvi{background:#f6efdd;box-shadow:inset 0 0 0 2px #7a5620,0 0 0 3px #b8873d}
.bfmetro .mtvol .mtvi{display:grid;place-items:center;color:#f4f4f5}
#metro[data-skin="drum"] .bfmetro .mtvol .mtvi{color:#3b2410}

/* v125: install QR in the teacher area + full-screen QR for the projector */
#teacher .t-install-share .tqr{ display:flex; gap:14px; align-items:center; margin:6px 0 12px; }
#teacher .t-install-share .tqr img{ width:132px; height:132px; flex:0 0 auto; background:#fff; border-radius:10px; padding:6px; border:1px solid #d8dde6; }
#teacher .t-install-share .tqr p{ margin:0; }
#teacher .t-install-share #tShowQr{ margin-bottom:10px; }
#tQrFull{ position:fixed; inset:0; z-index:9999; background:#fff; display:flex; align-items:center; justify-content:center; padding:16px; overflow:auto; }
#tQrFull[hidden]{ display:none; }
#tQrFull .tqrbox{ text-align:center; color:#0f172a; display:flex; flex-direction:column; align-items:center; gap:10px; max-width:640px; }
#tQrFull .tavin-brand{ width:56px; height:56px; border-radius:14px; }
#tQrFull h2{ margin:0; font-size:clamp(22px,4vw,40px); font-weight:800; }
#tQrFull .tqrbig{ width:min(70vmin,560px); height:auto; image-rendering:pixelated; }
#tQrFull ol{ margin:0; padding:0 22px 0 0; text-align:right; font-size:clamp(16px,2.4vw,24px); line-height:1.6; font-weight:600; }
#tQrFull .tqrurl{ font-size:clamp(16px,2.4vw,26px); font-weight:700; color:#2563eb; }
#tQrFull #tQrClose{ min-width:160px; }

/* v125: sideways / computer – the tuning picker ("סטנדרטי") sits in the middle, under both halves */
#tuner.tnwide .bftuner .bf{grid-template-areas:"head head" "face inst" "face read" "close strings" "tune tune" !important}
#tuner.tnwide .bftuner .bf>.tntune{justify-self:center;width:min(100%,640px)}

/* v125: the old wooden metronome (instead of the needle meter) on a dark green felt background – in every look */

#metro .mtpend::before,#metro .mtpend::after{display:none !important}
#metro .mtpend > svg{display:block;width:100%;height:auto;max-height:190px;margin:0 auto}
#metro .mtpend .mppend{transform-box:view-box;transform-origin:150px 122px}
#metro .mtpend #mtWeight{transition:transform .25s ease}
/* v125: TAP TEMPO written once – on the key itself */
#metro .mttapk .bftap{line-height:1.05;font-size:.95rem;padding:10px 12px;letter-spacing:.06em}
/* v125: "משקל" (meter) instead of BEAT, in Hebrew letters */
#metro .mtmeterl{font-family:inherit !important;letter-spacing:0 !important;font-weight:800 !important}
#metro .mtmeterl b{color:#f59e0b;margin-inline-start:4px;direction:ltr;unicode-bidi:isolate}
/* v125: ON / OFF in a clear round bold letter (not the thin typewriter letter) */
#metro[data-skin] .bfmetro .mtpower .toggle-bat::after,#metro[data-skin] .bfmetro .mtpower .toggle-well.on .toggle-bat::after,
#metro .mtpower>.mono,#metro .mtpower .toggle-bat::after{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;font-weight:900 !important;letter-spacing:.04em !important}
#metro .mtpower>.mono{font-size:1.35rem !important}
#metro .mtpower>.mono:first-of-type{color:#22c55e !important}
#metro .mtpower>.mono:last-of-type{color:#fb7185 !important}
/* v125: parts of the tuner / metronome that can be closed (fold.js) – !important: the string keys / skins style every button */
:is(#tuner,#metro) [data-tvfold]{position:relative}
:is(#tuner,#metro) [data-tvfold] > .tvfoldbtn{position:absolute !important;top:5px !important;left:50% !important;right:auto !important;width:34px !important;height:16px !important;min-width:0 !important;min-height:0 !important;
  padding:0 !important;margin:0 !important;border:1px solid rgba(255,255,255,.18) !important;border-radius:999px !important;background:#27272a !important;color:#e4e4e7 !important;box-shadow:0 1px 3px rgba(0,0,0,.5) !important;
  opacity:.6;z-index:4;display:flex !important;align-items:center;justify-content:center;cursor:pointer;flex:none !important;transform:translateX(-50%) !important}
:is(#tuner,#metro) [data-tvfold] > .tvfoldbtn:hover,:is(#tuner,#metro) [data-tvfold] > .tvfoldbtn:focus-visible{opacity:1}
:is(#tuner,#metro) [data-tvfold] > .tvfoldbtn::before,:is(#tuner,#metro) [data-tvfold] > .tvfoldbtn::after,:is(#tuner,#metro) [data-tvfold] > .tvfoldbar::before,:is(#tuner,#metro) [data-tvfold] > .tvfoldbar::after{display:none !important}
:is(#tuner,#metro) .tvfoldbtn svg{width:13px !important;height:13px !important}
:is(#tuner,#metro) .tvfoldbtn svg,:is(#tuner,#metro) .tvfoldbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
:is(#tuner,#metro) [data-tvfold] > .tvfoldbar{display:none !important}
:is(#tuner,#metro) [data-tvfold="closed"]{min-height:0 !important;height:auto !important;padding:0 !important;margin-block:2px !important;flex:0 0 auto !important;
  background:transparent !important;border:0 !important;box-shadow:none !important;overflow:visible;grid-template-columns:1fr !important;display:block !important}
:is(#tuner,#metro) [data-tvfold="closed"]::before,:is(#tuner,#metro) [data-tvfold="closed"]::after{display:none !important}
:is(#tuner,#metro) [data-tvfold="closed"] > :not(.tvfoldbar){display:none !important}
:is(#tuner,#metro) [data-tvfold="closed"]{font-size:0 !important;color:transparent !important}   /* text written straight in the part (no tag) is hidden too */
:is(#tuner,#metro) [data-tvfold="closed"] > .tvfoldbar{display:flex !important;width:100% !important;height:auto !important;min-height:0 !important;align-items:center;justify-content:center;gap:6px;padding:5px 10px !important;margin:0 !important;cursor:pointer;
  background:rgba(255,255,255,.05) !important;border:1.5px dashed rgba(255,255,255,.22) !important;border-radius:10px !important;color:#a1a1aa !important;box-shadow:none !important;
  font:700 .85rem/1.2 system-ui,-apple-system,Arial,sans-serif !important;letter-spacing:0 !important;transform:none !important}
:is(#tuner,#metro).mnskin [data-tvfold="closed"] > .tvfoldbar{background:var(--mn-card2) !important;border-color:var(--mn-tick) !important;color:var(--mn-mute) !important}
:is(#tuner,#metro).mnskin [data-tvfold] > .tvfoldbtn{background:var(--mn-line) !important;color:var(--mn-ink) !important}
.tvfoldhide{display:none !important}
[data-tvfold="closed"] > .tvfoldbar,[data-tvfold="closed"] > .tvfoldbar *{flex-direction:row !important}
[data-tvfold] > .tvfoldbar span{font:inherit !important;color:inherit !important;letter-spacing:0 !important;margin:0 !important;text-transform:none !important}
#metro .mtpend[data-tvfold="closed"]{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}
/* v128: on a computer the "הוסף טיונר / מטרונום" key sits right of the metronome's status light, not over it */
body.instfull:not(.instrument-duo) .instrument-add{left:64px !important}

/* v128: where each part's fold tab sits (every look) – it never covers a number or a word */
/* the "למתוח / מכוון" row: on the left side, in the middle of its height */
#tuner .tnclose > .tvfoldbtn{top:50% !important;left:8px !important;transform:translateY(-50%) !important;width:16px !important;height:30px !important}
#tuner .tnclose > .tvfoldbtn svg{transform:rotate(-90deg)}
#tuner .tnclose:not([data-tvfold="closed"]){padding-left:30px !important}
/* the strings: a frame of their own, and the tab on top of the left-most string (E) */
#tuner .bf > #tnStrings:not([data-tvfold="closed"]){border:1.5px solid rgba(255,255,255,.14);border-radius:14px;padding:20px 6px 6px !important;background:rgba(255,255,255,.025)}
.mnskin#tuner .bf > #tnStrings:not([data-tvfold="closed"]){border-color:var(--mn-line);background:var(--mn-card)}
#tuner #tnStrings > .tvfoldbtn{top:3px !important;left:calc(6px + (100% - 12px) / var(--tnstr,6) / 2) !important;transform:translateX(-50%) !important;height:14px !important}
/* the tuning ("סטנדרטי"): the tab a little lower, in the middle, under the name box */
#tuner .tntune > .tvfoldbtn{top:auto !important;bottom:2px !important;transform:translateX(-50%) !important}
#tuner .tntune:not([data-tvfold="closed"]){padding-bottom:20px !important}
/* metronome volume: the tab left of the "80%", on the same line – not on the number */
#metro .mtvol > .tvfoldbtn{left:26% !important}

/* v128: the "גלגל" metronome, wide screen (computer / sideways): TAP TEMPO a little lower, the meter drum a little bigger, "TEMPO" a little lower */
#metro.mtwide[data-skin="drum"] .bfmetro .mttapk{margin-top:18px}
#metro.mtwide[data-skin="drum"] .bfmetro .mtbdrum{width:min(232px,46vw)}
#metro.mtwide[data-skin="drum"] .bfmetro .mtbwin{height:98px}
#metro.mtwide[data-skin="drum"] .bfmetro .mtbwin .mtdn.cur{font-size:50px}
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum > label{margin-top:10px}
/* v129: edit mode – tabs and closed parts only while editing */
:is(#tuner,#metro):not(.tvedit) [data-tvfold] > .tvfoldbtn{display:none !important}
:is(#tuner,#metro):not(.tvedit) [data-tvfold="closed"]{display:none !important}
:is(#tuner,#metro).tvedit .bf > [data-tvfold="open"]{outline:2px dashed rgba(245,158,11,.55);outline-offset:3px}
:is(#tuner,#metro).tvedit [data-tvfold] > .tvfoldbtn{opacity:1 !important;background:#f59e0b !important;color:#111 !important;border-color:#f59e0b !important}
.mnskin:is(#tuner,#metro).tvedit .bf > [data-tvfold="open"]{outline-color:var(--mn-blue)}
.mnskin:is(#tuner,#metro).tvedit [data-tvfold] > .tvfoldbtn{background:var(--mn-blue) !important;color:#fff !important;border-color:var(--mn-blue) !important}
.skchip.skedit{background:transparent !important;border:2px solid currentColor !important;color:#fbbf24 !important;padding:4px 12px !important;font-weight:800 !important;margin-inline-end:6px}
.skchip.skedit.on{background:#22c55e !important;border-color:#22c55e !important;color:#04210f !important}
.mnskin .skchip.skedit{color:var(--mn-blue) !important}
.mnskin .skchip.skedit.on{background:var(--mn-green) !important;border-color:var(--mn-green) !important;color:#fff !important}

/* v129: an upright phone – the spare height goes to the main face (tuner meter / metronome pendulum), so the device fills the screen to the bottom */
@media (max-width:700px) and (orientation:portrait){
  body.instfull #tuner .bf{display:flex;flex-direction:column}
  body.instfull #tuner .bf > .tnface:not([data-tvfold="closed"]){flex:1 1 auto}
  body.instfull #metro .bf > .mtpend:not([data-tvfold="closed"]){flex:1 1 auto;display:flex;align-items:center;justify-content:center}
}
/* v129: upright phone – the speed panel (knob, TAP TEMPO, meter) takes its share of the spare height and keeps its contents in its middle */
@media (max-width:700px) and (orientation:portrait){
  body.instfull #metro .bf > .mtctl:not([data-tvfold="closed"]){flex:1 1 auto;justify-content:space-evenly;padding-block:18px !important}
}

/* v129: the volume bar – yellow at the soft end, strong green at the loud end (all looks) */
#metro .bfmetro .mtvol input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#facc15 0,var(--vc,#16a34a) var(--p),rgba(120,120,130,.35) var(--p) 100%) !important}
#metro .bfmetro .mtvol input[type=range]::-moz-range-track{background:linear-gradient(90deg,#facc15 0,var(--vc,#16a34a) var(--p),rgba(120,120,130,.35) var(--p) 100%) !important}
#metro .bfmetro .mtvol .mtvval{font-weight:800}

/* v129: the pendulum window has a frame like every other window */


/* v129: phone – the writing is the same real size in the tuner and the metronome, a bit bigger than before
   (like the speed trainer page). --tvz = the device's zoom, so  size / zoom  = the size you see. */
@media (max-width:700px){
  #metro .mtmutehint{font-size:calc(13px / var(--tvz,1)) !important;line-height:1.3 !important}
  #metro .pdk > label,#metro .mtdrum > label,#metro .mtmeterl{font-size:calc(15px / var(--tvz,1)) !important}
  #metro .mtmeterl b{font-size:inherit !important}
  #metro #mtTerm{font-size:calc(14px / var(--tvz,1)) !important}
  #metro .bfled7 small{font-size:calc(12px / var(--tvz,1)) !important}
  #metro .mtmore .mtmoret b{font-size:calc(17px / var(--tvz,1)) !important}
  #metro .mtmore .mtmoret small{font-size:calc(13px / var(--tvz,1)) !important}
  #metro #mtAdvanced,#metro #mtAdvanced .mono{font-size:calc(16px / var(--tvz,1)) !important;letter-spacing:.02em !important}
  #metro .mtvol .mtvval{font-size:calc(13px / var(--tvz,1)) !important}
  #metro .bf .mttapk .bftap{font-size:calc(12px / var(--tvz,1)) !important;min-width:calc(64px / var(--tvz,1)) !important;min-height:calc(54px / var(--tvz,1)) !important;padding:4px !important}
  #metro .mtpower > .mono{font-size:calc(18px / var(--tvz,1)) !important}
  #metro .tvfoldbar,#tuner .tvfoldbar{font-size:calc(13px / var(--tvz,1)) !important}
  #tuner .tninstruments button b,#tuner .tninstruments button span{font-size:calc(16px / var(--tvz,1)) !important}
  #tuner #tnStrings button span{font-size:calc(14px / var(--tvz,1)) !important}
  #tuner #tnStrings button small{font-size:calc(12px / var(--tvz,1)) !important}
  #tuner #tnTuNotes{font-size:calc(14px / var(--tvz,1)) !important}
  #tuner #tnTuName{font-size:calc(18px / var(--tvz,1)) !important}
  #tuner #tnStr{font-size:calc(16px / var(--tvz,1)) !important}
  #tuner .tna4 small{font-size:calc(12px / var(--tvz,1)) !important}
  #tuner #tnA4{font-size:calc(15px / var(--tvz,1)) !important}
}
/* v129: no message under the tuner = no empty row – the tuner reaches the bottom of the screen like the metronome */
#tuner .bf > #tnErr:empty{display:none !important}

/* v129: "כלים נוספים" – the picker window */
.tnmorepick .tnmoregrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 6px}
.tnmorepick .tnmoregrid button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:14px;border:2px solid transparent;background:#2a2a2d;color:#e4e4e7;font:inherit;cursor:pointer}
.tnmorepick .tnmoregrid button svg{width:72px;height:44px}
.tnmorepick .tnmoregrid button b{font-size:.95rem}
.tnmorepick .tnmoregrid button.on{border-color:#f59e0b;background:#2b2210;color:#fbbf24}
.tnmorepick .tnmorenote{text-align:center;opacity:.8;margin:4px 0 10px}
#tuner #tnStrings[hidden]{display:none !important}
#tuner #tnTuNotes.tnchrom{letter-spacing:0 !important;font-family:inherit !important;direction:rtl}

#tnMoreBtn{position:relative}
#tnMoreBtn .tnmoretag{position:static;display:block;margin-top:2px;white-space:nowrap;box-shadow:none;font:800 .7rem/1 system-ui,-apple-system,Arial,sans-serif;font-style:normal;padding:3px 6px;border-radius:999px;background:#f59e0b;color:#111;letter-spacing:0}
#tnMoreBtn .tnmoretag.dots{padding:2px 6px}
.mnskin #tnMoreBtn .tnmoretag{background:var(--mn-blue);color:#fff}

/* =====================================================================
   v130: ONE font in the tuner and the metronome – the app's own (like "עריכה" in Hebrew, like "Click" in English),
   for every word and number on the panels. The drawn faces (meter, note drum, tempo drums, pendulum) keep their lettering.
   ===================================================================== */
:is(#tuner,#metro) .bfwrap .bf *:not(svg):not(svg *):not(.tndwin *):not(.mtdwin *):not(.tndcent *):not(#mtBeatsV):not(#mtBeatsV *),
:is(#tuner,#metro) .bfwrap .bf .mono{font-family:"Noto Sans Hebrew",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important}
:is(#tuner,#metro) .bfwrap .bf .mono{letter-spacing:.03em !important;font-variant-numeric:tabular-nums}
#metro .bfled7,#metro #mtBpm,#tuner #tnHz{font-variant-numeric:tabular-nums}
#metro .bfled7 .ghost{display:none}
/* "רבעים · Click" written like "אימון מתקדם" */
#metro .mtmore .mtmoret small{font-weight:700 !important;opacity:1 !important}

/* v130: phone – the metronome's writing a size bigger again, the beat numbers too */
@media (max-width:700px){
  #metro .mtmutehint{font-size:calc(15px / var(--tvz,1)) !important}
  #metro .pdk > label,#metro .mtdrum > label,#metro .mtmeterl{font-size:calc(17px / var(--tvz,1)) !important}
  #metro #mtTerm{font-size:calc(16px / var(--tvz,1)) !important}
  #metro .bfled7 small{font-size:calc(14px / var(--tvz,1)) !important}
  #metro .mtmore .mtmoret b{font-size:calc(19px / var(--tvz,1)) !important}
  #metro .mtmore .mtmoret small{font-size:calc(15px / var(--tvz,1)) !important}
  #metro #mtAdvanced,#metro #mtAdvanced .mono{font-size:calc(18px / var(--tvz,1)) !important}
  #metro .mtvol .mtvval{font-size:calc(15px / var(--tvz,1)) !important}
  #metro .bf .mttapk .bftap{font-size:calc(14px / var(--tvz,1)) !important;min-width:calc(70px / var(--tvz,1)) !important}
  #metro .mtpower > .mono{font-size:calc(20px / var(--tvz,1)) !important}
  #metro .mtleds i b{font-size:calc(18px / var(--tvz,1)) !important}
  #metro .bfbadge .mono,#tuner .bfbadge .mono{font-size:calc(13px / var(--tvz,1)) !important}
}

/* v130: the pendulum sits in a panel framed exactly like the beat circles and the BPM – its picture in a rounded window inside */
#metro .bf > .mtpend{grid-area:vu;padding:10px !important;display:flex;align-items:center;justify-content:center;min-height:0}
#metro .mtpend > svg{width:100%;height:auto;max-height:190px;border-radius:9px;overflow:hidden !important;background:linear-gradient(180deg,#3b2a20 0%,#1d140e 85%,#2b1a0d 100%);display:block}
/* v130: no percent over the volume bar – the colour and the knob already show it */
#metro .mtvol .mtvval{display:none !important}
#tuner #tnMoreBtn .tnmoretag{font-size:calc(12px / var(--tvz,1)) !important;padding:2px 8px !important;line-height:1.3 !important}
#tuner #tnMoreBtn .tnmoretag{color:#111 !important;background:#fbbf24 !important} .mnskin#tuner #tnMoreBtn .tnmoretag{color:var(--mn-sel) !important;background:#fff !important}

/* v130: "למתוח הרבה +120" – Hz keeps its place, the guide box takes the rest; long words get smaller so the arrow,
   the words and the number all stay inside the box, centred – nothing covers anything, nothing leaves the frame */
#tuner .tnclose .bfhz{flex:0 0 auto;white-space:nowrap}
#tuner .tnclose .bfguide{flex:1 1 0 !important;min-width:0 !important;width:auto !important;display:flex !important;align-items:center;justify-content:center;gap:.3em;
  white-space:nowrap;overflow:hidden;padding-inline:6px !important;box-sizing:border-box}
#tuner .tnclose .bfguide > *{flex:0 0 auto}
#tuner #tnGuide .mono{font-size:.8em !important} #tuner #tnGuide .tnarr{font-size:1em !important}
/* v130: the Hz number is the same size in every look (the light looks had it bigger and squeezed the guide) */
#tuner .bf .tnclose .bfhz b{font-size:1.9rem !important;letter-spacing:0 !important}
#tuner .bf .tnclose .bfhz{font-size:1.1rem !important}
#tuner .bf .tnclose .bfguide{gap:.25em !important}

/* v131: computer, tuner + metronome together – the "סגירה" keys get their own strip on top, so they never cover the devices */
body.instrument-duo.instfull :is(#tuner,#metro) .bfwrap{padding-top:54px !important;box-sizing:border-box}
body.instrument-duo.instfull .instrument-close{top:9px !important}

/* v131: the "תצוגה" key is always black on orange – in every look, dark or light */
:is(#tuner,#metro) .bfbadge .skchip:not(.skmoon):not(.skedit){background:#fbbf24 !important;color:#111 !important;box-shadow:0 3px 10px rgba(0,0,0,.35) !important}
/* light studio / drum: the name plate is flipped back as a whole and painted light here – so its keys keep their exact colours */
:is(#tuner,#metro)[data-mode="light"]:is([data-skin="drum"],[data-skin="studio"]) .bfhead .bfbadge{background:#f4f4f5 !important;border-color:#d4d4d8 !important;box-shadow:0 2px 8px rgba(0,0,0,.12) !important}
:is(#tuner,#metro)[data-mode="light"]:is([data-skin="drum"],[data-skin="studio"]) .bfhead .bfbadge > .mono{color:#111 !important}
:is(#tuner,#metro)[data-mode="light"]:is([data-skin="drum"],[data-skin="studio"]) .bfhead .bfbadge > i{background:#a1a1aa !important}
:is(#tuner,#metro)[data-mode="light"]:is([data-skin="drum"],[data-skin="studio"]) .bfhead .skchip.skedit{color:#b45309 !important}

/* v131: tuner + metronome together on a computer – every word has the same real size in both (the metronome is drawn smaller, so its writing is scaled up like on a phone) */
body.instrument-duo #metro .mtmutehint{font-size:calc(13px / var(--tvz,1)) !important;line-height:1.3 !important}
body.instrument-duo #metro .pdk > label,body.instrument-duo #metro .mtdrum > label,body.instrument-duo #metro .mtmeterl{font-size:calc(15px / var(--tvz,1)) !important}
body.instrument-duo #metro #mtTerm{font-size:calc(14px / var(--tvz,1)) !important}
body.instrument-duo #metro .bfled7 small{font-size:calc(12px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtmore .mtmoret b{font-size:calc(17px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtmore .mtmoret small{font-size:calc(13px / var(--tvz,1)) !important}
body.instrument-duo #metro #mtAdvanced,body.instrument-duo #metro #mtAdvanced .mono{font-size:calc(16px / var(--tvz,1)) !important;letter-spacing:.02em !important}
body.instrument-duo #metro .mtvol .mtvval{font-size:calc(13px / var(--tvz,1)) !important}
body.instrument-duo #metro .bf .mttapk .bftap{font-size:calc(12px / var(--tvz,1)) !important;min-width:calc(64px / var(--tvz,1)) !important;min-height:calc(54px / var(--tvz,1)) !important;padding:4px !important}
body.instrument-duo #metro .mtpower > .mono{font-size:calc(18px / var(--tvz,1)) !important}
body.instrument-duo #metro .tvfoldbar,body.instrument-duo #tuner .tvfoldbar{font-size:calc(13px / var(--tvz,1)) !important}
body.instrument-duo #tuner .tninstruments button b,body.instrument-duo #tuner .tninstruments button span{font-size:calc(16px / var(--tvz,1)) !important}
body.instrument-duo #tuner #tnStrings button span{font-size:calc(14px / var(--tvz,1)) !important}
body.instrument-duo #tuner #tnStrings button small{font-size:calc(12px / var(--tvz,1)) !important}
body.instrument-duo #tuner #tnTuNotes{font-size:calc(14px / var(--tvz,1)) !important}
body.instrument-duo #tuner #tnTuName{font-size:calc(18px / var(--tvz,1)) !important}
body.instrument-duo #tuner #tnStr{font-size:calc(16px / var(--tvz,1)) !important}
body.instrument-duo #tuner .tna4 small{font-size:calc(12px / var(--tvz,1)) !important}
body.instrument-duo #tuner #tnA4{font-size:calc(15px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtmutehint{font-size:calc(15px / var(--tvz,1)) !important}
body.instrument-duo #metro .pdk > label,body.instrument-duo #metro .mtdrum > label,body.instrument-duo #metro .mtmeterl{font-size:calc(17px / var(--tvz,1)) !important}
body.instrument-duo #metro #mtTerm{font-size:calc(16px / var(--tvz,1)) !important}
body.instrument-duo #metro .bfled7 small{font-size:calc(14px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtmore .mtmoret b{font-size:calc(19px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtmore .mtmoret small{font-size:calc(15px / var(--tvz,1)) !important}
body.instrument-duo #metro #mtAdvanced,body.instrument-duo #metro #mtAdvanced .mono{font-size:calc(18px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtvol .mtvval{font-size:calc(15px / var(--tvz,1)) !important}
body.instrument-duo #metro .bf .mttapk .bftap{font-size:calc(14px / var(--tvz,1)) !important;min-width:calc(70px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtpower > .mono{font-size:calc(20px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtleds i b{font-size:calc(18px / var(--tvz,1)) !important}
body.instrument-duo #metro .mtmeterl b{font-size:inherit !important}

/* v131: the wall behind the mechanical metronome is one even colour across the whole window */
#metro .mtpend > svg{background:#2a1d15 !important}
/* v131: wider power key */
#metro .bfmetro .mtpower{padding-left:8px !important;padding-right:8px !important;gap:8px !important}
#metro .bfmetro .mtpower .toggle-well{flex:1 1 auto !important;width:auto !important;max-width:none !important}
#metro .bfmetro .mtpower .toggle-well{container-type:inline-size}
#metro:not([data-skin="drum"]) .bfmetro .mtpower .toggle-bat{transform:translateX(calc(50cqw - 50% - 6px))}
#metro:not([data-skin="drum"]) .bfmetro .mtpower .toggle-well.on .toggle-bat{transform:translateX(calc(-50cqw + 50% + 6px))}
/* v132: beat numbers sit in the exact middle of their circles, and the accent mark sits exactly above its circle */
.bfmetro .mtleds i b{display:block;line-height:1 !important;text-align:center;margin:0 !important;padding:0 !important}
.bfmetro .mtleds i.acc::after{left:-9px !important;right:-9px !important;bottom:-9px !important;top:-21px !important;inset:auto;text-align:center;line-height:1}
.bfmetro .mtleds i b{transform:translateY(.07em)}
/* v132: landscape metronome – meter up, tempo down and bigger, a big TAP key (one word), a bigger hint over the beats */
#metro.mtwide .mtctl.mtctl2{align-items:stretch !important;padding-block:14px !important}
#metro.mtwide .mtctl2 .mtrow2{justify-content:space-between !important;gap:14px !important}
#metro.mtwide .mtctl2 .mtrow1{align-self:flex-end}
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum{zoom:1.18}
#metro.mtwide .mtctl2 .mtrow1{align-items:center !important;padding-bottom:34px}
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum{position:relative}
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum > label{position:absolute;top:100%;left:0;right:0;text-align:center;margin-top:6px !important}
#metro.mtwide[data-skin="drum"] .bfmetro .mttapk{margin-top:0 !important}
#metro.mtwide .mttapk .bftap{width:108px !important;height:72px !important;font-size:1.6rem !important;letter-spacing:.12em !important}
#metro.mtwide .mttapk .bftap span+span{display:none}
#metro.mtwide .bf>.mtmutehint{font-size:calc(11px / var(--tvz,1)) !important}
/* v132: the accent mark stays inside the frame of the beat circles */
#metro .bfmetro .bf > .mtleds{padding-top:24px !important}
#metro.mtwide .bfmetro .bf > .mtleds{padding-top:14px !important}
.bfmetro .mtleds i.acc::after{top:-18px !important}
/* v132: landscape – the tempo window is the big, main thing; its words bigger too */
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum{zoom:1.5 !important}
#metro.mtwide .mtctl2 .mtrow1{padding-bottom:50px}
#metro.mtwide[data-skin="drum"] .bfmetro .mtctl2 .mtrow1 .mtstep{width:84px !important;height:84px !important;font-size:3rem !important}
#metro.mtwide .mtdrum > label{font-size:calc(10px / var(--tvz,1)) !important;letter-spacing:.14em}
#metro.mtwide .mtmeterl{font-size:calc(14px / var(--tvz,1)) !important}
#metro.mtwide[data-skin="drum"] .bfmetro .mtbdrum{width:min(260px,30vw) !important}
#metro.mtwide .mttapk .bftap{width:124px !important;height:80px !important;font-size:1.9rem !important}
#metro.mtwide .mtmeterl b{font-size:1.15em !important}
/* v132: 6 or 7 beats stay on one line – the circles just sit closer */
#metro .bfmetro .mtleds:has(> i:nth-of-type(6)){flex-wrap:nowrap !important;gap:8px !important;justify-content:center}
#metro .bfmetro .mtleds:has(> i:nth-of-type(6)) > i{flex:0 1 46px;min-width:0;height:auto !important;aspect-ratio:1}
/* v132: the meter written like on sheet music – the two numbers one over the other – and a small quarters / eighths switch under it */
#metro .mtmeterl{display:flex !important;align-items:center;justify-content:center;gap:8px}
#metro .mtmeterl b{display:inline-flex !important;flex-direction:column;align-items:center;line-height:.82 !important;font:900 1.5em/0.82 Georgia,"Times New Roman",serif !important;color:#fbbf24;
  padding:2px 6px;border-inline-start:2px solid rgba(251,191,36,.35);margin-inline-start:2px !important}
#metro .mtmeterl b i{font-style:normal;display:block}
#metro .mtmeterl b i + i{border-top:2px solid currentColor;padding-top:2px;margin-top:1px}
.mtunit{display:flex;gap:0;border:1.5px solid #52525b;border-radius:999px;overflow:hidden;margin-top:6px;direction:rtl}
.mtunit button{display:flex;align-items:center;gap:4px;padding:4px 10px;background:transparent;border:0;color:#a1a1aa;font:700 calc(12px / var(--tvz,1)) "Noto Sans Hebrew",system-ui,sans-serif;cursor:pointer}
.mtunit button svg{width:.85em;height:1.4em;flex:0 0 auto}
.mtunit button.on{background:#fbbf24;color:#111}
.mnskin .mtunit{border-color:var(--mn-frame)} .mnskin .mtunit button{color:var(--mn-mute)} .mnskin .mtunit button.on{background:var(--mn-blue);color:#fff}
#metro.mtwide .mtunit button{font-size:calc(9px / var(--tvz,1)) !important;padding:3px 8px}
#metro .mtbeatk .mtmeterl{margin-top:8px !important}
/* v132: the TAP key shows one word, right in its middle */
#metro .mttapk .bftap{display:flex !important;align-items:center !important;justify-content:center !important;text-align:center;padding:0 !important;letter-spacing:.12em !important;text-indent:.12em}
#metro .mttapk .bftap span{display:block;line-height:1}
/* v132b: the meter digits like an engraved time signature – no fraction line, two bold serif numbers stacked tight, gold */
#metro .mtmeterl b{border:0 !important;padding:0 2px !important;font-family:"Bodoni 72","Didot","Bodoni MT",Georgia,"Times New Roman","DejaVu Serif",serif !important;font-weight:900 !important;
  font-size:1.9em !important;line-height:.74 !important;letter-spacing:0;
  background:linear-gradient(180deg,#fff3c4 0%,#fbbf24 45%,#b7791f 100%);-webkit-background-clip:text;background-clip:text;color:transparent !important;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.6)) drop-shadow(0 0 6px rgba(251,191,36,.25))}
#metro .mtmeterl b i + i{border:0 !important;padding:0 !important;margin-top:0 !important}
#metro .mtmeterl b i{font-family:inherit !important;font-weight:inherit}
.mnskin#metro .mtmeterl b{background:none !important;color:var(--mn-blue) !important;filter:none}
#metro.mtwide .mtmeterl b{font-size:2.1em !important}
#tuner .tntune button[hidden]{display:none !important} #tuner .tntune.tnone .tnlcd{flex:1 1 auto;text-align:center}
/* v133: speed trainer – a − / + pair around each number, the dial above them */
.trainer .trainer-dial-control{grid-template-columns:44px minmax(0,1fr) 44px !important;grid-template-areas:"dial dial dial" "m in p";justify-items:center;row-gap:8px !important;column-gap:6px !important}
.trainer .trainer-dial-control .trainer-dial{grid-area:dial}
.trainer .trainer-dial-control input{grid-area:in;width:100%;text-align:center}
.trainer .trainer-dial-control [data-pm="-1"]{grid-area:m}
.trainer .trainer-dial-control [data-pm="1"]{grid-area:p}
.trainer .trainer-pm{width:44px;height:44px;min-height:0;padding:0;border-radius:50%;border:1.5px solid #52525b;background:linear-gradient(#2a2a30,#17171b);color:#fbbf24;font:800 1.6rem/1 system-ui,sans-serif;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;box-shadow:0 3px 6px #0007}
.trainer .trainer-pm:active{transform:translateY(2px);box-shadow:0 1px 2px #0007}
.mnskin .trainer .trainer-pm{background:var(--mn-card,#fff);color:var(--mn-blue,#2563eb);border-color:var(--mn-frame,#cbd5e1);box-shadow:none}
@media(max-width:480px){ .trainer .trainer-dial-control{grid-template-columns:38px minmax(0,1fr) 38px !important} .trainer .trainer-pm{width:38px;height:38px;font-size:1.4rem} }
/* v133: the logo is a "home" key */
header .logo, header #hTitle, .tavin-brand{cursor:pointer}
.tqrbox .tavin-brand{cursor:default}
/* v133: "הוסף טיונר / מטרונום" looks like the "תצוגה" key (orange pill), "סגירה" like the "עריכה" key (orange outline pill) */
.instrument-add{display:inline-flex !important;align-items:center;gap:8px;max-width:none !important;padding:8px 18px 8px 14px !important;border-radius:999px !important;border:0 !important;
  background:#fbbf24 !important;color:#111 !important;font:800 1rem "Noto Sans Hebrew",system-ui,sans-serif !important;box-shadow:0 4px 14px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.45) !important;white-space:nowrap;transition:transform .12s,filter .12s}
.instrument-add b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#111;color:#fbbf24;font:900 17px/1 system-ui,sans-serif}
.instrument-add:hover{filter:brightness(1.08);transform:translateY(-1px)}
.instrument-add:active{transform:translateY(1px)}
.instrument-close{display:inline-flex !important;align-items:center;gap:8px;padding:6px 16px 6px 12px !important;border-radius:999px !important;border:2px solid #fbbf24 !important;background:rgba(20,20,22,.92) !important;
  color:#fbbf24 !important;font:800 .95rem "Noto Sans Hebrew",system-ui,sans-serif !important;white-space:nowrap;transition:background .12s,color .12s}
.instrument-close b{font:900 .85rem/1 system-ui,sans-serif}
.instrument-close:hover{background:#fbbf24 !important;color:#111 !important}
/* v133: landscape – a wider tempo window that shows more numbers */
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum{zoom:1.28 !important;flex:1 1 auto !important}
#metro.mtwide .mtctl2 .mtrow1{flex:1 1 auto;min-width:0}
#metro.mtwide[data-skin="drum"] .bfmetro .mtctl2 .mtrow1 .mtstep{width:72px !important;height:72px !important}
#metro.mtwide .mtctl2 .mtrow2{flex:0 0 auto}
/* v133b: landscape – meter + TAP on top, the tempo window across the whole width under them (shows a wider range) */
#metro.mtwide .mtctl.mtctl2{flex-direction:column-reverse !important;justify-content:space-between !important;align-items:stretch !important}
#metro.mtwide .mtctl2 .mtrow2{flex-direction:row !important;justify-content:space-around !important;align-items:center !important;width:100% !important}
#metro.mtwide .mtctl2 .mtrow1{align-self:stretch !important;width:100% !important;padding-bottom:34px}
#metro.mtwide[data-skin="drum"] .bfmetro .mtdrum{zoom:1.12 !important}
#metro.mtwide .mtmeterl b{font-size:1.6em !important}
#metro.mtwide .mtbeatk{display:flex;flex-direction:column;align-items:center}
/* v133: the wide metronome on a computer (not a phone on its side) – words at a readable size, a wider tempo range */
@media (min-height:521px){
  #metro.mtwide .bf>.mtmutehint{font-size:1.05rem !important}
  #metro.mtwide .mtdrum > label{font-size:1rem !important}
  #metro.mtwide .mtmeterl{font-size:1.35rem !important}
  #metro.mtwide .mtunit button{font-size:.95rem !important;padding:5px 12px}
  #metro.mtwide[data-skin="drum"] .bfmetro .mtdrum{zoom:.78 !important}
}
/* v133: in "עריכה" the small close tabs sit ON the frame of each window (half outside), never over its numbers and keys */
:is(#tuner,#metro).tvedit [data-tvfold="open"]{overflow:visible !important}
:is(#tuner,#metro).tvedit [data-tvfold] > .tvfoldbtn{top:-9px !important;bottom:auto !important;transform:translateX(-50%) !important;z-index:7;box-shadow:0 2px 6px rgba(0,0,0,.45) !important}
:is(#tuner,#metro).tvedit #tnStrings > .tvfoldbtn{top:-9px !important}
#tuner.tvedit .tnclose > .tvfoldbtn{top:50% !important;left:-9px !important;transform:translateY(-50%) !important}
#tuner.tvedit .tntune > .tvfoldbtn{top:auto !important;bottom:-9px !important}
:is(#tuner,#metro).tvedit .bf{row-gap:max(14px, var(--tvgap,0px))}
#tuner.tvedit .tninstruments > .tvfoldbtn{top:-17px !important}
/* v134: "חזור למטרונום" in the speed trainer – a pill like the "עריכה" key */
.trainer #trainBack{display:inline-flex !important;align-items:center;gap:8px;padding:7px 18px 7px 14px !important;border-radius:999px !important;border:2px solid #fbbf24 !important;
  background:rgba(20,20,22,.92) !important;color:#fbbf24 !important;font:800 1rem "Noto Sans Hebrew",system-ui,sans-serif !important;min-height:0 !important;box-shadow:0 3px 10px rgba(0,0,0,.35) !important;transition:background .12s,color .12s}
.trainer #trainBack b{font:900 1.05rem/1 system-ui,sans-serif}
.trainer #trainBack:hover{background:#fbbf24 !important;color:#111 !important}
.mnskin .trainer #trainBack,.mnskin#metro .trainer #trainBack{border-color:var(--mn-blue) !important;color:var(--mn-blue) !important;background:var(--mn-card,#fff) !important}
#mtSnd [data-snd="1"] span{letter-spacing:0 !important;white-space:nowrap;font-size:.92em !important;margin-inline:-4px}
/* v144: the in-tune zone – 10 cents either side of the middle; the mark inside it = in tune */
.tndcent .tndzone{position:absolute;top:0;bottom:0;background:linear-gradient(180deg,rgba(34,197,94,.55),rgba(22,163,74,.35));box-shadow:inset 0 0 0 1px rgba(134,239,172,.55);border-radius:3px;pointer-events:none}
.tnface[data-state="ok"] .tndcent .tndzone{background:linear-gradient(180deg,rgba(34,197,94,.85),rgba(22,163,74,.6));box-shadow:inset 0 0 0 1px #bbf7d0,0 0 12px rgba(34,197,94,.7)}
.tnface[data-state="ok"] .tnzone{opacity:.9}
/* v145: the Hebrew note names on the drum a little bigger */
.tndc small{font-size:18px !important;opacity:.85 !important;margin-top:0 !important;line-height:1.05}
/* v146: two greens – the outer zone (±8, "מכוון") a deep, quiet green; the middle (±5, where the chime rings) a bright, light green */
.tndcent .tndzone{background:linear-gradient(180deg,rgba(21,128,61,.75),rgba(20,83,45,.7)) !important;box-shadow:inset 0 0 0 1px rgba(74,222,128,.35) !important}
.tndcent .tndzone5{position:absolute;top:0;bottom:0;background:linear-gradient(180deg,#86efac,#22c55e);box-shadow:0 0 8px rgba(134,239,172,.55);border-radius:2px;pointer-events:none;opacity:.9}
.tnface[data-state="ok"] .tndcent .tndzone{background:linear-gradient(180deg,rgba(22,163,74,.9),rgba(21,128,61,.85)) !important}
.tnface[data-state="ok"] .tndcent .tndzone5{opacity:1;box-shadow:0 0 14px rgba(134,239,172,.9)}
.tnzone{stroke:#166534 !important;opacity:.75 !important}
.tnface[data-state="ok"] .tnzone5{filter:drop-shadow(0 0 4px #86efac)}
/* v146: the string number box above A4 is gone */
#tuner #tnStr{display:none !important}
/* v146: a phone turned sideways – the name plate (logo, name, תצוגה, עריכה, night) bigger; it only grows into the empty space around it, nothing else moves */
@media (orientation:landscape) and (max-height:520px){
  #tuner .bfhead .bfbadge{transform:scale(1.38);transform-origin:right center}
  #metro .bfhead .bfbadge{transform:scale(1.6);transform-origin:right center}
  :is(#tuner,#metro) .bfhead{overflow:visible}
}
