  .msg-actions .msg-speak.speaking { color: var(--c); }
  /* --- слой 1: кольцо прогресса внутри кнопки --- */
  .msg-actions .msg-speak { position: relative; }
  .msg-speak .nt-ring { position: absolute; inset: 1px; transform: rotate(-90deg); pointer-events: none; }
  .msg-speak .nt-ring circle { fill: none; stroke-width: 2; }
  .msg-speak .nt-ring .rt { stroke: transparent; }
  .msg-speak .nt-ring .rh { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
  .msg-speak.busy .nt-ring .rt, .msg-speak.speaking .nt-ring .rt { stroke: var(--c); opacity: .22; }
  .msg-speak.busy .nt-ring { animation: nt-ring-spin 1.1s linear infinite; }
  @keyframes nt-ring-spin { to { transform: rotate(270deg); } }

  /* --- слой 2: рейка на говорящем ответе --- */
  /* Подсветка читаемого места. ::highlight рисует поверх текста и не
     трогает узлы — копирование, шеринг и правка продолжают работать. */
  ::highlight(nt-said) { background: color-mix(in srgb, var(--c) 26%, transparent); }
  .row.nt-speaking .bubble { position: relative; }
  .row.nt-speaking .bubble::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
    border-radius: 3px; background: var(--c);
    animation: nt-rail-in .28s ease both;
  }
  @keyframes nt-rail-in { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }

  /* --- слой 3: док над полем ввода --- */
  .nt-dock {
    position: relative;
    display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
    margin: 0 0 8px; padding: 6px 7px 6px 6px; border-radius: 14px;
    background: var(--bg-soft); border: 1px solid var(--border);
    animation: nt-dock-in .22s ease both;
  }
  @keyframes nt-dock-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  /* 🔴 display:grid выше по силе, чем [hidden] из таблицы браузера, поэтому
     без этой строки док виден всегда. Проверено на живой странице. */
  .nt-dock[hidden] { display: none; }
  .nt-dock button { border: 0; cursor: pointer; padding: 0; font: inherit; }
  .nt-dock .nt-play {
    width: 40px; height: 40px; border-radius: 11px; background: var(--c); color: #fff;
    display: grid; place-items: center;
  }
  .nt-dock .nt-play svg { width: 16px; height: 16px; fill: currentColor; }
  .nt-dock .nt-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .nt-dock .nt-time {
    font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
  }
  .nt-wave { display: flex; align-items: flex-end; gap: 2px; height: 16px; cursor: pointer; }
  .nt-wave i {
    flex: 1; border-radius: 1px; background: var(--c); opacity: .3;
    transition: opacity .15s ease;
  }
  .nt-wave i.past { opacity: 1; }
  .nt-dock .nt-tail { display: flex; align-items: center; gap: 4px; }
  .nt-dock .nt-who {
    background: var(--bg-hover); color: var(--text-2);
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  }
  .nt-dock .nt-who:hover { color: var(--text); }
  .nt-dock .nt-who svg { width: 16px; height: 16px; }
  .nt-dock .nt-who.on { background: var(--c); color: #fff; }

  /* Список голосов. Всплывает НАД доком, поэтому не двигает ни поток, ни ввод. */
  .nt-voices {
    position: absolute; bottom: 100%; right: 8px; margin-bottom: 8px; z-index: 40;
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.28); padding: 6px; min-width: 190px;
    max-height: 46vh; overflow-y: auto;
  }
  .nt-voices .vgroup {
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-3); padding: 8px 10px 4px;
  }
  .nt-voices button {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    background: none; border: 0; color: var(--text); font: inherit; font-size: 14px;
    padding: 9px 10px; border-radius: 9px; cursor: pointer;
  }
  .nt-voices button:hover { background: var(--bg-hover); }
  .nt-voices button.cur { color: var(--c); font-weight: 600; }
  .nt-voices button .hz { margin-left: auto; font-size: 11px; color: var(--text-3);
                          font-variant-numeric: tabular-nums; }
  /* Палец: на узком экране строки списка выше. */
  @media (max-width: 480px) {
    .nt-voices { right: 4px; left: 4px; min-width: 0; }
    .nt-voices button { padding: 12px 10px; }
    .nt-dock .nt-who { width: 44px; height: 44px; }
  }
  .nt-dock .nt-rate {
    background: var(--bg-hover); color: var(--text-2); border-radius: 8px;
    padding: 6px 8px; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 42px;
  }
  .nt-dock .nt-x {
    background: none; color: var(--text-3); width: 34px; height: 34px;
    border-radius: 9px; display: grid; place-items: center;
  }
  .nt-dock .nt-x:hover { color: var(--text); background: var(--bg-hover); }
  .nt-dock .nt-x svg { width: 15px; height: 15px; }
  .nt-dock button:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

  /* Палец: на узком экране цели растут, значки остаются прежними. */
  @media (max-width: 480px) {
    .nt-dock .nt-x { width: 44px; height: 44px; }
    .nt-dock .nt-rate { padding: 10px 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nt-dock, .row.nt-speaking .bubble::before { animation: none; }
    .msg-speak.busy .nt-ring { animation: none; }
    .msg-speak .nt-ring .rh { transition: none; }
  }
