:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #eff5f1;
  background: #101316;
  --panel: #1a2024;
  --muted: #aab8b6;
  --green: #9aefb4;
  --red: #ff8f93;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
main {
  width: min(100%, 490px);
  background: var(--panel);
  border: 1px solid #303a3e;
  border-radius: 24px;
  padding: clamp(16px, 5vw, 32px);
  box-shadow: 0 20px 60px #0004;
}
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h1 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
h2 { margin: 0 0 12px; font-size: .9rem; font-weight: 650; color: var(--muted); }
p { margin: 5px 0; }
#status { color: var(--muted); font-size: .9rem; }
#status[data-online="true"] { color: var(--green); }
section { margin-top: 24px; border-block: 1px solid #343d40; padding: 16px 0; }
ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; min-height: 72px; }
li { text-align: center; width: 53px; font-size: .68rem; color: var(--muted); }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 4px;
  background: #29353a; border: 1px solid #506269; color: #eaf6f3; border-radius: 50%; font-weight: 650;
}
li[data-speaking="true"] .avatar { background: #29533b; border-color: var(--green); }
.state { display: block; font-size: .65rem; }
.controls { display: grid; justify-items: center; gap: 10px; margin-top: 24px; text-align: center; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; background: #263137; border: 1px solid #475559; border-radius: 12px; }
.mic {
  width: 146px; height: 146px; border: 0; border-radius: 50%; background: var(--green);
  color: #14251b; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 9px; font-weight: 750;
}
.mic[aria-pressed="true"] { background: var(--red); color: #351417; }
.listen { border: 1px solid #4a5e62; border-radius: 9px; padding: 8px 14px; background: transparent; color: inherit; }
.hint, #feedback { color: var(--muted); font-size: .78rem; }
#feedback:empty { display: none; }
body.floating { padding: 4px; }
.floating .mic { width: min(100px, 86vw); height: min(100px, 86vh); font-size: .75rem; }

