/* Правка слога текста в окне правки ноты (static/syltext.js) */

/* «Слог [зна ✎] · строка 14»: слог — кнопка с пунктирной рамкой, видно, что его можно поправить */
.np-head .st-syl {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 1px; padding: 1px 7px 2px;
  border: 1px dashed var(--border-2); border-radius: 7px; background: transparent; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: text; vertical-align: baseline;
  transition: background-color .12s ease, border-color .12s ease;
}
.np-head .st-syl svg {
  width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; opacity: .55;
}
@media (hover: hover) {
  .np-head .st-syl:hover { border-style: solid; background: var(--glass); }
  .np-head .st-syl:hover svg { opacity: .9; }
}
.np-head .st-syl:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.np-head .st-syl:active { background: var(--glass-2); }

/* поле вместо заголовка */
.note-pop .st-form { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.note-pop .st-input {
  /* width: 0 — Safari иначе берёт ширину поля по умолчанию, и «✓ ✕» вылезают за край окна */
  flex: 1 1 0; width: 0; min-width: 0; height: 36px; box-sizing: border-box; padding: 0 10px;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; /* 16px — iPhone не увеличивает страницу */
  text-align: center;
}
.note-pop .st-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--glass-2); }
.note-pop .st-form .btn.small { height: 36px; min-width: 36px; padding: 0 10px; font-size: 15px; }

/* «В тексте было «зна» · вернуть» */
.note-pop .st-was b { color: var(--text); font-weight: 600; }
.note-pop .st-link {
  padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px;
}
@media (hover: hover) { .note-pop .st-link:hover { text-decoration-color: currentColor; } }
