.classroom-helper-student-portal {
    margin: 0 auto;
}

.ch-student-name {
    margin-top: -0.5rem;
    color: #555;
}

.ch-message {
    padding: 0.75rem 1rem;
    border: 1px solid #d6e9c6;
    border-radius: 10px;
    background: #f4fbef;
}

.ch-plan-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.ch-filter-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.ch-filter-link.is-active {
    font-weight: 700;
    border-color: currentColor;
}

.ch-plan-grid {
    display: grid;
    gap: 1rem;
}

.ch-plan-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-left: 6px solid #999;
    border-radius: 14px;
    background: #fff;
}

.ch-plan-date {
    font-weight: 700;
}

.ch-plan-course {
    font-size: 0.9rem;
    color: #555;
}

.ch-plan-title {
    margin: 0.1rem 0 0;
    font-size: 1.15rem;
}

.ch-plan-status {
    font-size: 0.9rem;
    font-weight: 700;
}

.ch-plan-note {
    padding: 0.75rem;
    border-radius: 10px;
    background: #f7f7f7;
}

.ch-plan-action textarea {
    width: 100%;
    min-height: 72px;
    margin-bottom: 0.5rem;
}

.ch-progress-label {
    display: inline-block;
    font-weight: 700;
}

.ch-status-student_done {
    border-left-color: #d89b00;
    background: #fffaf0;
}

.ch-status-completed {
    border-left-color: #2e7d32;
    background: #f3faf3;
    opacity: 0.9;
}

.ch-status-cancelled {
    border-left-color: #777;
    opacity: 0.75;
}

.ch-student-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.ch-student-tab {
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.ch-student-tab.is-active {
  font-weight: 700;
  border-color: currentColor;
}

.ch-student-tab-panel[hidden] {
  display: none;
}

@media (min-width: 760px) {
    .ch-plan-card {
        grid-template-columns: 140px 1fr auto;
        align-items: start;
    }

    .ch-plan-note,
    .ch-plan-action {
        grid-column: 2 / -1;
    }
}

.classroom-helper-teacher-portal {
    max-width: 1100px;
    margin: 0 auto;
}

.ch-teacher-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.ch-teacher-plan-grid .ch-plan-card {
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .ch-teacher-plan-grid .ch-plan-card {
        grid-template-columns: 140px 1fr auto;
    }

    .ch-teacher-plan-grid .ch-plan-title,
    .ch-teacher-plan-grid .ch-plan-note {
        grid-column: 2 / -1;
    }
}

.ch-student-email-box {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.ch-student-email-box h3 {
  margin-top: 0;
}

.ch-student-email-form input[type="email"] {
  max-width: 420px;
  width: 100%;
}

.ch-student-register-form,
.ch-student-create-exam-form,
.ch-student-email-form {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.ch-student-register-form input,
.ch-student-register-form select,
.ch-student-create-exam-form input,
.ch-student-create-exam-form textarea,
.ch-student-email-form input,
.ch-student-email-form textarea {
  width: 100%;
  max-width: 520px;
}

.ch-registration-result input {
  margin-top: 0.35rem;
}

.ch-plan-card--class-exam {
    border-left-color: #2271b1;
}

.ch-class-exam-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #eef6fc;
    font-size: 0.75rem;
    font-weight: 700;
}
