:root {
  --bg: #f7f5f1;
  --card: #ffffff;
  --ink: #1c1b1a;
  --muted: #6d6b66;
  --accent: #2f5e4e;
  --accent-weak: #e3efe9;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "SF Pro Text", system-ui, sans-serif;
  background: radial-gradient(circle at top, #fdfbf6 0%, var(--bg) 65%);
  color: var(--ink);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 28px;
  gap: 16px;
}

.header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tab {
  border: 1px solid transparent;
  background: var(--card);
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.tab.active {
  color: var(--accent);
  border-color: var(--accent-weak);
  background: #f0f7f3;
}

.content {
  flex: 1;
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.status {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.list {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid #f1ede6;
  border-radius: 14px;
  padding: 12px;
  background: #fffdfa;
}

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer {
  display: flex;
  justify-content: center;
}

.refresh {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}
