:root {
  --surface-0: #f7f6f3;
  --surface-1: #f0efeb;
  --surface-2: #ffffff;
  --text-primary: #1a1a18;
  --text-secondary: #666561;
  --text-muted: #9a9994;
  --border: #e3e1db;
  --border-strong: #c9c7bf;
  --accent-bg: #e6f1fb;
  --accent-text: #0c447c;
  --accent-fill: #185fa5;
  --danger-bg: #fcebeb;
  --danger-text: #791f1f;
  --success-bg: #eaf3de;
  --success-text: #27500a;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-0);
  color: var(--text-primary);
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

h1, h2, h3 { font-weight: 500; margin: 0 0 0.5rem; }
p { line-height: 1.6; margin: 0 0 0.5rem; }

.card {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.muted { color: var(--text-secondary); font-size: 13px; }
.small-muted { color: var(--text-muted); font-size: 12px; }

input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
  background: var(--surface-2);
  color: var(--text-primary);
}

button {
  width: 100%;
  padding: 10px 14px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}
button:hover { background: var(--surface-1); }
button.primary {
  background: var(--text-primary);
  color: var(--surface-2);
  border-color: var(--text-primary);
}
button.link {
  border: none;
  background: none;
  width: auto;
  color: var(--accent-text);
  padding: 0;
  text-decoration: underline;
  font-size: 13px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.badge-accent { background: var(--accent-bg); color: var(--accent-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-neutral { background: var(--surface-1); color: var(--text-secondary); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.filing-item {
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--border);
}
.filing-item:last-child { border-bottom: none; }

.health-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.error-text { color: var(--danger-text); font-size: 13px; margin-bottom: 10px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
