.model-note {
  margin: 10px 0 0 50px;
  color: #817983;
  font-size: .66rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .model-note { margin-left: 0; }
}

body.recording-open { overflow: hidden; }

.recording-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(24 20 29 / 74%);
  backdrop-filter: blur(10px);
  animation: recording-overlay-in .2s ease-out both;
}

.recording-overlay[hidden] { display: none; }

.recording-panel {
  width: min(430px, 100%);
  padding: 34px 34px 30px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 28px;
  color: #fdf8f0;
  text-align: center;
  background: #292431;
  box-shadow: 0 28px 80px rgb(0 0 0 / 38%);
  animation: recording-panel-in .32s cubic-bezier(.2,.8,.2,1) both;
}

.recording-eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #c9c0cb;
  font: 700 .68rem/1.2 system-ui, sans-serif;
  letter-spacing: .16em;
}

.recording-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7665;
}

.recording-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: #292431;
  background: #ffbc58;
  box-shadow: 0 0 0 12px rgb(255 188 88 / 12%);
}

.recording-orb::before,
.recording-orb::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 2px solid #ff7665;
  border-radius: inherit;
  opacity: 0;
}

.recording-orb span { font: 800 2.6rem/1 system-ui, sans-serif; }

.recording-overlay.is-live .recording-orb {
  color: #fff;
  background: #f45f54;
  box-shadow: 0 0 0 12px rgb(244 95 84 / 12%);
}

.recording-overlay.is-live .recording-orb span { font-size: 0; }
.recording-overlay.is-live .recording-orb span::after { content: ''; display: block; width: 30px; height: 30px; border-radius: 50%; background: currentColor; }
.recording-overlay.is-live .recording-orb::before { animation: recording-pulse 1.6s ease-out infinite; }
.recording-overlay.is-live .recording-orb::after { animation: recording-pulse 1.6s .8s ease-out infinite; }

.recording-panel h2 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1.05; letter-spacing: -.035em; }
.recording-panel > p:not(.recording-eyebrow) { max-width: 320px; margin: 12px auto 0; color: #c9c0cb; line-height: 1.55; }

.recording-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin: 18px 0 2px;
}

.recording-level i { width: 5px; height: 6px; border-radius: 10px; background: #ffbc58; transform-origin: center; }
.recording-overlay.is-live .recording-level i { animation: recording-level .72s ease-in-out infinite alternate; }
.recording-overlay.is-live .recording-level i:nth-child(2), .recording-overlay.is-live .recording-level i:nth-child(6) { animation-delay: -.21s; }
.recording-overlay.is-live .recording-level i:nth-child(3), .recording-overlay.is-live .recording-level i:nth-child(5) { animation-delay: -.43s; }
.recording-overlay.is-live .recording-level i:nth-child(4) { animation-delay: -.58s; }

#recording-time { display: block; margin-bottom: 22px; color: #fff; font: 700 1.08rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }

#recording-stop {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #292431;
  background: #fdf8f0;
  font: 800 .9rem/1 system-ui, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

#recording-stop:hover { transform: translateY(-2px); background: #fff; }
.recording-overlay.is-live #recording-stop { color: #fff; background: #f45f54; }
.recording-panel small { display: block; margin-top: 14px; color: #918894; font-size: .68rem; }

@keyframes recording-overlay-in { from { opacity: 0; } }
@keyframes recording-panel-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes recording-pulse { 0% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes recording-level { from { height: 7px; } to { height: 38px; } }

@media (max-width: 600px) {
  .recording-panel { padding: 28px 22px 24px; border-radius: 24px; }
  .recording-orb { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .recording-overlay, .recording-panel, .recording-overlay.is-live .recording-orb::before, .recording-overlay.is-live .recording-orb::after, .recording-overlay.is-live .recording-level i { animation: none; }
}

.orbit-spark {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 30px currentColor;
  animation: orbit-spark-float 3.8s ease-in-out infinite;
}

.spark-one { left: 3%; top: 30%; color: #b9e58c; background: currentColor; }
.spark-two { right: 2%; bottom: 26%; color: #f4755d; background: currentColor; animation-delay: -1.9s; }

.voice-motion {
  --voice-energy: .2;
  --voice-color: #ffbc58;
  position: absolute;
  left: 50%;
  top: 116px;
  z-index: 2;
  width: 176px;
  height: 176px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: filter .3s ease;
}

.voice-motion > b {
  position: absolute;
  inset: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff 0 5%, var(--voice-color) 18%, #f4755d 72%);
  box-shadow: 0 0 32px color-mix(in srgb, var(--voice-color) 52%, transparent);
  animation: voice-idle 3s ease-in-out infinite;
  transition: inset .25s ease, background .25s ease;
}

.motion-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--voice-color) 55%, transparent);
  border-radius: 50%;
  opacity: .28;
}

.motion-ring-one { inset: 28px; }
.motion-ring-two { inset: 8px; opacity: .14; }

.motion-bars {
  position: absolute;
  inset: auto 0 -24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 35px;
  opacity: .32;
  transition: opacity .2s ease;
}

.motion-bars i { width: 4px; height: 5px; border-radius: 8px; background: var(--voice-color); }

.voice-motion.voice-a { --voice-color: #f4755d; }
.voice-motion.voice-b { --voice-color: #8ccf68; }
.voice-motion.active { filter: saturate(1.18); }
.voice-motion.active > b { inset: calc(49px - var(--voice-energy) * 8px); animation: voice-core .48s ease-in-out infinite alternate; }
.voice-motion.active .motion-ring-one { animation: voice-ripple 1.15s ease-out infinite; }
.voice-motion.active .motion-ring-two { animation: voice-ripple 1.15s .48s ease-out infinite; }
.voice-motion.active .motion-bars { opacity: 1; }
.voice-motion.active .motion-bars i { animation: voice-bar .54s ease-in-out infinite alternate; }
.voice-motion.active .motion-bars i:nth-child(2), .voice-motion.active .motion-bars i:nth-child(6) { animation-delay: -.16s; }
.voice-motion.active .motion-bars i:nth-child(3), .voice-motion.active .motion-bars i:nth-child(5) { animation-delay: -.34s; }
.voice-motion.active .motion-bars i:nth-child(4) { animation-delay: -.48s; }

@keyframes orbit-spark-float { 50% { transform: translateY(-12px) scale(1.2); opacity: .62; } }
@keyframes voice-idle { 50% { transform: scale(1.12); opacity: .72; } }
@keyframes voice-core { to { transform: scale(calc(1.02 + var(--voice-energy) * .16)); } }
@keyframes voice-ripple { 0% { opacity: .55; transform: scale(.72); } 100% { opacity: 0; transform: scale(calc(1.05 + var(--voice-energy) * .28)); } }
@keyframes voice-bar { from { height: 5px; } to { height: calc(12px + var(--voice-energy) * 22px); } }

@media (max-width: 600px) {
  .voice-motion { top: 96px; width: 146px; height: 146px; }
  .voice-motion > b { inset: 46px; }
  .motion-ring-one { inset: 23px; }
  .motion-ring-two { inset: 7px; }
  .voice-motion.active > b { inset: calc(41px - var(--voice-energy) * 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-spark, .voice-motion > b, .voice-motion.active > b, .voice-motion.active .motion-ring-one, .voice-motion.active .motion-ring-two, .voice-motion.active .motion-bars i { animation: none; }
}
