* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6f9;
  color: #182b40;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  font-size: 15px;
}
header {
  background: #fff;
  border-bottom: 1px solid #dde3eb;
  padding: 18px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  text-decoration: none;
  color: #165a50;
  font-weight: 850;
  font-size: 24px;
}
.brand span {
  font-size: 16px;
  color: #526474;
  border-left: 1px solid #ccd6dd;
  padding-left: 15px;
  margin-left: 12px;
  font-weight: 500;
}
main {
  max-width: 1290px;
  margin: auto;
  padding: 34px 24px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 30px;
  gap: 20px;
}
.eyebrow {
  color: #247466;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 750;
}
h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1.1px;
  margin: 10px 0;
}
h2 {
  margin: 0;
  font-size: 21px;
}
h3 {
  margin-top: 0;
}
p {
  color: #607080;
  line-height: 1.6;
  margin: 8px 0 16px;
}
section {
  background: #fff;
  padding: 26px;
  margin: 20px 0;
  border: 1px solid #dde4ec;
  border-radius: 16px;
  box-shadow: 0 3px 12px #152d4010;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.badge {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 30px;
  background: #e8f2ef;
  color: #235f54;
  white-space: nowrap;
}
button,
.file-button {
  font: inherit;
  border: 1px solid transparent;
  background: #176858;
  color: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary,
.file-button {
  background: #fff;
  color: #335367;
  border-color: #d2dde6;
}
input,
select,
textarea {
  font: inherit;
  color: #253e52;
  border: 1px solid #c9d5df;
  background: white;
  border-radius: 7px;
  padding: 10px;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid #9ad6c5;
  outline-offset: 2px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}
.period-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.file-button {
  display: inline-block;
  font-size: 15px;
}
.file-button input {
  display: none;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}
th {
  text-align: left;
  color: #607080;
  font-size: 12px;
  padding: 12px 5px;
  border-bottom: 1px solid #dfe5ec;
}
td {
  padding: 10px 5px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: top;
}
td:nth-child(1) {
  min-width: 115px;
}
td:nth-child(2),
td:nth-child(3) {
  min-width: 110px;
}
td:nth-child(4) {
  min-width: 160px;
}
td:nth-child(5) {
  min-width: 135px;
}
td:nth-child(7) {
  min-width: 170px;
}
td:last-child {
  white-space: nowrap;
}
td button {
  padding: 9px 10px;
  margin-right: 4px;
  font-size: 12px;
}
.week {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.day {
  border: 1px solid #e0e7ed;
  border-radius: 10px;
  background: #fafcfd;
  padding: 15px;
}
.day h3 {
  font-size: 14px;
  text-transform: capitalize;
}
.class-card {
  background: #fff;
  border-left: 3px solid #379d85;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}
.class-card strong {
  display: block;
  font-size: 13px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.class-card small {
  display: block;
  color: #657786;
  overflow-wrap: anywhere;
}
.class-card a {
  color: #176858;
}
.class-card time {
  font-size: 12px;
  color: #176858;
  font-weight: 700;
}
.empty {
  text-align: center;
  padding: 28px;
  color: #788999;
}
.muted {
  font-size: 12px;
}
#login {
  max-width: 580px;
}
#login-form {
  display: flex;
  align-items: end;
  gap: 12px;
}
#login-form label {
  flex: 1;
}
#notice:not(:empty) {
  padding: 14px 18px;
  border-radius: 8px;
  background: #e2f2eb;
  color: #154d3e;
}
#notice.error {
  background: #fff0ed;
  color: #a33424;
}
#import-panel {
  background: #f1f7f5;
  border: 1px solid #cce5dc;
  padding: 22px;
  border-radius: 10px;
  margin-bottom: 20px;
}
textarea {
  resize: vertical;
  margin-bottom: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #738292;
  font-size: 12px;
  margin: 30px 4px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .period-grid {
    grid-template-columns: 1fr;
  }
  .week {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading,
  .section-title {
    align-items: start;
    flex-direction: column;
  }
  section {
    padding: 20px;
  }
  main {
    padding: 20px 12px;
  }
  header {
    padding: 16px;
  }
  .quick-actions button,
  .file-button {
    flex: 1;
    text-align: center;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 440px) {
  .week {
    grid-template-columns: 1fr;
  }
  #login-form {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 650px) {
  .table-wrap {
    overflow: visible;
  }
  table {
    display: block;
    min-width: 0;
  }
  thead {
    display: none;
  }
  tbody {
    display: block;
  }
  tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #dfe5ec;
  }
  td {
    display: block;
    min-width: 0 !important;
    padding: 0;
    border: 0;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #607080;
    margin-bottom: 6px;
  }
  td:nth-child(4),
  td:nth-child(5),
  td:nth-child(7),
  td:last-child {
    grid-column: 1 / -1;
  }
  td:last-child::before {
    display: none;
  }
  .quick-actions button,
  .file-button {
    min-width: 125px;
  }
}

.recipient-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}
.check-label input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.recipient-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.recipient-list {
  display: grid;
  gap: 10px;
}
.recipient-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fafcfd;
  border: 1px solid #dde4ec;
  border-radius: 10px;
}
.recipient-card > input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.recipient-info strong,
.recipient-info small {
  display: block;
  overflow-wrap: anywhere;
}
.recipient-info small {
  color: #657786;
  margin-top: 4px;
}
.recipient-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recipient-actions button {
  padding: 8px 12px;
  font-size: 13px;
}
.badge.paused {
  background: #fff2dd;
  color: #8a621b;
}
.danger {
  color: #a33424 !important;
}
#selection-count {
  padding: 12px 16px;
  background: #f1f7f5;
  border: 1px solid #cce5dc;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .recipient-form {
    grid-template-columns: 1fr;
  }
  .recipient-card {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .recipient-actions {
    grid-column: 2 / -1;
  }
  .recipient-form-actions button {
    flex: 1;
  }
}
