/* --------------------------------------------------------------------------
   Theme variables
   Light mode keeps the original Audience Frontend appearance.
   Dark mode changes values only; the selectors/layout below stay shared.
   -------------------------------------------------------------------------- */
:root,
html[data-theme="light"] {
  --page: #eef6fb;
  --page-deep: #e5f0f8;
  --surface: #eef6fb;
  --surface-hi: #fbfdff;
  --surface-low: #d8e5ef;
  --ink: #2e3744;
  --muted: #8a9bab;
  --blue: #2f67d9;
  --wave: #211b62;
  --record: #ff5258;
  --success: #3ebd86;
  --warning: #f0b446;
  --danger: #ff555b;
  --shadow-dark: rgba(171, 191, 208, .46);
  --shadow-light: rgba(255, 255, 255, .96);

  --body-glow: rgba(255,255,255,.58);
  --body-gradient-top: #edf6fb;
  --body-gradient-mid: #eef6fb;
  --body-gradient-bottom: #e9f3fa;
  --focus-ring: rgba(47,103,217,.22);
  --heading: #303844;
  --inbox-label: #92a1ae;
  --raised-start: #f8fcff;
  --raised-end: #e4eef6;
  --raised-inset: rgba(255,255,255,.72);
  --mic-stroke: #edf5fa;
  --timer-highlight: rgba(255,255,255,.46);
  --control-ink: #344352;
  --play-ink: #2c3950;
  --play-bg: rgba(238,246,251,.94);
  --play-shadow-dark: rgba(170,190,207,.50);
  --play-shadow-light: rgba(255,255,255,.98);
  --pressed-shadow-dark: rgba(176,194,209,.38);
  --pressed-shadow-light: rgba(255,255,255,.88);
  --hint: #9aa9b6;
  --button-shadow-dark: rgba(171,191,208,.50);
  --button-shadow-light: rgba(255,255,255,.98);
  --button-inset: rgba(255,255,255,.70);
  --button-pressed-dark: rgba(171,191,208,.39);
  --button-pressed-light: rgba(255,255,255,.90);
  --record-ring: rgba(255,82,88,.055);
  --toast-ink: #34404d;
  --toast-bg: rgba(247,251,254,.95);
  --toast-shadow-dark: rgba(162,184,202,.34);
  --toast-shadow-light: rgba(255,255,255,.84);
  --backdrop: rgba(222,234,243,.62);
  --card-border: rgba(255,255,255,.62);
  --card-bg: rgba(239,247,252,.97);
  --card-shadow-dark: rgba(158,181,200,.34);
  --card-shadow-light: rgba(255,255,255,.86);
  --icon-start: #f9fcff;
  --icon-end: #e4eef6;
  --icon-shadow-dark: rgba(171,191,208,.47);
  --icon-shadow-light: rgba(255,255,255,.96);
  --modal-heading: #303a46;
  --modal-copy: #7f909f;
  --secondary-ink: #637383;
  --secondary-bg: #e9f2f8;
  --primary-shadow: rgba(47,103,217,.20);
  --auth-backdrop: rgba(228,240,248,.66);
  --auth-border: rgba(255,255,255,.72);
  --auth-panel: rgba(238,246,251,.94);
  --auth-shadow-light: rgba(255,255,255,.72);
  --auth-shadow-dark: rgba(168,190,207,.42);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #111820;
  --page-deep: #0c131a;
  --surface: #151e27;
  --surface-hi: #1d2833;
  --surface-low: #0c1218;
  --ink: #e7edf3;
  --muted: #8e9eac;
  --blue: #6f9dff;
  --wave: #aaa2ff;
  --record: #ff6268;
  --success: #50c996;
  --warning: #f0b94f;
  --danger: #ff686e;
  --shadow-dark: rgba(0,0,0,.46);
  --shadow-light: rgba(52,70,84,.22);

  --body-glow: rgba(80,108,130,.10);
  --body-gradient-top: #121a22;
  --body-gradient-mid: #111820;
  --body-gradient-bottom: #0e161d;
  --focus-ring: rgba(111,157,255,.34);
  --heading: #e8edf2;
  --inbox-label: #8293a2;
  --raised-start: #1b2630;
  --raised-end: #111920;
  --raised-inset: rgba(255,255,255,.035);
  --mic-stroke: #263541;
  --timer-highlight: rgba(0,0,0,.42);
  --control-ink: #d8e2ea;
  --play-ink: #dce6ef;
  --play-bg: rgba(21,30,39,.95);
  --play-shadow-dark: rgba(0,0,0,.44);
  --play-shadow-light: rgba(52,70,84,.16);
  --pressed-shadow-dark: rgba(0,0,0,.38);
  --pressed-shadow-light: rgba(55,74,89,.16);
  --hint: #7f909f;
  --button-shadow-dark: rgba(0,0,0,.46);
  --button-shadow-light: rgba(52,70,84,.17);
  --button-inset: rgba(255,255,255,.035);
  --button-pressed-dark: rgba(0,0,0,.40);
  --button-pressed-light: rgba(54,73,88,.16);
  --record-ring: rgba(255,98,104,.075);
  --toast-ink: #dce5ec;
  --toast-bg: rgba(22,31,40,.96);
  --toast-shadow-dark: rgba(0,0,0,.36);
  --toast-shadow-light: rgba(52,70,84,.13);
  --backdrop: rgba(5,10,14,.68);
  --card-border: rgba(255,255,255,.055);
  --card-bg: rgba(20,29,38,.98);
  --card-shadow-dark: rgba(0,0,0,.44);
  --card-shadow-light: rgba(52,70,84,.10);
  --icon-start: #1b2630;
  --icon-end: #111920;
  --icon-shadow-dark: rgba(0,0,0,.42);
  --icon-shadow-light: rgba(52,70,84,.15);
  --modal-heading: #e6ecf1;
  --modal-copy: #8c9caa;
  --secondary-ink: #b4c0ca;
  --secondary-bg: #1a252e;
  --primary-shadow: rgba(55,105,210,.18);
  --auth-backdrop: rgba(6,12,17,.70);
  --auth-border: rgba(255,255,255,.055);
  --auth-panel: rgba(19,28,36,.96);
  --auth-shadow-light: rgba(52,70,84,.10);
  --auth-shadow-dark: rgba(0,0,0,.44);
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--page);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, var(--body-glow), transparent 34rem),
    linear-gradient(180deg, var(--body-gradient-top) 0%, var(--body-gradient-mid) 46%, var(--body-gradient-bottom) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 5px;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vh, 52px) 22px;
}

.recorder {
  width: min(92vw, 510px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.recorder-header {
    width: 100%;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: clamp(22px, 3vh, 34px);
}

.recorder-header .heading {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 0;
}

.heading h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(22px, 3.2vw, 27px);
  line-height: 1.1;
  letter-spacing: -.055em;
  font-weight: 690;
  white-space: nowrap;
}
.heading #pageTitle{
    font-size:12px;
    font-weight: 300;
}
.inbox-label {
  margin: 8px 0 0;
  color: var(--inbox-label);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .02em;
}

.brand-slot {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--raised-start), var(--raised-end));
  box-shadow:
    8px 8px 17px var(--shadow-dark),
    -8px -8px 17px var(--shadow-light),
    inset 1px 1px 1px var(--raised-inset);
}

.brand-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* AirVoice brand */
.airvoice-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.airvoice-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 19px;
  line-height: 1;
  font-weight: 580;
  letter-spacing: -0.035em;
}

.airvoice-air {
  color: var(--ink);
}

.airvoice-voice {
  color: var(--blue);
}

.microphone-stage {
  width: 100%;
  height: clamp(248px, 37vh, 318px);
  display: grid;
  place-items: center;
  user-select: none;
}

.microphone {
  width: clamp(182px, 40vw, 226px);
  height: auto;
  overflow: visible;
}

.mic-capsule,
.mic-yoke,
.mic-stem,
.mic-foot {
  fill: none;
  stroke: var(--mic-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mic-capsule {
  stroke-width: 11;
}

.mic-yoke {
  stroke-width: 7;
}

.mic-stem,
.mic-foot {
  stroke-width: 7;
}

.voice-level-fill {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition:
    y 90ms linear,
    height 90ms linear,
    opacity 160ms ease;
  opacity: .88;
}

.timer {
  margin-top: -3px;
  color: var(--blue);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(48px, 10.5vw, 64px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  transform: scaleX(.88);
  transform-origin: center;
  text-shadow: 0 1px 0 var(--timer-highlight);
}

.wave-area {
  width: 100%;
  margin-top: clamp(29px, 4vh, 40px);
}

.wave-track {
  width: 100%;
  height: 108px;
  position: relative;
  display: grid;
  place-items: center;
}

#waveCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-play {
  width: 56px;
  height: 56px;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--play-ink);
  cursor: pointer;
  background: var(--auth-panel);
  box-shadow:
    8px 8px 18px var(--play-shadow-dark),
    -8px -8px 18px var(--play-shadow-light);
  backdrop-filter: blur(4px);
  transition: transform .16s ease, box-shadow .16s ease;
}

.wave-play:hover {
  transform: translate(-50%, -50%) scale(1.035);
}

.wave-play:active {
  transform: translate(-50%, -50%) scale(.98);
  box-shadow:
    inset 5px 5px 11px var(--pressed-shadow-dark),
    inset -5px -5px 11px var(--pressed-shadow-light);
}

.wave-play[hidden] {
  display: none;
}

.wave-icon {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.wave-icon--pause {
  display: none;
}

.wave-play.is-playing .wave-icon--play {
  display: none;
}

.wave-play.is-playing .wave-icon--pause {
  display: block;
}

.recording-hint {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--hint);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.controls {
  width: min(100%, 360px);
  margin-top: clamp(26px, 4vh, 38px);
  display: grid;
  grid-template-columns: 1fr 1.28fr 1fr;
  align-items: center;
  justify-items: center;
}

.soft-button {
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--control-ink);
  cursor: pointer;
  background: linear-gradient(145deg, var(--raised-start), var(--raised-end));
  box-shadow:
    9px 9px 19px var(--button-shadow-dark),
    -9px -9px 19px var(--button-shadow-light),
    inset 1px 1px 1px var(--button-inset);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.soft-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.soft-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow:
    inset 6px 6px 13px var(--button-pressed-dark),
    inset -6px -6px 13px var(--button-pressed-light);
}

.soft-button:disabled {
  opacity: .38;
  cursor: default;
}

.soft-button--side {
  width: 64px;
  height: 64px;
}

.soft-button--side svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soft-button--record {
  width: 84px;
  height: 84px;
}

.record-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--record);
  box-shadow: 0 0 0 8px var(--record-ring);
}

.stop-square {
  display: none;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  background: var(--record);
  box-shadow: 0 0 0 8px var(--record-ring);
}

.soft-button--record.state-recording .record-dot {
  display: none;
}

.soft-button--record.state-recording .stop-square {
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translate(-50%, 22px);
  max-width: min(88vw, 430px);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--toast-ink);
  background: var(--toast-bg);
  box-shadow:
    8px 8px 18px var(--toast-shadow-dark),
    -6px -6px 16px var(--toast-shadow-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 13px;
  text-align: center;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--backdrop);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-card {
  width: min(92vw, 390px);
  padding: 29px 27px 25px;
  border: 1px solid var(--card-border);
  border-radius: 30px;
  text-align: center;
  background: var(--card-bg);
  box-shadow:
    20px 20px 42px var(--card-shadow-dark),
    -16px -16px 34px var(--card-shadow-light);
}

.confirm-icon,
.result-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(145deg, var(--icon-start), var(--icon-end));
  box-shadow:
    8px 8px 17px var(--icon-shadow-dark),
    -8px -8px 17px var(--icon-shadow-dark);
}

.confirm-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirm-card h2 {
  margin: 0;
  color: var(--modal-heading);
  font-size: 22px;
  letter-spacing: -.03em;
}

.confirm-card p {
  margin: 12px auto 0;
  max-width: 31ch;
  color: var(--modal-copy);
  font-size: 13px;
  line-height: 1.55;
}

.confirm-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-actions--single {
  grid-template-columns: 1fr;
}

.modal-button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .15s ease, opacity .15s ease;
}

.modal-button:active {
  transform: translateY(1px);
}

.modal-button--secondary {
  color: var(--secondary-ink);
  background: var(--secondary-bg);
}

.modal-button--primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 20px var(--primary-shadow);
}

.result-icon::before {
  content: "";
  width: 20px;
  height: 11px;
  border-left: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(-45deg) translate(1px, -2px);
}

.result-card.is-error .result-icon::before {
  width: 23px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: var(--danger);
  box-shadow: none;
  transform: rotate(45deg);
}

.result-card.is-error .result-icon::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 3px;
  border-radius: 3px;
  background: var(--danger);
  transform: rotate(-45deg);
}

.result-icon {
  position: relative;
}

@media (max-height: 760px) {
  .page-shell {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .recorder-header {
    margin-bottom: 10px;
  }

  .microphone-stage {
    height: 225px;
  }

  .microphone {
    width: 176px;
  }

  .wave-area {
    margin-top: 18px;
  }

  .controls {
    margin-top: 20px;
  }
}

@media (max-width: 420px) {
  .recorder {
    width: min(94vw, 510px);
  }

  .recorder-header {
    grid-template-columns: 54px 1fr 54px;
    gap: 10px;
  }

  .brand-slot {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .heading h1 {
    font-size: 21px;
  }

  .inbox-label {
    font-size: 11px;
  }

  .soft-button--side {
    width: 59px;
    height: 59px;
  }

  .soft-button--record {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}


/* --------------------------------------------------------------------------
   Authentication overlay
   -------------------------------------------------------------------------- */
.auth-overlay[hidden] {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--auth-backdrop);
  -webkit-backdrop-filter: blur(9px) saturate(.92);
  backdrop-filter: blur(9px) saturate(.92);
}

.auth-overlay-panel {
  width: min(92vw, 520px);
  padding: 24px;
  border: 1px solid var(--auth-shadow-light);
  border-radius: 24px;
  background: var(--auth-panel);
  box-shadow:
    -12px -12px 28px var(--auth-shadow-light),
    14px 16px 34px var(--auth-shadow-dark);
}

.auth-overlay-copy {
  margin-bottom: 16px;
  text-align: center;
}

.auth-overlay-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.auth-overlay-copy p {
  margin: 8px auto 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-slot {
  display: flex;
  justify-content: center;
}

.auth-slot .vl-auth-card {
  width: 100%;
}

.recorder.is-auth-locked {
  user-select: none;
}

@media (max-width: 520px) {
  .auth-overlay {
    padding: 16px;
  }

  .auth-overlay-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .auth-slot .vl-auth-card {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-slot .vl-auth-connect,
  .auth-slot .vl-auth-logout {
    justify-content: center;
    width: 100%;
  }
}
/* footer */

.airinbox-powered {
    position:relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 32px;

    font-family: inherit;
    font-size: 11px;
    color: #8d9ab3;
   
   cursor: pointer;
   user-select: none;
   -webkit-user-select: none;
}

.airinbox-line {
    
}

.airinbox-powered-text {
    font-weight: 400;
}

.airinbox-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.airinbox-brand span {
    color: #3568e8;
}


/* AirVoice welcome / unavailable panels. Recorder geometry is unchanged. */
.recorder[hidden], .av-state-panel[hidden] { display: none !important; }
.av-state-panel {
  width: min(92vw, 510px);
  min-height: min(690px, 82vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: av-panel-enter .48s ease-out both;
}
@keyframes av-panel-enter { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
.av-state-header { width: 100%; }
.av-state-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.av-state-content { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 0 28px; text-align: center; }
.av-state-content h1 { margin: 0; color: var(--heading); font-size: clamp(27px, 5vw, 36px); font-weight: 700; letter-spacing: -.045em; line-height: 1.18; }
.av-state-description { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.av-state-footer { padding-top: 16px; color: var(--muted); font-size: 12px; }
.av-state-footer a { margin-left: 5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.av-state-footer a span { color: var(--blue); }
.av-primary-link, .av-secondary-link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 49px; padding: 0 24px; border-radius: 10px; font-size: 14px; font-weight: 650; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.av-primary-link:hover, .av-secondary-link:hover { transform: translateY(-2px); }
.av-primary-link { margin-top: 13px; background: linear-gradient(110deg, #276de0, #695de1); color: #fff; box-shadow: 0 12px 27px rgba(54,99,203,.22); }
.av-secondary-link { color: var(--blue); background: var(--surface); border: 1px solid var(--card-border); box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light); }
.av-welcome-orbit { position: relative; width: 124px; height: 124px; display: grid; place-items: center; color: #42a9f5; background: radial-gradient(circle, rgba(46,109,217,.14), transparent 70%); }
.av-welcome-orbit svg { position: relative; z-index: 1; width: 67px; height: 67px; filter: drop-shadow(0 0 11px rgba(47,121,232,.20)); }
.av-orbit-ring { position: absolute; inset: 9px; border: 1px solid rgba(49,120,230,.35); border-radius: 50%; box-shadow: 0 0 25px rgba(58,118,243,.09); }
.av-welcome .av-state-content h1 span { background: linear-gradient(90deg,#19c8ed,#5099f5,#9468e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-eyebrow { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .27em; font-weight: 700; }
.av-error-symbol { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: linear-gradient(145deg, var(--raised-start), var(--raised-end)); box-shadow: 9px 9px 20px var(--shadow-dark), -9px -9px 20px var(--shadow-light); }
.av-error-symbol svg { width: 68px; height: 68px; }
.av-search { width: min(100%, 365px); margin-top: 8px; text-align: left; }
.av-search label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 650; color: var(--ink); }
.av-search-row { display: flex; align-items: center; gap: 8px; }
.av-search-row input { min-width: 0; flex: 1; height: 49px; padding: 0 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--card-border); border-radius: 9px; font: inherit; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; outline: none; box-shadow: inset 3px 3px 7px var(--shadow-dark), inset -3px -3px 7px var(--shadow-light); user-select: text; -webkit-user-select: text; }
.av-search-row input:focus { border-color: var(--blue); }
.av-search-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.av-search-row button { flex: 0 0 49px; height: 49px; display: grid; place-items: center; background: var(--blue); color: #fff; border: 0; border-radius: 9px; cursor: pointer; }
.av-search-row button svg { width: 22px; height: 22px; }
.av-search-hint { min-height: 18px; margin: 9px 2px 0; font-size: 11px; color: var(--muted); }
.av-unavailable .av-secondary-link { margin-top: 4px; }
/* Override only the existing SVG filter's light-mode highlights at night.
   The microphone's SVG geometry, size and recorder styling stay untouched. */
html[data-theme="dark"] #softEmboss feDropShadow:first-child { flood-color: #090f15; flood-opacity: .55; }
html[data-theme="dark"] #softEmboss feDropShadow:last-child { flood-color: #010509; flood-opacity: .62; }
@media (prefers-reduced-motion: reduce) { .av-state-panel { animation: none; } .av-primary-link, .av-secondary-link { transition: none; } }
