/* ============================================================
   בוזוקי אקדמי — עיצוב
   ערכת נושא: לילה אגאי — כחול עמוק, זהב, טורקיז
   ============================================================ */

:root {
  --bg-deep: #0b1623;
  --bg: #101f30;
  --bg-card: #16283c;
  --bg-elev: #1d3349;
  --line: #28415c;
  --text: #e8eef5;
  --text-dim: #9db2c7;
  --gold: #e3b341;
  --gold-soft: #f0cc74;
  --aegean: #4fb3d9;
  --aegean-deep: #2a7fa8;
  --accent-red: #d96459;
  --ok: #5fc88f;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

button, select, .tuner-course, .dromos-item, .routine-item, .chord-card,
.jins-card, .gloss-item, .rhythm-tab, .ls-chip {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  font-family: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(79, 179, 217, 0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(227, 179, 65, 0.07), transparent 60%),
    var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
}

.app { display: flex; min-height: 100vh; }

/* ===================== סרגל צד ===================== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0e1c2c 0%, #0b1623 100%);
  border-left: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: var(--safe-top);
  height: calc(100vh - var(--safe-top));
  height: calc(100dvh - var(--safe-top));
  overflow: hidden;
}

.sidebar-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}
.chrome-tools {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex: none;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.logo-icon { width: 46px; height: 46px; flex: none; }
.logo-title { font-size: 21px; font-weight: 900; color: var(--gold); letter-spacing: 0.5px; }
.logo-sub { font-size: 11.5px; color: var(--text-dim); }

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 179, 65, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}

.nav-section-label {
  margin: 10px 6px 2px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(227, 179, 65, 0.55);
  flex-shrink: 0;
}
.nav-section-label:first-child { margin-top: 0; }

.nav-btn.nav-featured {
  border-color: rgba(227, 179, 65, 0.22);
  background: rgba(227, 179, 65, 0.06);
}
.nav-btn.nav-featured .nav-ico { filter: drop-shadow(0 0 6px rgba(227, 179, 65, 0.35)); }

.nav-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(232, 197, 107, 0.28);
  border-radius: 12px;
  color: var(--text-dim);
  font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer;
  text-align: right;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.nav-btn:hover { background: var(--bg-card); color: var(--text); }
.nav-btn:active { background: var(--bg-card); color: var(--text); }
.nav-btn.active {
  background: linear-gradient(90deg, rgba(227, 179, 65, 0.16), rgba(227, 179, 65, 0.05));
  border-color: rgba(227, 179, 65, 0.35);
  color: var(--gold-soft);
  font-weight: 700;
}
.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  color: #8fe7ff;
}
.nav-label { line-height: 1.25; }
.ui-ico { width: 22px; height: 22px; display: block; }
button .ui-ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -0.22em;
  margin-inline-end: 6px;
}
.nav-ico .ui-ico,
.hub-card-ico .ui-ico,
#app-helper-help .ui-ico,
.screen-ico .ui-ico { width: 22px; height: 22px; margin-inline-end: 0; }
.screen-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.screen-title-row h1 { margin-bottom: 0; min-width: 0; }
.screen-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  color: #9aefff;
  background: rgba(90, 210, 255, 0.08);
  border: 1px solid rgba(232, 197, 107, 0.28);
  box-shadow: 0 0 16px rgba(90, 210, 255, 0.14);
}
.nav-btn.active .nav-ico {
  color: #9aefff;
  filter: drop-shadow(0 0 7px rgba(120, 230, 255, 0.55));
}

.sidebar-xp {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.sidebar-streak-mobile { display: none; }

.sidebar-foot { margin-top: auto; text-align: center; color: var(--text-dim); font-size: 12.5px; line-height: 1.7; flex-shrink: 0; }
.sidebar-foot b { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* פס מאיאנדרוס (דוגמה יוונית) */
.meander {
  height: 14px;
  margin-bottom: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 1h26v12h-8V5h-4v8h-4V9h4M2 13V5h4v4' stroke='%23e3b341' stroke-width='1.4' fill='none' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* ===================== תוכן ראשי ===================== */
.main { flex: 1; padding: 36px 42px 80px; max-width: 1250px; min-width: 0; }
.app { min-width: 0; }

.screen { display: none; animation: fadeUp 0.35s ease; min-width: 0; max-width: 100%; }
.screen.active { display: block; }
.screen h1:focus { outline: none; }
.screen h1:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.screen-head { margin-bottom: 28px; position: relative; }
.screen-head h1 {
  font-size: clamp(25px, 4.5vw, 34px); font-weight: 900;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold) 50%, var(--aegean));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.screen-head::after {
  content: '';
  display: block;
  width: 130px; height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--aegean), transparent);
}
.lead { color: var(--text-dim); font-size: clamp(14px, 2.5vw, 16px); }

.card {
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(79, 179, 217, 0.035), transparent 80px), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 26px);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, rgba(227, 179, 65, 0.55), rgba(79, 179, 217, 0.25), transparent);
  pointer-events: none;
}
.card h2 { font-size: 21px; color: var(--gold-soft); margin-bottom: 12px; font-weight: 700; }
.card p { line-height: 1.75; margin-bottom: 10px; color: #d4dfeb; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===================== HomeHub — "כל הכלים" ===================== */
.home-hub { margin-bottom: 26px; }
.hub-title { font-size: 20px; color: var(--gold-soft); margin-bottom: 14px; font-weight: 700; }
.hub-group { margin-bottom: 18px; }
.hub-group-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hub-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
}
.hub-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  color: #f0cc74;
  background: rgba(227, 179, 65, 0.1);
  border: 1px solid rgba(227, 179, 65, 0.22);
  box-shadow: inset 0 0 12px rgba(120, 220, 255, 0.06);
}
.hub-card-label { line-height: 1.35; }
.hub-card:hover { background: var(--bg-elev); border-color: rgba(227, 179, 65, 0.3); }
.hub-card:active { background: var(--bg-elev); border-color: rgba(227, 179, 65, 0.3); }
@media (min-width: 720px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .hub-grid { grid-template-columns: repeat(4, 1fr); }
}

.hint { font-size: 13.5px; color: var(--text-dim); background: rgba(79, 179, 217, 0.07); border-right: 3px solid var(--aegean); padding: 9px 12px; border-radius: 8px; }

.info-block h3 { color: var(--aegean); font-size: 16px; margin: 14px 0 8px; }
.mood-line { color: var(--gold-soft); font-weight: 500; font-style: italic; }

.tip-box {
  background: rgba(227, 179, 65, 0.09);
  border: 1px solid rgba(227, 179, 65, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ===================== כפתורים ===================== */
.btn {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { border-color: var(--aegean); background: #234059; }
.btn:active { transform: scale(0.96); }
.btn.gold {
  background: linear-gradient(135deg, var(--gold), #c79a2e);
  color: #1a1408; font-weight: 700; border: none;
  box-shadow: 0 3px 14px rgba(227, 179, 65, 0.25);
}
.btn.gold:hover { filter: brightness(1.1); }
.btn.gold:active { filter: brightness(1.1); }
.btn.small { padding: 6px 13px; font-size: 16px; font-weight: 700; }
.btn.playing { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

select {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit; font-size: 14.5px;
  padding: 11px 13px;
  min-height: 44px;
  border-radius: 11px;
  cursor: pointer;
  max-width: 100%;
}

.badge {
  display: inline-block;
  background: rgba(227, 179, 65, 0.14);
  border: 1px solid rgba(227, 179, 65, 0.4);
  color: var(--gold-soft);
  border-radius: 20px;
  padding: 3px 13px;
  font-size: 13px; font-weight: 600;
}
.badge.alt { background: rgba(79, 179, 217, 0.12); border-color: rgba(79, 179, 217, 0.4); color: var(--aegean); }

/* ===================== טיונר ===================== */
.tuner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.tuner-course {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.tuner-course:hover { border-color: var(--gold); transform: translateY(-2px); }
.tuner-course:active { border-color: var(--gold); transform: translateY(-2px); }
.tuner-course.ringing { border-color: var(--gold); box-shadow: 0 0 18px rgba(227, 179, 65, 0.35); }
.tuner-note { font-size: 30px; font-weight: 900; color: var(--gold); }
.tuner-solfege { font-size: 14px; color: var(--text); margin: 2px 0; }
.tuner-pair { font-size: 11.5px; color: var(--text-dim); }

/* ===================== אנטומיה ===================== */
.anatomy-svg { width: 100%; height: auto; }
.anatomy-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.anatomy-legend span b { color: var(--gold-soft); }

.hist { background: var(--bg-elev); border-radius: 10px; padding: 16px; }
.hist-era { color: var(--gold); font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.hist p { font-size: 13.8px; line-height: 1.7; color: var(--text-dim); margin: 0; }

/* ===================== לוח סריגים ===================== */
.fretboard-wrap { overflow-x: auto; padding: 8px 0; margin: 14px 0; position: relative; min-width: 0; max-width: 100%; }
.fretboard { min-width: 1080px; width: 100%; height: auto; display: block; }
.fretboard-scroll-hint { display: none; text-align: center; font-size: 11px; color: var(--text-dim); opacity: 0.6; padding: 4px 0; }

.fb-dot { cursor: pointer; transition: opacity 0.15s; }
svg.bn-neck.bn-playing .fb-dot { opacity: 0.34; }
svg.bn-neck.bn-playing .fb-dot.tl-neck-active,
svg.bn-neck.bn-playing .fb-dot.st-active,
svg.bn-neck.bn-playing .fb-dot.mm-target,
svg.bn-neck.bn-playing .fb-dot.mm-glow { opacity: 1; }
.fb-dot:hover { filter: brightness(1.3); }
.fb-dot:active { filter: brightness(1.3); }
.fb-note-label { pointer-events: none; user-select: none; }
.fb-glow { animation: glowPulse 0.5s ease-out; }
@keyframes glowPulse {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* Safe Notes — טוניקה, 4, 5 — Virtual Ensemble */
#fb-dromos .note-dot.safe-note-glow {
  animation: safeNotePulse 2.2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
#fb-dromos .note-dot.safe-note-glow circle {
  stroke: #f0cc74 !important;
  stroke-width: 2.5 !important;
}
@keyframes safeNotePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(227, 179, 65, 0.55));
  }
  50% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 10px rgba(240, 204, 116, 0.95))
            drop-shadow(0 0 18px rgba(227, 179, 65, 0.4));
  }
}

#dr-drone.playing {
  background: rgba(176, 72, 68, 0.88);
  border-color: rgba(196, 92, 88, 0.95);
  color: #fff;
}

.daily-challenge-line {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(227, 179, 65, 0.12);
  border: 1px solid rgba(227, 179, 65, 0.35);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}
.daily-challenge-line:empty { display: none; }
.ex-controls #ex-challenge-btn { margin-left: 0; margin-bottom: 8px; width: 100%; }
@media (min-width: 720px) {
  .ex-controls { flex-wrap: wrap; align-items: center; }
  .ex-controls #ex-challenge-btn { width: auto; margin-bottom: 0; margin-left: 8px; order: -1; flex: 1 1 100%; }
}

/* ===================== דרומוסים ===================== */
.dromoi-layout { display: grid; grid-template-columns: 235px 1fr; gap: 22px; align-items: start; }
.fs-pos-bar, #dromoi-pos-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 14px; }
.fs-pos-label { font-size: 0.85rem; color: var(--text-dim); margin-left: 4px; }
.fs-pos-chip { padding: 5px 10px !important; font-size: 0.8rem !important; }
.fs-pos-chip.active { background: var(--gold) !important; color: #1a1208 !important; border-color: var(--gold) !important; }
.fs-neck-board { width: 100%; }
.fs-pos-board { overflow-x: auto; max-width: 100%; min-width: 0; }
.mp-neck-host, .rc-neck-host { margin: 12px 0; overflow-x: auto; }
.fb-mirror-bar, .pbs-speed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.fb-mirror-btn { font-size: 1rem !important; line-height: 1 !important; padding: 6px 12px !important; }
.di-tag-custom { background: var(--gold); color: #1a1408; }
.fs-edit-bar { display: flex; gap: 6px; align-items: center; margin-inline-start: 12px; flex-wrap: wrap; }
.fs-edit-badge { color: var(--gold); font-size: 0.75rem; font-weight: 700; }
.fs-edit-invariant-lbl { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--text-dim); padding: 4px 0; cursor: pointer; }
.fs-edit-invariant-lbl input { width: 18px; height: 18px; cursor: pointer; }
.fs-edit-excluded { opacity: .45; }
.rc-neck-title { font-size: 0.95rem; margin: 0 0 8px; color: var(--gold); }
.dromoi-sidebar { display: flex; flex-direction: column; gap: 10px; }
.dromoi-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.dromoi-filter .btn { padding: 6px 10px; font-size: 0.82rem; }
.dromoi-filter .btn.active { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.dromos-item.maqam-item { border-right: 3px solid var(--gold); }
.di-tag { font-size: 0.7rem; opacity: 0.85; font-weight: normal; }
@media (max-width: 1100px) { .dromoi-layout { grid-template-columns: 1fr; } }

.dromoi-list { display: flex; flex-direction: column; gap: 7px; position: sticky; top: 24px; }
.dromos-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.dromos-item:hover { border-color: var(--aegean); }
.dromos-item:active { border-color: var(--aegean); }
.dromos-item.active { border-color: var(--gold); background: linear-gradient(90deg, rgba(227, 179, 65, 0.13), var(--bg-card)); }
.dromos-item .di-name { font-weight: 700; font-size: 15px; }
.dromos-item .di-gr { font-size: 12px; color: var(--text-dim); }
.dromos-item.active .di-name { color: var(--gold-soft); }

.dromos-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dromos-greek { color: var(--aegean); font-size: 15px; margin-top: 2px; }
.root-pick { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 14px; }

.degree-row { display: flex; gap: 7px; margin: 16px 0 6px; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.degree-cell {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 0;
  width: 64px;
  text-align: center;
}
.degree-cell.root { border-color: var(--gold); background: rgba(227, 179, 65, 0.12); }
.degree-cell .dg { font-size: 12px; color: var(--text-dim); }
.degree-cell .nt { font-size: 17px; font-weight: 700; color: var(--text); }
.degree-cell.root .nt { color: var(--gold); }
.degree-cell .sf { font-size: 11px; color: var(--text-dim); }

.dromos-actions { display: flex; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }

.single-string { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.ss-note {
  width: 52px; text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 0 6px;
  transition: all 0.12s;
}
.ss-note.lit { border-color: var(--gold); background: rgba(227, 179, 65, 0.2); transform: translateY(-3px); }
.ss-fret { font-size: 19px; font-weight: 800; color: var(--aegean); }
.ss-note.lit .ss-fret { color: var(--gold); }
.ss-dir { font-size: 13px; color: var(--text-dim); }

/* ===================== ג׳ינס ומאקאם ===================== */
.ajnas-title { color: var(--aegean); font-size: 16.5px; margin: 22px 0 12px; }
.ajnas-title small { color: var(--text-dim); font-weight: 400; font-size: 12.5px; }

.ajnas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px) { .ajnas-grid { grid-template-columns: 1fr 1fr; } }

.jins-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.jins-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.jins-card:active { border-color: var(--gold); transform: translateY(-2px); }
.jins-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.jins-head b { font-size: 16px; }
.jins-head span { font-size: 12px; color: var(--text-dim); }
.jins-card p { font-size: 12.8px; color: var(--text-dim); line-height: 1.6; margin: 8px 0 0; }

.jins-bar { display: flex; gap: 3px; direction: ltr; }
.jins-step {
  flex: 1; height: 16px; border-radius: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.jins-step.on { border-color: transparent; box-shadow: 0 0 6px rgba(227, 179, 65, 0.25); }

.ajnas-table-wrap { overflow-x: auto; }
.ajnas-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ajnas-table th {
  text-align: right; color: var(--gold-soft); font-weight: 700;
  padding: 9px 12px; border-bottom: 2px solid var(--line); font-size: 13.5px;
}
.ajnas-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: #cdd9e5; }
.ajnas-table tr:hover td { background: rgba(79, 179, 217, 0.05); }

/* ===================== טכניקה (פנייה) ===================== */
.technique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .technique-grid { grid-template-columns: 1fr; } }

.tech-card { background: var(--bg-elev); border-radius: 12px; padding: 20px; border: 1px solid var(--line); }
.tech-card h3 { color: var(--gold-soft); margin-bottom: 12px; font-size: 17px; }
.tech-card svg { width: 100%; height: 150px; background: rgba(11, 22, 35, 0.5); border-radius: 10px; margin-bottom: 12px; }
.tech-card ul { padding-right: 18px; }
.tech-card li { font-size: 14px; line-height: 1.75; color: #cdd9e5; margin-bottom: 7px; }

/* ===================== מאמן פנייה ===================== */
.penia-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.tempo-ctl { display: flex; align-items: center; gap: 9px; }
.bpm-display {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 16px;
  text-align: center;
  min-width: 86px;
}
.bpm-display span { font-size: 23px; font-weight: 800; color: var(--gold); }
.bpm-display small { color: var(--text-dim); margin-right: 5px; }

.penia-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 8px 0 16px;
  justify-content: center;
}
.stroke-cell {
  width: 58px; height: 86px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.1s;
  gap: 4px;
}
.stroke-arrow { font-size: 30px; line-height: 1; color: var(--aegean); font-weight: 900; }
.stroke-cell.accent .stroke-arrow { font-size: 40px; color: var(--gold); }
.stroke-cell.rest .stroke-arrow { color: var(--line); font-size: 22px; }
.stroke-num { font-size: 11px; color: var(--text-dim); }
.stroke-cell.lit {
  border-color: var(--gold);
  background: rgba(227, 179, 65, 0.18);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(227, 179, 65, 0.3);
}
.penia-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.penia-info p { margin: 0; flex-basis: 100%; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }

/* ===================== מקצבים ===================== */
.rhythm-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.rhythm-tab {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 9px 19px;
  cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--text-dim);
  transition: all 0.15s;
}
.rhythm-tab:hover { border-color: var(--aegean); color: var(--text); }
.rhythm-tab:active { border-color: var(--aegean); color: var(--text); }
.rhythm-tab.active { background: linear-gradient(135deg, var(--gold), #c79a2e); color: #1a1408; font-weight: 700; border-color: transparent; }
.rhythm-tab small { opacity: 0.75; margin-right: 5px; }

.rhythm-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.rhythm-meta { display: flex; gap: 9px; align-items: center; }
.meter-badge {
  background: var(--gold); color: #1a1408;
  font-size: 19px; font-weight: 900;
  border-radius: 10px; padding: 5px 15px;
}

.beat-strip { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 14px; background: var(--bg-deep); border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: none; }
.beat-cell {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--line);
  background: var(--bg-card);
  transition: all 0.1s;
  position: relative;
}
.beat-cell .b-sym { font-size: 15px; font-weight: 800; }
.beat-cell .b-num { font-size: 10.5px; color: var(--text-dim); }
.beat-cell.dum { border-color: var(--gold); }
.beat-cell.dum .b-sym { color: var(--gold); }
.beat-cell.tek { border-color: var(--aegean-deep); }
.beat-cell.tek .b-sym { color: var(--aegean); }
.beat-cell.rest { opacity: 0.4; }
.beat-cell.lit { transform: scale(1.16); box-shadow: 0 0 18px rgba(227, 179, 65, 0.45); background: rgba(227, 179, 65, 0.15); }
.beat-cell.group-start::before {
  content: ''; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-red);
}

.penia-row-label { padding: 8px 14px 0; border: 1px solid var(--line); border-top: none; border-bottom: none; background: var(--bg-deep); font-size: 12.5px; color: var(--text-dim); }
.beat-penia { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 6px 14px 16px; background: var(--bg-deep); border-radius: 0 0 12px 12px; border: 1px solid var(--line); border-top: none; margin-bottom: 18px; }
.bp-cell { width: 62px; text-align: center; font-size: 22px; font-weight: 900; color: var(--aegean); }

.rhythm-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rhythm-controls input[type='range'] { flex: 1; min-width: 140px; accent-color: var(--gold); }
.chk { display: flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 14px; cursor: pointer; }
.chk input { accent-color: var(--gold); width: 16px; height: 16px; }

/* ===================== ספריית תרגילים ===================== */
.ex-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .ex-layout { grid-template-columns: 1fr; } }

.ex-list-col { position: sticky; top: 24px; }
.ex-cat-desc { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; margin-bottom: 12px; }
.ex-list { display: flex; flex-direction: column; gap: 7px; }

.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ex-head h2 { margin: 0; }

.ex-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0; }

.tab-wrap {
  overflow-x: auto;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  margin: 10px 0 14px;
}
.tab-wrap svg { display: block; height: auto; }
.tab-note.lit .tn-bg { fill: #f0cc74; stroke: #fff; }
.tab-note.lit text { fill: #1a1408; }
.tab-note.lit .tn-arrow { fill: #f0cc74; }

.chord-diagrams { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; justify-content: center; align-items: stretch; }
.chord-card:has(.bn-neck) { flex: 1 1 100%; width: 100%; max-width: 100%; }
.chord-svg.bn-neck { width: 100%; min-width: 0; height: auto; }
.chord-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  position: relative;
}
.chord-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.chord-card:active { border-color: var(--gold); transform: translateY(-2px); }
.chord-svg { width: 96px; height: auto; display: block; }
.chord-label { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
.chord-edit-toggle {
  position: absolute; top: 4px; inset-inline-end: 4px;
  padding: 4px 7px !important; font-size: 0.85rem !important; line-height: 1 !important;
  min-width: 30px; min-height: 30px;
}
.chord-edit-toggle.active { background: var(--gold); color: #1a1208; border-color: var(--gold); }

.strum-strip {
  display: flex; gap: 7px; flex-wrap: wrap;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0 14px;
  justify-content: center;
}
.strum-cell {
  height: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 3px;
  transition: all 0.1s;
}
.strum-cell .sc-top { font-size: 26px; font-weight: 900; color: var(--aegean); line-height: 1; }
.strum-cell .sc-bottom { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.strum-cell.bass { border-color: rgba(227, 179, 65, 0.5); }
.strum-cell.bass .sc-top { color: var(--gold); }
.strum-cell.rest { opacity: 0.4; }
.strum-cell.lit {
  border-color: var(--gold);
  background: rgba(227, 179, 65, 0.18);
  transform: scale(1.07);
  box-shadow: 0 0 14px rgba(227, 179, 65, 0.3);
}

/* ===================== מאסטר הפנייה (משחק) ===================== */
.game-controls { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-bottom: 12px; }
.game-tip { color: var(--gold-soft); font-size: 14.5px; font-style: italic; margin-bottom: 8px; }

.game-pattern { display: flex; gap: 8px; justify-content: center; margin: 10px 0 14px; flex-wrap: wrap; }
.gp-arrow {
  font-size: 22px; font-weight: 900; color: var(--aegean);
  width: 34px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gp-arrow.accent { color: var(--gold); font-size: 28px; }
.gp-arrow.rest { color: var(--line); }

.game-hud {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.game-score-box { font-size: 16px; color: var(--text-dim); }
.game-score-box b { color: var(--gold); font-size: 22px; }
.game-combo { font-size: 24px; font-weight: 900; color: var(--gold-soft); min-width: 64px; text-align: center; }
.game-keys { font-size: 12px; color: var(--text-dim); }

.game-lane-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-deep);
  touch-action: none;
  user-select: none;
}
#game-canvas {
  display: block;
  width: 100%;
  height: 240px;
  cursor: pointer;
}
.game-zone-label {
  position: absolute; left: 10px;
  font-size: 11.5px; font-weight: 700;
  pointer-events: none;
  opacity: 0.6;
}
.game-zone-label.up { top: 8px; color: var(--aegean); }
.game-zone-label.down { bottom: 8px; color: var(--gold); }

.game-stars { font-size: 40px; color: var(--gold); letter-spacing: 6px; margin-bottom: 4px; }
.record-badge {
  display: inline-block;
  background: var(--accent-red); color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: 14px; padding: 3px 12px;
  vertical-align: middle; margin-right: 8px;
  animation: fadeUp 0.4s ease;
}
.game-result-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  #game-canvas { height: 300px; }
  .game-keys { display: none; }
}

/* ===================== מאמן מאזין ===================== */
.ls-live {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ls-live-note { font-size: 44px; font-weight: 900; color: var(--gold); min-height: 58px; }
.ls-freq { font-size: 13px; color: var(--text-dim); min-height: 18px; }

.ls-meter { width: 100%; max-width: 340px; }
.ls-meter-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-dim); margin-bottom: 3px; }
.ls-meter-track {
  position: relative; height: 26px;
  background: linear-gradient(90deg, rgba(217,100,89,0.25), rgba(95,200,143,0.3) 40%, rgba(95,200,143,0.3) 60%, rgba(217,100,89,0.25));
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.ls-center { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(232,238,245,0.5); }
.ls-needle {
  position: absolute; top: 2px; bottom: 2px; width: 6px;
  background: var(--gold);
  border-radius: 3px;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.09s linear;
  opacity: 0.25;
}
.ls-needle.intune { background: var(--ok); box-shadow: 0 0 10px rgba(95, 200, 143, 0.8); }

.ls-level { width: 100%; max-width: 340px; height: 6px; background: var(--bg-elev); border-radius: 3px; overflow: hidden; }
.ls-level-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--aegean), var(--gold)); transition: width 0.09s linear; }

.ls-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ls-controls select { max-width: 380px; }
.ls-progress { color: var(--gold-soft); font-weight: 700; font-size: 16px; }
.ls-error { color: var(--accent-red); font-size: 14px; min-height: 20px; margin: 4px 0; }

.ls-chips {
  display: flex; gap: 7px; flex-wrap: wrap;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0;
  max-height: 220px;
  overflow-y: auto;
}
.ls-chip {
  width: 56px; padding: 8px 0 7px;
  text-align: center;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: all 0.15s;
}
.lc-note { font-size: 16px; font-weight: 800; color: var(--text); }
.lc-hint { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.ls-chip.current {
  border-color: var(--gold);
  background: rgba(227, 179, 65, 0.16);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(227, 179, 65, 0.35);
}
.ls-chip.current .lc-note { color: var(--gold); }
.ls-chip.hit { border-color: var(--ok); background: rgba(95, 200, 143, 0.13); }
.ls-chip.hit .lc-note { color: var(--ok); }
.ls-chip.fixed { border-color: #d9a059; background: rgba(217, 160, 89, 0.12); }
.ls-chip.fixed .lc-note { color: #d9a059; }
.ls-chip.skipped { border-color: var(--line); opacity: 0.45; }
.ls-chip.wrong { border-color: var(--accent-red); background: rgba(217, 100, 89, 0.22); animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.ls-results { display: none; text-align: center; padding: 22px; border-radius: 12px; margin-top: 8px; }
.ls-results.show { display: block; animation: fadeUp 0.35s ease; }
.ls-results.gold { background: rgba(227, 179, 65, 0.12); border: 1px solid rgba(227, 179, 65, 0.5); }
.ls-results.good { background: rgba(95, 200, 143, 0.1); border: 1px solid rgba(95, 200, 143, 0.45); }
.ls-results.ok { background: rgba(79, 179, 217, 0.1); border: 1px solid rgba(79, 179, 217, 0.45); }
.ls-results.work { background: rgba(217, 100, 89, 0.1); border: 1px solid rgba(217, 100, 89, 0.45); }
.ls-score { font-size: 52px; font-weight: 900; color: var(--gold); }
.ls-stars { font-size: 28px; letter-spacing: 4px; margin-bottom: 6px; }
.ls-grade { font-size: 18px; font-weight: 700; margin: 8px 0; }
.ls-stats { color: var(--text-dim); font-size: 14px; line-height: 1.8; margin-bottom: 14px; }

/* ===================== חדר תרגול ===================== */
.routine { display: flex; flex-direction: column; gap: 9px; margin: 16px 0; }
.routine-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.routine-item:hover { border-color: var(--aegean); }
.routine-item:active { border-color: var(--aegean); }
.routine-item.done { border-color: var(--ok); background: rgba(95, 200, 143, 0.08); }
.routine-check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: transparent;
  flex-shrink: 0; transition: all 0.15s;
}
.routine-item.done .routine-check { background: var(--ok); border-color: var(--ok); color: #0b1623; }
.routine-label { flex: 1; font-size: 14.5px; }
.routine-item.done .routine-label { text-decoration: line-through; color: var(--text-dim); }
.routine-min { color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; }

.streak { text-align: center; font-size: 15px; color: var(--gold-soft); margin: 14px 0; min-height: 22px; }

.free-met { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.met-dots { display: flex; gap: 9px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.met-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elev); border: 2px solid var(--line); transition: all 0.1s; }
.met-dot.accent-dot { border-color: var(--gold); }
.met-dot.lit { background: var(--gold); box-shadow: 0 0 12px rgba(227, 179, 65, 0.6); }

.golden { padding-right: 20px; }
.golden li { margin-bottom: 11px; line-height: 1.7; font-size: 14.5px; color: #cdd9e5; }
.golden b { color: var(--gold-soft); }

/* ===================== מילון ===================== */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .glossary { grid-template-columns: 1fr; } }
.gloss-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.15s;
}
.gloss-item:hover { border-color: var(--gold); }
.gloss-item:active { border-color: var(--gold); }
.gloss-term { color: var(--gold-soft); font-weight: 700; font-size: 16px; margin-bottom: 7px; }
.gloss-def { color: var(--text-dim); font-size: 14px; line-height: 1.75; }

/* ===================== מובייל: ניווט תחתון ===================== */
@media (max-width: 860px) {
  .app { flex-direction: column; }

  /* פס עליון דבוק — הלוגו, העזרה והזוהר בזרימה, בלי לכסות תוכן */
  body { padding-top: 0; }
  .sidebar {
    width: 100%; height: auto;
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top));
    padding-inline: max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-left));
    border-left: none;
    border-bottom: 1px solid var(--line);
    gap: 0;
    background: #0e1c2c;
  }
  .sidebar-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .logo-icon { width: 34px; height: 34px; }
  .logo-title { font-size: 17px; }
  .logo-sub { display: none; }
  .sidebar-streak-mobile {
    display: block !important;
    font-size: 11px;
    color: var(--text-dim);
    margin: 0;
    white-space: nowrap;
  }
  .sidebar-streak-mobile b { color: var(--gold); }
  .sidebar-foot { display: none; }
  .logo > div { min-width: 0; }
  .logo-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* רציף צף — זכוכית כהה, זהב וציאן, מעל פס הבית של האייפון */
  .nav {
    position: fixed;
    bottom: calc(8px + env(safe-area-inset-bottom));
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    z-index: 100;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    height: auto;
    background: rgba(6, 12, 24, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
    border: 1px solid rgba(232, 197, 107, 0.32);
    border-radius: 26px;
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 22px rgba(90, 210, 255, 0.08);
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-section-label { display: none; }
  .nav-btn { order: 10; }
  .nav-btn[data-nav-priority="0"] { order: 0; }
  .nav-btn[data-nav-priority="1"] { order: 1; }
  .nav-btn[data-nav-priority="2"] { order: 2; }
  .nav-btn[data-nav-priority="3"] { order: 3; }
  .nav-btn[data-nav-priority="4"] { order: 4; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-align: center;
    border-radius: 18px;
    color: rgba(232, 240, 248, 0.92);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(232, 197, 107, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .nav-btn.nav-featured {
    background: rgba(227, 179, 65, 0.1);
    border-color: rgba(232, 197, 107, 0.5);
  }
  .nav-label {
    display: block;
    white-space: nowrap;
    overflow: visible;
    max-width: none;
    line-height: 1.15;
  }
  .nav-btn.active {
    background: linear-gradient(180deg, rgba(227, 179, 65, 0.28), rgba(70, 190, 220, 0.16));
    border-color: rgba(246, 226, 168, 0.45);
    color: #f6e2a8;
    box-shadow: 0 0 16px rgba(227, 179, 65, 0.28), inset 0 0 0 1px rgba(140, 230, 255, 0.25);
  }
  .nav-ico .ui-ico { width: 22px; height: 22px; }

  .main { padding: 18px 14px calc(108px + env(safe-area-inset-bottom)); max-width: 100%; }

  /* התאמות מגע וצפיפות */
  .tuner { grid-template-columns: repeat(2, 1fr); }
  .dromoi-list, .ex-list-col { position: static; }
  .dromoi-list { flex-direction: row; flex-wrap: wrap; }
  .dromos-item { flex: 1 1 46%; }
  .stroke-cell { width: 48px; height: 74px; }
  .beat-cell { width: 52px; height: 52px; }
  .bp-cell { width: 52px; font-size: 19px; }
  .strum-cell { height: 66px; }
  .degree-cell { width: 52px; }
  .ss-note { width: 46px; }
  .ls-chip { width: 50px; }
  .ls-live-note { font-size: 34px; min-height: 46px; }
  .chord-svg { width: 82px; }
  .meter-badge { font-size: 16px; }
  .rhythm-controls input[type='range'] { width: 100%; flex-basis: 100%; }
  .fretboard-wrap, .tab-wrap { -webkit-overflow-scrolling: touch; }
  .fretboard-scroll-hint { display: block; }
  .penia-strip, .beat-strip, .beat-penia, .strum-strip, .ls-chips { padding: 12px 8px; gap: 6px; }
  .grid-2, .grid-3, .grid-4 { gap: 14px; }
  .card { margin-bottom: 16px; }

  /* --- קורס מקצועי: מובייל --- */
  .course-levels { grid-template-columns: 1fr; gap: 12px; }
  .course-level-card { padding: 16px; }
  .course-level-num { font-size: 32px; }
  .course-level-title { font-size: 16px; }
  .course-header { flex-direction: column; align-items: flex-start; }
  .course-ex-item { padding: 12px 14px; }

  /* --- מאסטר מודוסים + אקורדים: מובייל --- */
  .mm-control-row { flex-direction: column; gap: 8px; }
  .mm-control-row > div { min-width: 100%; }
  .mm-control-row select { padding: 10px 12px; font-size: 15px; }
  .mm-action-row { flex-direction: column; gap: 10px; }
  .mm-action-row .btn { width: 100%; font-size: 16px; padding: 12px; }

  .mm-stats-bar { gap: 6px; }
  .mm-stat { min-width: 55px; padding: 8px 4px; border-radius: 8px; }
  .mm-stat span { font-size: 10px; }
  .mm-stat b { font-size: 18px; }
  .mm-stat.prog b { font-size: 12px; }

  .mm-big-note { font-size: 48px; }
  .mm-solfege { font-size: 18px; }
  .mm-fret-hint { font-size: 12px; }
  .mm-detected-row { font-size: 13px; padding: 5px 12px; }
  .mm-detected-row b { font-size: 14px; }
  .mm-feedback { font-size: 18px; padding: 5px 14px; }
  .mm-label { font-size: 13px; }

  .mc-chord-name { font-size: 36px; }
  .mc-chord-eng { font-size: 15px; }
  .mc-chord-frets { font-size: 12px; letter-spacing: 1px; }
  .mc-note-chips { gap: 5px; }
  .mc-chip { padding: 4px 10px; font-size: 11px; }
  .mc-timer-wrap { max-width: 100%; }

  #mm-hero-canvas { height: 200px !important; }
}

/* מסכים צרים מאוד */
@media (max-width: 400px) {
  .nav-btn { min-width: 64px; min-height: 48px; font-size: 11px; }
  .stroke-cell { width: 42px; height: 66px; }
  .stroke-arrow { font-size: 24px; }
  .stroke-cell.accent .stroke-arrow { font-size: 32px; }

  .mm-stats-bar { gap: 4px; }
  .mm-stat { min-width: 48px; padding: 6px 2px; }
  .mm-stat span { font-size: 9px; }
  .mm-stat b { font-size: 15px; }
  .mm-big-note { font-size: 40px; }
  .mm-solfege { font-size: 16px; }
  .mc-chord-name { font-size: 30px; }
  .mc-chip { padding: 3px 8px; font-size: 10px; }
  .mm-feedback { font-size: 16px; }
  #mm-hero-canvas { height: 160px !important; }
}

/* ===================== קורס מקצועי ===================== */
.course-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.course-level-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
}
.course-level-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,179,65,0.12); }
.course-level-card:active { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,179,65,0.12); }
.course-level-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--aegean));
}
.course-level-num { font-size: 42px; font-weight: 900; color: var(--gold); opacity: 0.3; position: absolute; top: 8px; left: 14px; line-height: 1; }
.course-level-title { font-size: 18px; font-weight: 700; color: var(--gold-soft); margin-bottom: 6px; }
.course-level-sub { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.course-level-meta { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.course-level-meta .badge { font-size: 11px; }

.course-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.course-greek { color: var(--text-dim); font-size: 14px; font-style: italic; }
.course-subtitle { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
.course-goals { padding-right: 18px; list-style: '✓ '; }
.course-goals li { color: #cdd9e5; line-height: 1.8; font-size: 14px; margin-bottom: 4px; }
.course-goals li::marker { color: var(--ok); font-weight: bold; }
.course-theory-text { color: var(--text-dim); font-size: 14px; line-height: 1.85; }

.course-ex-list { display: flex; flex-direction: column; gap: 8px; }
.course-ex-item {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.course-ex-item:hover { border-color: var(--aegean); background: rgba(79,179,217,0.06); }
.course-ex-item:active { border-color: var(--aegean); background: rgba(79,179,217,0.06); }
.course-ex-item .ex-idx { font-size: 20px; font-weight: 900; color: var(--gold); opacity: 0.6; min-width: 28px; }
.course-ex-item .ex-info { flex: 1; }
.course-ex-item .ex-info h4 { font-size: 15px; color: var(--text); margin-bottom: 2px; }
.course-ex-item .ex-info p { font-size: 12px; color: var(--text-dim); }

.course-ex-detail { margin-top: 16px; }

/* ===================== מאסטר מודוסים + אקורדים ===================== */
.mm-controls { display: flex; flex-direction: column; gap: 14px; }
.mm-control-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.mm-control-row > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 130px; }
.mm-control-row label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.mm-control-row select { background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; }
.mm-action-row { display: flex; align-items: center; gap: 14px; }

.mm-mic { font-size: 13px; padding: 4px 12px; border-radius: 20px; }
.mm-mic.on { background: rgba(95, 200, 143, 0.15); color: var(--ok); }
.mm-mic.off { background: rgba(217, 100, 89, 0.15); color: var(--accent-red); }

.mm-stats-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.mm-stat { flex: 1; min-width: 70px; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--bg-elev); }
.mm-stat span { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
.mm-stat b { font-size: 22px; }
.mm-stat.ok b { color: var(--ok); }
.mm-stat.bad b { color: var(--accent-red); }
.mm-stat.streak b { color: var(--aegean); }
.mm-stat.acc b { color: var(--gold); }
.mm-stat.prog b { color: var(--text-dim); font-size: 14px; }

.mm-play-area { text-align: center; }
.mm-target-info, .mc-play-area { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mm-label { font-size: 14px; color: var(--text-dim); }
.mm-note-display { text-align: center; }
.mm-big-note { font-size: 64px; font-weight: 900; color: var(--gold); line-height: 1.1; text-shadow: 0 0 30px rgba(227,179,65,0.3); }
.mm-solfege { font-size: 22px; color: var(--gold-soft); }
.mm-fret-hint { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.mm-detected-row { font-size: 15px; color: var(--text-dim); padding: 6px 18px; background: var(--bg-elev); border-radius: 20px; }
.mm-detected-row b { color: var(--aegean); font-size: 17px; margin-right: 6px; }

.mm-feedback { font-size: 22px; font-weight: 700; padding: 6px 20px; border-radius: 10px; opacity: 0; transition: opacity 0.3s; min-height: 38px; }
.mm-feedback.correct { color: var(--ok); background: rgba(95,200,143,0.15); }
.mm-feedback.wrong { color: var(--accent-red); background: rgba(217,100,89,0.15); }
.mm-feedback.good { color: var(--aegean); background: rgba(79,179,217,0.15); }
.mm-feedback.perfect { color: var(--gold); background: rgba(227,179,65,0.18); }

.mm-flow-wrap { position: relative; margin-bottom: 10px; }
.mm-flow-wrap.flow-active { margin-bottom: 14px; }
#mm-hero-canvas { display: none; width: 100%; height: 220px; margin-bottom: 0; }
.mm-flow-wrap.flow-active #mm-hero-canvas { display: block; }
.mm-flow-popups { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 10px; }
.mm-flow-popup {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 22px; font-weight: 900; font-family: Heebo, sans-serif;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  animation: mmFlowPopup 0.85s ease-out forwards;
  white-space: nowrap;
}
.mm-flow-popup.perfect { color: #f0cc74; }
.mm-flow-popup.good { color: #5fc88f; }
.mm-flow-popup.miss { color: #d96459; }
@keyframes mmFlowPopup {
  0% { opacity: 1; top: 55%; transform: translateX(-50%) scale(0.85); }
  100% { opacity: 0; top: 28%; transform: translateX(-50%) scale(1.08); }
}

/* אקורדים */
.mc-chord-info { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.mc-chord-display { text-align: center; }
.mc-chord-name { font-size: 48px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.mc-chord-eng { font-size: 18px; color: var(--text-dim); }
.mc-chord-frets { font-size: 14px; color: var(--aegean); font-family: monospace; margin-top: 4px; letter-spacing: 2px; }

.mc-note-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mc-chip { padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--bg-elev); border: 2px solid var(--line); color: var(--text-dim); transition: all 0.3s; }
.mc-chip.hit { background: rgba(95,200,143,0.2); border-color: var(--ok); color: var(--ok); }

.mc-timer-wrap { width: 100%; max-width: 400px; height: 6px; background: var(--bg-elev); border-radius: 3px; overflow: hidden; }
.mc-timer-bar { height: 100%; background: var(--ok); border-radius: 3px; transition: width 0.1s linear; }
.mc-timer-bar.danger { background: var(--accent-red); }

/* --- עורך אקורדים --- */
.cl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.cl-import-label { cursor: pointer; margin: 0; }
.cl-hint { margin-bottom: 12px; }
.cl-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cl-layout { grid-template-columns: 1fr; } }
.cl-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding-left: 2px; }
.cl-item {
  text-align: right; width: 100%; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; color: inherit; font: inherit;
  position: relative; padding-left: 52px;
}
.cl-item:hover { border-color: var(--gold); }
.cl-item:active { border-color: var(--gold); }
.cl-item.active { border-color: var(--gold); background: rgba(227,179,65,0.08); }
.cl-item-name { font-weight: 800; color: var(--gold-soft); font-size: 15px; }
.cl-item-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; font-family: monospace; direction: ltr; text-align: left; }
.cl-badge {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 10px; padding: 2px 7px; border-radius: 10px; background: var(--bg-card); color: var(--text-dim);
}
.cl-item.active .cl-badge { background: rgba(227,179,65,0.2); color: var(--gold); }
.cl-form { display: none; padding: 16px; background: var(--bg-elev); border-radius: 12px; border: 1px solid var(--line); }
.cl-form.open { display: block; }
.cl-form h3 { margin: 0 0 12px; font-size: 17px; color: var(--gold-soft); }
.cl-field { margin-bottom: 10px; }
.cl-field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.cl-field input, .cl-field select {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text); font: inherit;
}
.cl-frets-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.cl-fret-field input { text-align: center; font-family: monospace; }
.cl-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cl-status { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.cl-status.ok { color: var(--ok); }
.cl-status.err { color: var(--accent-red); }

/* הדגשות על הגריף */
.fb-dot.mm-target circle { fill: var(--ok) !important; stroke: #a0ffc8 !important; }
.fb-dot.mm-glow circle { filter: drop-shadow(0 0 8px var(--ok)); }
.fb-dot.mc-target circle { fill: var(--gold) !important; stroke: var(--gold-soft) !important; filter: drop-shadow(0 0 8px var(--gold)); }
.fb-dot.mc-hit circle { fill: var(--ok) !important; stroke: #a0ffc8 !important; filter: drop-shadow(0 0 8px var(--ok)); }

@keyframes mm-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.fb-dot.mm-target { animation: mm-pulse 1s ease-in-out infinite; transform-origin: center; }
.fb-dot.mc-target { animation: mm-pulse 1.2s ease-in-out infinite; transform-origin: center; }

/* פס גלילה מעוצב */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elev); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* ============================================================
   מסלולי לימוד — PeniaLearn + DromosLearn
   ============================================================ */

/* שורת התקדמות כללית */
.progress-bar-wrap {
  width: 140px; height: 10px; background: var(--bg-elev);
  border-radius: 6px; overflow: hidden; margin-top: 6px;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--aegean-deep), var(--gold));
  border-radius: 6px; transition: width 0.4s ease;
}

/* רשת קלפי שלבי פנייה */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.curriculum-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.curriculum-card.done {
  border-color: var(--ok);
  box-shadow: 0 0 18px rgba(95,200,143,0.12);
}
.curriculum-card:hover { border-color: var(--aegean); }
.curriculum-card:active { border-color: var(--aegean); }

.cc-head {
  display: flex; align-items: flex-start; gap: 12px;
}
.cc-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.cc-meta { flex: 1; }
.cc-level { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.cc-title { font-size: 17px; font-weight: 800; color: var(--gold-soft); margin: 2px 0; }
.cc-bpm { font-size: 12px; color: var(--aegean); font-family: monospace; }

.cc-check {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; flex-shrink: 0;
  color: transparent; transition: all 0.2s;
}
.cc-check.checked {
  background: var(--ok); border-color: var(--ok); color: #fff;
}
.cc-check:hover { border-color: var(--ok); color: rgba(95,200,143,0.5); }
.cc-check:active { border-color: var(--ok); color: rgba(95,200,143,0.5); }

.cc-focus { font-size: 13px; color: var(--text-dim); font-style: italic; }

.cc-body {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.cc-theory { font-size: 13.5px; line-height: 1.6; }
.cc-exercises-title { font-size: 13px; font-weight: 700; color: var(--aegean); }
.cc-exercises {
  margin: 0; padding-right: 18px;
  font-size: 13px; line-height: 1.9;
}
.cc-tip {
  background: rgba(227,179,65,0.07);
  border-right: 3px solid var(--gold);
  border-radius: 6px; padding: 8px 12px;
  font-size: 13px;
}
.cc-go { align-self: flex-start; margin-top: 4px; }

.cc-expand-btn {
  background: none; border: none; color: var(--text-dim);
  font-size: 12px; cursor: pointer; text-align: right; padding: 0;
  font-family: inherit;
}
.cc-expand-btn:hover { color: var(--aegean); }
.cc-expand-btn:active { color: var(--aegean); }

/* ===== DromosLearn ===== */
.dromos-learn-card {
  margin-bottom: 20px;
}
.dromos-learn-card.all-done {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(227,179,65,0.15);
}

.dlc-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.dlc-icon { font-size: 2.4rem; flex-shrink: 0; }
.dlc-meta { flex: 1; }
.dlc-title { font-size: 22px; font-weight: 900; color: var(--gold-soft); margin: 0 0 4px; }
.dlc-sub { font-size: 14px; color: var(--text-dim); margin: 0; }
.dlc-prog {
  font-size: 24px; font-weight: 900; color: var(--aegean);
  background: var(--bg-elev); border-radius: 10px; padding: 6px 14px;
  flex-shrink: 0;
}

.dlc-intervals {
  font-size: 13px; color: var(--text-dim);
  background: var(--bg-elev); border-radius: 8px; padding: 8px 12px;
  margin-bottom: 14px;
}

.dlc-stages {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}

.dlc-stage {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color 0.2s;
}
.dlc-stage.done {
  border-color: var(--ok);
  background: rgba(95,200,143,0.04);
}

.dlc-stage-head {
  display: flex; gap: 12px; align-items: flex-start;
}
.dlc-stage-check {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; flex-shrink: 0;
  color: transparent; transition: all 0.2s; margin-top: 2px;
}
.dlc-stage-check.checked { background: var(--ok); border-color: var(--ok); color: #fff; }
.dlc-stage-check:hover { border-color: var(--ok); color: rgba(95,200,143,0.5); }
.dlc-stage-check:active { border-color: var(--ok); color: rgba(95,200,143,0.5); }

.dlc-stage b { font-size: 14px; color: var(--text); }
.dlc-stage p { font-size: 13px; color: var(--text-dim); margin: 4px 0; line-height: 1.5; }
.dlc-ex {
  font-size: 13px; color: var(--aegean);
  background: rgba(79,179,217,0.07); border-radius: 6px;
  padding: 6px 10px; margin-top: 6px;
}

.dlc-footer {
  border-top: 1px solid var(--line); padding-top: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.dlc-chords { font-size: 13px; }
.dlc-tips ul { margin: 4px 0 0; padding-right: 18px; font-size: 13px; line-height: 1.8; color: var(--text-dim); }
.dlc-footer .btn { align-self: flex-start; }

@media (max-width: 700px) {
  .curriculum-grid { grid-template-columns: 1fr; }
}

/* מדריך יד ימין */
.rh-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.rh-section-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.rh-sec-title { font-size: 14px; font-weight: 800; color: var(--aegean); margin: 0 0 8px; }
.rh-sec-points { padding-right: 16px; margin: 0; font-size: 13px; line-height: 1.9; color: var(--text-dim); }
.ex-focus { color: var(--aegean); font-size: 12px; display: block; margin-top: 3px; }

/* PeniaLearn — מסלול מעשי */
.penia-learn-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.penia-learn-progress .progress-bar-wrap { flex: 1; min-width: 120px; max-width: 280px; }
.penia-pct { font-weight: 900; color: var(--gold); font-size: 1.4rem; }
.penia-practical-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.penia-practical-card { border: 1px solid var(--line); }
.penia-practical-card.current { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(227,179,65,0.25); }
.penia-practical-card.done { opacity: 0.92; }
.ppc-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ppc-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(227,179,65,0.2); color: var(--gold-soft); font-weight: 900;
}
.ppc-title-wrap h3 { margin: 0 0 4px; font-size: 17px; color: var(--gold-soft); }
.ppc-focus { margin: 0; font-size: 13px; color: var(--text-dim); }
.ppc-bpm { font-size: 11px; color: var(--aegean); font-weight: 700; }
.ppc-check {
  margin-right: auto; width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--line);
  background: var(--bg-elev); color: transparent; cursor: pointer; font-size: 18px; font-weight: 900;
}
.ppc-check.checked { background: var(--ok); border-color: var(--ok); color: #0b1623; }
.penia-visual-box {
  background: linear-gradient(180deg, #0f1a28, #0a121c);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 10px;
}
.penia-visual-svg { width: 100%; height: auto; display: block; max-height: 140px; }
.ppc-caption {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
  background: rgba(79,179,217,0.08); border-right: 3px solid var(--aegean);
  font-size: 14px; line-height: 1.55;
}
.ppc-do h4 { margin: 0 0 8px; font-size: 14px; color: var(--gold-soft); }
.ppc-steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.ppc-steps li { display: flex; gap: 10px; align-items: flex-start; }
.ppc-step-n {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev); border: 1px solid var(--line); font-size: 16px;
}
.ppc-steps strong { display: block; font-size: 14px; margin-bottom: 2px; }
.ppc-steps p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.ppc-meta { font-size: 13px; margin: 0 0 10px; }
.ppc-strip-wrap { margin-bottom: 10px; }
.ppc-strip-label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 6px; }
.penia-strip-mini { display: flex; flex-wrap: wrap; gap: 4px; direction: ltr; }
.psm-cell {
  min-width: 28px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-weight: 800; font-size: 14px; border: 1px solid var(--line);
  background: var(--bg-elev);
}
.psm-cell.down { background: rgba(227,179,65,0.22); color: var(--gold-soft); border-color: var(--gold); }
.psm-cell.up { background: rgba(79,179,217,0.15); color: var(--aegean); }
.psm-cell.rest { opacity: 0.45; color: var(--text-dim); }
.psm-cell.accent { box-shadow: 0 0 0 2px rgba(217,100,89,0.5); }
.ppc-checklist { font-size: 13px; margin: 0 0 12px; padding: 8px 10px; background: rgba(95,200,143,0.08); border-radius: 8px; }
.ppc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ppc-theory { font-size: 13px; color: var(--text-dim); }
.ppc-theory summary { cursor: pointer; color: var(--aegean); font-weight: 700; margin-bottom: 6px; }
.ppc-tip { margin-top: 8px; font-style: italic; }
.penia-tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.penia-tech-item { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.penia-tech-item h4 { margin: 0 0 8px; font-size: 13px; color: var(--gold-soft); }
.penia-tech-item ul { margin: 8px 0 0; padding-right: 16px; font-size: 12px; line-height: 1.6; color: var(--text-dim); }
.penia-reset-wrap { text-align: center; margin: 16px 0; }

/* DromosLearn practical */
.dpc-dromos-section { margin-bottom: 20px; }
.dpc-dromos-section.all-done { border-color: var(--gold); box-shadow: 0 0 20px rgba(227,179,65,0.12); }
.dpc-dromos-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dpc-prog { font-size: 12px; color: var(--text-dim); margin: 6px 0 0; }
.dpc-stages-grid { margin-top: 4px; }
.dpc-stage-card { margin-bottom: 0; }
.dpc-fb-wrap { background: var(--bg-elev); border-radius: 10px; padding: 6px 4px; margin: 8px 0; overflow-x: auto; }
.dpc-fb-wrap .fretboard, .dpc-fb-wrap .dpc-fretboard { width: 100%; min-width: 300px; height: auto; display: block; }
.dpc-strip { margin: 4px 0 10px; }
.dpc-fret-strip { max-width: 100%; height: 48px; }
.dpc-illus { width: 100%; max-width: 300px; height: 80px; display: block; margin: 0 auto 8px; }

.dlc-level-badge {
  display: inline-block; font-size: 11px; padding: 2px 10px;
  border-radius: 10px; background: rgba(227,179,65,0.15); color: var(--gold);
  margin-top: 4px; font-weight: 700;
}
.dlc-mood-box {
  background: var(--bg-elev); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 12px;
}
.dlc-mood { font-size: 14px; font-style: italic; color: var(--gold-soft); margin-bottom: 6px; }
.dlc-theory-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.dlc-section-title {
  font-size: 15px; font-weight: 800; color: var(--aegean);
  margin: 16px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px;
}

.dlc-phrases-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.dlc-phrase-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}
.dlc-phrase-name { font-size: 13px; font-weight: 800; color: var(--gold-soft); margin-bottom: 4px; }
.dlc-phrase-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 4px; }
.dlc-phrase-tab {
  font-family: monospace; font-size: 12px; background: var(--bg-deep);
  padding: 4px 8px; border-radius: 4px; color: var(--aegean); margin-top: 4px;
}
.dlc-phrase-strokes {
  font-size: 11px; color: var(--text-dim); margin-top: 3px; font-family: monospace;
}

.dlc-ex-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.dlc-ex-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}
.dlc-ex-name { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.dlc-ex-bpm {
  font-size: 11px; font-family: monospace; color: var(--aegean);
  background: rgba(79,179,217,0.12); padding: 1px 7px; border-radius: 6px;
  margin-right: 6px;
}
.dlc-ex-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.dlc-ex-tab {
  font-family: monospace; font-size: 12px; background: var(--bg-deep);
  padding: 4px 8px; border-radius: 4px; color: var(--aegean); margin-top: 5px;
}
.dlc-ex-focus { font-size: 12px; color: var(--ok); margin-top: 4px; }

.dlc-songs-list {
  padding-right: 18px; margin: 0; font-size: 13px; line-height: 2;
}

.dlc-prog-list { display: flex; flex-direction: column; gap: 8px; }
.dlc-prog-item {
  background: var(--bg-elev); border-radius: 8px; padding: 10px 12px;
  border-right: 3px solid var(--gold);
}
.dlc-prog-name { font-size: 13px; font-weight: 800; color: var(--gold-soft); }
.dlc-prog-chords {
  font-family: monospace; font-size: 14px; color: var(--aegean);
  margin: 3px 0;
}
.dlc-prog-desc { font-size: 12px; color: var(--text-dim); }


/* ========== למד מהשיר — YouTube + נתיבי דרומוס ========== */
.learn-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.learn-tab {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text); cursor: pointer; font: inherit;
}
.learn-tab.active { background: rgba(227,179,65,0.15); border-color: var(--gold); color: var(--gold-soft); }
.learn-tab-panel { display: none; }
.learn-tab-panel.active { display: block; }

.learn-yt-layout {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr); gap: 16px;
}
@media (max-width: 900px) {
  .learn-yt-layout { grid-template-columns: 1fr; }
}

.learn-url-row label, .learn-label { display: block; font-size: 13px; color: var(--text-dim); margin: 8px 0 4px; }
.learn-url-inputs { display: flex; gap: 8px; margin-bottom: 8px; }
.learn-url-inputs input { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: inherit; }
.learn-select {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); font: inherit; margin-bottom: 8px;
}

.learn-panel { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.learn-card, .learn-match { padding: 14px; }
.learn-card h4, .learn-match h3 { margin: 0 0 8px; color: var(--gold-soft); font-size: 15px; }
.learn-meta { font-size: 13px; color: var(--text-dim); margin: 0 0 6px; }

.learn-yt-host {
  position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; min-height: 200px;
}
.learn-yt-host iframe, .learn-yt-host > div { width: 100% !important; height: 100% !important; }
.learn-yt-placeholder { padding: 24px; text-align: center; }
.learn-yt-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--text-dim);
}
.learn-download-status { margin: 0 0 8px; flex: 1 1 100%; }
.learn-dl-format-row {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  font-size: 12px;
}
.learn-dl-fmt { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; margin: 0; }
.learn-dl-fmt input { accent-color: var(--gold); }
.learn-dl-save-file { border: none; background: transparent; }
.learn-dl-ok { color: var(--ok); }
.learn-dl-err { color: var(--bad); }
.learn-offline { margin-top: 12px; }
.learn-offline h4 { margin: 0 0 6px; font-size: 14px; color: var(--gold-soft); }
.learn-offline-note { margin: 0 0 10px; font-size: 12px; }
.learn-offline-item {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.learn-offline-item:last-child { border-bottom: none; }
.learn-offline-meta strong { display: block; font-size: 14px; }
.learn-offline-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.learn-speed-btn {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); cursor: pointer; font: inherit;
}
.learn-speed-btn.active { background: var(--gold); color: #1a120a; border-color: var(--gold); }

.learn-penia-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.learn-beat {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 14px; background: var(--bg-elev); border: 1px solid var(--line);
}
.learn-beat-strong { background: rgba(227,179,65,0.25); border-color: var(--gold); }
.learn-beat-weak { opacity: 0.85; }
.learn-beat-rest { opacity: 0.35; }

.learn-ex-btns, .learn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-path-lead { margin-bottom: 16px; }
.learn-path-layout {
  display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 16px;
}
@media (max-width: 768px) {
  .learn-path-layout { grid-template-columns: 1fr; }
}
.learn-path-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; max-height: 70vh; overflow-y: auto; }
.learn-path-btn {
  text-align: right; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; font: inherit;
}
.learn-path-btn:hover { background: var(--bg-elev); }
.learn-path-btn:active { background: var(--bg-elev); }
.learn-path-btn.active { background: rgba(227,179,65,0.12); border-color: var(--gold); color: var(--gold-soft); }
.learn-path-btn.featured { font-weight: 600; }

.learn-path-detail { padding: 18px; }
.learn-path-detail .gr { font-size: 14px; color: var(--text-dim); font-weight: normal; }
.learn-badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 8px; background: rgba(227,179,65,0.2); color: var(--gold); margin-bottom: 8px; }
.learn-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.learn-step {
  padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev);
}
.learn-step strong { display: block; margin-bottom: 6px; color: var(--gold-soft); }
.learn-song-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.learn-song-chip {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text); cursor: pointer; font: inherit; font-size: 13px;
}
.learn-song-chip:hover { border-color: var(--gold); color: var(--gold-soft); }
.learn-song-chip:active { border-color: var(--gold); color: var(--gold-soft); }

.learn-resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.learn-res-group h3 { margin: 0 0 12px; font-size: 16px; color: var(--gold-soft); }
.learn-res-link {
  display: block; padding: 12px; margin-bottom: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); text-decoration: none;
}
.learn-res-link:hover { border-color: var(--gold); }
.learn-res-link:active { border-color: var(--gold); }
.learn-res-link strong { display: block; margin-bottom: 4px; }
.learn-res-level { font-size: 11px; color: var(--gold); margin-right: 8px; }
.learn-res-link p { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.45; }

/* ========== ניתוח שיר AI ========== */
.sa-pipeline { padding: 16px; margin-bottom: 16px; }
.sa-input-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.sa-upload-btn { cursor: pointer; }
.sa-yt-input { flex: 1; min-width: 200px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text); font: inherit; }
.sa-stem-opts { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; margin-bottom: 8px; }
.sa-config-hint { font-size: 12px; }
.sa-progress-bar { height: 8px; background: var(--bg-elev); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.sa-progress-bar div { height: 100%; width: 0; background: var(--gold); transition: width 0.3s; }
.sa-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; margin-bottom: 12px; color: var(--text-dim); }
.sa-transport, .sa-loop-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sa-wave-wrap { position: relative; height: 80px; background: var(--bg-deep); border-radius: 8px; overflow: hidden; margin: 12px 0; }
.sa-wave-wrap canvas { width: 100%; height: 100%; display: block; }
.sa-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); pointer-events: none; left: 0; }
.sa-loop-region { position: absolute; top: 0; bottom: 0; background: rgba(227,179,65,0.15); border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); display: none; pointer-events: none; }
.sa-chord-strip { position: relative; min-height: 36px; margin-top: 8px; }
.sa-chord-mark { position: absolute; top: 0; transform: translateX(-50%); padding: 4px 8px; background: var(--bg-elev); border: 1px solid var(--gold); border-radius: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; transition: background 0.15s, transform 0.15s; }
.sa-chord-mark.active {
  background: rgba(227, 179, 65, 0.28); color: var(--gold-soft); font-weight: 800;
  transform: translateX(-50%) scale(1.08); z-index: 2; box-shadow: 0 0 12px rgba(227, 179, 65, 0.35);
}
.chord-mini-wrap { display: inline-block; cursor: help; border-radius: 6px; }
.chord-mini-wrap:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.learn-setup { margin-bottom: 16px; padding: 14px 16px; }
.learn-setup summary { cursor: pointer; font-weight: 700; color: var(--gold-soft); }
.learn-setup ol { margin: 10px 0 0; padding-right: 20px; line-height: 1.65; font-size: 14px; color: var(--text-dim); }
.learn-setup code { background: var(--bg-elev); padding: 2px 6px; border-radius: 4px; font-size: 12px; direction: ltr; display: inline-block; }
.sa-import-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sa-import-hint { flex: 1 1 100%; margin: 0; }
.sa-export-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sa-poly-legend { font-size: 11px; font-weight: 400; }
.offline-badge { font-size: 11px; color: var(--ok); margin: 6px 0; }
.offline-badge.offline-active { color: var(--gold-soft); }
.learn-yt-toolbar .btn.gold { margin-right: auto; font-size: 13px; padding: 6px 12px; }
.sa-learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .sa-learn-grid { grid-template-columns: 1fr; } }
.sa-tab-scroll { overflow-x: auto; max-width: 100%; }
.sa-tab-scroll svg { min-height: 120px; }
.sa-tab-note.lit circle { fill: var(--gold) !important; stroke: #fff0c8 !important; }
.sa-fretboard { min-height: 160px; }
.sa-compare-row { margin-top: 12px; font-size: 13px; }
.sa-live-chord-row { margin-top: 10px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sa-live-chord-badge { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--bg-elev); min-height: 1.2em; }
.sa-live-chord-badge.ok { color: var(--ok); border: 1px solid rgba(95,200,143,0.35); }
.sa-live-chord-badge.warn { color: var(--accent-red); border: 1px solid rgba(217,100,89,0.35); }
.chord-tooltip {
  position: fixed; z-index: 10050; pointer-events: none;
  background: #1a2a38; border: 1px solid var(--gold); border-radius: 10px;
  padding: 8px 10px 6px; box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.chord-tooltip.chord-tooltip-interactive { pointer-events: auto; }
.chord-tooltip[hidden] { display: none !important; }
.chord-svg-tooltip { width: 118px; height: auto; display: block; }
.chord-tooltip-label { text-align: center; font-size: 11px; color: var(--gold-soft); margin-top: 4px; }
.chord-tooltip-missing { font-size: 12px; color: var(--text-dim); padding: 8px; display: block; }
.sa-chord-mark:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.sa-dromos-badge { padding: 4px 10px; background: rgba(227,179,65,0.12); border-radius: 8px; color: var(--gold-soft); }
.sa-dromos-hint { margin: 8px 0 12px; line-height: 1.5; }
.sa-dromos-hint .btn { margin-top: 8px; }
.sa-transpose-ctrl { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
.sa-preserve-pitch { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sa-marker-a, .sa-marker-b {
  position: absolute; top: 0; bottom: 0; width: 3px; pointer-events: none; z-index: 2;
}
.sa-marker-a { background: #4fb3d9; }
.sa-marker-b { background: #e3b341; }
.sa-marker-a::after, .sa-marker-b::after {
  position: absolute; top: 2px; font-size: 10px; font-weight: 800; color: #fff;
  padding: 1px 4px; border-radius: 3px;
}
.sa-marker-a::after { content: 'A'; background: #4fb3d9; left: 4px; }
.sa-marker-b::after { content: 'B'; background: #e3b341; left: 4px; }
.sa-wave-wrap { cursor: crosshair; }

/* ========== Dashboard התקדמות ========== */
.prog-summary { margin-bottom: 16px; }
.prog-stat { text-align: center; padding: 18px 12px; }
.prog-stat-val { display: block; font-size: 32px; font-weight: 900; color: var(--gold); }
.prog-stat-lbl { font-size: 12px; color: var(--text-dim); }
.prog-extra {
  display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 18px; margin-bottom: 16px;
  font-size: 14px; color: var(--text-dim);
}
.prog-extra strong { color: var(--gold-soft); }
.prog-chart { width: 100%; height: auto; display: block; }
.prog-recent { max-height: 320px; overflow-y: auto; }
.prog-row {
  display: grid; grid-template-columns: 100px 100px 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
@media (max-width: 600px) {
  .prog-row { grid-template-columns: 1fr; gap: 2px; }
}
.prog-row-date { color: var(--text-dim); font-size: 12px; }
.prog-row-type { color: var(--gold-soft); font-size: 12px; }
.prog-row-label { color: var(--text); }
.prog-footer { margin-top: 16px; display: flex; gap: 10px; }


/* ============================================================
   Theory Lab — חומר עיוני (אקורדים + פנייה ופריטה)
   ============================================================ */
.tl-intro h2 { margin-bottom: 8px; }
.tl-intro p { font-size: 14.5px; line-height: 1.7; color: var(--text); margin-bottom: 6px; }
.tl-intro-hint {
  font-size: 13px; color: var(--text-dim);
  background: rgba(79,179,217,0.07); border-right: 3px solid var(--aegean);
  padding: 8px 11px; border-radius: 8px; margin-top: 6px;
}

/* טאבים */
.tl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tl-tab {
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px;
}
.tl-tab:hover { background: var(--bg-elev); }
.tl-tab:active { background: var(--bg-elev); }
.tl-tab.active {
  background: linear-gradient(180deg, rgba(227,179,65,0.18), transparent), var(--bg-elev);
  border-color: var(--gold); color: var(--gold-soft);
}

.tl-group-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-group-gr { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.tl-group-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }

/* רשת אקורדים */
.tl-chord-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.tl-chord-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.tl-chord-head { text-align: center; margin-bottom: 8px; }
.tl-chord-name { font-size: 22px; font-weight: 900; color: var(--gold); }
.tl-chord-subnames { font-size: 12.5px; color: var(--text-dim); }
.tl-chord-gr { color: var(--aegean); }
.tl-chord-dia { display: flex; justify-content: center; margin: 6px 0 10px; }
.tl-chord-svg { width: 100%; max-width: 150px; height: auto; }
.tl-chord-svg.bn-neck { max-width: none; min-width: 0; }
.tl-neck-svg.bn-neck { min-width: 1080px; }
.tl-dot { transition: transform 0.12s ease, fill 0.12s ease; }
.tl-dot-flash { fill: var(--aegean) !important; transform: scale(1.25); transform-box: fill-box; transform-origin: center; }
.tl-open.tl-dot-flash { fill: none !important; stroke: var(--aegean) !important; }

.tl-chord-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.tl-btn { font-size: 12px !important; padding: 6px 10px !important; }
.tl-chord-note-muted { font-size: 12px; color: var(--text-dim); text-align: center; }

.tl-chord-positions { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.9; }
.tl-pos-chip {
  display: inline-block; background: var(--bg-deep); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; margin: 1px 2px; color: var(--aegean);
  font-family: monospace; font-size: 11px;
}

.tl-info-line { display: flex; gap: 7px; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 5px; }
.tl-info-ico { flex-shrink: 0; }
.tl-chord-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tl-tag {
  font-size: 10.5px; background: rgba(79,179,217,0.12); color: var(--aegean);
  border-radius: 6px; padding: 2px 8px;
}

/* פרוגרסיות */
.tl-prog-item .dlc-prog-name small { color: var(--text-dim); font-weight: 500; }
.tl-prog-usage { font-size: 12px; color: var(--text-dim); margin-top: 3px; font-style: italic; }
.tl-prog-item .tl-btn { margin-top: 8px; }

/* פנייה ופריטה */
.tl-penia-intro p { font-size: 14px; line-height: 1.7; color: var(--text); }
.tl-rh-section { margin-bottom: 12px; }
.tl-rh-section-title { font-size: 15px; color: var(--aegean); margin: 12px 0 6px; }
.tl-rh-points { padding-right: 18px; margin: 0; font-size: 13px; line-height: 1.8; color: var(--text-dim); }
.tl-level-focus { font-size: 13px; color: var(--ok); margin-bottom: 6px; }

.tl-pick-grid { gap: 12px; }
.tl-pick-card { display: flex; flex-direction: column; }
.tl-pick-notation {
  font-family: monospace; font-size: 12px; color: var(--gold-soft);
  background: var(--bg-deep); padding: 4px 8px; border-radius: 4px; margin: 6px 0;
}
.tl-pick-strip { margin: 8px 0; }
.tl-pick-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.tl-pick-meta b { color: var(--gold-soft); }
.tl-play-btn { align-self: flex-start; margin-top: 10px; }
.tl-play-btn.playing { background: var(--gold) !important; color: #1a1408 !important; border-color: var(--gold) !important; }

/* הדגשת תא פעיל ברצועת המהלכים */
.psm-cell.tl-stroke-active {
  outline: 2px solid var(--gold); outline-offset: 1px;
  box-shadow: 0 0 8px rgba(227,179,65,0.5);
}

/* ---------- טאב: דרומוס על הגריף ---------- */
.tl-neck-intro h2 { margin: 0 0 6px; }
.tl-neck-intro p { color: var(--muted); line-height: 1.7; font-size: 14px; }

.tl-dromos-picker { padding: 12px 14px; }
.tl-picker-label, .tl-pos-label { font-weight: 700; color: var(--gold-soft, #f0cc74); margin-bottom: 8px; }
.tl-dromos-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-dromos-chip {
  background: rgba(255,255,255,0.05); color: var(--text, #e8e8e8);
  border: 1px solid rgba(143,166,188,0.3); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Heebo', sans-serif; transition: all .15s;
}
.tl-dromos-chip:hover { border-color: var(--gold, #e3b341); }
.tl-dromos-chip:active { border-color: var(--gold, #e3b341); }
.tl-dromos-chip.active { background: var(--gold, #e3b341); color: #1a1408; border-color: var(--gold, #e3b341); }

.tl-neck-head { margin-bottom: 10px; }
.tl-neck-name { font-size: 20px; font-weight: 800; color: var(--gold-soft, #f0cc74); }
.tl-neck-degrees { font-family: monospace; color: #7fd0ef; font-size: 13px; margin-top: 2px; }
.tl-neck-mood { color: var(--muted); font-size: 13px; font-style: italic; margin-top: 2px; }

.tl-pos-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.tl-pos-label { margin: 0 4px 0 0; }
.tl-pos-chip {
  background: rgba(255,255,255,0.05); color: var(--text, #e8e8e8);
  border: 1px solid rgba(143,166,188,0.3); border-radius: 6px;
  padding: 4px 11px; font-size: 13px; font-weight: 700; cursor: pointer;
  min-width: 38px; font-family: 'Heebo', sans-serif; transition: all .15s;
}
.tl-pos-chip:hover { border-color: var(--gold, #e3b341); }
.tl-pos-chip:active { border-color: var(--gold, #e3b341); }
.tl-pos-chip.active { background: var(--aegean, #2a7fa8); color: #fff; border-color: var(--aegean, #2a7fa8); }
.tl-edit-btn, .dr-edit-btn { margin-inline-start: auto; border-color: var(--gold, #e3b341); color: var(--gold, #e3b341); }

.tl-neck-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 4px 0 12px; }
.tl-neck-svg { min-width: 560px; width: 100%; height: auto; }
.tl-neck-dot circle { transition: r .12s, opacity .12s; }
.tl-neck-active circle { stroke: #fff !important; stroke-width: 3 !important; filter: drop-shadow(0 0 6px rgba(240,204,116,0.9)); }
.tl-neck-btns { margin-bottom: 8px; }

/* מתג מצב 2/4 מיתרים */
.tl-mode-row { margin-bottom: 8px; }
.tl-mode-chip { min-width: auto; padding: 5px 12px; }
.tl-mode-chip.active { background: var(--gold); color: #1a1408; border-color: var(--gold); }

/* ממה מורכב הדרומוס — ג'ינסים + תרגילים */
.tl-comp-card { padding: 14px 16px; }
.tl-comp-title { margin: 0 0 10px; font-size: 16px; color: var(--gold-soft); }
.tl-jins { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.tl-jins-box { flex: 1; min-width: 130px; background: rgba(79,179,217,0.1); border: 1px solid rgba(79,179,217,0.3); border-radius: 8px; padding: 10px; text-align: center; }
.tl-jins-label { font-size: 11px; color: var(--text-dim); }
.tl-jins-notes { font-size: 16px; font-weight: 800; color: var(--text); margin: 3px 0; }
.tl-jins-name { font-size: 13px; font-weight: 700; color: var(--gold); }
.tl-jins-link { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.tl-steps { font-family: monospace; color: var(--aegean); font-size: 13px; margin: 6px 0; }
.tl-char-int { background: rgba(227,179,65,0.12); border-radius: 6px; padding: 7px 10px; color: var(--text); font-size: 13px; margin: 6px 0; }
.tl-comp-desc { color: var(--text-dim); font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
.tl-ex-ol { margin: 6px 0 0; padding-inline-start: 20px; color: var(--text); }
.tl-ex-ol li { margin-bottom: 6px; line-height: 1.5; font-size: 13.5px; }

@media (max-width: 600px) {
  .tl-chord-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tl-chord-svg { max-width: 130px; }
  .tl-chord-card { padding: 10px; }
  .tl-neck-svg { min-width: 520px; }
}

/* ============================================================
   ArpStudio — אולפן ארפג׳ו
   ============================================================ */
:root { --arp-line: #3a86c8; }

.arp-topbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.arp-title { font-size: 20px; font-weight: 800; color: var(--gold-soft); }
.arp-meta { color: var(--text-dim); font-size: 13px; }
.arp-meta #arp-bpm-badge { color: var(--aegean); font-weight: 700; }

/* רצועת TAB מתגלגלת */
.arp-notation { padding: 10px 12px; overflow: hidden; }
.arp-tab-scroll { display: flex; flex-direction: row-reverse; gap: 2px; overflow-x: auto; padding: 6px 0; min-height: 92px; align-items: stretch; -webkit-overflow-scrolling: touch; }
.arp-tab-labels { display: flex; flex-direction: column; justify-content: space-around; padding: 0 6px; border-left: 2px solid var(--bg-elev); position: sticky; right: 0; background: var(--bg-card); z-index: 2; }
.arp-tab-label { color: var(--gold); font-weight: 800; font-size: 13px; height: 20px; }
.arp-tab-col { display: flex; flex-direction: column; min-width: 30px; border-radius: 5px; padding: 2px 0; transition: background .12s; }
.arp-tab-col.active { background: rgba(79,179,217,0.22); box-shadow: inset 0 0 0 2px var(--arp-line); }
.arp-tab-col.next { background: rgba(227,179,65,0.12); }
.arp-tab-cell { height: 20px; display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 13px; font-weight: 700; color: var(--text-dim); border-bottom: 1px solid rgba(143,166,188,0.18); }
.arp-tab-cell.bot { border-bottom: none; }
.arp-tab-cell.has-note { color: var(--text); background: rgba(255,255,255,0.04); border-radius: 4px; }
.arp-tab-cell.has-note.root { color: #1a1408; background: var(--gold); }

/* גריף */
.arp-fretboard { padding: 8px; margin-top: 10px; overflow-x: auto; }
.arp-fretboard .fretboard-svg { width: 100%; min-width: 640px; height: auto; }
.note-dot.arp-current circle { stroke: #fff !important; stroke-width: 3.5 !important; filter: drop-shadow(0 0 7px var(--arp-line)); }
.note-dot.arp-current { transform-box: fill-box; }

/* פקדים */
.arp-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.arp-controls .arp-play { font-weight: 800; background: var(--gold); color: #1a1408; }
.arp-controls .arp-play.playing { background: var(--aegean-deep); color: #fff; }
.arp-controls .btn.active { background: var(--aegean-deep); color: #fff; }
.arp-panel-btn { opacity: 0.92; }

/* פאנלים */
.arp-panel-host { margin-top: 12px; }
.arp-panel { padding: 14px 16px; }
.arp-panel-title { margin: 0 0 10px; font-size: 17px; color: var(--gold-soft); }
.arp-hint { color: var(--text-dim); font-size: 13px; line-height: 1.6; margin: 4px 0 12px; }
.arp-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.arp-field > span { color: var(--text-dim); font-weight: 600; }
.arp-field input[type="text"], .arp-field select { background: var(--bg-deep); color: var(--text); border: 1px solid rgba(143,166,188,0.3); border-radius: 6px; padding: 5px 8px; font-family: 'Heebo', sans-serif; }
.arp-toggle { display: flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }

/* ספרייה */
.arp-lib-group { margin-bottom: 14px; }
.arp-lib-group-title { font-weight: 800; color: var(--aegean); margin-bottom: 6px; font-size: 14px; }
.arp-lib-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; background: rgba(255,255,255,0.03); margin-bottom: 4px; }
.arp-lib-row:hover { background: rgba(79,179,217,0.1); }
.arp-lib-row:active { background: rgba(79,179,217,0.1); }
.arp-lib-name { flex: 1; cursor: pointer; font-weight: 600; color: var(--text); }
.arp-lib-dur { color: var(--text-dim); font-family: monospace; font-size: 13px; }
.arp-lib-add, .arp-lib-del { padding: 2px 9px !important; }
.arp-draft-ops { display: flex; gap: 3px; }
.arp-draft-ops .btn { padding: 2px 8px !important; }
.arp-draft-empty { color: var(--text-dim); padding: 12px; text-align: center; font-style: italic; }
.arp-draft-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bg-elev); }
.arp-draft-foot input { flex: 1; min-width: 140px; }

/* מטרונום */
.arp-met-grid { display: flex; flex-direction: column; gap: 8px; }
.arp-met-grid #arp-met-bpm { font-size: 20px; color: var(--gold); }

/* מבחן תזמון */
.arp-sens.active { background: var(--aegean-deep); color: #fff; }
.arp-score { margin-top: 12px; font-size: 16px; color: var(--text); }
.arp-score-num { font-size: 32px; font-weight: 900; color: var(--gold); }
.arp-prevscore { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* הגדרות */
.arp-set.active { background: var(--aegean-deep); color: #fff; }
.arp-color-chip { width: 32px; height: 24px; border-radius: 5px; border: 2px solid transparent; cursor: pointer; color: #fff; font-size: 10px; }
.arp-color-chip.active { border-color: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }

/* דוחות */
.arp-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.arp-report-cell { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 12px; }
.arp-report-k { color: var(--text-dim); font-size: 12px; }
.arp-report-v { font-size: 22px; font-weight: 800; color: var(--gold-soft); margin-top: 4px; }

@media (max-width: 600px) {
  .arp-controls .btn { font-size: 12px; padding: 6px 9px; }
  .arp-tab-col { min-width: 26px; }
}

/* ============================================================
   Reference Cards — כרטיסי ייחוס לבוזוקי טטרהקורדו
   ============================================================ */
.rc-intro h2 { margin-bottom: 8px; }
.rc-intro p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.rc-intro-hint {
  margin-top: 8px; font-size: 12.5px; color: var(--gold-soft);
  background: rgba(79, 179, 217, 0.07); border-right: 3px solid var(--aegean);
  padding: 8px 11px; border-radius: 8px;
}

/* בורר כרטיסים */
.rc-picker { padding: 14px 16px; }
.rc-picker-label { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.rc-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--bg-deep); border: 1px solid rgba(79, 179, 217, 0.25);
  color: var(--text); border-radius: 11px; padding: 9px 14px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.rc-chip:hover { border-color: var(--aegean); transform: translateY(-1px); }
.rc-chip:active { border-color: var(--aegean); transform: translateY(-1px); }
.rc-chip.active {
  background: linear-gradient(135deg, rgba(227,179,65,0.18), rgba(42,127,168,0.18));
  border-color: var(--gold); box-shadow: 0 0 14px rgba(227, 179, 65, 0.22);
}
.rc-chip-he { font-size: 15px; font-weight: 800; color: var(--gold-soft); }
.rc-chip.active .rc-chip-he { color: var(--gold); }
.rc-chip-tr { font-size: 11px; color: var(--text-dim); direction: ltr; }

/* כרטיס פעיל */
.rc-card { padding: 18px; }
.rc-card-header {
  text-align: center; padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(227, 179, 65, 0.25);
}
.rc-title { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: 0.5px; }
.rc-translit { font-size: 15px; font-weight: 700; color: var(--gold); direction: ltr; margin-top: 3px; }

.rc-card-body { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }

/* מפת סולם אנכית */
.rc-map-wrap {
  flex: 0 0 auto; max-width: 100%; overflow-x: auto;
  background: var(--bg-deep); border: 1px solid rgba(79, 179, 217, 0.15);
  border-radius: 12px; padding: 10px;
}
.rc-map-svg { display: block; width: 300px; max-width: 100%; height: auto; }
.rc-cell-active rect {
  fill: var(--gold) !important; stroke: var(--gold-soft) !important; opacity: 1 !important;
}
.rc-cell-active text { fill: #1a1408 !important; }

/* צד: איות + אקורדים */
.rc-card-side { flex: 1 1 280px; min-width: 260px; display: flex; flex-direction: column; gap: 18px; }

/* איות סולם */
.rc-spelling {
  background: var(--bg-deep); border: 1px solid rgba(79, 179, 217, 0.15);
  border-radius: 12px; padding: 12px 14px;
}
.rc-spell-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rc-spell-label {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--gold-soft);
  background: rgba(227, 179, 65, 0.12); padding: 3px 9px; border-radius: 7px;
}
.rc-spell-notes { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-spell-note {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card); border: 1px solid rgba(79, 179, 217, 0.2);
  border-radius: 8px; padding: 4px 8px; min-width: 34px;
}
.rc-note-name { font-size: 13px; font-weight: 800; color: var(--aegean); }
.rc-note-sol { font-size: 10.5px; color: var(--text-dim); }
.rc-spell-btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.rc-btn { background: #1d3850; border: 1px solid rgba(79, 179, 217, 0.3); }
.rc-btn:hover { border-color: var(--aegean); background: #234059; }
.rc-btn:active { border-color: var(--aegean); background: #234059; }
.rc-btn.playing {
  background: linear-gradient(135deg, var(--gold), #c79a2e); color: #1a1408;
  border-color: var(--gold-soft);
}

/* סט אקורדים */
.rc-chords { }
.rc-chord-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
.rc-chord-card {
  background: var(--bg-deep); border: 1px solid rgba(79, 179, 217, 0.18);
  border-radius: 12px; padding: 10px; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.rc-chord-head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rc-chord-name { font-size: 16px; font-weight: 800; color: var(--gold-soft); direction: ltr; }
.rc-chord-pos { font-size: 11px; color: var(--text-dim); }
.rc-chord-dia { min-height: 40px; display: flex; align-items: center; justify-content: center; }
.rc-chord-dia .chord-svg { width: 92px; height: auto; }
.rc-chord-poslabel {
  font-size: 12px; color: var(--aegean); background: rgba(79, 179, 217, 0.1);
  padding: 6px 10px; border-radius: 8px; direction: ltr;
}
.rc-chord-play { padding: 4px 12px; font-size: 15px; }

/* אצבוע */
.rc-fingering {
  display: flex; gap: 9px; align-items: flex-start; font-size: 13px;
  color: var(--text-dim); line-height: 1.55;
  background: rgba(79, 179, 217, 0.07); border-right: 3px solid var(--aegean);
  padding: 9px 12px; border-radius: 8px;
}
.rc-finger-ico { flex: 0 0 auto; }

@media (max-width: 600px) {
  .rc-card { padding: 12px; }
  .rc-card-body { gap: 14px; }
  .rc-card-side { min-width: 0; flex-basis: 100%; }
  .rc-title { font-size: 23px; }
  .rc-map-svg { width: 260px; }
  .rc-chord-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

/* ============================================================
   Worksheets — דפי עבודה להדפסה (שיעורי בית)
   ============================================================ */
/* פקדים (לא מודפסים) */
.ws-controls { padding: 14px 16px; margin-bottom: 14px; }
.ws-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.ws-row > b { color: var(--gold-soft); }
.ws-row label { color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.ws-row input[type="text"] { background: var(--bg-deep); color: var(--text); border: 1px solid rgba(143,166,188,0.3); border-radius: 6px; padding: 5px 8px; font-family: 'Heebo', sans-serif; }
.ws-type.active { background: var(--aegean-deep); color: #fff; }
.ws-pick-title { color: var(--gold-soft); font-weight: 700; margin: 10px 0 6px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid rgba(143,166,188,0.3); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Heebo', sans-serif; }
.ws-chip.active { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.ws-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bg-elev); }
.ws-print-btn { background: var(--gold); color: #1a1408; font-weight: 800; }
.ws-hint { color: var(--text-dim); font-size: 12px; }
.ws-preview-label { color: var(--text-dim); font-size: 13px; margin: 8px 0; text-align: center; }

/* ===== הדף עצמו — נייר לבן צבעוני (זהה במסך ובהדפסה) ===== */
.ws-sheet {
  background: #fff; color: #1c1c1c; border-radius: 8px; padding: 22px 24px;
  max-width: 820px; margin: 0 auto; box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  font-family: 'Heebo', sans-serif; line-height: 1.5;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ws-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ws-sheet-header { background: linear-gradient(90deg,#1f4e74,#2a7fa8); color: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.ws-h-title { font-size: 24px; font-weight: 900; }
.ws-h-fields { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.ws-h-note { margin-top: 8px; background: rgba(255,255,255,0.18); border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.ws-block-title { font-size: 19px; font-weight: 900; color: #b5651d; border-bottom: 3px solid #e6951c; padding-bottom: 4px; margin: 18px 0 12px; }

/* אקורדים */
.ws-chord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ws-chord-item { border: 2px solid #e6951c; border-radius: 10px; padding: 8px; text-align: center; background: #fff8ee; break-inside: avoid; }
.ws-chord-name { font-size: 20px; font-weight: 900; color: #b5651d; }
.ws-chord-name small { display: block; font-size: 12px; color: #555; font-weight: 600; }
.ws-chord-svg { width: 120px; height: auto; margin: 4px auto; display: block; }
.ws-chord-fingers { font-size: 11px; color: #333; text-align: right; margin: 4px 0; line-height: 1.4; }
.ws-practice-row { font-size: 12px; color: #444; border-top: 1px dashed #ccc; padding-top: 5px; margin-top: 5px; }
.ws-box { display: inline-block; width: 13px; height: 13px; border: 1.6px solid #888; border-radius: 3px; margin: 0 1px; vertical-align: middle; }

/* דרומוס */
.ws-dromos-block { border: 2px solid #2a7fa8; border-radius: 10px; padding: 12px; margin: 14px 0; break-inside: avoid; }
.ws-dromos-banner { background: linear-gradient(90deg,#7a1f1f,#b5651d); color: #fff; font-size: 19px; font-weight: 900; border-radius: 7px; padding: 7px 12px; }
.ws-dromos-deg { font-family: monospace; color: #2a7fa8; margin: 6px 0; font-weight: 700; }
.ws-scale-spell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0; }
.ws-note { background: #1f4e74; color: #fff; border-radius: 6px; padding: 4px 8px; font-weight: 800; text-align: center; min-width: 30px; }
.ws-note small { display: block; font-size: 9px; opacity: 0.85; font-weight: 600; }
.ws-note.root { background: #c0392b; }
.ws-arr { color: #999; font-weight: 700; }
.ws-dromos-cols { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.ws-map-wrap { flex: 0 0 auto; }
.ws-map { border-collapse: collapse; }
.ws-map th, .ws-map td { width: 34px; height: 22px; text-align: center; font-size: 11px; border: 1px solid #ddd; }
.ws-map th { background: #1c1c1c; color: #fff; font-weight: 800; }
.ws-map-fret { background: #f0f0f0; color: #777; font-family: monospace; font-weight: 700; }
.ws-map-cell { color: #bbb; }
.ws-map-cell.scale { background: #1f4e74; color: #fff; font-weight: 800; }
.ws-map-cell.root { background: #c0392b; color: #fff; font-weight: 800; }
.ws-dromos-side { flex: 1; min-width: 200px; font-size: 13px; }
.ws-mood, .ws-tips { margin-bottom: 8px; color: #333; }
.ws-ex-list { background: #f5faff; border-radius: 7px; padding: 8px 10px; }
.ws-ex-list > div { margin-top: 4px; color: #222; font-size: 13px; }

/* פרטבורד + מסלול בדף עבודה */
.ws-edit-panel { margin-top: 4px; }
.ws-edit-toggle-row .btn.active { background: var(--aegean-deep); color: #fff; }
.ws-fb-section { margin-top: 14px; border-top: 1px dashed #c9c2b4; padding-top: 10px; }
.ws-fb-title { margin-top: 0; }
.ws-fb-hint { color: #555; font-size: 13px; margin: 0 0 8px; }
.ws-note-info { min-height: 52px; margin-bottom: 8px; }
.ws-note-info-card {
  background: linear-gradient(90deg, #fff8ee, #f5faff);
  border: 2px solid #e6951c; border-radius: 10px; padding: 8px 12px;
}
.ws-ni-main { display: flex; align-items: baseline; gap: 12px; }
.ws-ni-he { font-size: 28px; font-weight: 900; color: #b5651d; }
.ws-ni-lat { font-size: 22px; font-weight: 800; color: #1f4e74; font-family: monospace; }
.ws-ni-meta { margin-top: 4px; font-size: 13px; color: #333; }
.ws-fb-host { background: #1a1408; border-radius: 10px; padding: 8px; overflow-x: auto; }
.ws-fb-host .fs-pos-wrap { background: transparent; }
.ws-fb-host .fs-pos-bar { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ws-fb-host .fs-pos-label { color: #d8c9a0; }
.ws-fb-print { background: #faf6ef; border: 2px solid #bbb; border-radius: 10px; padding: 10px 6px; overflow: visible; }
.ws-fb-print svg.fretboard, .ws-fb-print svg.ws-fb-print-svg { width: 100%; min-width: 0 !important; max-width: 100%; height: auto; display: block; }
.ws-print-only-fb { display: none; }
.ws-fb-meta { font-size: 13px; color: #444; margin: 0 0 8px; }
.ws-path-legend { margin: 10px 0 0; padding-inline-start: 22px; color: #222; font-size: 13px; }
.ws-path-legend li { margin: 3px 0; }
.ws-path-legend .ws-lat { color: #1f4e74; font-family: monospace; font-weight: 700; }

/* שורות TAB ריקות */
.ws-blank-tab { margin-top: 12px; }
.ws-blank-title { font-size: 13px; color: #555; margin-bottom: 6px; }
.ws-tab-line { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.ws-tab-lbl { width: 18px; font-weight: 800; color: #b5651d; }
.ws-tab-rule { flex: 1; height: 0; border-top: 1.5px solid #999; }

/* יומן תרגול */
.ws-log-wrap { margin: 14px 0; }
.ws-log { width: 100%; border-collapse: collapse; }
.ws-log th { background: #2a7fa8; color: #fff; padding: 6px; font-size: 13px; }
.ws-log td { border: 1px solid #ddd; padding: 7px 8px; font-size: 13px; }
.ws-log-day { font-weight: 700; background: #f5faff; width: 70px; }
.ws-log-min { width: 80px; color: #555; }
.ws-footer { text-align: center; color: #999; font-size: 11px; margin-top: 18px; border-top: 1px solid #eee; padding-top: 8px; }

/* הדפסה ישירה מהעמוד (גיבוי ל-iframe) */
@media print {
  body * { visibility: hidden !important; }
  #screen-worksheets .ws-sheet, #screen-worksheets .ws-sheet * { visibility: visible !important; }
  #screen-worksheets .ws-sheet { position: absolute; right: 0; top: 0; width: 100%; box-shadow: none; margin: 0; max-width: none; }
  .ws-controls, .ws-preview-label, .screen-head { display: none !important; }
  .ws-fb-host, .ws-note-info, .ws-fb-hint, .ws-path-legend-host { display: none !important; }
  .ws-print-only-fb { display: block !important; }
  .ws-fb-print { background: #faf6ef !important; overflow: visible !important; }
  .ws-fb-print svg.fretboard, .ws-fb-print svg.ws-fb-print-svg { min-width: 0 !important; width: 100% !important; }
  .ws-dromos-block, .ws-fb-section, .ws-chord-item { break-inside: avoid; page-break-inside: avoid; }
  .ws-path-legend { font-size: 14px; }
}

@media (max-width: 600px) {
  .ws-dromos-cols { flex-direction: column; }
  .ws-chord-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ============================================================
   SongTeacher — למד אותי את השיר
   ============================================================ */
.st-h { margin: 0 0 6px; color: var(--gold-soft); }
.st-hint { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.st-tip { margin-top: 8px; font-size: 12px; }
.st-load-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.st-load-row input[type="file"] { color: var(--text); }
.st-status { color: var(--aegean); font-size: 13px; }
.st-prog { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.st-prog-bar { flex: 1; height: 7px; background: var(--bg-deep); border-radius: 4px; overflow: hidden; }
.st-prog-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--aegean-deep), var(--gold)); transition: width .15s; }
.st-prog-time { font-family: monospace; color: var(--text-dim); font-size: 12px; white-space: nowrap; }

.st-info { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; color: var(--text-dim); font-size: 13px; }
.st-info b { color: var(--gold-soft); }

.st-chordbox { display: flex; align-items: center; gap: 18px; padding: 14px 16px; }
.st-chord-cur { text-align: center; min-width: 120px; }
.st-chord-label { color: var(--text-dim); font-size: 12px; }
.st-chord-name { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.st-chord-dia { min-width: 120px; }

.st-fbwrap, .st-melstrip-wrap { padding: 12px 14px; }
.st-fb-title { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.st-fb-scroll { overflow-x: auto; }
.st-fbwrap .fretboard-svg { width: 100%; min-width: 640px; height: auto; }
.note-dot.st-active circle { stroke: #fff !important; stroke-width: 3.5 !important; filter: drop-shadow(0 0 8px var(--gold)); }

.st-melstrip { display: flex; flex-direction: row-reverse; gap: 5px; overflow-x: auto; padding: 6px 0; }
.st-mel-cell { flex: 0 0 auto; min-width: 42px; text-align: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(143,166,188,0.2); border-radius: 7px; padding: 6px 4px; cursor: pointer; }
.st-mel-cell:hover { border-color: var(--aegean); }
.st-mel-cell:active { border-color: var(--aegean); }
.st-mel-cell.st-cell-active { background: var(--gold); border-color: var(--gold); }
.st-mel-cell.st-cell-active .st-mel-note, .st-mel-cell.st-cell-active .st-mel-pos { color: #1a1408; }
.st-mel-note { display: block; font-weight: 800; color: var(--text); }
.st-mel-pos { display: block; font-size: 10px; color: var(--text-dim); font-family: monospace; }

.st-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; }
.st-play { background: var(--gold); color: #1a1408; font-weight: 800; }
.st-play.playing { background: var(--aegean-deep); color: #fff; }
.st-speeds { color: var(--text-dim); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.st-speed.active { background: var(--aegean-deep); color: #fff; }
.st-toggle { color: var(--text); display: flex; align-items: center; gap: 6px; font-size: 13px; }
#st-loop.active { background: var(--gold); color: #1a1408; }
.st-transport .st-prog { flex-basis: 100%; }

@media (max-width: 600px) {
  .st-chordbox { flex-direction: column; gap: 10px; }
  .st-chord-name { font-size: 32px; }
}
.st-engine-row { font-size: 13px; color: var(--text-dim); }
.st-engine.active { background: var(--aegean-deep); color: #fff; }

.st-vocal-banner { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 14px; border-right:3px solid var(--gold); }
.st-vocal-lyrics { padding:12px 14px; }
.st-vocal-scroll { max-height:240px; overflow-y:auto; margin-top:8px; }
.st-vocal-sec-name { font-size:11px; color:var(--gold); font-weight:700; margin:10px 0 4px; }
.st-vocal-line { margin:6px 0; padding:6px 10px; border-radius:6px; background:rgba(255,255,255,.03); line-height:1.55; transition:background .15s, box-shadow .15s; }
.st-vocal-line.st-vocal-line-active { background:rgba(212,165,116,.18); box-shadow:inset 3px 0 0 var(--gold); }
.st-vocal-line.st-vocal-line-dim { opacity:.55; }
.st-vocal-greek { text-align:left; font-family:Georgia,serif; }
.st-vocal-chords { display:block; font-size:11px; color:var(--aegean); margin-bottom:2px; font-family:monospace; }
.st-vocal-text { font-size:15px; display:inline; }
.st-vocal-word { display:inline; padding:1px 3px; border-radius:4px; margin:0 1px; transition:background .12s, color .12s; }
.st-vocal-word.st-vocal-word-active { background:var(--gold); color:#1a1408; font-weight:800; }
.st-export { padding: 12px 14px; }
.st-export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-export-row b { color: var(--gold-soft); }
.st-export-row .btn { min-width: auto; }

.st-tab-wrap { padding: 12px 14px; }
.st-tab-scroll {
  display: flex; flex-direction: row-reverse; gap: 2px; overflow-x: auto;
  padding: 6px 0; min-height: 96px; align-items: stretch; -webkit-overflow-scrolling: touch;
}
.st-tab-labels {
  display: flex; flex-direction: column; justify-content: space-around; padding: 0 6px;
  border-left: 2px solid var(--bg-elev); position: sticky; right: 0; background: var(--bg-card); z-index: 2;
}
.st-tab-label { color: var(--gold); font-weight: 800; font-size: 13px; height: 20px; }
.st-tab-col {
  display: flex; flex-direction: column; min-width: 30px; border-radius: 5px;
  padding: 2px 0; transition: background .12s; cursor: pointer;
}
.st-tab-col.active { background: rgba(227,179,65,0.28); box-shadow: inset 0 0 0 2px var(--gold); }
.st-tab-cell {
  height: 20px; display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 13px; font-weight: 700; color: var(--text-dim);
  border-bottom: 1px solid rgba(143,166,188,0.18);
}
.st-tab-cell.bot { border-bottom: none; }
.st-tab-cell.has-note { color: var(--text); background: rgba(255,255,255,0.06); border-radius: 4px; }
.st-tab-col.active .st-tab-cell.has-note { background: var(--gold); color: #1a1408; }
.st-tab-phrase-sep { min-width: 8px; border-left: 2px dashed rgba(227,179,65,0.45); margin: 0 3px; align-self: stretch; }
.st-tab-phrases-grid {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; align-items: flex-start;
}
.st-tab-phrase-card {
  flex: 0 1 auto; max-width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(143,166,188,0.25); background: rgba(255,255,255,0.03);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.st-tab-phrase-card:hover { border-color: var(--aegean); }
.st-tab-phrase-card.active {
  border-color: var(--gold); background: rgba(227,179,65,0.1);
  box-shadow: inset 0 0 0 1px rgba(227,179,65,0.35);
}
.st-tab-phrase-title {
  font-size: 13px; font-weight: 700; color: var(--gold-soft); margin-bottom: 8px;
}
.st-tab-phrase-svg-wrap { overflow-x: auto; }
.st-tab-svg-phrase {
  display: block; width: auto !important; max-width: 100%; height: auto !important;
  min-width: 0 !important;
}
.st-tab-score-wrap { overflow-x: auto; margin-top: 8px; }
.st-tab-svg { display: block; width: auto; max-width: 100%; height: auto; min-width: 0; }
.st-tab-score-nav { margin-top: 10px; justify-content: center; }
#st-print { background: var(--gold); color: #1a1408; font-weight: 800; }

/* ============================================================
   Bouzouki Studio — אולפן בוזוקי
   ============================================================ */

.st-harmony { padding: 12px 14px; }
.st-harmony-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-harm-label { color: var(--text-dim); font-size: 13px; }
.st-dromos-name { color: var(--gold-soft); font-size: 16px; }
.st-chord-prog { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chord-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(79,179,217,0.15); color: var(--aegean); font-weight: 700; font-size: 13px;
}
.st-teach-hint { color: var(--gold-soft); margin: 6px 0 0; font-size: 13px; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.st-phrase-nav { justify-content: center; }
.st-phrase-label { font-weight: 700; min-width: 160px; text-align: center; }
.st-learn-mode.active { background: var(--aegean-deep); color: #fff; }
#st-fb-host .fretboard-svg, #st-fb-host svg.fretboard { width: 100%; min-width: 640px; height: auto; }

/* ============================================================
   Bouzouki Studio — אולפן בוזוקי
   ============================================================ */
.bzs-steps {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.bzs-step {
  flex: 1; min-width: 72px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(143,166,188,0.25); background: rgba(255,255,255,0.03);
  color: var(--text-dim); font-family: 'Heebo', sans-serif; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.bzs-step:hover { border-color: var(--aegean); color: var(--text); }
.bzs-step:active { border-color: var(--aegean); color: var(--text); }
.bzs-step.active {
  background: var(--aegean-deep); border-color: var(--aegean); color: #fff;
}
.bzs-step.done:not(.active) {
  border-color: rgba(227,179,65,0.45); color: var(--gold-soft);
}

.bzs-panel h2 { margin: 0 0 8px; font-size: 18px; color: var(--gold-soft); }
.bzs-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0;
}
.bzs-row input[type="file"] { color: var(--text); max-width: 100%; }
.bzs-row select {
  background: var(--bg-deep); color: var(--text);
  border: 1px solid rgba(143,166,188,0.3); border-radius: 6px; padding: 5px 8px;
  font-family: 'Heebo', sans-serif;
}
.bzs-lib-pick {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;
}
.bzs-meta { color: var(--text-dim); font-size: 14px; margin: 6px 0 10px; }
.bzs-meta b { color: var(--gold-soft); }
.bzs-dromos-chip {
  display: inline-block; padding: 3px 10px; margin: 0 4px 4px 0;
  border-radius: 999px; background: rgba(79,179,217,0.15); color: var(--aegean);
  font-size: 12px; font-weight: 700;
}

.bzs-fretboard {
  padding: 10px 8px; margin: 10px 0; overflow-x: auto;
  background: rgba(0,0,0,0.15); border-radius: 10px;
}
.bzs-fretboard .fretboard-svg { width: 100%; min-width: 640px; height: auto; }

.bzs-prog-wrap {
  flex: 1; min-width: 120px; height: 7px; background: var(--bg-deep);
  border-radius: 4px; overflow: hidden;
}
.bzs-play-prog {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--aegean-deep), var(--gold));
  transition: width .08s linear;
}

.bzs-backing-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; margin: 10px 0;
}
.bzs-bt-card {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  border: 1px solid rgba(143,166,188,0.2); transition: border-color .15s, box-shadow .15s;
}
.bzs-bt-card.active {
  border-color: var(--gold); box-shadow: 0 0 0 1px rgba(227,179,65,0.35);
}
.bzs-bt-card .hint { font-size: 12px; }
.bzs-bt-steps { margin: 8px 0 12px; }

.bzs-status-row {
  margin-top: 14px; display: flex; flex-direction: column; gap: 6px;
}
.bzs-prog {
  height: 6px; background: var(--bg-deep); border-radius: 4px; overflow: hidden;
}
.bzs-prog > div {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--aegean-deep), var(--gold));
  transition: width .2s;
}
#bzs-status { min-height: 1.2em; }

.bzs-engine.active { background: var(--aegean-deep); color: #fff; }
.bzs-learn-mode.active { background: var(--aegean-deep); color: #fff; }
.bzs-teach-hint { color: var(--gold-soft); font-size: 13px; margin: 4px 0 10px; }
.bzs-phrase-nav { justify-content: center; gap: 12px; }
.bzs-phrase-label { font-weight: 700; color: var(--text); font-size: 14px; min-width: 180px; text-align: center; }
.note-dot.bzs-active-note circle { stroke: #fff !important; stroke-width: 3.5 !important; filter: drop-shadow(0 0 8px var(--gold)); }
.fs-melody-board .note-dot { opacity: 1; }

@media (max-width: 600px) {
  .bzs-step { min-width: 58px; font-size: 12px; padding: 7px 6px; }
  .bzs-backing-list { grid-template-columns: 1fr; }
}

/* ---------- TheoryLab: "הכביש" של הדרומוס ---------- */
.tl-road, .dr-road-strip { margin: 12px 0 4px; max-width: 100%; min-width: 0; }
.tl-road-head { color: var(--text-dim); font-size: 13.5px; margin-bottom: 8px; }
.tl-road-head b { color: var(--gold); }
.tl-road-track {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch;
  gap: 4px; overflow-x: auto; padding: 6px 2px;
  width: 100%; max-width: 100%; min-width: 0;
}
.tl-road-stop {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 92px; padding: 8px 6px; border-radius: 9px; cursor: pointer;
  background: rgba(42,127,168,0.16); border: 1px solid rgba(127,208,239,0.35);
  color: var(--text); font-family: 'Heebo', sans-serif; transition: transform .1s, background .15s;
}
.tl-road-stop:hover { transform: translateY(-2px); background: rgba(42,127,168,0.28); }
.tl-road-stop:active { transform: translateY(-2px); background: rgba(42,127,168,0.28); }
.tl-road-root { background: rgba(227,179,65,0.18); border-color: var(--gold); }
.tl-road-num { font-size: 11px; color: var(--text-dim); font-family: monospace; }
.tl-road-flag { font-size: 11px; font-weight: 800; color: var(--gold); }
.tl-road-note { font-size: 19px; font-weight: 900; color: var(--text); line-height: 1.1; }
.tl-road-root .tl-road-note { color: var(--gold); }
.tl-road-pos { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.tl-road-arrow { flex: 0 0 auto; align-self: center; color: var(--gold-soft); font-size: 18px; opacity: 0.7; }

/* ---------- DromosRoad: רכיב כביש משותף ---------- */
.dr-road-host { margin: 14px 0; }
.dr-road-modes { margin: 8px 0; }
.dr-road-btns { margin-top: 8px; }
.tl-road-stop.tl-road-playing { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.tl-road-stop.tl-road-playing .tl-road-note,
.tl-road-stop.tl-road-playing .tl-road-pos,
.tl-road-stop.tl-road-playing .tl-road-num { color: #1a1408; }
.dr-road-roots { margin: 6px 0; }
.dr-root-select {
  background: var(--bg-deep); color: var(--text);
  border: 1px solid rgba(143,166,188,0.35); border-radius: 6px;
  padding: 5px 10px; font-family: 'Heebo', sans-serif; font-size: 14px; font-weight: 700;
}

/* ---------- DromosRoad: הדגשת הכביש על הפרטבורד ---------- */
.note-dot.dr-road-on circle { stroke: #fff !important; stroke-width: 3 !important; }
.note-dot.dr-road-off { opacity: 0.22; }
.note-dot.dr-road-play circle { stroke: #fff !important; stroke-width: 3.5 !important; filter: drop-shadow(0 0 7px var(--gold)); }
.dr-road-positions { margin: 6px 0; }
.dr-pos-chip.active { background: var(--gold); color: #1a1408; border-color: var(--gold); }

/* Practice-first home: scoped to avoid changing teaching screens. */
.practice-hero { display:flex; justify-content:space-between; align-items:center; gap:32px; padding:36px; margin-block-end:30px; border:1px solid #48606a; border-radius:22px; background:linear-gradient(120deg,#183f4a,#122b3a 65%); }
.practice-eyebrow { color:var(--gold-soft); font-size:13px; font-weight:700; margin-block-end:12px; }
.practice-hero h2 { font-size:clamp(28px,4vw,42px); line-height:1.25; color:var(--text); margin-block-end:14px; }
.practice-copy { max-width:390px; color:#c5d5df; line-height:1.8; }
.practice-action { display:flex; flex-direction:column; gap:12px; flex-shrink:0; }
.practice-action span { font-size:13px; color:#c5d5df; }
.practice-start { min-height:52px; padding:14px 24px; border:0; border-radius:12px; background:var(--gold); color:#101f30; font:inherit; font-weight:800; cursor:pointer; }
.practice-start:hover { background:var(--gold-soft); }
.practice-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-block-end:24px; }
.practice-shortcuts .hub-card { display:flex; flex-direction:column; align-items:flex-start; text-align:start; gap:10px; padding:20px; min-width:0; }
.practice-shortcuts .hub-card-ico { font-size:25px; }
.practice-shortcuts small { font-size:12px; color:var(--text-dim); font-weight:400; line-height:1.6; }
.hub-catalog { border:1px solid var(--line); border-radius:14px; padding:0 20px; background:var(--bg); }
.hub-catalog summary { padding-block:18px; cursor:pointer; font-weight:700; min-height:52px; color:var(--gold-soft); }
.hub-search { display:block; width:100%; min-height:48px; margin-block:4px 22px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--bg-deep); color:var(--text); font:inherit; }
.hub-search::placeholder { color:var(--text-dim); }
.hub-empty { padding-block:12px 24px; color:var(--text-dim); }
.home-hub [hidden] { display:none !important; }
.home-hub :is(button,input,summary):focus-visible { outline:3px solid var(--aegean); outline-offset:4px; }
@media(max-width:1100px) { .practice-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); } .practice-hero { flex-direction:column; align-items:stretch; gap:22px; } }
@media(max-width:480px) { .practice-hero { padding:24px; border-radius:16px; } .practice-shortcuts .hub-card { padding:15px; } .hub-catalog { padding-inline:14px; } }

/* ===================== למד שיר על הצוואר ===================== */
#screen-neck {
  min-width: 0;
  --neck-gold: #e8c56b;
  --neck-gold-2: #f6e2a8;
  --neck-ink: #2c2118;
  --neck-paper: #f4e7c8;
  /* בלי transform — אחרת העוזר (position:fixed) ננעל לתוך המסך ולא לחלון */
  animation: neckIn 0.35s ease;
  margin: -36px -42px -80px;
  padding: 18px 18px 188px;
  min-height: calc(100vh - 20px);
  position: relative;
  color: #f6edd9;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(232, 197, 107, 0.16), transparent 58%),
    linear-gradient(180deg, #3c291b 0%, #24170f 32%, #140e0a 100%);
}
@keyframes neckIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#screen-neck h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--neck-gold-2);
  background: none;
  -webkit-text-fill-color: var(--neck-gold-2);
}
.app-helper-help {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  inset-inline-end: 16px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 107, 0.55);
  background: rgba(22, 14, 8, 0.82);
  color: #f6e2a8;
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}
#app-helper { z-index: 85; }
.chrome-tools .app-helper-help,
.chrome-tools .bn-glow-toggle {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  inset: auto;
  z-index: auto;
  flex: none;
  white-space: nowrap;
}
.chrome-tools .app-helper-help { width: 44px; height: 44px; }
.chrome-tools .bn-glow-toggle { min-height: 44px; min-width: 44px; }
.neck-help {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 107, 0.55);
  background: rgba(0, 0, 0, 0.28);
  color: var(--neck-gold);
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}
.neck-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 8px;
}
.neck-emblem { width: 72px; height: 72px; }
.neck-kicker {
  margin: 0;
  color: var(--neck-gold);
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 14px;
}
.neck-sub, .neck-meta { margin: 2px 0 0; color: rgba(246, 237, 217, 0.78); font-size: 14px; }
.neck-meta { color: var(--neck-gold); font-weight: 700; }
.neck-songs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 12px; }
.neck-song-chip {
  font: inherit;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 107, 0.4);
  background: transparent;
  color: #f6edd9;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
}
.neck-song-chip.active { background: var(--neck-gold); color: #2a1c12; font-weight: 800; border-color: var(--neck-gold); }
.neck-song-chip-wrap { display: inline-flex; align-items: center; gap: 2px; }
.neck-chip-x {
  font: inherit;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 107, 0.45);
  background: transparent;
  color: #f6e2a8;
  cursor: pointer;
  line-height: 1;
}
.neck-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0 0 10px;
}
.neck-upload-hint {
  margin: 0;
  flex: 1 1 220px;
  color: rgba(246, 237, 217, 0.72);
  font-size: 13px;
  text-align: center;
}
.neck-upload-msg {
  color: #f6e2a8;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
}
.neck-dot-name { font-family: Heebo, sans-serif; font-size: 16px; font-weight: 800; fill: #2a1c12; }
.neck-dot-plate { fill: #f6e2a8; stroke: #8a5e14; stroke-width: 1; }
.bn-leader { fill: none; stroke: #e6c27a; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.bn-neck.bn-has-float .neck-dot-plate,
.bn-neck.bn-has-float .neck-dot-name { display: none; }
.bn-namebar {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 34px;
  margin: 2px 0 4px;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
}
.bn-namebar[hidden] { display: none; }
.bn-namebar-pill {
  position: absolute;
  top: 2px;
  left: 4px;
  height: 28px;
  max-width: calc(100% - 8px);
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #f6e2a8;
  border: 1px solid #8a5e14;
  color: #2a1c12;
  font-family: Heebo, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
}
.neck-board-host {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  direction: ltr;
  border-radius: 16px;
  background: #1a100b;
  box-shadow: inset 0 0 0 1px rgba(232, 197, 107, 0.16);
}
.neck-svg { width: 100%; min-width: 1080px; height: auto; display: block; }
.neck-course-he, .neck-finger, .neck-finger-label, .neck-open-label, .neck-course-en, .neck-fretnum, .neck-fret-label {
  font-family: Heebo, sans-serif;
}
.neck-fretnum { fill: #f6e2a8; font-size: 15px; font-weight: 800; }
.neck-fret-label { fill: var(--neck-gold); font-size: 13px; font-weight: 700; }
.neck-course-he { fill: #f6edd9; font-size: 15px; font-weight: 800; }
.neck-course-en { fill: rgba(232, 197, 107, 0.8); font-size: 10px; font-weight: 700; }
.neck-finger { fill: rgba(246, 226, 168, 0.45); font-size: 16px; font-weight: 800; }
.neck-finger.is-on { fill: #ffe7a3; font-size: 24px; }
.neck-finger-label, .neck-open-label { fill: var(--neck-gold); font-size: 13px; font-weight: 700; }
.neck-sol-label {
  text-align: center;
  margin: 12px 0 4px;
  color: var(--neck-gold);
  font-size: 13px;
  font-weight: 700;
}
.neck-pill-wrap { display: flex; justify-content: center; }
.neck-pill {
  min-width: 180px;
  text-align: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 107, 0.55);
  background: rgba(12, 8, 5, 0.35);
  color: #fff8e8;
  font-weight: 800;
  font-size: clamp(16px, 3vw, 22px);
}
.neck-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 72px;
  font-weight: 900;
  color: var(--neck-gold-2);
  text-shadow: 0 0 18px rgba(232, 197, 107, 0.55);
  pointer-events: none;
}
.neck-count[hidden] { display: none; }
.neck-staff-wrap {
  margin-top: 12px;
  background: var(--neck-paper);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  direction: ltr;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.main:has(#screen-neck.active) { min-width: 0; }
.neck-staff-svg { display: block; }
.neck-meter, .neck-barnum, .neck-pname, .neck-latin, .neck-pick, .neck-acc {
  font-family: Heebo, sans-serif;
}
.neck-meter { font-size: 20px; font-weight: 800; fill: var(--neck-ink); }
.neck-barnum { font-size: 12px; font-weight: 800; fill: #8a6844; }
.neck-acc { font-size: 16px; font-weight: 800; fill: var(--neck-ink); }
.neck-pick { font-size: 16px; font-weight: 800; fill: #6a4a2c; }
.neck-pname { font-size: 13px; font-weight: 800; fill: #3a2a1c; }
.neck-latin { font-size: 10px; font-weight: 700; fill: #6d5438; }
.neck-note.is-now .neck-head { fill: #e0a82e; stroke: #8a5e14; }
.neck-note.is-now .neck-stem,
.neck-note.is-now .neck-flag,
.neck-note.is-now .neck-rest { stroke: #8a5e14; }
.neck-note.is-now .neck-pick,
.neck-note.is-now .neck-pname { fill: #8a5e14; font-size: 15px; }
.neck-note.is-now .neck-latin { fill: #6a4510; }
.neck-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 8px 0 4px;
  color: rgba(246, 237, 217, 0.86);
  font-size: 13px;
  font-weight: 700;
}
.neck-seek-label { display: block; margin-top: 6px; font-size: 12px; color: rgba(246, 237, 217, 0.7); }
.neck-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(232, 197, 107, 0.22);
  direction: ltr;
  margin: 6px 0 10px;
}
.neck-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neck-gold-2);
  border: 0;
  box-shadow: 0 0 0 4px rgba(232, 197, 107, 0.22);
}
.neck-progress::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neck-gold-2);
  border: 0;
}
.neck-timeline { margin: 4px 0 12px; direction: ltr; }
.neck-tl-sections { display: flex; gap: 4px; margin-bottom: 4px; }
.neck-section-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(232, 197, 107, 0.28);
  background: transparent;
  color: #f6edd9;
  cursor: pointer;
}
.neck-section-btn.is-active { background: rgba(232, 197, 107, 0.22); color: var(--neck-gold-2); }
.neck-tl-bar {
  position: relative;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.04);
}
.neck-tl-measures { display: flex; height: 100%; position: relative; z-index: 1; }
.neck-measure {
  flex: 1;
  border: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(246, 237, 217, 0.8);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.neck-measure.is-now { background: rgba(232, 197, 107, 0.28); color: var(--neck-gold-2); font-weight: 800; }
.neck-tl-loop {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(232, 197, 107, 0.16);
  box-shadow: inset 0 0 0 2px var(--neck-gold);
  pointer-events: none;
  z-index: 0;
}
.neck-tl-head {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-inline-start: -1px;
  background: var(--neck-gold-2);
  box-shadow: 0 0 10px var(--neck-gold);
  pointer-events: none;
  z-index: 2;
}
.neck-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(232, 197, 107, 0.16);
}
.neck-transport, .neck-tempo, .neck-rhythm-row, .neck-loop-row, .neck-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.neck-field-label { font-size: 13px; font-weight: 700; color: var(--neck-gold); }
.neck-btn {
  font: inherit;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 197, 107, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #f6edd9;
  cursor: pointer;
}
.neck-btn.tiny { min-height: 40px; padding: 6px 10px; }
.neck-btn.primary {
  background: linear-gradient(135deg, #f3d48a, #c8962e);
  color: #2a1c12;
  font-weight: 800;
  border: none;
  min-width: 96px;
}
.neck-btn.is-on, .neck-btn.is-active {
  background: rgba(232, 197, 107, 0.2);
  border-color: var(--neck-gold);
  color: var(--neck-gold-2);
}
.neck-btn.primary.is-on { background: #d96459; color: #fff; }
#screen-neck select,
#screen-neck input[type="number"] {
  background: #140e0a;
  color: #f6edd9;
  border: 1px solid rgba(232, 197, 107, 0.35);
  border-radius: 10px;
  font: inherit;
  min-height: 40px;
  padding: 4px 8px;
}
#neck-bpm { width: 72px; text-align: center; }
#neck-bpm-range { flex: 1 1 140px; direction: ltr; accent-color: var(--neck-gold); }
#neck-from, #neck-to { width: 64px; }
.neck-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
}
.neck-check input { accent-color: var(--neck-gold); width: 18px; height: 18px; }
.neck-lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 197, 107, 0.35);
}
.neck-lamp.is-on { background: var(--neck-gold-2); box-shadow: 0 0 10px var(--neck-gold); }
.neck-spotlight {
  outline: 2px solid var(--neck-gold);
  outline-offset: 4px;
  border-radius: 14px;
  box-shadow: 0 0 0 6px rgba(232, 197, 107, 0.16);
}
.neck-coach {
  position: fixed;
  z-index: 80;
  left: 16px;
  top: calc(100vh - 96px);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: max-content;
  max-width: min(420px, calc(100vw - 20px));
  direction: rtl;
  pointer-events: none;
  transition: left 0.72s cubic-bezier(0.22, 0.82, 0.24, 1), top 0.72s cubic-bezier(0.22, 0.82, 0.24, 1);
}
.neck-coach.is-following {
  transition: left 0.42s ease, top 0.42s ease;
}
.neck-coach.is-dodge,
.neck-coach.is-dodge.is-following {
  transition: none;
}
.neck-coach > * { pointer-events: auto; }
.neck-avatar {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow:
    0 0 0 6px rgba(232, 197, 107, 0.2),
    0 0 22px 4px rgba(232, 197, 107, 0.55),
    0 10px 18px rgba(20, 10, 4, 0.35);
  animation: neckBob 3.1s ease-in-out infinite, neckPulse 2.7s ease-in-out infinite;
}
.neck-face { width: 68px; height: 68px; display: block; overflow: visible; }
.neck-pupil-g, .neck-lid {
  transform-box: fill-box;
  transform-origin: center;
}
.neck-lid {
  transform-origin: center top;
  animation: neckBlink 5.4s ease-in-out infinite;
}
.neck-coach.is-idle .neck-pupil-g { animation: neckGlance 4.8s ease-in-out infinite; }
.neck-coach-bubble {
  position: relative;
  direction: rtl;
  flex: 1 1 auto;
  min-width: 210px;
  background: var(--neck-paper);
  color: var(--neck-ink);
  border-radius: 16px;
  padding: 10px 12px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.neck-coach-bubble::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -7px;
  border: 8px solid transparent;
  border-left-color: var(--neck-paper);
  border-right: 0;
}
.neck-coach.is-flip { direction: ltr; }
.neck-coach.is-flip .neck-coach-bubble::after {
  right: auto;
  left: -7px;
  border: 8px solid transparent;
  border-right-color: var(--neck-paper);
  border-left: 0;
}
.neck-coach.is-above .neck-coach-bubble::after,
.neck-coach.is-below .neck-coach-bubble::after {
  left: auto;
  right: 36px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.neck-coach.is-above .neck-coach-bubble::after {
  top: auto;
  bottom: -8px;
  border-top: 8px solid var(--neck-paper);
  border-bottom: 0;
}
.neck-coach.is-below .neck-coach-bubble::after {
  top: -8px;
  bottom: auto;
  border-bottom: 8px solid var(--neck-paper);
  border-top: 0;
}
.neck-coach.is-flip.is-above .neck-coach-bubble::after,
.neck-coach.is-flip.is-below .neck-coach-bubble::after {
  right: auto;
  left: 36px;
}
@keyframes neckBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes neckPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(232, 197, 107, 0.16), 0 0 16px 2px rgba(232, 197, 107, 0.4), 0 10px 18px rgba(20, 10, 4, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(246, 226, 168, 0.28), 0 0 28px 6px rgba(232, 197, 107, 0.72), 0 10px 18px rgba(20, 10, 4, 0.35); }
}
@keyframes neckBlink {
  0%, 86%, 100% { transform: scaleY(0.04); }
  90%, 94% { transform: scaleY(1); }
}
@keyframes neckGlance {
  0%, 100% { transform: translate(0, 0); }
  28% { transform: translate(2.4px, 0.4px); }
  52% { transform: translate(-2px, 1px); }
  74% { transform: translate(1.2px, -0.6px); }
}
.neck-coach-who { margin: 0 0 2px; font-size: 12px; font-weight: 800; color: #8a5e14; }
.neck-coach-text { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.neck-coach-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.neck-coach-step { font-size: 12px; font-weight: 700; color: #6d5438; margin-inline-end: auto; }
.neck-coach.is-collapsed .neck-coach-bubble { display: none; }
.neck-coach-bubble[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .neck-coach, .neck-coach.is-following { transition: none; }
  .neck-avatar, .neck-lid, .neck-coach.is-idle .neck-pupil-g { animation: none; }
  .neck-lid { transform: scaleY(0.04); }
}
@media (min-width: 900px) {
  .neck-hero { flex-direction: row; text-align: right; align-items: center; gap: 16px; justify-content: center; }
  .neck-emblem { width: 84px; height: 84px; }
}
@media (max-width: 860px) {
  #screen-neck {
    margin: -18px -14px calc(-1 * (86px + env(safe-area-inset-bottom)));
    padding: 12px 10px calc(340px + env(safe-area-inset-bottom));
    min-height: 70vh;
  }
  .neck-coach { max-width: calc(100vw - 32px - var(--safe-left) - var(--safe-right)); }
  .neck-svg { min-width: 1080px; }
}

/* ===================== שכבת זוהר על הצוואר ===================== */
.bn-glow-toggle {
  position: fixed;
  top: calc(62px + var(--safe-top));
  inset-inline-end: 16px;
  z-index: 90;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(93, 255, 138, 0.55);
  background: rgba(8, 16, 12, 0.9);
  color: #d9ffe8;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(73, 255, 106, 0.22);
}
.bn-glow-toggle[aria-pressed="false"] {
  border-color: rgba(246, 226, 168, 0.35);
  color: rgba(246, 226, 168, 0.72);
  box-shadow: none;
}
.chrome-tools .app-helper-help,
.chrome-tools .bn-glow-toggle {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;
  z-index: auto;
  flex: none;
  white-space: nowrap;
}
html.bn-glow-on .bn-active .neck-dot-plate {
  stroke: #7dffb0;
  stroke-width: 1.6px;
}
html.bn-glow-on .bn-leader { stroke: #9dffc0; }
html.bn-glow-on .bn-namebar-pill {
  border-color: #7dffb0;
  box-shadow: 0 0 10px rgba(93, 255, 138, 0.35);
}
html.bn-glow-off .bn-tab,
html.bn-glow-off .bn-trail,
html.bn-glow-off .bn-flash { display: none !important; }
.bn-trail { pointer-events: none; }
.bn-trail-wide { animation: bnTrailFadeWide 2.5s ease-out forwards; }
.bn-trail-core { animation: bnTrailFade 2.5s ease-out forwards; }
@keyframes bnTrailFadeWide {
  0% { opacity: 0.42; }
  60% { opacity: 0.28; }
  100% { opacity: 0; }
}
@keyframes bnTrailFade {
  0% { opacity: 0.95; }
  60% { opacity: 0.8; }
  100% { opacity: 0; }
}
html.bn-glow-on .bn-flash.is-hit {
  transform-box: fill-box;
  transform-origin: center;
  animation: bnFlash 0.48s ease-out;
}
@keyframes bnFlash {
  0% { opacity: 0.95; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.85); }
}
.bn-tab {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 8px 0 6px;
  padding: 8px 10px 6px;
  border-radius: 12px;
  background: #0c1210;
  border: 1px solid rgba(93, 255, 138, 0.28);
  box-shadow: 0 0 18px rgba(73, 255, 106, 0.08), inset 0 0 24px rgba(0, 0, 0, 0.35);
  color: #d7ffe4;
  font-family: Heebo, sans-serif;
}
.bn-tab-cap {
  font-size: 12px;
  font-weight: 700;
  color: #8dffb8;
  margin: 0 0 4px;
}
.bn-tab-body { display: flex; align-items: flex-start; min-width: 0; gap: 6px; }
.bn-tab-labs { position: relative; width: 36px; flex: 0 0 36px; height: 86px; }
.bn-tab-lab {
  position: absolute;
  inset-inline: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #d7ffe6;
  line-height: 1.05;
}
.bn-tab-lab i {
  display: block;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: rgba(180, 255, 210, 0.72);
}
.bn-tab-scroll {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
}
.bn-tab-track {
  position: relative;
  display: inline-block;
  min-width: 100%;
  height: 86px;
  vertical-align: top;
  background:
    linear-gradient(#1e4630, #1e4630) 0 8px / 100% 1px no-repeat,
    linear-gradient(#1e4630, #1e4630) 0 24px / 100% 1px no-repeat,
    linear-gradient(#1e4630, #1e4630) 0 40px / 100% 1px no-repeat,
    linear-gradient(#1e4630, #1e4630) 0 56px / 100% 1px no-repeat;
}
.bn-tab-cols { display: flex; height: 86px; }
.bn-tab-col { position: relative; width: 46px; flex: 0 0 46px; height: 86px; }
.bn-tab-fret {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 800;
  color: #f4fff8;
  text-shadow: 0 0 6px #49ff6a;
  line-height: 1;
}
.bn-tab-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #9dffc4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bn-tab-head {
  position: absolute;
  top: 2px;
  height: 62px;
  width: 2px;
  margin-left: -1px;
  background: #49ff6a;
  box-shadow: 0 0 8px #49ff6a, 0 0 16px rgba(73, 255, 106, 0.65);
  pointer-events: none;
  transition: left 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .bn-trail-wide,
  .bn-trail-core { animation: none; opacity: 0.8; }
  .bn-flash.is-hit { animation: none !important; opacity: 0.9; transform: none; }
  .bn-tab-head { transition: none; }
}
