:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --line: #d7e1ea;
  --text: #1f2a37;
  --muted: #5a6b7d;
  --brand: #0a6e8a;
  --brand-hover: #08586e;
  --warn: #a34b00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #edf3f8 0%, #f8fafc 100%);
}
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(10, 42, 74, 0.06);
}
.narrow { max-width: 420px; margin: 40px auto; }
h1, h2, h3 { margin: 0 0 10px; }
.muted { color: var(--muted); }
.intro { white-space: pre-wrap; color: var(--muted); font-size: 16px; }
.org-title {
  text-align: center;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.brand {
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
}
.brand-logo {
  width: min(360px, 100%);
  height: auto;
  display: block;
}
.hidden { display: none !important; }
.warning { color: var(--warn); background: #fff6eb; border: 1px solid #f5d0a9; border-radius: 10px; padding: 10px 12px; }
.error { color: #b00020; min-height: 20px; margin-top: 8px; }

.btn {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--brand-hover); }
.btn.ghost {
  background: #e8f1f6;
  color: #18465a;
  border: 1px solid #c6d8e3;
}
.actions { display: flex; justify-content: space-between; margin-top: 14px; }

.progress-wrap { margin-bottom: 16px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.progress { height: 10px; border-radius: 999px; background: #e6edf3; overflow: hidden; }
#progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #2f80a0, #0f95b4); }

label { display: block; margin: 10px 0; }
input[type="text"], input[type="password"], input[type="date"], textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bfd0dd;
  border-radius: 8px;
  font-size: 15px;
}
textarea { min-height: 100px; resize: vertical; }
.option { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.option input { margin-right: 8px; }

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

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.metric-card {
  min-width: 180px;
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d2dfea;
  background: #f8fbfe;
}
.metric-title { color: #55697d; font-size: 14px; }
.metric-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.bar-row { margin-bottom: 8px; }
.bar-label { font-size: 14px; margin-bottom: 2px; }
.bar {
  height: 16px;
  border-radius: 999px;
  background: #e7edf2;
  overflow: hidden;
}
.bar > div { height: 100%; background: linear-gradient(90deg, #4d97b8, #187ca3); }
.small { font-size: 12px; color: var(--muted); }
.answer-item { border: 1px solid #dde5ed; border-radius: 8px; padding: 10px; margin-bottom: 8px; }

@media (max-width: 780px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .actions { gap: 8px; }
}
