/* ArchiFlow — кнопка «Отправить» в поле ввода помощника (composer-v13.js). Золото — как в skin-v13.css. */
.inputbar .af-send {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  margin: 0 -8px 2px -4px; /* по центру строки поля (align-items: flex-end), ближе к правому краю */
  border: 0; border-radius: 50%;
  background: var(--gold, #B8A77E); color: #19191b;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: filter .15s, transform .1s;
}
.inputbar .af-send[hidden] { display: none; }
.inputbar .af-send:hover { filter: brightness(1.08); }
.inputbar .af-send:active { transform: scale(.94); }
.inputbar .af-send:focus-visible { outline: 2px solid var(--gold-line, rgba(184,167,126,.55)); outline-offset: 2px; }
.inputbar .af-send:disabled { opacity: .6; cursor: default; }
.inputbar .af-send svg { display: block; }
/* На телефоне — палец: кнопка чуть крупнее */
@media (hover: none) and (pointer: coarse) {
  .inputbar .af-send { width: 36px; height: 36px; margin-bottom: 0; }
}

/* Индикатор записи диктовки (23.11.2026): кнопка микрофона пульсирует тёплым светом, рядом красная точка и таймер.
   --af-lvl (0..1) задаёт composer-v13.js по громкости голоса, если поток доступен. */
.inputbar button.mic.af-rec {
  position: relative; color: #F0A487; --af-lvl: 0;
  box-shadow: 0 0 calc(8px + 16px * var(--af-lvl)), inset 0 0 8px rgba(240,150,110,.25) rgba(240,150,110,calc(.55 + .4 * var(--af-lvl)));
  border-radius: 50%; background: rgba(232,160,110,.25);
}
.inputbar button.mic.af-rec::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(240,150,110,.7);
  animation: af-mic-ring 1.4s ease-out infinite;
}
@keyframes af-mic-ring { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.inputbar .af-rec-time {
  flex: 0 0 auto; align-self: center; margin-left: auto; margin-right: -8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-variant-numeric: tabular-nums; color: #F0A487; white-space: nowrap;
}
.inputbar .af-rec-time + button.mic { margin-left: 0; }
.inputbar .af-rec-time i { width: 7px; height: 7px; border-radius: 50%; background: #E5533D; animation: af-mic-dot 1.4s ease-in-out infinite; }
@keyframes af-mic-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .inputbar button.mic.af-rec::after { animation: none; transform: scale(1.35); opacity: .45; }
  .inputbar .af-rec-time i { animation: none; }
}
