:root {
  --accent: #0a6cff;
  --accent-dark: #0750c4;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #dde1e7;
  --text: #1c2230;
  --text-light: #5a6270;
  --ok: #1f9d55;
  --warn: #b8860b;
  --error: #c0392b;
}

* { box-sizing: border-box; }

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

header {
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 1.2rem;
  margin: 0;
}

#groupBadge {
  font-size: 0.95rem;
  opacity: 0.9;
}

#groupBadge button {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card .instructions {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

button.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
}

button.primary:hover { background: var(--accent-dark); }
button.primary:disabled { background: #aab3c2; cursor: not-allowed; }

.dossier {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.dossier-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dossier-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  padding: 3px 12px 3px 0;
  vertical-align: top;
  width: 90px;
  white-space: nowrap;
}

.dossier-table td {
  padding: 3px 0;
}

.response {
  margin-top: 14px;
  padding: 14px;
  background: #f0f6ff;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.status-line {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.error-msg {
  margin-top: 10px;
  color: var(--error);
  font-size: 0.9rem;
}

.login-card {
  max-width: 380px;
  margin: 64px auto;
}

.login-card label {
  display: block;
  margin: 14px 0 4px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.login-card select, .login-card input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

/* Facilitator scorebord */
table.progress {
  border-collapse: collapse;
  width: 100%;
  background: var(--card);
}

table.progress th, table.progress td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: center;
  font-size: 0.85rem;
}

table.progress th { background: #eef1f5; }
table.progress td.cell-done { background: #d7f3df; }
table.progress td.cell-progress { background: #fdf0c8; }
table.progress td.cell-empty { background: #fafafa; color: #b6bcc5; }
