:root {
  --bg: #050508;
  --bg-elev: #12121c;
  --card: #14141f;
  --text: #ececf5;
  --muted: #9a9ab0;
  --dim: #6a6a80;
  --accent: #ff8a3d;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
  background: #000;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner {
  margin: 0 0 1.1rem;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.help-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.help-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--accent);
  color: #141414;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

.cta:hover {
  filter: brightness(1.05);
}

.help-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  max-width: min(420px, calc(100vw - 2rem));
  width: 100%;
}

.help-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.help-panel {
  margin: 0;
}

.help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.5rem;
}

.help-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.help-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
}

.help-body {
  padding: 0.25rem 1rem 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.help-body p {
  margin: 0 0 0.85rem;
}

.help-body strong {
  color: var(--text);
}

.help-body a {
  color: var(--accent);
}

.help-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.help-foot {
  padding: 0.5rem 1rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.help-done {
  font-size: 0.9rem;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}

.live-dot.on {
  background: #3dd68c;
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.55);
}

.feed-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  min-height: 50vh;
}

.bubbles {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bubble {
  align-self: flex-start;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px 14px 14px 4px;
  background: #1e1e2e;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.4;
}

.bubble-img {
  display: block;
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  margin: 0 0 0.55rem;
  background: #0a0a12;
}

.bubble-text {
  margin: 0 0 0.25rem;
}

.dim {
  color: var(--dim);
  font-size: 0.78rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}

.meta-line {
  align-self: center;
  font-size: 0.7rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

footer {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.8rem;
}

footer a {
  color: var(--muted);
}

footer p {
  margin: 0.35rem 0;
}
