:root {
  --bg: #f4f6f3;
  --ink: #17211d;
  --muted: #60706a;
  --line: #dbe2dc;
  --surface: #ffffff;
  --green: #1f7a5a;
  --green-soft: #e3f1e9;
  --blue: #2d5f8b;
  --red: #9b3b36;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, textarea, select, input { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 700;
  padding: 10px 14px;
}
button:disabled {
  cursor: wait;
  opacity: .7;
}
button.secondary {
  background: var(--green-soft);
  color: var(--green);
}
textarea, select, input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
  color: var(--ink);
}
.phone-shell {
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}
.mobile-header, .desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #17201d;
  color: white;
}
.mobile-header p, .mobile-header h1, .desktop-header p, .desktop-header h1 { margin: 0; }
.mobile-header p, .desktop-header p { color: #b8c6bf; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.mobile-header h1, .desktop-header h1 { margin-top: 3px; font-size: 20px; line-height: 1.15; }
.mobile-header select { max-width: 160px; }
.task-card, .case-card, .report-box, .team-card {
  margin: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.case-card {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}
.case-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.case-card p {
  margin: 0;
  color: #34443f;
  line-height: 1.45;
}
.progress-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.task-card h2 { margin: 8px 0 6px; font-size: 18px; }
.task-card p { margin: 0; color: #34443f; line-height: 1.45; }
.report-box h2 { margin: 0 0 10px; font-size: 18px; }
.report-grid { display: grid; gap: 10px; margin-top: 12px; }
.feedback {
  margin-top: 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  color: #34443f;
}
.feedback.error {
  border: 1px solid #e1b0a9;
  border-radius: 8px;
  padding: 10px;
  background: #fff3f1;
  color: var(--red);
}
.facilitator-shell { padding: 18px; }
.desktop-header { border-radius: 8px; margin-bottom: 14px; }
.provider-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.provider-status span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.provider-status .ok {
  border-color: #afd8c1;
  background: var(--green-soft);
  color: var(--green);
}
.provider-status .warn {
  border-color: #ecd28b;
  background: #fff7df;
  color: #7c611d;
}
.timer-form { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: center; }
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.team-card h2 { margin: 0 0 6px; font-size: 20px; }
.team-card p { margin: 5px 0; color: var(--muted); }
.team-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.round-select { margin: 10px 0; }
.reports-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.report-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}
.report-summary summary {
  cursor: pointer;
  font-weight: 800;
}
@media (max-width: 680px) {
  .timer-form { grid-template-columns: 1fr; }
  .facilitator-shell { padding: 10px; }
  .mobile-header { align-items: flex-start; flex-direction: column; }
}
