/* Babel Live · páginas web de teste (ouvinte e transmissor), com a cara do app */
:root {
  --navy: #12214A; --navy-2: #1E2D5C; --yellow: #F5C518; --bg: #F1F3F8; --link: #1D4ED8;
  --muted: #5E6880; --green: #1E7B3E; --red: #D93025; --line: #E3E7F0;
  --primary: var(--navy); --accent: var(--yellow);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #DADFEA; color: var(--navy); -webkit-font-smoothing: antialiased;
}
.phone {
  max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 14px); position: relative;
}
@media (min-width: 500px) { .phone { min-height: 860px; margin: 24px auto; border-radius: 44px; box-shadow: 0 20px 60px rgba(18,33,74,.18); } }
.phone.dark { background: var(--primary); color: #fff; }
h1 { font-weight: 800; letter-spacing: -0.02em; font-size: 34px; line-height: 1.08; margin: 0 0 10px; }
h2 { font-weight: 800; letter-spacing: -0.02em; font-size: 22px; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.dark .muted { color: #AAB3CC; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dark .label { color: #AAB3CC; }
.spacer { flex: 1; min-height: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; margin-bottom: 28px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.brand .tag { font-size: 11px; letter-spacing: .1em; background: #fff; color: var(--navy); border-radius: 6px; padding: 3px 7px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border-radius: 16px;
  border: 1.5px solid transparent; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--primary); color: #fff;
}
.btn.accent { background: var(--accent); color: var(--primary); }
.btn.outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.dark .btn.outline { color: #fff; border-color: rgba(255,255,255,.35); }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { min-height: 44px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn + .btn { margin-top: 12px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; margin-top: 0 !important; }
.card { background: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.dark .card { background: var(--navy-2); }
.card.navy { background: var(--primary); color: #fff; }
input, select {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid #D9DEE9; padding: 12px 16px; font: inherit; font-size: 17px;
  color: var(--navy); background: #fff; outline: none;
}
input:focus, select:focus { border-color: var(--link); }
.dark input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
label.f { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 8px; }
.code-input { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.seg { display: flex; background: #E6E9F1; border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { white-space: nowrap; padding: 0 6px; flex: 1; border: 0; background: transparent; border-radius: 11px; min-height: 44px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 15px; }
.seg button.on { background: var(--primary); color: #fff; }
.dark .seg { background: rgba(255,255,255,.08); }
.dark .seg button.on { background: #fff; color: var(--navy); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { border: 1.5px solid #D9DEE9; background: #fff; border-radius: 12px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 800; cursor: pointer; color: var(--navy); }
.chip-btn.on { background: var(--accent); border-color: var(--accent); }
.option { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid transparent; border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.option.on { border-color: var(--primary); }
.option .badge { width: 42px; height: 42px; border-radius: 12px; background: #EEF1F7; display: grid; place-items: center; font-weight: 800; flex: none; }
.option.on .badge { background: var(--primary); color: var(--accent); }
.option .t1 { font-weight: 800; font-size: 17px; }
.option .t2 { color: var(--muted); font-size: 14px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5CBD8; flex: none; }
.option.on .radio { border: 7px solid var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .06em; }
.pill.live { background: var(--accent); color: var(--primary); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.pill.ghost { border: 1.5px solid rgba(255,255,255,.3); color: var(--accent); letter-spacing: 0; }
.pill.ok { background: #E6F4EA; color: var(--green); letter-spacing: 0; }
.pill.warn { background: #FDF3CC; color: #7A5B00; letter-spacing: 0; }
.pill.bad { background: #FDE7E5; color: #B3261E; letter-spacing: 0; }
.pill.blue { background: #E8EEFF; color: var(--link); letter-spacing: 0; }
.avatar { width: 46px; height: 46px; border-radius: 13px; background: var(--primary); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 8px; border-radius: 999px; background: #E6E9F1; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.dark .bar, .card.navy .bar { background: rgba(255,255,255,.15); }
.dark .bar i, .card.navy .bar i { background: var(--accent); }
.waves { display: flex; align-items: center; justify-content: center; gap: 7px; height: 110px; margin: 10px 0 18px; }
.waves i { width: 7px; border-radius: 4px; background: var(--accent); height: 12px; transition: height .08s; }
.waves i.dim { background: rgba(255,255,255,.25); }
.caption { background: var(--navy-2); border-radius: 20px; padding: 18px; min-height: 210px; }
.caption .prev { color: #8E98B5; font-size: calc(var(--fs, 19px) - 2px); line-height: 1.4; margin-bottom: 12px; }
.caption .cur { color: #fff; font-weight: 700; font-size: var(--fs, 19px); line-height: 1.4; }
.controls { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; }
.controls input[type=range] { flex: 1; min-height: auto; accent-color: #fff; padding: 0; border: 0; background: none; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: var(--primary); display: grid; place-items: center; cursor: pointer; flex: none; }
.conn { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #C9D0E0; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #34A853; }
.conn i.warn { background: var(--accent); }
.conn i.bad { background: var(--red); }
.big-time { font-size: 72px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 20px; font-variant-numeric: tabular-nums; }
.lang-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-weight: 800; }
.lang-row .bar { flex: 1; }
.check-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--accent); display: grid; place-items: center; margin-bottom: 26px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding-top: 18px; }
.footer img { display: block; height: 22px; margin: 5px auto 0; }
.dark .footer { color: #AAB3CC; }
.tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 14px; min-height: 36px; }
.tabs button.on { color: var(--navy); font-weight: 800; }
.err { background: #FDE7E5; color: #8C1D18; border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; display: none; }
.note { background: #FDF3CC; color: #5A4300; border-radius: 14px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.dark .note { background: rgba(245,197,24,.15); color: #F8DD7A; }
.meter { display: flex; gap: 5px; height: 18px; }
.meter i { flex: 1; border-radius: 3px; background: #E3E7F0; }
.meter i.on { background: #4F7BE8; }
.meter i.on.hi { background: var(--accent); }
.meter i.on.max { background: var(--red); }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.hidden { display: none !important; }
a { color: var(--link); }
.dark a { color: var(--accent); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.card.navy .muted, .card.navy .label { color: #AAB3CC; }
