.ccm-auth {
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 18px;
  color: #16324a;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.ccm-auth *,
.ccm-auth *::before,
.ccm-auth *::after {
  box-sizing: border-box;
}

.ccm-auth__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 24px;
}

.ccm-auth__intro,
.ccm-auth__panel,
.ccm-auth__card,
.ccm-panel {
  border: 1px solid #d8e3ec;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(18, 41, 62, 0.08);
}

.ccm-auth__intro {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 103, 144, 0.12), transparent 30%),
    linear-gradient(165deg, #f6fbff 0%, #eef5fb 100%);
}

.ccm-auth__panel {
  padding: 18px;
}

.ccm-auth__eyebrow,
.ccm-auth__card-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2b6b96;
}

.ccm-auth__title,
.ccm-panel h2,
.ccm-auth__card-title {
  margin: 0;
  color: #10283d;
  font-family: Georgia, "Times New Roman", serif;
}

.ccm-auth__title {
  margin-top: 8px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.ccm-auth__description,
.ccm-panel p,
.ccm-auth__card-text,
.ccm-auth__helper {
  color: #57697a;
  line-height: 1.7;
}

.ccm-auth__description {
  max-width: 68ch;
  margin: 14px 0 0;
}

.ccm-auth__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.ccm-auth__card {
  display: block;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ccm-auth__card:hover,
.ccm-auth__card:focus-visible {
  transform: translateY(-2px);
  border-color: #2b6b96;
  box-shadow: 0 16px 30px rgba(43, 107, 150, 0.14);
}

.ccm-auth__card-title {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.ccm-auth__card-text {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.ccm-panel {
  padding: 22px;
}

.ccm-panel--soft {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.ccm-panel h2 {
  font-size: 1.65rem;
}

.ccm-panel p {
  margin: 10px 0 0;
}

.ccm-form {
  margin-top: 18px;
}

.ccm-field {
  display: block;
}

.ccm-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #16324a;
}

.ccm-field input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbd6df;
  border-radius: 16px;
  font: inherit;
  color: #16324a;
  background: #fcfeff;
}

.ccm-field input:focus {
  outline: none;
  border-color: #2b6b96;
  box-shadow: 0 0 0 4px rgba(43, 107, 150, 0.12);
}

.ccm-button,
.ccm-auth__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #16324a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ccm-button {
  width: 100%;
  margin-top: 16px;
}

.ccm-button:hover,
.ccm-auth__link:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.ccm-auth__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ccm-auth__helper {
  margin-top: 14px;
  font-size: 14px;
}

.ccm-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff0ef;
  color: #8a2e2a;
  font-size: 14px;
}

@media (max-width: 920px) {
  .ccm-auth__shell {
    grid-template-columns: 1fr;
  }
}

.ccm-page {
  max-width: 1240px;
  margin: 32px auto;
  padding: 0 18px 36px;
  color: #16324a;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.ccm-page *,
.ccm-page *::before,
.ccm-page *::after {
  box-sizing: border-box;
}

.ccm-page__hero,
.ccm-page__nav,
.ccm-card,
.ccm-modal__dialog,
.ccm-event-card,
.ccm-person,
.ccm-student-card,
.ccm-selected-row {
  border: 1px solid #d8e3ec;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(18, 41, 62, 0.08);
}

.ccm-page__hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 103, 144, 0.12), transparent 30%),
    linear-gradient(165deg, #f6fbff 0%, #eef5fb 100%);
}

.ccm-page__eyebrow,
.ccm-data-grid__label,
.ccm-table__meta {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2b6b96;
}

.ccm-page__title,
.ccm-card__header h2,
.ccm-modal__dialog h2 {
  margin: 0;
  color: #10283d;
  font-family: Georgia, "Times New Roman", serif;
}

.ccm-page__title {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.ccm-page__description,
.ccm-card__header p,
.ccm-empty,
.ccm-list {
  margin: 12px 0 0;
  color: #57697a;
  line-height: 1.7;
}

.ccm-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ccm-page__action,
.ccm-button--secondary,
.ccm-button--ghost {
  background: #ffffff;
  color: #16324a;
  border: 1px solid #c8d5df;
}

.ccm-page__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ccm-page__action:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.ccm-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin-top: 16px;
}

.ccm-page__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f7fafc;
  color: #16324a;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ccm-page__nav-link:hover,
.ccm-page__nav-link.is-active {
  background: #16324a;
  color: #ffffff;
  transform: translateY(-1px);
}

.ccm-page__notice {
  margin-top: 18px;
}

.ccm-page__content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ccm-layout {
  display: grid;
  gap: 18px;
}

.ccm-layout--two {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.ccm-layout--calendar {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: start;
}

.ccm-stack {
  display: grid;
  gap: 18px;
}

.ccm-card {
  padding: 22px;
}

.ccm-card--muted {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.ccm-card--no-print {
  box-shadow: none;
}

.ccm-card__header p {
  max-width: 72ch;
}

.ccm-list {
  padding-left: 18px;
}

.ccm-list li + li {
  margin-top: 10px;
}

.ccm-form-note {
  margin-top: 14px;
  color: #5a6d7c;
  line-height: 1.7;
}

.ccm-assignment-mode {
  margin-top: 18px;
}

.ccm-assignment-mode__label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #16324a;
}

.ccm-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d8e3ec;
  border-radius: 16px;
  background: #ffffff;
}

.ccm-choice + .ccm-choice {
  margin-top: 10px;
}

.ccm-field select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbd6df;
  border-radius: 16px;
  font: inherit;
  color: #16324a;
  background: #fcfeff;
}

.ccm-field select:focus {
  outline: none;
  border-color: #2b6b96;
  box-shadow: 0 0 0 4px rgba(43, 107, 150, 0.12);
}

.ccm-field-grid {
  display: grid;
  gap: 14px;
}

.ccm-field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ccm-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ccm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: auto;
  margin-top: 0;
  padding: 0 18px;
  border: 1px solid #16324a;
  border-radius: 999px;
  background: #16324a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ccm-button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.ccm-button--secondary:hover,
.ccm-button--ghost:hover {
  background: #f4f8fb;
}

.ccm-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 0.7fr)) auto auto;
  gap: 10px;
  margin-top: 18px;
}

.ccm-toolbar input,
.ccm-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd6df;
  border-radius: 16px;
  background: #ffffff;
  color: #16324a;
  font: inherit;
}

.ccm-table-wrap {
  margin-top: 18px;
  overflow: auto;
}

.ccm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ccm-table th,
.ccm-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5edf4;
  text-align: left;
  vertical-align: top;
}

.ccm-table th {
  color: #486071;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ccm-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ccm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.ccm-badge.is-active {
  background: #ecfdf3;
  color: #1d6b44;
}

.ccm-badge.is-muted {
  background: #eef3f7;
  color: #556b7d;
}

.ccm-empty,
.ccm-notice {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #d8e3ec;
  background: #f9fbfd;
}

.ccm-notice {
  margin-top: 0;
}

.ccm-notice--success {
  border-color: #b8ebc8;
  background: #f0fdf4;
  color: #166534;
}

.ccm-notice--error {
  border-color: #f2c2c0;
  background: #fff4f2;
  color: #8a2e2a;
}

.ccm-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ccm-data-grid__item {
  padding: 16px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: #ffffff;
}

.ccm-data-grid__item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  color: #10283d;
}

.ccm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ccm-modal[hidden] {
  display: none;
}

.ccm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 23, 35, 0.55);
}

.ccm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 24px;
}

.ccm-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #16324a;
  font-size: 28px;
  cursor: pointer;
}

.ccm-modal-open {
  overflow: hidden;
}

.ccm-auth .ccm-button {
  width: 100%;
  margin-top: 16px;
}

.ccm-calendar__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ccm-calendar__title {
  margin: 0;
  color: #10283d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.ccm-calendar__weekdays,
.ccm-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.ccm-calendar__weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #587084;
}

.ccm-calendar__weekday-short {
  display: none;
}

.ccm-calendar__day,
.ccm-calendar__blank {
  min-height: 112px;
  border-radius: 22px;
}

.ccm-calendar__blank {
  background: transparent;
}

.ccm-calendar__day {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #d8e3ec;
  background: #ffffff;
  text-decoration: none;
  color: #16324a;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ccm-calendar__day:hover {
  transform: translateY(-2px);
  border-color: #2b6b96;
  box-shadow: 0 16px 30px rgba(43, 107, 150, 0.14);
}

.ccm-calendar__day.is-selected {
  border-color: #16324a;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7fb 100%);
}

.ccm-calendar__day.has-events .ccm-calendar__day-number {
  color: #0f5d88;
}

.ccm-calendar__day-number {
  font-size: 1.35rem;
  font-weight: 800;
}

.ccm-calendar__day-count {
  display: none;
}

.ccm-calendar__day-note {
  font-size: 13px;
  color: #5a6d7c;
  line-height: 1.5;
}

.ccm-event-card + .ccm-event-card {
  margin-top: 14px;
}

.ccm-event-card {
  padding: 18px;
}

.ccm-event-card.is-selected-date {
  border-color: #bfd8e8;
  background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
}

.ccm-event-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ccm-event-card__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2b6b96;
}

.ccm-event-card__title {
  margin: 8px 0 0;
  color: #10283d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.ccm-event-card__meta {
  margin-top: 10px;
  color: #5a6d7c;
  line-height: 1.7;
}

.ccm-team-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ccm-team-group__title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #587084;
}

.ccm-person {
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: none;
}

.ccm-person + .ccm-person {
  margin-top: 10px;
}

.ccm-person.is-animator {
  border-color: #bfd8e8;
  background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
}

.ccm-person__name {
  display: block;
  color: #16324a;
  line-height: 1.6;
  word-break: break-word;
}

.ccm-person.is-animator .ccm-person__name {
  color: #0f5d88;
  font-weight: 800;
}

.ccm-event-summary__meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ccm-search-grid {
  display: grid;
  gap: 14px;
}

.ccm-doc-preview {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid #d8e3ec;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(216, 227, 236, 0.4);
}

.ccm-doc-preview__body {
  max-width: 840px;
  margin: 0 auto;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

.ccm-doc-preview__body p {
  margin: 0;
}

.ccm-doc-preview__body p + p {
  margin-top: 12px;
}

.ccm-doc-gap {
  min-height: 18px;
}

.ccm-doc-signature {
  min-height: 56px;
}

.ccm-doc-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.ccm-doc-table th,
.ccm-doc-table td {
  padding: 10px 12px;
  border: 1px solid #111827;
  text-align: left;
  vertical-align: top;
}

.ccm-doc-table th {
  font-weight: 800;
}

.ccm-manual {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.ccm-manual__results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ccm-student-card {
  padding: 16px;
}

.ccm-student-card.is-unavailable {
  border-style: dashed;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.ccm-student-card__name {
  font-weight: 700;
  color: #10283d;
  line-height: 1.6;
}

.ccm-student-card__meta {
  margin-top: 6px;
  color: #5a6d7c;
  font-size: 14px;
}

.ccm-student-card.is-unavailable .ccm-student-card__meta {
  color: #8a2e2a;
}

.ccm-student-card__actions,
.ccm-selected-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.ccm-student-card__actions .ccm-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.ccm-selected-empty {
  padding: 16px;
  border: 1px dashed #d0dbe4;
  border-radius: 18px;
  background: #f8fbfd;
  color: #5a6d7c;
}

.ccm-selected-row {
  margin-top: 0;
  padding: 14px;
  box-shadow: none;
  border-radius: 20px;
}

.ccm-selected-row + .ccm-selected-row {
  margin-top: 10px;
}

.ccm-selected-row.is-animator {
  border-color: #bfd8e8;
  background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
}

.ccm-selected-row__name {
  flex: 1;
  min-width: 220px;
  line-height: 1.6;
}

.ccm-selected-row.is-animator .ccm-selected-row__name {
  color: #0f5d88;
  font-weight: 800;
}

.ccm-selected-row select {
  min-width: 180px;
}

@media (max-width: 980px) {
  .ccm-layout--two,
  .ccm-toolbar,
  .ccm-data-grid,
  .ccm-layout--calendar,
  .ccm-manual {
    grid-template-columns: 1fr;
  }

  .ccm-field-grid--two {
    grid-template-columns: 1fr;
  }

  .ccm-calendar__controls,
  .ccm-event-card__head {
    flex-direction: column;
    align-items: stretch;
  }

  .ccm-page__hero {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .ccm-page,
  .ccm-auth {
    margin: 20px auto;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ccm-page__hero,
  .ccm-card,
  .ccm-panel,
  .ccm-auth__intro,
  .ccm-auth__panel,
  .ccm-auth__card,
  .ccm-event-card,
  .ccm-doc-preview {
    padding: 18px;
    border-radius: 22px;
  }

  .ccm-page__actions,
  .ccm-page__nav,
  .ccm-inline-actions,
  .ccm-student-card__actions,
  .ccm-selected-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ccm-page__action,
  .ccm-button,
  .ccm-button--secondary,
  .ccm-button--ghost,
  .ccm-page__nav-link {
    width: 100%;
  }

  .ccm-toolbar {
    grid-template-columns: 1fr;
  }

  .ccm-calendar {
    overflow: visible;
    padding-bottom: 0;
  }

  .ccm-calendar__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .ccm-calendar__title {
    grid-column: 1 / -1;
    text-align: center;
  }

  .ccm-calendar__weekdays,
  .ccm-calendar__grid {
    min-width: 0;
    gap: 4px;
  }

  .ccm-calendar__weekday {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .ccm-calendar__weekday-full {
    display: none;
  }

  .ccm-calendar__weekday-short {
    display: inline;
  }

  .ccm-calendar__day,
  .ccm-calendar__blank {
    min-height: 68px;
    border-radius: 14px;
  }

  .ccm-calendar__day {
    padding: 6px 5px;
  }

  .ccm-calendar__day-number {
    font-size: 0.98rem;
  }

  .ccm-calendar__day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #16324a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    align-self: flex-start;
  }

  .ccm-calendar__day-note {
    display: none;
  }

  .ccm-data-grid {
    grid-template-columns: 1fr;
  }

  .ccm-event-card__meta,
  .ccm-person__name {
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .ccm-page__title,
  .ccm-auth__title {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .ccm-calendar__controls {
    gap: 8px;
  }

  .ccm-calendar__title {
    font-size: 1.2rem;
  }

  .ccm-calendar__day,
  .ccm-calendar__blank {
    min-height: 60px;
  }

  .ccm-event-card__title,
  .ccm-card__header h2 {
    font-size: 1.15rem;
  }

  .ccm-calendar__day-count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
  }
}

@media print {
  .ccm-page__hero,
  .ccm-page__nav,
  .ccm-page__notice,
  .ccm-card--no-print {
    display: none !important;
  }

  .ccm-page {
    margin: 0;
    padding: 0;
  }

  .ccm-page__content,
  .ccm-card {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .ccm-doc-preview {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
