.toast[popover] {
  top: auto;
  right: auto;
  margin: 0;
  overflow: visible;
  height: auto;
}
.toast[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}
.toast[data-kind="error"] .toast-check {
  color: #ffb4ac;
  background: #7e3a3a4d;
}
.notif-empty {
  padding: 8px 8px 18px;
  font-size: 13px;
  color: #a3adba;
}
.sidebar-settings.active {
  color: #3182f6;
  background: #f1f6ff;
}

.state-block {
  text-align: center;
  padding: 46px 20px;
  color: #a3adba;
}
.state-block > svg {
  color: #c6d0dd;
  margin-bottom: 12px;
}
.state-block h3 {
  font-size: 15px;
  font-weight: 650;
  color: #6b7684;
}
.state-block p {
  font-size: 13.5px;
  margin-top: 7px;
  color: #98a3b3;
  line-height: 1.7;
}
.state-block.error h3 {
  color: #c06a5c;
}
.state-block .button {
  margin-top: 16px;
}
.state-block.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.state-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #e3eaf4;
  border-top-color: #3182f6;
  animation: suite-spin 0.75s linear infinite;
}
@keyframes suite-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .state-spinner {
    animation-duration: 2.4s;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.filter-bar .search-field {
  min-width: 190px;
  flex: 1;
}
.filter-spacer {
  flex: 1;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 550;
  background: #f1f4f8;
  color: #6b7684;
  white-space: nowrap;
}
.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa4b2;
  flex-shrink: 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid #e5eaf1;
  background: #fff;
  color: #8b95a1;
  font-size: 13.5px;
  font-weight: 550;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.16s var(--ease);
}
.chip-toggle:active:not(:disabled) {
  transform: scale(0.97);
}
.chip-toggle[aria-pressed="true"] {
  color: #3182f6;
  background: #f2f7ff;
  border-color: #a9ccfa;
}
.chip-editable {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e5eaf1;
  border-radius: 9px;
  background: #fff;
  padding: 3px 4px 3px 12px;
  font-size: 13.5px;
  color: #5f6b7a;
}
.chip-editable .icon-button {
  width: 28px;
  height: 28px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.month-head {
  padding: 11px 0;
  text-align: center;
  font-size: 12px;
  color: #8b95a1;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.month-head.sun {
  color: #e06b62;
}
.month-cell {
  min-height: 116px;
  border-right: 1px solid #f0f3f7;
  border-bottom: 1px solid #f0f3f7;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  text-align: left;
  background: #fff;
  align-items: stretch;
}
.month-cell:nth-child(7n) {
  border-right: 0;
}
.month-cell.outside {
  background: #fafbfd;
}
.month-cell.outside .month-date {
  color: #c3cbd6;
}
.month-cell.today .month-date {
  background: #3182f6;
  color: #fff;
}
.month-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7684;
  min-width: 23px;
  min-height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  align-self: flex-start;
}
.month-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 11.5px;
  font-weight: 550;
  color: #367dcc;
  background: #edf4ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.month-chip.test {
  color: #8570b5;
  background: #f0edfa;
}
.month-chip.has-pending::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f57465;
  margin-left: 5px;
  vertical-align: middle;
}
.month-more {
  border: 0;
  background: none;
  font-size: 11px;
  color: #98a3b3;
  text-align: left;
  padding: 2px 7px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  min-width: 840px;
}
.week-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #f0f3f7;
}
.week-day:last-child {
  border-right: 0;
}
.week-col-head {
  padding: 12px 6px;
  text-align: center;
  font-size: 12px;
  color: #8b95a1;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.week-col-head strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #4e5968;
  margin-top: 3px;
}
.week-col-head.today,
.week-col-head.today strong {
  color: #3182f6;
  font-weight: 700;
}
.week-slot {
  border-bottom: 1px solid #f0f3f7;
  padding: 8px 7px 10px;
  min-height: 132px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.week-slot.today {
  background: #fbfdff;
}
.week-slot-add {
  margin-top: auto;
  border: 1px dashed #dde5ef;
  border-radius: 9px;
  background: none;
  color: #b0bac6;
  font-size: 12px;
  padding: 6px 0;
}
.week-slot-add:hover {
  color: #3182f6;
  border-color: #a9ccfa;
  background: #f5f9ff;
}
.week-card {
  border: 0;
  border-radius: 10px;
  padding: 8px 9px;
  text-align: left;
  background: #edf4ff;
  color: #2f6bb4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.week-card.test {
  background: #f0edfa;
  color: #6f5ba3;
}
.week-card strong {
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-card small {
  font-size: 11px;
  color: #8b95a1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-card .card-flags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f3f7;
  min-width: 0;
}
.roster-row:last-child {
  border-bottom: 0;
}
.roster-row > .roster-main {
  flex: 1;
  min-width: 0;
}
.roster-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4e5968;
}
.roster-row small {
  display: block;
  font-size: 12px;
  color: #98a3b3;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.roster-row.skipped {
  opacity: 0.55;
}
.roster-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.roster-group-label {
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 650;
  color: #8b95a1;
  background: #fafbfd;
  border-bottom: 1px solid #f0f3f7;
}
.roster-picker > label > span small {
  font-size: 12px;
}
.record-editor {
  border: 1px solid #e6ecf3;
  border-radius: 12px;
  padding: 15px;
  background: #fbfcfe;
  margin: 4px 0 12px;
}
.record-editor .form-row {
  gap: 12px;
}
.record-editor .field {
  margin-bottom: 14px;
}
.record-editor-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.suite-workspace {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 1100px) {
  .suite-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
.period-picker {
  display: grid;
  gap: 5px;
}
.period-picker.is-month:hover .period-week,
.period-picker.is-month:focus-within .period-week {
  background: #f2f7ff;
  border-color: #cfe1fb;
}
.period-picker.is-month .period-week[aria-pressed="true"] {
  background: #e9f2ff;
  border-color: #79aef5;
}
.period-week {
  display: grid;
  grid-template-columns: 62px repeat(7, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 3px;
  background: none;
  align-items: center;
  text-align: center;
}
.period-week:hover,
.period-week:focus-visible {
  background: #f2f7ff;
  border-color: #cfe1fb;
}
.period-week[aria-pressed="true"] {
  background: #e9f2ff;
  border-color: #79aef5;
}
.period-week > span:first-child {
  font-size: 11.5px;
  color: #8b95a1;
  text-align: left;
  padding-left: 6px;
  white-space: nowrap;
}
.period-day {
  font-size: 12.5px;
  color: #6b7684;
  padding: 7px 0;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.period-day.outside {
  color: #c3cbd6;
}
.period-day.today {
  color: #3182f6;
  font-weight: 700;
}
.period-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 12px;
}
.period-month-row strong {
  font-size: 15px;
  font-weight: 650;
}
.period-summary {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #f4f8ff;
  color: #3d6699;
  font-size: 13.5px;
  line-height: 1.7;
}

.report-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 22px;
  border-bottom: 1px solid #f0f3f7;
  min-width: 0;
}
.report-row:last-child {
  border-bottom: 0;
}
.report-row > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.report-row strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #4e5968;
}
.report-row small {
  display: block;
  font-size: 12.5px;
  color: #98a3b3;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.report-row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.report-select {
  width: 18px;
  height: 18px;
  accent-color: #3182f6;
  flex-shrink: 0;
  cursor: pointer;
}
.report-select:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  background: #f5f9ff;
  border-bottom: 1px solid var(--line);
}
.bulk-bar .bulk-count {
  font-size: 13px;
  font-weight: 650;
  color: #3182f6;
}

.theme-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.theme-card {
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.theme-card[aria-pressed="true"] {
  border-color: #79aef5;
  background: #f5f9ff;
  box-shadow: 0 0 0 3px #3182f610;
}
.theme-card strong {
  font-size: 15px;
  font-weight: 650;
  color: #333d4b;
}
.theme-card small {
  font-size: 12.5px;
  color: #98a3b3;
  line-height: 1.6;
}
.theme-card em {
  font-style: normal;
  font-size: 11.5px;
  color: #3182f6;
  font-weight: 600;
}

.setting-section {
  padding: 24px 26px 26px;
  border-bottom: 1px solid var(--line);
}
.setting-section:last-child {
  border-bottom: 0;
}
.setting-section > h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 6px;
}
.setting-section > p.section-lead {
  font-size: 13px;
  color: #98a3b3;
  margin-bottom: 18px;
  line-height: 1.7;
}
.teacher-card {
  border: 1px solid #e9edf3;
  border-radius: 14px;
  padding: 16px 17px;
  margin-bottom: 12px;
}
.teacher-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.teacher-card-head strong {
  font-size: 15px;
  font-weight: 650;
}
.teacher-card-head .badge {
  margin-left: auto;
}
.inline-note {
  font-size: 12.5px;
  color: #98a3b3;
  line-height: 1.7;
  margin-top: 8px;
}
.trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  border-radius: 14px;
  background: #f1f6ff;
  color: #3d6699;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.trial-banner strong {
  font-size: 15px;
  color: #1f4d85;
}
.trial-banner .button {
  margin-left: auto;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px 0;
}
.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid #edf0f5;
  border-radius: 11px;
  padding: 9px 14px;
  background: #fbfcfe;
}
.stat-pill b {
  font-size: 17px;
  font-weight: 700;
  color: #333d4b;
}
.stat-pill span {
  font-size: 12.5px;
  color: #8b95a1;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 14px 8px;
  border-radius: 11px;
  transition:
    background 0.16s,
    transform 0.16s var(--ease);
}
.task-row:hover {
  background: #f6f9ff;
}
.task-row:active {
  transform: scale(0.99);
}
.task-row > span:not(.task-icon) {
  flex: 1;
  min-width: 0;
}
.task-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4e5968;
}
.task-row small {
  display: block;
  font-size: 12.5px;
  color: #98a3b3;
  margin-top: 3px;
}
.task-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #edf4ff;
  color: #3182f6;
}
.task-icon.orange {
  background: #fff2e6;
  color: #d5893e;
}

.load-failure {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid #f5d9cf;
  background: #fff7f4;
  border-radius: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.load-failure > span:nth-child(2) {
  flex: 1;
  min-width: 200px;
}
.load-failure strong {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  color: #a8543f;
}
.load-failure small {
  display: block;
  font-size: 13px;
  color: #9b7566;
  margin-top: 4px;
  line-height: 1.65;
}
.chart-unavailable,
.panel-unavailable {
  padding: 26px 18px;
  color: #98a3b3;
  font-size: 13.5px;
  line-height: 1.75;
  text-align: center;
}
.panel-unavailable {
  text-align: left;
  padding: 22px 4px;
}

#tour-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.tour-scrim {
  position: absolute;
  inset: 0;
  background: #101d2f66;
}
.tour-card {
  position: absolute;
  width: min(330px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px #12243e2e;
  padding: 20px;
}
.tour-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 8px;
}
.tour-card p {
  font-size: 13.5px;
  color: #6b7684;
  line-height: 1.75;
}
.tour-step {
  font-size: 12px;
  color: #3182f6;
  font-weight: 650;
}
.tour-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}
.tour-spacer {
  flex: 1;
}
.tour-actions .button {
  min-height: 38px;
  font-size: 13.5px;
}
.tour-focus {
  position: relative;
  z-index: 201;
  border-radius: 12px;
  box-shadow: 0 0 0 4px #3182f6, 0 0 0 12px #3182f633;
}
body.tour-open {
  overflow: hidden;
}

.contact-stack strong {
  display: block;
  font-size: 13.5px;
  color: #4e5968;
  font-weight: 550;
}
.contact-stack small {
  display: block;
  font-size: 12px;
  color: #a4adba;
  margin-top: 3px;
}

.link-out {
  overflow-wrap: anywhere;
  color: #3182f6;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .theme-choice {
    grid-template-columns: 1fr;
  }
  .month-cell {
    min-height: 92px;
    padding: 6px;
  }
}
@media (max-width: 640px) {
  .filter-bar {
    padding: 14px;
    gap: 7px;
  }
  .filter-bar .search-field {
    min-width: 100%;
  }
  .setting-section {
    padding: 20px 16px 22px;
  }
  .report-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .report-row-actions {
    justify-content: flex-start;
  }
  .bulk-bar {
    padding: 14px;
  }
  .roster-row {
    flex-wrap: wrap;
  }
  .roster-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .month-grid {
    font-size: 11px;
  }
  .month-cell {
    min-height: 74px;
    padding: 4px;
  }
  .month-chip {
    padding: 3px 5px;
    font-size: 10.5px;
  }
  .week-strip {
    min-width: 0;
    grid-template-columns: 1fr;
  }
  .week-day {
    border-right: 0;
  }
  .week-col-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: flex-start;
    padding: 11px 14px;
    text-align: left;
  }
  .week-col-head strong {
    display: inline;
    margin-top: 0;
  }
  .week-slot {
    min-height: 0;
    padding: 8px 14px 12px;
  }
  .period-week {
    grid-template-columns: 52px repeat(7, minmax(0, 1fr));
  }
  .period-day {
    font-size: 11.5px;
    padding: 6px 0;
  }
  .trial-banner .button {
    margin-left: 0;
  }
  .stat-strip {
    padding: 14px 14px 0;
  }
}

.contact-fix {
  border: 1px solid #f3d9cf;
  background: #fff8f5;
  border-radius: 12px;
  padding: 13px 14px;
  margin: 0 0 12px;
  word-break: keep-all;
}
.contact-fix.done {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-color: #cfe3fb;
  background: #f4f9ff;
  color: #1b64da;
}
.contact-fix-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #c0634f;
}
.contact-fix-notice > svg,
.contact-fix.done > svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-fix p {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.contact-fix p strong {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #4e5968;
}
.contact-fix p small,
.contact-fix-form > small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8b95a1;
}
.contact-fix-notice > .button {
  flex-shrink: 0;
}
.contact-fix-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3e1d9;
}
.contact-fix-form > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4e5968;
  margin-bottom: 6px;
}
.contact-fix-form > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.contact-fix-form input {
  flex: 1;
  min-width: 0;
}
.contact-fix-form input[aria-invalid="true"] {
  border-color: #e0917f;
}
@media (max-width: 640px) {
  .contact-fix-notice {
    flex-wrap: wrap;
  }
  .contact-fix-notice > .button {
    width: 100%;
  }
  .contact-fix-form > div {
    flex-wrap: wrap;
  }
  .contact-fix-form input {
    flex-basis: 100%;
  }
}
