:root {
  --bg: var(--tg-theme-secondary-bg-color, #f5f5f7);
  --card: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #1d1d1f);
  --mute: var(--tg-theme-hint-color, #6e6e73);
  --blue: var(--tg-theme-button-color, #0071e3);
  --on-blue: var(--tg-theme-button-text-color, #ffffff);
  --ok: #248a3d;
  --bad: #d70015;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.live {
  min-height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--mute);
}
.hint {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mute);
  min-height: 1.4em;
}
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }
.btn {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: var(--on-blue);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: default; }
#bind { margin-top: 24px; }
.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 8px;
}
textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mute);
}
.accounts {
  list-style: none;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.35;
}
.accounts li {
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
[hidden] { display: none !important; }
