:root { --bg: #f6f5f2; --fg: #1f2328; --muted: #6b7280; --card: #ffffff; --line: #e3e1dc; --accent: #2f6fdf;
  --accent-fg: #ffffff; --talk: #e8f0fe; --speak: #10a37f; --warn: #b45309; }
@media (prefers-color-scheme: dark) { :root { --bg: #15171a; --fg: #e8e6e3; --muted: #9aa0a6; --card: #1e2125;
  --line: #2e3237; --accent: #6ea0ff; --accent-fg: #0b1220; --talk: #1f2a3d; --speak: #34d399; --warn: #f59e0b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
header { display: flex; align-items: center; justify-content: space-between; }
h1 { font-size: 28px; letter-spacing: .5px; margin: 8px 0 16px; }
h2 { font-size: 21px; margin: 4px 0 8px; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
label { display: block; margin: 12px 0; }
label.check { display: flex; gap: 8px; align-items: center; }
input:not([type]), input[type=email], select { display: block; width: 100%; margin-top: 4px; padding: 10px;
  font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
button { font: inherit; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  color: inherit; cursor: pointer; }
button.main { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); margin-top: 8px; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--accent); }
.lead { font-size: 19px; }
.small { font-size: 14px; color: var(--muted); }
.msg { color: var(--warn); min-height: 1.5em; }
.pill { font-size: 13px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
blockquote { font-size: 20px; margin: 12px 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--bg); }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin: 10px 0; }
.meter.small { height: 4px; }
.meter div { height: 100%; width: 0; background: var(--speak); transition: width 60ms linear; }
.me { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tools { display: flex; gap: 12px; align-items: center; }
.hint { color: var(--muted); }
.target { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: var(--talk); }
#people { list-style: none; padding: 0; margin: 8px 0; }
#people li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 6px 0; border-radius: 10px;
  border: 1px solid var(--line); cursor: pointer; transition: transform 120ms ease, background 200ms; }
#people li .name { flex: 1; font-weight: 600; }
#people li.talkto { background: var(--talk); border-color: var(--accent); }
#people li.speaking { border-color: var(--speak); transform: scale(calc(1 + var(--level, 0) * .06));
  box-shadow: 0 0 0 calc(var(--level, 0) * 6px) color-mix(in srgb, var(--speak) 35%, transparent); }
#people li.speaking .name::after { content: " is talking to you"; font-weight: 400; color: var(--speak); font-size: 14px; }
#people li button { padding: 4px 8px; font-size: 13px; }
#people li.everyone .name { font-weight: 400; }
.ptt { width: 100%; padding: 18px; font-size: 19px; margin: 8px 0; user-select: none; touch-action: none; }
.ptt.down { background: var(--speak); color: var(--accent-fg); }
.said { color: var(--muted); font-size: 14px; min-height: 1.2em; }
.subs { min-height: 6em; max-height: 40vh; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.subs p { margin: 4px 0; }
.subs b { color: var(--speak); }
.report { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px 12px; }
