:root {
  --bg: #0f1114;
  --surface: #171a1f;
  --text: #f2f4f7;
  --muted: #8b93a1;
  --line: #2a2f38;
  --accent: #5eead4;
  --accent-ink: #042f2e;
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --font: "Sora", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.hidden { display: none !important; }
.screen { padding: 24px 20px 40px; max-width: 480px; margin: 0 auto; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.brand { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 8px; }
.lead { color: var(--muted); margin-bottom: 28px; line-height: 1.45; }
label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
input {
  display: block; width: 100%; margin-top: 6px; padding: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 18px; border-radius: 8px; font-family: inherit;
}
.btn {
  border: 0; border-radius: 8px; padding: 14px 16px; font-size: 16px;
  font-weight: 700; cursor: pointer; font-family: inherit; color: var(--text);
}
.btn.primary { background: var(--text); color: var(--bg); }
.btn.attend { background: var(--accent); color: var(--accent-ink); width: 100%; margin-top: 12px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; }
#btn-login { width: 100%; margin-top: 8px; }
.erro { color: var(--danger); margin-top: 12px; min-height: 1.2em; }
.msg { color: var(--muted); margin-top: 10px; min-height: 1.2em; font-size: 14px; }
.msg.ok { color: var(--ok); }

header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 22px;
}
.sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.right { display: flex; align-items: center; gap: 8px; }
.conn { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.conn.online { color: var(--ok); }
.conn.online i { background: var(--ok); }
.conn.offline { color: var(--warn); }
.conn.offline i { background: var(--warn); }

.call-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-bottom: 24px;
}
.call-box label { margin-bottom: 8px; }
.row { display: flex; gap: 10px; }
.row input { margin: 0; flex: 1; font-size: 28px; font-weight: 700; text-align: center; letter-spacing: 0.08em; }
.row .btn { min-width: 110px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toolbar h2 { font-size: 16px; font-weight: 600; color: var(--muted); }
.toolbar span {
  display: inline-block; background: var(--text); color: var(--bg);
  min-width: 22px; text-align: center; border-radius: 6px; padding: 0 6px; margin-left: 6px;
  font-size: 13px;
}

.lista { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.card.urgente { border-color: var(--danger); }
.card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.senha { font-size: 48px; font-weight: 700; margin: 8px 0; letter-spacing: -0.04em; }
.timer { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }

.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
.empty .sub { margin-top: 6px; }
