:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7078;
  --line: #ddd8cc;
  --metal: linear-gradient(180deg, #e9ecef 0%, #c4c9cf 45%, #aab0b7 100%);
  --wood: #3b3f46;
  --blow: #e8742a;
  --blow-soft: #fbe3d2;
  --draw: #1f8f86;
  --draw-soft: #d3efec;
  --heard: #6a5acd;
  --scale: #e6e0ff;
  --ok: #2e9d4f;
  --bad: #d64545;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a;
    --card: #1f2226;
    --text: #e8e6e1;
    --muted: #9aa0a8;
    --line: #33373d;
    --metal: linear-gradient(180deg, #5d636b 0%, #454a51 45%, #383c42 100%);
    --wood: #0d0e10;
    --blow-soft: #4a2e1c;
    --draw-soft: #173c39;
    --heard: #9d8fff;
    --scale: #3a3360;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.top, .controls, main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 8px;
}
.top h1 { font-size: 1.4rem; margin: 0; }
.back { color: var(--muted); text-decoration: none; padding: 0 6px 0 0; }
.back:hover { color: var(--text); }
.pulse { animation: pulse 1.2s ease 3; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--blow); } 50% { box-shadow: 0 0 0 6px transparent; } }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding-bottom: 12px;
}
.controls label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: 4px; }
.controls .grow { flex: 1; min-width: 200px; }

select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
textarea { width: 100%; resize: vertical; font-family: ui-monospace, Consolas, monospace; }

.btn {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; border: 0; background: var(--card); color: var(--muted); padding: 8px 14px; cursor: pointer; }
.seg button.active { background: var(--text); color: var(--bg); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
details.card summary { cursor: pointer; font-weight: 600; }
.muted { color: var(--muted); font-size: .9rem; }
code { background: var(--bg); padding: 1px 5px; border-radius: 5px; }

/* Инструкция */
.instr-main { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 1.6rem; }
.instr-hole b { font-size: 2.6rem; }
.instr-note { color: var(--muted); font-size: 1.1rem; }
.dir-badge {
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--line);
  color: var(--text);
  font-size: 1.2rem;
}
.dir-badge.blow { background: var(--blow); color: #fff; }
.dir-badge.draw { background: var(--draw); color: #fff; }
.dir-badge.done { background: var(--ok); color: #fff; }
.hold { height: 8px; background: var(--bg); border-radius: 4px; margin: 12px 0 8px; overflow: hidden; }
.hold-fill { height: 100%; width: 0; background: var(--ok); transition: width .05s linear; }
.hint { min-height: 1.4em; color: var(--muted); }
.hint.bad { color: var(--bad); }
.hint.good { color: var(--ok); }
.instruction.flash { animation: flash .35s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--ok); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* Гармошка */
/* Гармошка всегда влезает в ширину экрана — без горизонтальной прокрутки. */
.harp-card { overflow: visible; }
.harp {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}
.hole { display: grid; grid-template-rows: 34px auto auto auto 34px; row-gap: 2px; text-align: center; }
.arrow { font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; border-radius: 8px; visibility: hidden; }
.arrow.up { align-self: end; }
.lbl { font-size: .8rem; color: var(--muted); padding: 3px 0; border-radius: 6px; }
.body {
  background: var(--metal);
  padding: 8px 0;
  border-radius: 6px;
  position: relative;
}
.slot {
  width: 60%;
  height: 26px;
  margin: 0 auto;
  background: var(--wood);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s, box-shadow .1s;
}
.hole.next .slot { box-shadow: 0 0 0 2px var(--muted); }
.hole.t-blow .arrow.blow, .hole.t-draw .arrow.draw { visibility: visible; }
.arrow.blow { background: var(--blow); color: #fff; }
.arrow.draw { background: var(--draw); color: #fff; }
.hole.t-blow .slot { background: var(--blow); box-shadow: 0 0 0 3px var(--blow-soft); }
.hole.t-draw .slot { background: var(--draw); box-shadow: 0 0 0 3px var(--draw-soft); }
.hole.t-blow .lbl.blow { background: var(--blow-soft); color: var(--text); font-weight: 700; }
.hole.t-draw .lbl.draw { background: var(--draw-soft); color: var(--text); font-weight: 700; }
.hole.h-blow .lbl.blow, .hole.h-draw .lbl.draw { outline: 2px solid var(--heard); color: var(--heard); font-weight: 700; }
.hole.h-blow .slot, .hole.h-draw .slot { outline: 3px solid var(--heard); outline-offset: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.sw.blow { background: var(--blow); }
.sw.draw { background: var(--draw); }
.sw.heardsw { background: transparent; outline: 2px solid var(--heard); }

/* Индикатор звука */
.meter { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.heard { min-width: 140px; }
.heard-note { font-size: 2.2rem; font-weight: 700; color: var(--heard); line-height: 1.1; }
.heard-sub { color: var(--muted); font-size: .9rem; }
.meter-right { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.cents-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.cents-bar { position: relative; height: 18px; background: var(--bg); border-radius: 9px; }
.cents-zone { position: absolute; top: 0; bottom: 0; background: var(--draw-soft); border-radius: 9px; }
.cents-needle { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; left: 50%; background: var(--heard); border-radius: 2px; transition: left .08s; visibility: hidden; }
.level-row { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.level { position: relative; flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.level-fill { height: 100%; width: 0; background: var(--muted); }
.level-gate { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); }

/* Табулатура */
.tab-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.progress-text { font-weight: 600; }
.stats { color: var(--muted); font-size: .9rem; }
.tab-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  min-width: 38px;
  padding: 6px 8px;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: ui-monospace, Consolas, monospace;
}
.chip.blow { background: var(--blow-soft); }
.chip.draw { background: var(--draw-soft); }
.chip.done { opacity: .45; }
.chip.missed { text-decoration: underline wavy var(--bad); }
.chip.current { border-color: var(--text); transform: scale(1.15); }
.bar { width: 2px; height: 26px; background: var(--line); margin: 0 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }

.result h2 { margin-top: 0; }
.range { display: block; margin: 12px 0; }
.range input { width: 100%; }

/* Режим (кнопка) и вид (какие карточки и движок сейчас работают). В «Занятии» вид задаёт упражнение. */
body:not(.view-player) .player-only { display: none; }
body:not(.view-player) #instruction .hold, body.view-player:not(.drive-wait) #instruction .hold { display: none; }
body:not(.drive-wait) .wait-only, body:not(.drive-clock) .clock-only { display: none; }
body:not(.view-bend) .bend-only { display: none; }
body:not(.view-free) .free-only { display: none; }
body:not(.view-tech) .tech-only { display: none; }
body:not(.mode-session) .session-only { display: none; }
body.mode-session .no-session, body.mode-session #bendPick { display: none; }

.modes .ic, .modes .short { display: none; }

/* Телефон: нижняя панель режимов, гармошка во всю ширину без прокрутки, компактные блоки. */
@media (max-width: 600px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .top { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 6px; }
  .top h1 { font-size: 1.05rem; }
  .top .btn { padding: 8px 12px; }
  .mic-label { display: none; }
  .controls { gap: 8px; padding-bottom: 8px; }
  .controls label { flex: 1; min-width: 0; }
  .controls .grow { min-width: 0; flex: 3; }
  .controls select { width: 100%; }

  .modes {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--card);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modes button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: .72rem; min-height: 56px; }
  .modes .ic { display: block; font-size: 1.3rem; line-height: 1; }
  .modes .long { display: none; }
  .modes .short { display: inline; }
  .modes button.active { background: var(--bg); color: var(--text); box-shadow: inset 0 3px 0 var(--text); }

  .card { padding: 12px; margin-bottom: 10px; }
  .instr-main { font-size: 1.15rem; gap: 8px; }
  .instr-hole b { font-size: 2rem; }
  .dir-badge { font-size: 1rem; padding: 5px 10px; }

  .harp-card { overflow: visible; }
  .harp { min-width: 0; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
  .hole { grid-template-rows: 26px auto auto auto 26px; }
  .arrow { font-size: 0; border-radius: 6px; }
  .arrow::before { font-size: .95rem; }
  .arrow.blow::before { content: '⬇'; }
  .arrow.draw::before { content: '⬆'; }
  .lbl { font-size: .62rem; padding: 2px 0; }
  .slot { width: 80%; height: 24px; font-size: .85rem; }
  .body { padding: 6px 0; }
  .legend { gap: 10px; font-size: .75rem; }

  .meter { gap: 10px; }
  .heard { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
  .heard-note { font-size: 1.6rem; }
  .heard-sub { font-size: .8rem; }
  .meter-right { min-width: 100%; }

  .btn { padding: 10px 14px; }
  .actions { gap: 6px; }
  .chip { min-width: 34px; padding: 6px 6px; }
  .bend-meter { width: 120px; }
  .bend-info { min-width: 0; }
  .rhythm-controls .tempo { min-width: 100%; }
  .jam-grid { gap: 4px; }
  .jam-cell { padding: 6px 2px; font-size: .9rem; }
}

/* Ритм */
.rhythm-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.player-bar { margin: 6px 0 10px; }
.tempo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.tempo input { flex: 1; }
.check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
[hidden] { display: none !important; }
.lane {
  position: relative;
  height: 74px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
}
.lane-inner { position: absolute; top: 0; bottom: 0; left: 0; will-change: transform; }
.playhead { position: absolute; top: 0; bottom: 0; left: 25%; width: 3px; margin-left: -1px; background: var(--text); opacity: .8; }
.lane-beat { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .6; }
.lane-bar { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--muted); opacity: .6; }
.lane-note {
  position: absolute;
  top: 14px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font: 700 .95rem ui-monospace, Consolas, monospace;
  color: #fff;
  border: 3px solid transparent;
  overflow: hidden;
  white-space: nowrap;
}
.lane-note.blow { background: var(--blow); }
.lane-note.draw { background: var(--draw); }
.lane-note.g-perfect { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.lane-note.g-early, .lane-note.g-late { border-color: #e0b400; }
.lane-note.g-wrong, .lane-note.g-miss { opacity: .35; border-color: var(--bad); }
.lane-note.g-done { opacity: .5; }
.lane-note .g { font: 600 .7rem system-ui, sans-serif; margin-left: 6px; opacity: .95; }
.lane-note.current { outline: 3px solid var(--text); outline-offset: 1px; }
.lane-count { position: absolute; top: 14px; height: 46px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); border-radius: 8px; color: var(--muted); font: 700 1.2rem system-ui, sans-serif; box-sizing: border-box; }
#gxLane .lane-count { top: 86px; }
.drive-wait .lane-note { cursor: pointer; }
#driveSeg button { padding: 8px 10px; font-size: .9rem; }
.rhythm-stats { margin-top: 10px; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rhythm-stats b.ok { color: var(--ok); }
.rhythm-stats b.warn { color: #c99a00; }
.rhythm-stats b.bad { color: var(--bad); }
.countin { font-size: 2.6rem; font-weight: 800; }

/* Бенды */
.bend-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bend-btn {
  font: 700 1rem ui-monospace, Consolas, monospace;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.bend-btn small { font: 600 .65rem system-ui, sans-serif; color: var(--ok); min-height: .9em; }
.bend-btn.draw { background: var(--draw-soft); }
.bend-btn.blow { background: var(--blow-soft); }
.bend-btn.active { border-color: var(--text); }
.bend-btn.mastered { box-shadow: inset 0 -3px 0 var(--ok); }
.bend-main { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.bend-meter {
  position: relative;
  width: 170px;
  flex: none;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
}
.bend-tick { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); display: flex; justify-content: space-between; padding: 2px 8px 0; font-size: .8rem; }
.bend-tick span { font: 700 .9rem ui-monospace, Consolas, monospace; }
.bend-tick em { font-style: normal; color: var(--muted); }
.bend-tick.target { border-top: 2px solid var(--ok); }
.bend-zone { position: absolute; left: 0; right: 0; background: var(--ok); opacity: .18; }
.bend-marker {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: var(--heard);
  visibility: hidden;
  transition: top .06s linear;
}
.bend-marker.hit { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.bend-info { flex: 1; min-width: 240px; }
.bend-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.bend-phase { font-size: 1.05rem; }
.bend-phase.good { color: var(--ok); font-weight: 600; }
.bend-now { min-height: 1.4em; color: var(--muted); }
.bend-reps { font-weight: 600; margin-top: 4px; }
.bend-tip { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* Блюз */
.jam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.jam-cell {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-weight: 700;
}
.jam-cell small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.jam-cell.current { border-color: var(--text); background: var(--card); }
.lbl.in-scale { background: var(--scale); color: var(--text); font-weight: 700; }
.lane-chord { position: absolute; top: 0; padding-left: 4px; font: 700 .7rem system-ui, sans-serif; color: var(--muted); }

/* Занятие */
.ls-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.ls-step { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ls-step input { width: 80px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
.ls-step-title { color: var(--muted); }
.ls-plan { margin: 10px 0; }
.ls-plan ol, .ls-segs { margin: 0; padding-left: 22px; }
.ls-plan li, .ls-segs li { margin: 2px 0; }
.ls-segs li.current { font-weight: 700; }
.ls-segs li.done { color: var(--muted); text-decoration: line-through; }
.ls-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ls-timer { font: 800 2rem ui-monospace, Consolas, monospace; }
.ls-timer.over { color: var(--bad); }
.ls-timeout { background: var(--blow-soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.ls-theory { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.ls-theory p { margin: 0 0 6px; }
.ls-theory p:last-child { margin-bottom: 0; }
/* Термины словаря: двойное подчёркивание, определение — во всплывашке по наведению или тапу. */
dfn.gl { font-style: inherit; text-decoration: underline double; text-decoration-color: var(--draw); text-underline-offset: 3px; cursor: help; }
dfn.gl.open { background: var(--draw-soft, rgba(31, 143, 134, .18)); border-radius: 3px; }
.gl-tip { position: absolute; z-index: 50; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.gl-tip b { color: var(--draw); }
/* Рекомендованные курсы: плашка в начале занятия. */
.rec-note { background: var(--bg); border-left: 3px solid var(--draw); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; font-size: .92rem; }
.rec-note a, .rec a { color: var(--draw); text-decoration: underline dotted; text-underline-offset: 3px; }
.rec-note a:hover, .rec a:hover { color: var(--blow); }
.ls-ex { margin-top: 12px; }
.ls-ex-title { font-size: 1.2rem; font-weight: 700; white-space: pre-line; }
.ls-ex-text { white-space: pre-line; }
.ls-ex-mount:not(:empty) { margin: 8px 0; }
#lsTransfer { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12px; word-break: break-all; }
.ls-ex-status { min-height: 1.4em; font-weight: 600; }
.ls-ex-status.good { color: var(--ok); }
.ls-ex-status.bad { color: var(--bad); }
.ls-next { font-size: 1.6rem; font-weight: 800; margin: 12px 0; }
.ls-program h4 { margin: 12px 0 4px; }
.ls-program ol { margin: 0; padding-left: 28px; }
.ls-program li { margin: 1px 0; font-size: .92rem; }
/* Ссылки на шаги: спокойный акцентный цвет вместо дефолтного синего, видимое подчёркивание и стрелка — чтобы было понятно, что это переход к шагу. */
.ls-program a, .ls-program a:visited { color: var(--draw); text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ls-program a::after { content: ' ›'; color: var(--muted); }
.ls-program a:hover { color: var(--blow); text-decoration-style: solid; }
.ls-program a:hover::after { color: var(--blow); }
.tag { display: inline-block; font-size: .72rem; padding: 1px 6px; border-radius: 6px; background: var(--bg); color: var(--muted); margin-left: 4px; }
.tag.hard { background: var(--blow-soft); color: var(--text); }
.tag.ok { color: var(--ok); }
.ls-done { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.hw-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.hw-item .grow { flex: 1; min-width: 180px; }
.hw-quiz { padding-top: 6px; border-top: 1px dashed var(--line); }
.hw-quiz .ls-ex-title { margin: 6px 0 10px; }
.res-list { margin: 0; padding-left: 20px; }
.res-list .ok { color: var(--ok); }
.res-list .bad { color: var(--bad); }

/* Приёмы */
.tech-status { min-height: 1.4em; font-weight: 600; margin-top: 6px; }
.tech-status.good { color: var(--ok); }
.tech-status.bad { color: var(--bad); }
.tv-big { font: 700 1.6rem ui-monospace, Consolas, monospace; margin: 6px 0 10px; }
.tv-level { position: relative; height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden; margin: 8px 0; }
.tv-fill { height: 100%; width: 0; background: var(--heard); }
.tv-mark { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--ok); left: -10px; }
.tv-mark.loud { background: var(--bad); }
.tv-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tv-dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.tv-dots span.on { background: var(--ok); border-color: var(--ok); }
.tv-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-notes span { padding: 6px 10px; border-radius: 8px; background: var(--bg); font-family: ui-monospace, Consolas, monospace; }
.tv-notes span:last-child { border: 2px solid var(--ok); }
.tv-notes span.on { background: var(--heard); color: #fff; }
@media (max-width: 600px) {
  .ls-timer { font-size: 1.5rem; }
}

/* Узкие окна (телефон, планшет, половина экрана): стрелки без слов, подписи мельче. */
@media (max-width: 760px) {
  .harp { gap: 2px; }
  .arrow { font-size: 0; border-radius: 6px; }
  .arrow::before { font-size: .95rem; }
  .arrow.blow::before { content: '⬇'; }
  .arrow.draw::before { content: '⬆'; }
  .lbl { font-size: .62rem; }
  .slot { width: 80%; }
}

/* Язык */
.top-right { display: flex; gap: 8px; align-items: center; }
.lang-sel { padding: 8px 6px; font-weight: 600; }
