* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
}

.app {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  padding: 48px 24px;
}

.hidden {
  display: none;
}

.brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 42px;
}

.brand.small {
  font-size: 24px;
  margin-bottom: 32px;
}

h1 {
  font-size: clamp(36px, 8vw, 60px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 45px;
}

h2 {
  font-size: 30px;
  margin: 0 0 8px;
}

.muted {
  color: #667085;
  margin-bottom: 32px;
}

.primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 17px 20px;
  background: #172033;
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

form {
  background: white;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}

label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

label:first-child {
  margin-top: 0;
}

input, select, textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #d5d9e0;
  border-radius: 10px;
  font-size: 16px;
  background: white;
}

input:disabled {
  color: #667085;
  background: #f6f7f9;
}

form .primary {
  margin-top: 24px;
}

.error {
  color: #b42318;
  margin-top: 14px;
  font-size: 14px;
}

.eyebrow {
  color: #667085;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
}

.employee-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.business-name {
  color: #667085;
  margin-top: 4px;
}

.employee-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.status {
  background: #eef2f6;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
}

.supervisor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-card {
  min-height: 130px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.status-title {
  font-size: 12px;
  font-weight: 800;
  color: #667085;
}

.count {
  font-size: 36px;
  font-weight: 800;
  margin-top: 25px;
}

.phone-number {
  font-size: 20px;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 10px;
  white-space: nowrap;
}

.phone-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.phone-control-label {
  font-size: 13px;
  font-weight: 700;
  color: #667085;
}

.phone-toggle {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.phone-toggle.on {
  background: #e7f7ec;
  color: #16743b;
}

.phone-toggle.off {
  background: #f1f2f4;
  color: #667085;
}

.footer-message {
  text-align: center;
  margin-top: 28px;
  color: #667085;
}

@media (max-width: 520px) {
  .screen {
    padding: 34px 18px;
  }

  .supervisor-grid {
    grid-template-columns: 1fr;
  }
}

.teach-button { margin-top: 22px; }

.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
  font-weight: 700;
  cursor: pointer;
}

.training-messages {
  margin: 24px 0;
}

.training-message {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.45;
}

.employee-message {
  background: white;
  border: 1px solid #e5e7eb;
}

.message-speaker {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.message-text {
  font-size: 15px;
}

.training-form {
  background: white;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}

.training-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border: 1px solid #d5d9e0;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.training-form .primary {
  margin-top: 14px;
}

.proposed-learning-panel {
  margin-top: 28px;
  padding: 18px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

/* TRAINING REVIEW CARDS */

.proposed-learning-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.proposed-learning-item .message-speaker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #667085;
  margin-bottom: 8px;
}

.proposed-learning-item .message-text {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.conflict-warning {
  background: #f6f7f9;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0 14px;
  line-height: 1.4;
  font-size: 14px;
}

.learning-approve,
.learning-replace,
.learning-reject,
.learning-correct {
  min-height: 46px;
  border-radius: 10px;
  padding: 11px 16px;
  margin-top: 8px;
  margin-right: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.learning-reject,
.learning-correct {
  border: 1px solid #d5d9e0;
  background: #ffffff;
}

.learning-approve,
.learning-replace {
  border: 0;
}

.proposed-learning-item .primary {
  margin-top: 10px;
}


.required-star {
  color: #c62828;
  margin-right: 4px;
}

.vital-days,
.vital-limits {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.vital-days {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vital-days label,
.vital-limits label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

.vital-days input,
.vital-limits input {
  width: auto;
  margin: 0;
}

@media (min-width: 600px) {
  .vital-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vital-days,
.vital-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.vital-days label,
.vital-limits label {
  border: 0;
  padding: 2px 0;
  border-radius: 0;
}

.vital-days label,
.vital-limits label {
  margin: 0 !important;
  line-height: 1.2;
}

.vital-days input[type="checkbox"],
.vital-limits input[type="checkbox"] {
  margin: 0 !important;
  padding: 0;
  vertical-align: middle;
}
