:root {
  --bg: #0f1419;
  --surface: #1a2027;
  --text: #e6edf3;
  --muted: #8b9cad;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --danger: #f85149;
  --radius: 8px;
  --gap: 12px;
  --touch: 44px;
}

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

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

.header {
  padding: 16px 20px 12px;
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.main {
  padding: 20px;
  max-width: 520px;
  margin: 0 auto;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-bottom: 24px;
}

.filters label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.filters select {
  width: 100%;
  min-height: var(--touch);
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9cad' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.filters select:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  min-height: var(--touch);
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background: var(--accent-hover);
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.feed-view {
  margin-top: 8px;
}

.feed-header {
  margin-bottom: 20px;
}

.feed-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.meta {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feed-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.card time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.card a {
  color: var(--accent);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.no-incidents {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-state,
.loading,
.error {
  text-align: center;
  color: var(--muted);
  padding: 32px 20px;
}

.error {
  color: var(--danger);
}

.error .btn {
  margin-top: 16px;
}

[hidden] {
  display: none !important;
}
