@font-face {
  font-family: "system-mono";
  src: local("JetBrains Mono"), local("SFMono-Regular"), local("Menlo");
}

:root {
  --bg: #12151c;
  --surface: #171b24;
  --line: #262b38;
  --text: #e7e5e0;
  --text-muted: #8790a3;
  --accent: #f2a93b;
  --accent-dim: #3a2f1c;
  --ok: #4caf7d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.head h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.head-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 40ch;
}

.status-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.status-btn:hover { border-color: #3a4155; }

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

.status-btn[data-state="on"] .status-dot { background: var(--ok); }
.status-btn[data-state="off"] .status-dot { background: var(--text-muted); }
.status-btn[data-state="denied"] .status-dot { background: #d9634a; }

.feed {
  display: flex;
  flex-direction: column;
}

.entry {
  position: relative;
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.entry:last-child { border-bottom: none; }

.entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-family: "system-mono", ui-monospace, monospace;
  font-size: 12.5px;
}

.entry-channel {
  color: var(--accent);
}

.entry-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.entry-text {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.entry-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.entry-link:hover { color: var(--text); border-color: var(--text-muted); }

.empty {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 30px 0;
}
