/* All rules are scoped to existing controls. No page dimensions or layout rules. */
@property --mtc-sl-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes mtc-sl-orbit { to { --mtc-sl-angle: 360deg; } }
.console.mtc-sl-searching .input-row,
.console.mtc-sl-searching .mtc-mode[aria-pressed="true"] { position: relative; }
.console.mtc-sl-searching .input-row::after,
.console.mtc-sl-searching .mtc-mode[aria-pressed="true"]::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 3px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--mtc-sl-angle), #254b91, #3982ff 90deg, #a6d3ff 145deg, #fff 175deg, #6594ff 205deg, #254b91 260deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: mtc-sl-orbit 1.3s linear infinite !important;
}
.console.mtc-sl-searching .input-row { box-shadow: 0 0 18px #498cff88 !important; }
.console.mtc-sl-searching .mtc-mode[aria-pressed="true"] { box-shadow: 0 0 16px #6aa7ff99 !important; }
/* Replace the earlier light on the submit button without changing its size. */
.console.mtc-sl-searching .input-row #send:disabled {
  animation: none !important; background: #82b1ff !important;
  color: #081b38 !important; border-color: #82b1ff !important;
  box-shadow: none !important; opacity: .75 !important;
}
@keyframes mtc-sl-mic {
  0%,100% { box-shadow: 0 0 0 1px #94c0ff, 0 0 6px #438dff66; }
  50% { box-shadow: 0 0 0 3px #c2dfff, 0 0 22px #619fff; }
}
.console .input-row #voice.mtc-sl-listening {
  background: #2058ac !important; color: #fff !important;
  animation: mtc-sl-mic 1.25s ease-in-out infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  .console.mtc-sl-searching .input-row::after,
  .console.mtc-sl-searching .mtc-mode[aria-pressed="true"]::after {
    animation: none !important; background: #c2dfff;
  }
  .console .input-row #voice.mtc-sl-listening {
    animation: none !important; box-shadow: 0 0 0 2px #c2dfff, 0 0 10px #619fff;
  }
}
