:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --border: #e4e1da;
  --text: #1a1a1a;
  --text-dim: #6b6a66;
  --accent: #1e3a5f;
  --accent-soft: #eaf0f7;
  --tab-inactive: #f0efe9;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --surface: #1e2024;
    --border: #2e3036;
    --text: #ececea;
    --text-dim: #9a9a96;
    --accent: #7ea8d8;
    --accent-soft: #223247;
    --tab-inactive: #26282d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

header {
  padding: 2rem 1.25rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

header h1 {
  font-size: 1.6rem;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

header p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 1rem 1.25rem 0;
  max-width: 960px;
  margin: 0 auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--tab-inactive);
  color: var(--text);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.outlet-group {
  margin-bottom: 1.75rem;
}

.outlet-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.outlet-name {
  font-weight: 700;
  font-size: 1rem;
}

.outlet-error {
  color: #c05050;
  font-size: 0.85rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.article {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.article:last-child { border-bottom: none; }
.article:hover { background: var(--accent-soft); }

.article-title {
  font-size: 0.98rem;
  font-weight: 500;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.empty {
  color: var(--text-dim);
  padding: 1rem;
}
