:root {
  --bg: #0f1419;
  --surface: #16202a;
  --card: #1c2732;
  --border: #2f3b47;
  --text: #e7e9ea;
  --muted: #8b98a5;
  --accent: #1d9bf0;
  --warn: #f4212e;
  --ok: #00ba7c;
  --radius: 12px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--surface);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: var(--accent);
  color: #fff;
}

.banner {
  background: #3a1c1f;
  border: 1px solid var(--warn);
  color: #ffb4bc;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.banner.hidden {
  display: none;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

h2 {
  margin: 0 0 0.25rem;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

textarea {
  width: 100%;
  min-height: 110px;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tweet {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.tweet-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tweet-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.tweet-meta {
  flex: 1;
}

.tweet-meta strong {
  display: block;
}

.tweet-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.keyword {
  display: inline-block;
  background: #203549;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.tweet-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 2rem);
}

dialog form {
  padding: 1rem;
}

dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

dialog footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

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