:root {
  --red: #ff2026;
  --blue: #35acd7;
  --green: #31b94d;
  --ink: #26323d;
  --muted: #66717c;
  --line: #d5d7da;
}

.student-modal {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  overflow: auto;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.student-modal::backdrop {
  background: rgba(38, 50, 61, 0.55);
}

.student-modal button,
.student-modal a {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.student-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--red);
}

.student-detail {
  display: grid;
  gap: 14px;
}

.student-detail > header,
.student-detail > footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.student-detail > header {
  padding-right: 48px;
}

.student-detail > header .message {
  margin-left: auto;
}

.detail-panel {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8f8f8;
  padding: 12px;
}

.detail-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel input,
.detail-panel textarea,
.detail-panel select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 10px;
}

.detail-panel select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 34px;
}

.date-select-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}

.date-select-group select {
  width: 100%;
  min-width: 88px;
}

.freeze-panel {
  background: #eefaff;
  border-color: #9ed8ea;
}

.freeze-timer {
  display: grid;
  gap: 6px;
  border: 2px solid #9ed8ea;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
}

.freeze-timer span {
  color: #0a6078;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.freeze-rules {
  border: 2px dashed #9ed8ea;
  border-radius: 10px;
  background: #fff;
  color: #0a6078;
  padding: 10px;
  margin-bottom: 10px;
}

.freeze-rules strong {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.freeze-rules ul {
  margin: 0;
  padding-left: 18px;
}

.freeze-rules li {
  margin: 4px 0;
  font-size: 13px;
  font-weight: 800;
}

.freeze-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-panel {
  background: #fff7cd;
  border-color: #f0c93d;
}

.review-status-choice {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.review-status-choice button {
  min-height: 42px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  padding: 8px;
}

.review-status-choice button.is-active {
  border-color: #f0c93d;
  background: #fff0a8;
  color: #6d5400;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-modal .danger-action {
  background: var(--red);
}

.student-modal button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.3);
}

.plan-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.plan-choice button {
  display: grid;
  gap: 2px;
  min-height: 62px;
  margin: 0;
  border: 2px solid var(--line);
  background: #f8f8f8;
  color: var(--ink);
}

.plan-choice button strong {
  font-size: 22px;
  line-height: 1;
}

.plan-choice button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-choice button.is-active {
  border-color: var(--green);
  background: #edfff1;
  color: #13742a;
}

.billing-note {
  border: 2px solid #9ed8ea;
  border-radius: 10px;
  background: #eefaff;
  color: #0a6078;
  padding: 10px;
}

.billing-note strong,
.billing-note p {
  margin: 0;
}

.billing-note p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 850;
}
