/* «Сообщить об ошибке в тексте» (ADR-010, этап 4): плавающая кнопка, окно, тост. Подключает partials/typo. */
.typo-floating, .typo-modal, .typo-toast { font-family: 'Ubuntu', sans-serif; }
.typo-floating[hidden], .typo-modal[hidden], .typo-toast[hidden], .typo-error[hidden] { display: none !important; }

.typo-floating {
  position: fixed; z-index: 90; display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px;
  background: #705450; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25); cursor: pointer; user-select: none; -webkit-user-select: none;
}
.typo-floating:hover { background: #5c8a03; }
.typo-floating svg { width: 14px; height: 14px; flex: none; }

.typo-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.typo-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.typo-modal__card {
  position: relative; z-index: 1; width: 100%; max-width: 512px; background: #fff; color: #333;
  border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); overflow: hidden;
}
.typo-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #eee; background: #fafafa; }
.typo-modal__title { margin: 0; font-size: 16px; font-weight: 700; color: #705450; }
.typo-modal__close { padding: 6px; border: 0; border-radius: 8px; background: none; color: #888; cursor: pointer; line-height: 0; user-select: none; }
.typo-modal__close:hover { background: #eee; color: #333; }
.typo-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.typo-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: #888; user-select: none; }
.typo-context {
  max-height: 144px; overflow-y: auto; padding: 12px 14px; border: 1px solid #eee; border-radius: 12px;
  background: #f7f7f7; font-size: 14px; line-height: 1.5; color: #666; word-break: break-word;
}
.typo-context mark { padding: 0 4px; border-radius: 4px; background: rgba(192, 57, 43, .15); color: #c0392b; font-weight: 600; }
.typo-input {
  box-sizing: border-box; width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 12px; background: #fff;
  font: inherit; font-size: 14px; color: #333; resize: none;
}
.typo-input:focus { border-color: #5c8a03; box-shadow: 0 0 0 3px rgba(92, 138, 3, .2); }
.typo-hp { display: none; }
.typo-error { padding: 10px 14px; border: 1px solid rgba(192, 57, 43, .25); border-radius: 12px; background: rgba(192, 57, 43, .08); font-size: 12px; color: #c0392b; }
.typo-actions { display: flex; justify-content: flex-end; gap: 10px; }
.typo-btn { padding: 9px 16px; border: 0; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none; }
.typo-btn--cancel { background: #eee; color: #666; }
.typo-btn--cancel:hover { background: #e2e2e2; color: #333; }
.typo-btn--submit { background: #74b350; color: #fff; }
.typo-btn--submit:hover { background: #5c8a03; }
.typo-btn--submit:disabled { opacity: .6; cursor: not-allowed; }

.typo-toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 110; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 12px 16px; transform: translateX(-50%); border-radius: 12px;
  background: #333; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.typo-toast__icon { flex: none; width: 16px; height: 16px; color: #74b350; }
.typo-toast__icon--error { color: #e74c3c; }

/* Подсказка в подвале: на телефоне - про кнопку, на компьютере - про Ctrl+Enter */
.typo-hint { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: #999; }
.typo-hint__touch { display: none; }
@media (pointer: coarse) {
  .typo-hint__desktop { display: none; }
  .typo-hint__touch { display: inline; }
}
