/* Sign-in, the password step, and the empty desk it opens.
   Wide window: the account block sits at the bottom of the left column.
   Below 961 pixels, including a phone turned sideways, Menu opens that column. */

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 210 64% 33%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 210 64% 33%;
  --radius: 0.5rem;
}

body {
  margin: 0;
  color: #1f2933;
  background: #f4f6f8;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

body.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 16px;
  box-sizing: border-box;
}

.user-form {
  width: min(100%, 24rem);
  margin: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
}

.user-form h1 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.user-form p {
  margin: 0 0 12px;
}

.user-form label {
  display: block;
  margin: 12px 0;
}

.user-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.user-form button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.user-form a {
  color: #1d4e89;
}

.message {
  margin: 12px 0 0;
  color: #9b1c1c;
  font-weight: 600;
}

.admin-desk .sheet > .message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-weight: 400;
  line-height: normal;
}

.admin-desk .sheet > .message.is-alert {
  color: #9b1c1c;
  font-weight: 600;
}

.admin-desk main.sheet:has(.user-form) > .message.is-alert,
.admin-desk main.sheet:has(.user-list) > .message.is-alert,
.admin-desk main.sheet:has(#staff-note) > .message.is-alert {
  font-weight: 400;
}

.admin-desk main.sheet:has(#health-today) > .message.is-alert {
  font-weight: 400;
}

.admin-desk:has(#health-today) .open-classes {
  margin-left: -6px;
  color: hsl(222.2 84% 4.9%);
  font: inherit;
}

body.desk {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 52px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
}

.places,
.tasks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.places a,
.tasks a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 12px;
  background: transparent;
  color: hsl(215.4 16.3% 46.9%);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.places a:hover,
.tasks a:hover {
  color: #1f2933;
}

.places a[aria-current="page"],
.tasks a[aria-current="page"] {
  color: #1f2933;
  border-bottom-color: #1d4e89;
  font-weight: 600;
}

.places a .place-flag {
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: hsl(210 64% 33%);
  flex: none;
}

.places.tab-dragging,
.tasks.tab-dragging {
  cursor: grabbing;
  user-select: none;
}

/* All sits beside the row, so a word past the edge does not hide the button. */
.tabline {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.top > .tabline,
.taskbar > .tabline {
  flex: 1 1 auto;
}

.tabline > .places,
.tabline > .tasks {
  min-width: 0;
}

.tabline > .row-more {
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .tabline > .places,
  .tabline > .tasks {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .tabline:has(nav.row-open) {
    align-items: flex-start;
  }
}

.household-photo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 12px;
}

.workspace {
  position: relative;
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.sections {
  display: flex;
  flex-direction: column;
  flex: 0 0 16rem;
  width: 16rem;
  min-height: 0;
  background: #fff;
  border-right: 1px solid #e4e7eb;
}

.work {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.taskbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
}

@media (min-width: 961px) {
  .taskbar:not(:has(.tasks)):not(:has(.class-day)) {
    display: none;
  }
}

.open-classes {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #1f2933;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.open-classes svg {
  width: 16px;
  height: 16px;
}

.open-classes:hover {
  background: hsl(210 40% 96.1%);
}

.classes-backdrop {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.section-name {
  margin: 0;
  padding: 16px 16px 8px;
  font-size: 13px;
  font-weight: 600;
}

.sheet {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 16px 20px 32px;
  overflow: auto;
}

.sis-account {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 2px;
  box-sizing: border-box;
  margin-top: auto;
  padding: 8px 8px 10px;
  border-top: 1px solid hsl(var(--border));
  background: #fff;
}

button.sis-account-who {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.sis-account-who:hover,
button.sis-account-who[aria-expanded="true"] {
  background: hsl(var(--muted));
}

.sis-account-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-size: 11px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}

.sis-account-id {
  min-width: 0;
  line-height: 1.25;
}

.sis-account-name,
.sis-account-detail {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sis-account-name {
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 500;
}

.sis-account-detail {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.sis-account-menu {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% - 4px);
  z-index: 3;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--popover));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.sis-account-menu[hidden] {
  display: none;
}

a.sis-account-logout {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: calc(var(--radius) - 2px);
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}

a.sis-account-logout:hover {
  background: hsl(var(--muted));
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #1d4e89;
  outline-offset: 1px;
}

@media (max-height: 519px) {
  body.auth {
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .open-classes {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .places a,
  .tasks a {
    height: 40px;
    font-size: 16px;
    line-height: 24px;
  }

  nav.sections {
    display: none;
  }

  .workspace.classes-open .classes-backdrop {
    display: block;
    position: fixed;
    z-index: 2;
    top: 52px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .workspace.classes-open nav.sections {
    display: flex;
    position: fixed;
    z-index: 3;
    top: 52px;
    bottom: 0;
    left: 0;
    flex: none;
    width: min(18rem, 85vw);
    height: auto;
    overflow: hidden;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
  }
}

/* Teacher attendance. Wide: class list beside the sheet, this week and the week before.
   Below 961 pixels, including a phone turned sideways: Menu opens the list, one week
   stays on the sheet, and the quarter totals sit under the name. */

.section-list,
.class-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 10px 8px;
}

.sis-list-label,
label.year {
  margin: 0;
  padding: 4px 16px 8px;
  font-size: 13px;
  font-weight: 600;
}

label.year select,
.choices input,
.choices select,
.mark-comment input,
.mark-comment select,
.mark-comment textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  margin-top: 4px;
  font: inherit;
}

#year-form .quiet {
  margin: 0 16px 8px;
}

.class-list {
  display: flex;
  flex-direction: column;
}

a.class-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  color: inherit;
  text-decoration: none;
}

a.class-link[aria-current="page"] {
  background: #e8f2fb;
}

.roll-due {
  flex: 0 0 auto;
  color: #1d4e89;
  font-size: 12px;
  font-weight: 700;
}

.class-day {
  flex: 1 0 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  color: #52606d;
}

.waiting {
  margin: 0 0 12px;
  color: #52606d;
}

.admin-desk main.sheet:has(#later-note) {
  display: flex;
  flex-direction: column;
}

.admin-desk #later-note {
  margin-top: auto;
  margin-bottom: 8px;
  color: #1f2933;
  line-height: normal;
}

.admin-desk main.sheet:has(#roster-note),
.admin-desk main.sheet:has(#conference-note),
.admin-desk main.sheet:has(#locker-note),
.admin-desk main.sheet:has(#textbook-note),
.admin-desk main.sheet:has(#lunch-note),
.admin-desk main.sheet:has(#profile-note),
.admin-desk main.sheet:has(#grading-note),
.admin-desk main.sheet:has(#attendance-note),
.admin-desk main.sheet:has(#fields-note) {
  display: flex;
  flex-direction: column;
}

.admin-desk #roster-note,
.admin-desk #conference-note,
.admin-desk #locker-note,
.admin-desk #textbook-note,
.admin-desk #lunch-note,
.admin-desk #profile-note,
.admin-desk #grading-note,
.admin-desk #attendance-note,
.admin-desk #fields-note {
  margin-top: auto;
  margin-bottom: 8px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.history-list {
  margin: 0 0 12px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.profile-fields {
  align-items: start;
}

.fact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.fact-line > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 12rem;
  flex: 1 1 14rem;
}

@media (max-width: 960px) {
  .fact-line {
    display: block;
  }
}

@media (min-width: 961px) {
  .admin-desk .choices.field-line {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
  }

  .admin-desk .choices.field-line > label,
  .admin-desk .choices.field-line > p {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .admin-desk .choices.field-line > label {
    width: 14rem;
  }
}

.profile-fields > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 12rem;
  flex: 1 1 14rem;
}

.grade-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
}

.choices label {
  font-size: 14px;
  font-weight: 600;
}

.choices input[type="date"] {
  width: auto;
}

button.quiet,
a.quiet {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  color: #1d4e89;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

#save-attendance {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[hidden],
a[hidden],
p[hidden],
label[hidden],
div[hidden],
section[hidden],
form[hidden],
fieldset[hidden] {
  display: none !important;
}

#message:not(.is-alert) {
  color: #1f2933;
}

.att-wrap {
  overflow: auto;
  max-width: 100%;
}

.att-sheet {
  border-collapse: collapse;
  background: #fff;
}

.att-sheet th,
.att-sheet td {
  border-bottom: 1px solid #e4e7eb;
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}

.att-sheet th:first-child,
.att-sheet td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 10rem;
  max-width: 16rem;
  background: #fff;
}

.att-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.att-sheet thead th:first-child {
  z-index: 3;
}

.att-sheet th.term-count,
.att-sheet td.term-count {
  position: sticky;
  left: 10rem;
  z-index: 1;
  min-width: 9.5rem;
  white-space: nowrap;
  background: #fff;
  box-shadow: 1px 0 0 #e4e7eb;
  font-size: 13px;
  font-weight: normal;
}

.att-sheet thead th.term-count {
  z-index: 4;
  background: #f8fafc;
  font-weight: 600;
}

.att-sheet th:not(:first-child),
.att-sheet td:not(:first-child) {
  text-align: center;
}

.term-under {
  display: none;
}

.term-none,
.day-today {
  color: #1d4e89;
  font-size: 12px;
  font-weight: 600;
}

.att-sheet td.is-focus,
.att-sheet th.is-focus {
  background: #e8f2fb;
}

.att-sheet th.is-week-start,
.att-sheet td.is-week-start {
  box-shadow: inset 1px 0 0 #d9e2ec;
}

a.day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

button.att-cell,
span.att-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2rem;
  font-weight: 700;
  color: #1f2933;
}

button.att-cell {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

button.att-cell:hover,
button.att-cell:focus-visible {
  background: rgba(29, 78, 137, 0.08);
}

button.att-cell.is-absent,
span.att-letter.is-absent {
  color: #9b1c1c;
}

button.att-cell.is-tardy,
span.att-letter.is-tardy {
  color: #9a6700;
}

button.att-cell.has-comment,
span.att-letter.has-comment {
  box-shadow: inset 0 -3px 0 #1d4e89;
}

.roster-mark {
  margin-left: 0.2em;
  font-weight: 700;
}

.roster-mark-allergy {
  color: #9b1c1c;
}

.roster-mark-plan {
  color: #1d4e89;
}

.roster-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 16px;
}

.roster-notes h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

#mark-menu {
  position: fixed;
  z-index: 6;
  width: min(16rem, calc(100vw - 16px));
  padding: 8px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

#mark-menu button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2933;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

#mark-menu button[aria-checked="true"] {
  background: #e8f2fb;
}

.mark-comment {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

#quarter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
}

.grade-wrap {
  overflow: auto;
  max-width: 100%;
}

.teacher-desk #grades .grade-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.teacher-desk #grades-bar > button:not(.quiet),
.teacher-desk #grades-form > button:not(.quiet),
.teacher-desk #copy-box > button:not(.quiet) {
  font: inherit;
  padding: 8px 14px;
  background: #1d4e89;
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.teacher-desk #grades button:disabled {
  opacity: 0.6;
  cursor: default;
}

.grade-sheet {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.grade-sheet th,
.grade-sheet td {
  border-bottom: 1px solid #e4e7eb;
  padding: 6px 8px;
  text-align: left;
  vertical-align: bottom;
  background: #fff;
}

.grade-sheet tbody td:first-child,
.grade-sheet thead th:first-child:not(.assign):not(.label-head) {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 9rem;
  min-width: 9rem;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
}

.grade-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  vertical-align: bottom;
}

.grade-sheet thead th:first-child:not(.assign):not(.label-head) {
  z-index: 3;
  background: #f8fafc;
}

.grade-sheet th.grade,
.grade-sheet td.grade {
  position: sticky;
  left: 9rem;
  z-index: 1;
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 5.5rem;
  white-space: nowrap;
  vertical-align: middle;
  background: #fff;
  box-shadow: 1px 0 0 #e4e7eb;
}

.grade-sheet thead th.grade {
  z-index: 3;
  background: #f8fafc;
}

.grade-sheet th.standard-col,
.grade-sheet td.standard-col {
  min-width: 6.5rem;
  max-width: 8rem;
  white-space: normal;
  font-size: 13px;
  vertical-align: top;
}

.grade-sheet select.running-word {
  min-height: 36px;
  max-width: 9rem;
  font: inherit;
}

.grade-sheet th.assign {
  width: 3.2rem;
  min-width: 3.2rem;
  max-width: 3.6rem;
  height: 12rem;
  padding: 6px 2px;
  vertical-align: bottom;
  text-align: center;
  overflow: hidden;
}

.grade-sheet th.label-head {
  text-align: center;
  font-size: 12px;
}

.grade-sheet th.assign[data-edit] {
  cursor: pointer;
}

.grade-sheet th.assign[data-edit]:hover,
.grade-sheet th.assign[data-edit]:focus-within,
.grade-sheet th.is-editing,
.grade-sheet td.is-editing {
  background: #e8f2fb;
}

.grade-sheet button.assign-name,
.grade-sheet span.assign-name {
  display: inline-block;
  max-height: 7rem;
  padding: 0;
  background: transparent;
  color: #1d4e89;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.grade-sheet span.assign-name {
  color: #1f2933;
  cursor: default;
}

.grade-sheet .assign-meta {
  display: inline-block;
  max-height: 4.5rem;
  margin-top: 4px;
  color: #52606d;
  font-size: 12px;
  font-weight: 400;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grade-sheet input.score {
  width: 4.6rem;
  padding: 4px 2px;
  font: inherit;
}

.score-star {
  margin-left: 2px;
  font-weight: 700;
}

.score-note {
  display: block;
  margin-top: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #52606d;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.score-note.has-note {
  color: #1d4e89;
  font-weight: 600;
}

.skill-word {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

#class-audience label,
#grade-note label,
#assignment-skills label {
  font-weight: 400;
}

#grade-note {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 16rem;
  max-width: calc(100vw - 16px);
  padding: 10px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

#grade-note[hidden] {
  display: none;
}

#grades-form,
#copy-box,
#class-audience,
#assignment-skills {
  align-items: end;
}

@media (max-width: 960px) {
  .grade-wrap {
    overflow-x: auto;
  }

  .grade-sheet {
    width: max-content;
    min-width: 100%;
  }

  .att-sheet {
    width: 100%;
    table-layout: fixed;
  }

  .att-sheet th.is-prior,
  .att-sheet td.is-prior,
  .att-sheet th.term-count,
  .att-sheet td.term-count {
    display: none;
  }

  .att-sheet .term-under {
    display: block;
    margin-top: 2px;
    color: #52606d;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
  }

  .att-sheet th:first-child,
  .att-sheet td:first-child {
    width: 34%;
    min-width: 0;
    max-width: none;
    white-space: normal;
  }

  .quarter-open {
    overflow-x: auto;
  }

  .quarter-open .att-sheet {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  .roster-notes {
    flex-direction: column;
    gap: 16px;
  }
}

/* Parent's Desk and Student's Desk. The list stays beside the sheet on a wide window.
   Below 961 pixels, including a phone turned sideways, the list is a drawer
   and the place and tab rows slide on one line. */

:is(.parent-desk, .student-desk) .row-more {
  border: 0;
  background: transparent;
  color: #1d4e89;
  font: inherit;
  font-weight: 700;
  padding: 8px;
}

:is(.parent-desk, .student-desk) .saved {
  color: #1f6b45;
  font-weight: 700;
}

:is(.parent-desk, .student-desk) .parent-summary {
  margin: 0 0 12px;
  color: #243b53;
  line-height: normal;
}

:is(.parent-desk, .student-desk) .parent-summary a {
  color: #1d4e89;
}

:is(.parent-desk, .student-desk) .parent-summary span {
  font-weight: normal;
  color: #486581;
}

:is(.parent-desk, .student-desk) .section-list .sis-list-label {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0 0 4px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: normal;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.student-desk label.year select {
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: hsl(var(--foreground));
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
}

@media (max-width: 960px) {
  .student-desk .workspace.classes-open .year select {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }
}

.student-desk #attendance .attendance-sheet th,
.student-desk #attendance .attendance-sheet td {
  line-height: normal;
}

.student-desk .open-classes {
  margin-left: -6px;
  color: hsl(var(--foreground));
  font-size: 16px;
}

.student-desk .sis-account-name {
  color: hsl(var(--foreground));
}

.student-desk #attendance > .message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.student-desk #attendance .choices {
  align-items: end;
  margin-bottom: 12px;
}

.student-desk #attendance .choices label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.student-desk #attendance .choices input[type="date"] {
  box-sizing: content-box;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  background: #fff;
  border: 2px inset rgb(118, 118, 118);
  border-radius: 0;
}

:is(.parent-desk, .student-desk) #attendance .attendance-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

:is(.parent-desk, .student-desk) #attendance .attendance-sheet table {
  border-collapse: collapse;
  width: 100%;
}

:is(.parent-desk, .student-desk) #attendance .attendance-sheet th,
:is(.parent-desk, .student-desk) #attendance .attendance-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
}

:is(.parent-desk, .student-desk) #attendance .attendance-sheet th {
  background: #f8fafc;
  font-size: 14px;
}

:is(.parent-desk, .student-desk) .parent-class {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d5dee8;
}

.parent-desk #grade-blocks .parent-class {
  margin: 0 0 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.parent-desk #grade-blocks .parent-class h2 {
  margin: 0;
  font-size: 1.05rem;
}

.parent-desk #grade-blocks a.class-toggle {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.parent-desk #grade-blocks a.class-toggle span,
.parent-desk #grade-blocks .parent-class h2 span {
  font-weight: normal;
  color: #486581;
}

.parent-desk #grade-blocks a.class-toggle:focus-visible,
.parent-desk #grade-blocks .sort-head:focus-visible {
  outline: 2px solid #1d4e89;
  outline-offset: 2px;
}

.parent-desk #grade-blocks .sort-head {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.parent-desk #grade-blocks .sort-head[aria-pressed="true"] {
  color: #1d4e89;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parent-desk #grade-blocks .sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.parent-desk #grade-blocks .sheet table {
  border-collapse: collapse;
  width: 100%;
}

.parent-desk #grade-blocks .sheet th,
.parent-desk #grade-blocks .sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
}

.parent-desk #grade-blocks .sheet th {
  background: #f8fafc;
  font-size: 14px;
}

.student-desk #grade-blocks .parent-class {
  margin: 0 0 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.student-desk .grades-sheet > .message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.student-desk #grade-blocks .parent-class h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: normal;
}

.student-desk #grade-blocks .parent-class h2 span {
  font-weight: normal;
  line-height: normal;
  color: #486581;
}

.student-desk #grade-blocks .waiting {
  margin: 8px 0;
  color: #1f2933;
  line-height: normal;
}

.student-desk #grade-blocks .grade-card {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  line-height: normal;
}

.student-desk #grade-blocks .grade-card table {
  border-collapse: collapse;
  width: 100%;
}

.student-desk #grade-blocks .grade-card th,
.student-desk #grade-blocks .grade-card td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  line-height: normal;
  white-space: nowrap;
}

.student-desk #grade-blocks .grade-card th {
  background: #f8fafc;
  font-size: 14px;
}

:is(.parent-desk, .student-desk) .parent-class h2,
:is(.parent-desk, .student-desk) .sheet h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

:is(.parent-desk, .student-desk) .grade-wrap {
  overflow-x: auto;
}

:is(.parent-desk, .student-desk) .sheet label {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  font-weight: 700;
}

:is(.parent-desk, .student-desk) .sheet input,
:is(.parent-desk, .student-desk) .sheet select {
  font: inherit;
  padding: 8px;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
}

:is(.parent-desk, .student-desk) .sheet fieldset {
  border: 1px solid #d5dee8;
  border-radius: 8px;
  margin: 0 0 12px;
}

:is(.parent-desk, .student-desk) .calendar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

:is(.parent-desk, .student-desk) .calendar-week,
:is(.parent-desk, .student-desk) .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

:is(.parent-desk, .student-desk) .calendar-week span {
  font-size: 12px;
  font-weight: 700;
  color: #5c6b7a;
  padding: 4px;
}

:is(.parent-desk, .student-desk) .day-cell {
  min-height: 5.5rem;
  border: 1px solid #d9e2ec;
  padding: 4px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

:is(.parent-desk, .student-desk) .day-outside {
  background: #f4f7fa;
}

:is(.parent-desk, .student-desk) .day-number {
  font-weight: 700;
}

:is(.parent-desk, .student-desk) .day-event {
  display: block;
}

:is(.parent-desk, .student-desk) .day-tone-0 { background: #e7f1fb; }
:is(.parent-desk, .student-desk) .day-tone-1 { background: #e5f6ef; }
:is(.parent-desk, .student-desk) .day-tone-2 { background: #fff4df; }
:is(.parent-desk, .student-desk) .day-tone-3 { background: #fdecea; }
:is(.parent-desk, .student-desk) .day-tone-4 { background: #f3e8fb; }
:is(.parent-desk, .student-desk) .day-tone-5 { background: #e7f7fb; }
:is(.parent-desk, .student-desk) .day-tone-6 { background: #f7f3e7; }
:is(.parent-desk, .student-desk) .day-tone-7 { background: #eef1f4; }

:is(.parent-desk, .student-desk) .day-today {
  outline: 3px solid #1d4e89;
  outline-offset: -3px;
}

:is(.parent-desk, .student-desk) .calendar-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(.parent-desk, .student-desk) .calendar-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 1px solid #d9e2ec;
}

:is(.parent-desk, .student-desk) .narrow-stack {
  display: none;
}

.parent-desk .sheet h2.more-who {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.parent-desk .more-facts {
  margin: 0 0 20px;
}

.parent-desk .more-facts h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.parent-desk .more-facts .sheet {
  flex: none;
  min-height: 0;
  padding: 0;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.parent-desk .more-facts .sheet table {
  border-collapse: collapse;
  width: 100%;
}

.parent-desk .more-facts .sheet th,
.parent-desk .more-facts .sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  vertical-align: top;
}

.parent-desk .more-facts .sheet th {
  background: #f8fafc;
  font-size: 14px;
  white-space: nowrap;
}

.parent-desk .more-facts .sheet td {
  white-space: normal;
}

:is(.parent-desk, .student-desk) .behavior-wide {
  display: block;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

:is(.parent-desk, .student-desk) .behavior-wide table {
  border-collapse: collapse;
  width: 100%;
}

:is(.parent-desk, .student-desk) .behavior-wide th,
:is(.parent-desk, .student-desk) .behavior-wide td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

:is(.parent-desk, .student-desk) .behavior-wide th {
  background: #f8fafc;
  font-size: 14px;
}

.student-desk .behavior-sheet,
.student-desk .behavior-wide,
.student-desk .behavior-narrow {
  line-height: normal;
}

.student-desk .behavior-sheet > .message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.student-desk .behavior-sheet > .waiting {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.student-desk .behavior-wide th,
.student-desk .behavior-wide td,
.student-desk .behavior-card,
.student-desk .behavior-card h3,
.student-desk .behavior-card p,
.student-desk .behavior-card span {
  line-height: normal;
}

.student-desk .behavior-wide th {
  white-space: nowrap;
}

.student-desk .behavior-wide table {
  width: max-content;
  min-width: 100%;
}

:is(.parent-desk, .student-desk) .behavior-narrow,
.parent-desk .directory-narrow {
  display: none;
}

.parent-desk .directory-wide {
  display: block;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.parent-desk .directory-wide table {
  border-collapse: collapse;
  width: 100%;
}

.parent-desk .directory-wide th,
.parent-desk .directory-wide td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.parent-desk .directory-wide th {
  background: #f8fafc;
  font-size: 14px;
}

:is(.parent-desk, .student-desk) .behavior-card {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid hsl(214.3 31.8% 91.4%);
}

:is(.parent-desk, .student-desk) .behavior-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

:is(.parent-desk, .student-desk) .behavior-card p {
  margin: 0 0 6px;
}

:is(.parent-desk, .student-desk) .behavior-card span {
  display: block;
  color: hsl(215.4 16.3% 46.9%);
  font-size: 0.85rem;
}

.student-desk .directory-card {
  border: 1px solid #d5dee8;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 10px;
  background: #fff;
}

.parent-desk .directory-card {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid hsl(214.3 31.8% 91.4%);
}

.parent-desk .directory-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.parent-desk .directory-card p {
  margin: 0 0 6px;
}

.parent-desk .directory-card span {
  display: block;
  color: hsl(215.4 16.3% 46.9%);
  font-size: 0.85rem;
}

:is(.parent-desk, .student-desk) .booking-child {
  margin: 14px 12px 4px;
  font-size: 15px;
}

:is(.parent-desk, .student-desk) .booking-teacher {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}

:is(.parent-desk, .student-desk) .booking-when {
  color: #5c6b7a;
  font-size: 13px;
}

:is(.parent-desk, .student-desk) .planner-scroll {
  overflow-x: auto;
}

:is(.parent-desk, .student-desk) .afternoon-track {
  position: relative;
  height: 52px;
  margin: 8px 0 16px;
  background: #f4f7fa;
  border-radius: 8px;
}

:is(.parent-desk, .student-desk) .afternoon-chip {
  position: absolute;
  top: 4px;
  height: 44px;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  border-radius: 6px;
  padding: 4px;
}

:is(.parent-desk, .student-desk) .planner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: max-content;
}

:is(.parent-desk, .student-desk) .planner-gutter,
:is(.parent-desk, .student-desk) .planner-lane {
  width: 11rem;
}

:is(.parent-desk, .student-desk) .planner-head {
  min-height: 3.2rem;
}

:is(.parent-desk, .student-desk) .planner-body {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 44px,
      #e3ebf2 44px,
      #e3ebf2 45px
    );
}

:is(.parent-desk, .student-desk) .planner-tick {
  position: absolute;
  left: 0;
  font-size: 11px;
  color: #5c6b7a;
}

:is(.parent-desk, .student-desk) .planner-slot {
  position: absolute;
  left: 4px;
  right: 4px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--tone, #1d4e89);
  background: #fff;
}

:is(.parent-desk, .student-desk) .planner-slot button,
:is(.parent-desk, .student-desk) .planner-slot > span {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 4px;
}

:is(.parent-desk, .student-desk) .planner-slot.is-held {
  background: var(--tone, #1d4e89);
  color: #fff;
}

:is(.parent-desk, .student-desk) .planner-slot.is-busy {
  background: #eef2f6;
  border-style: dashed;
  color: #5c6b7a;
}

:is(.parent-desk, .student-desk) .planner-slot.is-taken {
  background: repeating-linear-gradient(-45deg, #f7f1e8, #f7f1e8 6px, #efe4d4 6px, #efe4d4 12px);
  color: #6b5344;
}

:is(.parent-desk, .student-desk) .planner-lane {
  border-top: 4px solid var(--tone, #1d4e89);
}

/* Parent Reservations matches the Corteza afternoon: the teacher list is the
   left of the sheet, the day changes by itself, and Your reservations is a panel.
   The year, the children, and her name stay off this sheet. */
.parent-desk.bookings-open.no-children nav.sections,
.parent-desk.bookings-open nav.sections,
.parent-desk.bookings-open .classes-backdrop {
  display: none;
}

.parent-desk.bookings-open .sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.parent-desk.bookings-open #bookings {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.parent-desk.bookings-open .bookings-side {
  flex: 0 0 240px;
  overflow: auto;
  padding: 12px;
  background: #f8fafc;
  border-right: 1px solid #e4e7eb;
}

.parent-desk.bookings-open .bookings-side h2 {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #52606d;
}

.parent-desk.bookings-open .bookings-side h2:first-child {
  margin-top: 0;
}

.parent-desk.bookings-open button.booking-teacher {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0 0 4px;
  padding: 8px 10px;
  background: transparent;
  color: #1f2933;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.parent-desk.bookings-open button.booking-teacher:hover,
.parent-desk.bookings-open button.booking-teacher:focus-visible {
  background: #fff;
}

.parent-desk.bookings-open button.booking-teacher.is-held .booking-teacher-name::before {
  content: "✓ ";
  color: #1d4e89;
}

.parent-desk.bookings-open .booking-teacher-name {
  font-weight: 600;
}

.parent-desk.bookings-open .booking-teacher-when {
  font-size: 12px;
  color: #52606d;
}

.parent-desk.bookings-open .bookings-work {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.parent-desk.bookings-open .bookings-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
}

.parent-desk.bookings-open .bookings-bar label {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.parent-desk.bookings-open .bookings-bar select {
  margin-left: 8px;
  font: inherit;
  font-weight: 400;
}

.parent-desk.bookings-open #bookings-note {
  margin: 8px 16px 0;
}

.parent-desk.bookings-open .afternoon {
  padding: 10px 16px 6px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  overflow-x: auto;
}

.parent-desk.bookings-open .afternoon h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #52606d;
}

.parent-desk.bookings-open .afternoon-track {
  position: relative;
  height: 52px;
  min-width: 640px;
  margin: 0;
  background-color: transparent;
  background-image: linear-gradient(to right, #e8edf3 1px, transparent 1px);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e4e7eb;
}

.parent-desk.bookings-open button.afternoon-chip {
  position: absolute;
  top: 4px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-width: 64px;
  padding: 2px 8px;
  overflow: hidden;
  background: var(--tone, #1d4e89);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.parent-desk.bookings-open button.afternoon-chip:hover,
.parent-desk.bookings-open button.afternoon-chip:focus-visible {
  filter: brightness(1.12);
}

.parent-desk.bookings-open .afternoon-time {
  font-weight: 700;
}

.parent-desk.bookings-open .afternoon-who,
.parent-desk.bookings-open .afternoon-kid {
  overflow: hidden;
  text-overflow: ellipsis;
}

.parent-desk.bookings-open .afternoon-kid {
  opacity: 0.85;
}

.parent-desk.bookings-open .afternoon-marks {
  position: relative;
  height: 18px;
  min-width: 640px;
}

.parent-desk.bookings-open .afternoon-mark {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7b8794;
  white-space: nowrap;
}

.parent-desk.bookings-open .afternoon-mark.is-first {
  transform: none;
}

.parent-desk.bookings-open .afternoon-mark.is-last {
  transform: translateX(-100%);
}

.parent-desk.bookings-open .bookings-columns {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #f8fafc;
}

.parent-desk.bookings-open .planner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.parent-desk.bookings-open .planner-head {
  position: sticky;
  top: 0;
  z-index: 3;
  box-sizing: border-box;
  height: 72px;
  min-height: 0;
  padding: 8px 12px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #d9e2ec;
}

.parent-desk.bookings-open .planner-head h2 {
  margin: 0;
  font-size: 15px;
  color: var(--tone, #1f2933);
}

.parent-desk.bookings-open .planner-head p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  color: #52606d;
}

.parent-desk.bookings-open .planner-gutter {
  position: sticky;
  left: 0;
  z-index: 4;
  flex: 0 0 64px;
  width: 64px;
  background: #fff;
  border-right: 1px solid #d9e2ec;
}

.parent-desk.bookings-open .planner-gutter .planner-head {
  z-index: 5;
}

.parent-desk.bookings-open .planner-body {
  position: relative;
  --quarter: 45px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--quarter) - 1px), #e8edf3 calc(var(--quarter) - 1px), #e8edf3 var(--quarter));
}

.parent-desk.bookings-open .planner-gutter .planner-body {
  background-image: none;
}

.parent-desk.bookings-open .planner-tick {
  position: absolute;
  right: 8px;
  left: auto;
  transform: translateY(-50%);
  font-size: 11px;
  color: #7b8794;
  white-space: nowrap;
}

.parent-desk.bookings-open .planner-tick.is-hour {
  font-weight: 700;
  color: #1f2933;
}

.parent-desk.bookings-open .planner-tick:first-child {
  transform: none;
}

.parent-desk.bookings-open .planner-lane {
  flex: 0 0 220px;
  width: 220px;
  border-top: 0;
  border-right: 1px solid #e4e7eb;
}

.parent-desk.bookings-open .planner-lane .planner-head {
  border-top: 3px solid var(--tone, #1d4e89);
}

.parent-desk.bookings-open .planner-slot {
  position: absolute;
  left: 8px;
  right: 8px;
  display: flex;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.parent-desk.bookings-open button.booking-slot {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  overflow: hidden;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.parent-desk.bookings-open button.booking-slot.is-open {
  background: #fff;
  color: var(--tone, #1d4e89);
  border: 1.5px solid var(--tone, #1d4e89);
  border-radius: 999px;
}

.parent-desk.bookings-open button.booking-slot.is-open:hover,
.parent-desk.bookings-open button.booking-slot.is-open:focus-visible {
  background: var(--tone, #1d4e89);
  color: #fff;
}

.parent-desk.bookings-open button.booking-slot.is-held {
  background: var(--tone, #1d4e89);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.parent-desk.bookings-open button.booking-slot.is-busy {
  background: color-mix(in srgb, var(--tone, #1d4e89) 12%, #fff);
  color: var(--tone, #1d4e89);
  border: 1.5px dashed var(--tone, #1d4e89);
  border-radius: 8px;
}

.parent-desk.bookings-open .booking-taken {
  flex: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: repeating-linear-gradient(135deg, #f4f6f9 0, #f4f6f9 6px, #e9edf2 6px, #e9edf2 12px);
  color: #9aa5b1;
  border-radius: 8px;
  font-size: 12px;
}

.parent-desk.bookings-open .bookings-panel:not([hidden]) {
  position: absolute;
  top: 72px;
  left: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 88px);
  overflow: auto;
}

.parent-desk.bookings-open .bookings-panel[hidden] {
  display: none;
}

.parent-desk.bookings-open .booking-panel-card {
  width: max-content;
  max-width: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.parent-desk.bookings-open .booking-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.parent-desk.bookings-open .booking-panel-bar h2 {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 960px) {
  :is(.parent-desk, .student-desk) .places,
  :is(.parent-desk, .student-desk) .tasks {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  :is(.parent-desk, .student-desk) .places.row-open,
  :is(.parent-desk, .student-desk) .tasks.row-open {
    flex-wrap: wrap;
    overflow: visible;
  }

  :is(.parent-desk, .student-desk) .places a,
  :is(.parent-desk, .student-desk) .tasks a {
    font-size: 16px;
    flex: 0 0 auto;
  }

  :is(.parent-desk, .student-desk) .calendar-grid {
    display: none;
  }

  :is(.parent-desk, .student-desk) .calendar-list,
  :is(.parent-desk, .student-desk) .narrow-stack {
    display: block;
  }

  :is(.parent-desk, .student-desk) .wide-table {
    display: none;
  }

  :is(.parent-desk, .student-desk) .behavior-wide,
  .parent-desk .directory-wide {
    display: none;
  }

  :is(.parent-desk, .student-desk) .behavior-narrow,
  .parent-desk .directory-narrow {
    display: block;
  }

  :is(.parent-desk, .student-desk).no-children .sections {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
  }

  :is(.parent-desk, .student-desk).no-children .classes-backdrop {
    display: none;
  }
}

@media (min-width: 961px) {
  :is(.parent-desk, .student-desk) .narrow-stack {
    display: none;
  }
}

/* System admin Desk.
   Wide window: the roll keeps the teacher column and the period row in view.
   Below 961 pixels, and on a short window, the grid stacks and the course list
   is one screen. */

.admin-desk .places {
  overflow-x: auto;
}

/* Year menu and left list. Same rows as the Corteza admin column:
   a small label, a 36 pixel menu, and a quiet row. The open row is a light wash. */
.admin-desk label.year {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk .sis-list-label {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: normal;
  text-transform: uppercase;
  color: hsl(215.4 16.3% 46.9%);
}

.admin-desk label.year select {
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: calc(0.5rem - 2px);
  font-size: 14px;
  font-weight: 400;
  color: hsl(222.2 84% 4.9%);
  background: #fff;
}

.admin-desk a.sis-list-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  border-radius: calc(0.5rem - 2px);
  background: transparent;
  color: hsl(215.4 16.3% 46.9%);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.admin-desk a.sis-list-row:hover {
  color: hsl(222.2 84% 4.9%);
  background: hsl(210 40% 96.1%);
}

.admin-desk a.sis-list-row[aria-current="page"],
.admin-desk a.sis-list-row[aria-current="page"]:hover {
  color: hsl(222.2 84% 4.9%);
  font-weight: 500;
  background: hsl(210 64% 33% / 10%);
}

.admin-desk .sis-list-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-desk .choices,
.admin-desk .user-fields label,
.admin-desk .role-card label {
  display: block;
  margin: 8px 0;
}

.admin-desk input,
.admin-desk select,
.admin-desk textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.admin-desk textarea {
  min-height: 88px;
}

.admin-desk form button,
.admin-desk .roll-save,
.admin-desk .day-save,
.admin-desk .excuse-classes,
.admin-desk a.quiet {
  min-height: 44px;
  margin: 4px 4px 4px 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  text-decoration: none;
}

.admin-desk form button.quiet,
.admin-desk a.quiet {
  background: #fff;
  color: #1d4e89;
  border: 1px solid #1d4e89;
}

.admin-desk .checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.admin-desk .checks label,
.admin-desk .user-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.admin-desk .sheet-table,
.admin-desk .health-editor {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
}

.admin-desk .health-editor {
  margin: 12px 0;
  padding: 12px;
}

.admin-desk #roles .role-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 36rem;
  margin: 0;
  padding: 8px 0 16px;
  border: 0;
  border-bottom: 1px solid #e4e7eb;
  border-radius: 0;
  background: transparent;
  color: #1f2933;
  font-weight: 400;
}

.admin-desk #roles .role-card h2 {
  margin: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #roles .role-card > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  color: #1f2933;
}

.admin-desk #roles .role-card select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #767676;
  border-radius: 0;
  background: #efefef;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #roles .role-card .user-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #roles .role-card .user-check input {
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 3px 3px 3px 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-desk #roles .role-card button {
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.admin-desk #roles .role-card button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk .sheet-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk .sheet-table th,
.admin-desk .sheet-table td {
  border-bottom: 1px solid #e4e7eb;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.table-scroll {
  overflow-x: auto;
}

.admin-desk .directory-list {
  padding-left: 1.2rem;
}

.admin-desk p.directory-actions {
  margin: 0 0 12px;
}

.admin-desk a.directory-add,
.admin-desk form.user-form button {
  display: inline-block;
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
}

.admin-desk form.user-form {
  width: 100%;
  max-width: 36rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-desk form.user-form h1 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: normal;
  color: #1f2933;
}

.admin-desk form.user-form label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 400;
  color: #1f2933;
}

.admin-desk form.user-form input[type="text"],
.admin-desk form.user-form input[type="email"],
.admin-desk form.user-form input[type="password"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk form.user-form select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid #767676;
  border-radius: 0;
  background: #efefef;
  color: #000;
  font: inherit;
}

.admin-desk form.user-form .user-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  font-size: 14px;
}

.admin-desk form.user-form .user-check input {
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
}

.admin-desk form.user-form p {
  margin: 16px 0;
  font-size: 16px;
  font-weight: 400;
  color: #1f2933;
}

.admin-desk ul.user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-desk .user-list a {
  display: block;
  min-height: 0;
  padding: 12px 4px;
  border-bottom: 1px solid #e4e7eb;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}

.admin-desk .user-list a:hover,
.admin-desk .user-list a:focus-visible {
  background: #f8fafc;
}

.admin-desk main.sheet:has(#staff-note) {
  display: flex;
  flex-direction: column;
}

.admin-desk #staff-note {
  margin: auto 0 8px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #password-filter label {
  line-height: normal;
}

.admin-desk #password-empty {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #password-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  line-height: normal;
}

.admin-desk #password-sheet[hidden] {
  display: none;
}

.admin-desk #password-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #password-sheet th,
.admin-desk #password-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #password-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #password-sheet td.plain {
  white-space: normal;
}

.admin-desk main.sheet:has(#enrollment-form) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #enrollment-form.student-sheet {
  max-width: none;
}

.admin-desk #enrollment-form .student-note {
  margin: 0 0 12px;
  color: #52606d;
  max-width: 44rem;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #enrollment-form .student-actions > label {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #enrollment-form .student-actions input[type="search"],
.admin-desk #enrollment-form .student-actions input[type="date"] {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: 24rem;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  border-radius: 0;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #enrollment-form .student-actions input[type="search"] {
  padding: 1px 2px;
  border: 2px inset #767676;
  font-family: sans-serif;
  font-size: 13.3333px;
}

.admin-desk #enrollment-form .student-actions input[type="date"] {
  box-sizing: border-box;
  width: 166px;
  padding: 6px 8px;
  border: 2px inset #767676;
  font-size: 14px;
}

.admin-desk #enrollment-form button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #enrollment-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #enrollment-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  line-height: normal;
  padding: 0;
  flex: none;
  min-height: 0;
}

.admin-desk #enrollment-sheet[hidden],
.admin-desk #enrollment-empty[hidden],
.admin-desk #enrollment-error[hidden] {
  display: none;
}

.admin-desk #enrollment-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #enrollment-sheet th,
.admin-desk #enrollment-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #enrollment-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #enrollment-sheet input,
.admin-desk #enrollment-sheet select {
  display: inline-block;
  width: auto;
  max-width: 14rem;
  min-height: 0;
  height: auto;
  margin-top: 0;
  padding: 6px 8px;
  border: 2px inset #767676;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  background: #fff;
}

.admin-desk #enrollment-form input[type="checkbox"] {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.admin-desk #enrollment-empty {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk main.sheet:has(#classes-form) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #classes-form.student-sheet {
  max-width: none;
}

.admin-desk #classes-form .student-note {
  margin: 0 0 12px;
  color: #52606d;
  max-width: 44rem;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #classes-form .student-actions > label {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #classes-form .student-actions input[type="search"],
.admin-desk #classes-form .student-actions select {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: 24rem;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  border-radius: 0;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #classes-form .student-actions input[type="search"] {
  padding: 1px 2px;
  border: 2px inset #767676;
  font-family: sans-serif;
  font-size: 13.3333px;
}

.admin-desk #classes-form .student-actions select {
  box-sizing: border-box;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #767676;
  background: #efefef;
  font: inherit;
  font-size: 14px;
}

.admin-desk #classes-form > button,
.admin-desk #classes-form .student-actions > button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #classes-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #classes-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  line-height: normal;
  padding: 0;
  flex: none;
  min-height: 0;
}

.admin-desk #classes-sheet[hidden],
.admin-desk #classes-empty[hidden],
.admin-desk #classes-error[hidden] {
  display: none;
}

.admin-desk #classes-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #classes-sheet th,
.admin-desk #classes-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #classes-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #classes-sheet input[type="text"],
.admin-desk #classes-sheet input:not([type]) {
  display: inline-block;
  box-sizing: content-box;
  width: auto;
  max-width: 14rem;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font-family: sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #classes-sheet input[type="date"] {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 14rem;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 6px 8px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #classes-form button.quiet {
  display: inline-block;
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  background: #fff;
  color: #1d4e89;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #classes-empty {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk main.sheet:has(#documents-form) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #documents-form.student-sheet {
  max-width: none;
}

.admin-desk #documents-form .student-note {
  margin: 0 0 12px;
  color: #52606d;
  max-width: 44rem;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-form .student-actions > label {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #documents-form .student-actions input[type="search"] {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: 24rem;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font-family: sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-form > button,
.admin-desk #documents-form .student-actions > button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #documents-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  line-height: normal;
  padding: 0;
  flex: none;
  min-height: 0;
}

.admin-desk #documents-sheet[hidden],
.admin-desk #documents-empty[hidden],
.admin-desk #documents-error[hidden] {
  display: none;
}

.admin-desk #documents-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #documents-sheet th,
.admin-desk #documents-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #documents-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #documents-sheet input:not([type]),
.admin-desk #documents-sheet input[type="text"] {
  display: inline-block;
  box-sizing: content-box;
  width: auto;
  max-width: 14rem;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font-family: sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-sheet select {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 14rem;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #767676;
  border-radius: 0;
  background: #efefef;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-sheet input[type="file"] {
  display: inline-block;
  width: auto;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-form button.quiet {
  display: inline-block;
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  background: #fff;
  color: #1d4e89;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #documents-empty {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #student-extract.student-sheet {
  max-width: none;
}

.admin-desk #student-extract > .student-note {
  margin: 0 0 12px;
  color: #52606d;
  max-width: 44rem;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #student-extract .student-actions > label {
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #student-extract .student-actions input[type="search"] {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: 24rem;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font-family: sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #extract-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  line-height: normal;
  padding: 0;
  flex: none;
  min-height: 0;
}

.admin-desk #extract-sheet[hidden],
.admin-desk #extract-empty[hidden],
.admin-desk #extract-error[hidden] {
  display: none;
}

.admin-desk #extract-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #extract-sheet th,
.admin-desk #extract-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #1f2933;
}

.admin-desk #extract-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #extract-sheet td.plain {
  white-space: normal;
}

.admin-desk #extract-empty {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk a.sis-account-profile,
.admin-desk a.sis-account-settings,
.admin-desk a.sis-account-logout {
  min-height: 36px;
}

.admin-desk .directory-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.roll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.roll-grid-wrap {
  max-height: 68vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
}

.roll-grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.roll-grid th,
.roll-grid td {
  padding: 3px;
  border-bottom: 1px solid #f0f2f5;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.roll-grid tbody tr:last-child th,
.roll-grid tbody tr:last-child td {
  border-bottom: 0;
}

.roll-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  font-size: 0.8125rem;
  white-space: nowrap;
  text-align: center;
}

.roll-grid thead th small {
  display: block;
  color: #52606d;
  font-weight: 400;
}

.roll-grid .stick-left {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 9rem;
  max-width: 14rem;
  padding: 4px 10px;
  border-right: 1px solid #e4e7eb;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
}

.roll-grid thead .stick-left {
  z-index: 3;
  background: #f8fafc;
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-desk .roll-grid .roll-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 4.25rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  line-height: 1.15;
  cursor: pointer;
}

.admin-desk .roll-grid .roll-cell[data-state="none"] {
  border-color: #f4b6b0;
  background: #fde8e6;
  color: #b42318;
}

.admin-desk .roll-grid .roll-cell[data-state="partly"] {
  border-color: #f3cf9a;
  background: #fef0d9;
  color: #b54708;
}

.admin-desk .roll-grid .roll-cell[data-state="waiting"] {
  border-color: #e4e7eb;
  background: #f0f2f5;
  color: #52606d;
}

.admin-desk .roll-grid .roll-cell[data-state="taken"] {
  border-color: #b5dcc4;
  background: #e3f4ea;
  color: #1a6b3c;
}

.roll-mark {
  font-size: 1rem;
  font-weight: 700;
}

.roll-note {
  font-size: 0.6875rem;
}

.roll-out,
.roll-out ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roll-out > h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.roll-out > ul > li {
  padding: 8px 0;
  border-top: 1px solid #f0f2f5;
}

.roll-out-name {
  display: block;
  font-weight: 600;
}

.roll-out ul ul li {
  color: #52606d;
  font-size: 0.875rem;
}

.student-day {
  margin: 0 0 16px;
}

/* Office roll controls. Date, the student menu, Today, and Refresh sit on one line.
   Below 961 pixels, including a phone turned sideways, they wrap. */
#roll .roll-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

#roll .roll-head h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
}

#roll .roll-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}

#roll .roll-actions label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk #roll .roll-actions select {
  width: auto;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #020817;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk #roll .roll-actions input[type="date"] {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  border: 2px inset #767676;
  border-radius: 0;
  color: #000;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk #roll .roll-actions select {
  min-width: 12rem;
  max-width: 100%;
}

.admin-desk #roll .roll-actions button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
}

/* Official day. On a wide window the mark sits beside the times and the buttons.
   Below 961 pixels, including a phone held upright and a phone turned sideways,
   the controls wrap onto the next line. */
.official-day {
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #f0f2f5;
}

.official-day-note {
  margin: 0 0 8px;
}

.official-day-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
}

.admin-desk .official-day-picks select,
.admin-desk .official-day-picks input[type="time"] {
  width: auto;
  min-height: 2.75rem;
  margin-top: 0;
}

.official-day [hidden] {
  display: none;
}

.roll-names {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roll-names li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid #f0f2f5;
}

.roll-edits li.roll-edit {
  flex-wrap: wrap;
  align-items: center;
}

.roll-edit-name {
  flex: 1 1 12rem;
  min-width: 0;
}

.roll-edit-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-desk .roll-edit-picks select {
  width: auto;
  min-height: 2.75rem;
  margin-top: 0;
}

.roll-edit [hidden] {
  display: none;
}

.roll-edit-fixed {
  flex: 1 1 12rem;
  font-size: 0.875rem;
  text-align: right;
}

.day-actions,
.roll-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.day-status,
.roll-status {
  color: #1a6b3c;
  font-size: 0.875rem;
}

.day-status.failed,
.roll-status.failed {
  color: #9b1c1c;
}

.admin-desk main.sheet:has(#courses) > .message.is-alert {
  font-weight: 400;
}

#courses .course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

#courses .course-actions button {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

#courses-form > .course-actions:last-child {
  margin: 16px 0 0;
}

.course-desk {
  align-items: start;
}

@media (min-width: 961px) {
  .course-desk {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 24px;
  }

  #courses .course-back {
    display: none;
  }
}

@media (max-width: 960px) {
  #course-wait {
    display: none;
  }

  #courses.course-open .course-list-pane {
    display: none;
  }
}

.department-block {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e7eb;
}

#department-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#department-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e4e7eb;
}

#department-list input {
  flex: 1;
  min-width: 0;
  font: inherit;
}

#department-list button,
.course-earlier button {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.department-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
  margin: 12px 0 0;
}

.department-add label {
  flex: 1 1 8rem;
  min-width: 0;
}

.department-add input {
  width: 100%;
  font: inherit;
}

.department-add button,
#courses .add-course {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

#course-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#course-list button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e4e7eb;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

#course-list button[aria-current="true"] {
  background: #eef4fb;
}

.course-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 12px 16px;
}

.course-fields label {
  display: block;
}

.course-span {
  grid-column: 1 / -1;
}

#courses .course-label {
  display: block;
  margin: 14px 0 4px;
  font-size: 14px;
  font-weight: 400;
}

.course-fields select,
.course-fields input[type="text"] {
  width: 100%;
  max-width: 100%;
  font: inherit;
}

.course-fields fieldset {
  margin: 0;
  padding: 8px 12px 12px;
  border: 1px solid #d9e2ec;
}

.course-fields legend {
  font-size: 14px;
  padding: 0 4px;
}

.course-print,
#courses label.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.course-add {
  display: block;
  margin-top: 8px;
}

.course-earlier {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-earlier li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 4px 0;
}

#courses .waiting {
  margin: 8px 0;
  color: #1f2933;
  font-weight: 400;
}

.admin-desk .conduct-today {
  max-width: 64rem;
}

.admin-desk main.sheet:has(#conduct-today) > .message,
.admin-desk main.sheet:has(#conduct-today) > .message.is-alert {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
}

.admin-desk main.sheet:has(#conduct-today) > .message.is-alert {
  color: #9b1c1c;
}

.admin-desk .conduct-today .waiting {
  margin: 8px 0;
  color: #1f2933;
  font-weight: 400;
  line-height: normal;
}

.admin-desk .conduct-today .health-student {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk .conduct-today .health-student select {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-top: 4px;
}

.admin-desk .conduct-today .roll-actions {
  margin: 8px 0 12px;
}

.admin-desk .conduct-today .roll-actions button,
.admin-desk #detention-add button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.admin-desk #conduct-tasks {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  height: auto;
  overflow: visible;
}

.admin-desk #conduct-tasks[hidden],
.admin-desk #conduct-referrals[hidden],
.admin-desk #conduct-consequence[hidden] {
  display: none;
}

.admin-desk #conduct-tasks button {
  height: 32px;
  margin: 0;
  padding: 0 12px;
  background: transparent;
  color: hsl(215.4 16.3% 46.9%);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
}

.admin-desk #conduct-tasks button[aria-pressed="true"] {
  background: transparent;
  color: #1f2933;
  border-bottom-color: #1d4e89;
  font-weight: 600;
}

.admin-desk .conduct-table {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk .conduct-today table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.admin-desk .conduct-today th,
.admin-desk .conduct-today td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-desk .conduct-today th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk .conduct-today td.plain {
  white-space: normal;
  max-width: 24rem;
}

.admin-desk .detention-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 12px;
}

.admin-desk .detention-add[hidden] {
  display: none;
}

.admin-desk .detention-add label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk .conduct-today input,
.admin-desk .conduct-today select {
  display: block;
  width: auto;
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 0;
  background: rgb(239, 239, 239);
  font: inherit;
  font-weight: 400;
  color: rgb(0, 0, 0);
}

.admin-desk .conduct-today .check,
.admin-desk .detention-add .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-weight: 400;
}

.admin-desk .conduct-today .check input,
.admin-desk .detention-add .check input {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
}

.admin-desk #behavior-setup {
  line-height: normal;
}

.admin-desk #behavior-setup h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: normal;
}

.admin-desk #behavior-setup .waiting {
  margin: 8px 0;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #behavior-setup #consequence-name {
  display: block;
  box-sizing: content-box;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 4px 0 0;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
  color: #000;
}

.admin-desk #consequence-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-desk #consequence-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e4e7eb;
}

.admin-desk #consequence-list input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: content-box;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  color: #000;
}

.admin-desk #behavior-setup button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.admin-desk main.sheet:has(#behavior-setup) > .message.is-alert {
  font-weight: 400;
}

.admin-desk .conduct-today button.quiet {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  background: #fff;
  color: #1d4e89;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.admin-desk .health-today {
  max-width: 64rem;
}

.admin-desk .health-today h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-desk .health-today .waiting {
  margin: 8px 0;
  color: inherit;
}

.admin-desk .health-today .roll-actions {
  margin: 8px 0 12px;
}

.admin-desk .health-today .sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk .health-today table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.admin-desk .health-today th,
.admin-desk .health-today td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  background: transparent;
}

.admin-desk .health-today th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk .health-today button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.admin-desk .health-today button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk .health-today button.quiet {
  min-height: 0;
  padding: 8px 14px;
  background: #fff;
  color: #1d4e89;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  font-weight: 400;
}

.admin-desk .health-today .health-count {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
}

.admin-desk .health-today .health-count[aria-pressed="true"] {
  font-weight: 600;
  box-shadow: inset 0 0 0 2px #1d4e89;
}

.admin-desk .health-today .health-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 12px;
}

.admin-desk .health-today .health-add label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.admin-desk .health-today input,
.admin-desk .health-today select {
  display: block;
  width: auto;
  min-height: 0;
  height: auto;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
}

.admin-desk .health-today .sheet input[type="text"] {
  width: 12rem;
  max-width: 100%;
}

.admin-desk .health-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 16px 0 8px;
}

#health-edit[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .admin-desk #conduct-tasks {
    flex-wrap: wrap;
    overflow: visible;
  }

  .admin-desk #conduct-tasks button {
    height: 40px;
    font-size: 16px;
  }
}

@media (min-width: 961px) {
  .roll-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .roll-out {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

@media (max-width: 960px) {
  .roll-out {
    margin-top: 16px;
  }
}

@media (max-height: 500px) {
  .roll-grid-wrap {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .roll-grid .stick-left {
    min-width: 6.5rem;
    max-width: 8rem;
    padding: 4px 6px;
    font-size: 0.8125rem;
  }

  .admin-desk .roll-grid .roll-cell {
    min-width: 3.5rem;
  }
}

#roll-class .roll-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

#roll-class .roll-actions button {
  margin: 0;
}

#roll-class button:disabled {
  opacity: 0.6;
  cursor: default;
}

#roll-class button.day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

#roll-class button.day-head:hover,
#roll-class button.day-head:focus-visible {
  background: rgba(29, 78, 137, 0.08);
}

#roll-class .day-today {
  font-size: 11px;
  font-weight: 500;
  color: #1d4e89;
}

#roll-class .roll-when {
  margin: 0 0 6px;
  color: #52606d;
  font-size: 0.875rem;
}

#roll-class[hidden] {
  display: none;
}

.admin-desk .row-more {
  border: 0;
  background: transparent;
  color: #1d4e89;
  font: inherit;
  font-weight: 700;
  padding: 8px;
}

@media (max-width: 960px) {
  .admin-desk .taskbar > .tabline {
    flex: 1 1 0;
    min-width: 0;
  }

  .admin-desk .open-classes {
    margin-left: -6px;
    color: hsl(var(--foreground));
  }

  .admin-desk .places,
  .admin-desk .tasks {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 12px;
  }

  .admin-desk .places a,
  .admin-desk .tasks a {
    scroll-margin-inline: 12px;
  }

  .admin-desk .places::-webkit-scrollbar,
  .admin-desk .tasks::-webkit-scrollbar {
    display: none;
  }

  .admin-desk .places.row-open,
  .admin-desk .tasks.row-open {
    flex-wrap: wrap;
    overflow: visible;
  }

  .admin-desk .places a,
  .admin-desk .tasks a {
    font-size: 16px;
    flex: 0 0 auto;
  }

  .admin-desk label.year select,
  .admin-desk #roll .roll-actions input,
  .admin-desk #roll .roll-actions select {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }

  .admin-desk form.user-form input[type="text"],
  .admin-desk form.user-form input[type="email"],
  .admin-desk form.user-form input[type="password"],
  .admin-desk form.user-form select {
    max-width: none;
  }

  .admin-desk a.sis-account-profile,
  .admin-desk a.sis-account-settings,
  .admin-desk a.sis-account-logout {
    min-height: 40px;
  }

}

.admin-desk #person-form.file-open,
.admin-desk #student-file {
  max-width: 64rem;
}

.admin-desk #student-file .sheet,
.admin-desk .payer-card .sheet {
  flex: none;
  min-width: 0;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk #student-file .sheet table,
.admin-desk .payer-card .sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #student-file .sheet th,
.admin-desk #student-file .sheet td,
.admin-desk .payer-card .sheet th,
.admin-desk .payer-card .sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
}

.admin-desk #student-file .sheet th,
.admin-desk .payer-card .sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #student-file .sheet input,
.admin-desk #student-file .sheet select,
.admin-desk .payer-card .sheet input,
.admin-desk .payer-card .sheet select {
  width: auto;
  max-width: 14rem;
  display: inline-block;
  margin-top: 0;
}

.admin-desk #person-form .user-check,
.admin-desk #student-file .user-check {
  min-height: 0;
}

.admin-desk #person-form.file-open button.quiet {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  background: #fff;
  color: #1d4e89;
  font-weight: 400;
}

.admin-desk #student-file input:not([type="checkbox"]):not([type="date"]),
.admin-desk #student-file textarea {
  min-height: 0;
  height: auto;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  font-family: sans-serif;
  font-size: 13.3333px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #student-file textarea {
  min-height: 2.5em;
  font-family: inherit;
  font-size: 16px;
}

.admin-desk #person-form input[type="date"],
.admin-desk #student-file input[type="date"] {
  min-height: 0;
  padding: 6px 8px;
  border: 1px solid #767676;
  border-radius: 0;
  font: inherit;
}

.admin-desk .student-note {
  line-height: normal;
}

.student-note {
  margin: 0 0 12px;
  color: #52606d;
  max-width: 44rem;
}

.student-block {
  margin: 8px 0 20px;
  padding-top: 12px;
  border-top: 1px solid #e4e7eb;
}

.student-block h2,
.payer-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: end;
  margin: 0 0 12px;
}

.student-actions > label,
#student-file label.stack-label {
  display: block;
  margin: 0;
}

.student-actions input,
.student-actions select,
#student-file label.stack-label input,
#student-file label.stack-label select,
#student-file label.stack-label textarea {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-top: 4px;
}

.student-checks,
.student-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.payer-card {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 8px 0 12px;
  background: #fff;
}

#student-file .user-check,
#student-file .sheet-table label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

/* Student sheets. One stack on a wide window and on a phone.
   Name, birth, standing, and sign-in sit in a wrapping row on a wide window.
   Below 961 pixels, including a phone turned sideways, each of those fields is on its own line.
   A date and a class count stay on one line. A wide table scrolls sideways. */
.admin-desk .student-sheet {
  max-width: 64rem;
}

.admin-desk .student-sheet > label.stack-label {
  display: block;
  max-width: 24rem;
  margin: 0 0 12px;
}

.admin-desk .student-sheet > label.stack-label input,
.admin-desk .student-sheet > label.stack-label select {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-top: 4px;
}

@media (min-width: 961px) {
  .admin-desk .student-sheet .field-row,
  .admin-desk #student-file .field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 16px;
  }

  .admin-desk .user-fields .field-row > label.stack-label,
  .admin-desk #student-file .field-row > label.stack-label {
    flex: 1 1 16rem;
    width: auto;
    max-width: 20rem;
    min-width: 12rem;
    margin: 0;
  }

  .admin-desk #student-file .field-row > label.stack-label input,
  .admin-desk #student-file .field-row > label.stack-label select,
  .admin-desk .student-sheet .field-row > label.stack-label input,
  .admin-desk .student-sheet .field-row > label.stack-label select {
    width: 100%;
    max-width: none;
  }
}

.admin-desk .student-sheet .sheet-table td.stay,
.admin-desk .student-sheet .sheet-table th.stay {
  white-space: nowrap;
}

.admin-desk .student-sheet .sheet-table td.wrap {
  white-space: normal;
}

.admin-desk .student-sheet .sheet-table input[data-edge="letter"] {
  width: 4.5rem;
}

.admin-desk .student-sheet .sheet-table input[data-edge="percent"] {
  width: 5.5rem;
}

.admin-desk .student-sheet .sheet-table textarea {
  display: block;
  width: 20rem;
  max-width: 24rem;
  white-space: pre-wrap;
}

.admin-desk .student-sheet input[type="checkbox"],
.admin-desk #student-file input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.admin-desk .student-sheet .sheet-table input[type="file"] {
  width: auto;
  max-width: 16rem;
  min-height: 0;
  padding: 4px;
}

/* Teacher desk sheets. The month is a grid on a wide window.
   Below 961 pixels, including a phone turned sideways, it is a list.
   The task row slides. The attendance Today mark keeps its own color. */

.teacher-desk .saved {
  color: #1f6b45;
  font-weight: 700;
}

.teacher-desk .row-more {
  border: 0;
  background: transparent;
  color: #1d4e89;
  font: inherit;
  font-weight: 700;
  padding: 8px;
}

/* Teacher frame. The year, the class rows, and All follow the Corteza desk.
   Below 961 pixels, including a phone turned sideways, All opens the words
   that do not fit, and the menu button opens the class list. */

.teacher-desk .section-list label.year {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}

.teacher-desk .section-list .sis-list-label {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0 0 4px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: normal;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.teacher-desk .section-list label.year select {
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 400;
  color: hsl(var(--foreground));
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
}

.teacher-desk .class-list {
  gap: 2px;
}

.teacher-desk a.sis-list-row {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0 8px;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.teacher-desk a.sis-list-row:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.teacher-desk a.sis-list-row[aria-current="page"],
.teacher-desk a.sis-list-row[aria-current="page"]:hover {
  color: hsl(var(--foreground));
  font-weight: 500;
  background: hsl(var(--primary) / 10%);
}

.teacher-desk .roll-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-desk .roll-due {
  margin-left: auto;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #1d4e89;
}

.teacher-desk .open-classes {
  margin-left: -6px;
}

.teacher-desk .sis-account-menu a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 4px 8px;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.teacher-desk .sis-account-menu a:hover {
  background: hsl(var(--muted));
}

.teacher-desk.messages-open nav.sections {
  display: none;
}

:is(.teacher-desk, .parent-desk, .admin-desk) button.tab-more {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: hsl(222.2 84% 4.9%);
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
}

:is(.teacher-desk, .parent-desk, .admin-desk) button.tab-more[hidden] {
  display: none;
}

:is(.teacher-desk, .parent-desk, .admin-desk) button.tab-more svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

:is(.teacher-desk, .parent-desk, .admin-desk) button.tab-more:hover,
:is(.teacher-desk, .parent-desk, .admin-desk) button.tab-more[aria-expanded="true"] {
  background: hsl(210 40% 96.1%);
}

:is(.teacher-desk, .parent-desk, .admin-desk) .tab-menu {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 12rem;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

:is(.teacher-desk, .parent-desk, .admin-desk) .tab-menu[hidden] {
  display: none;
}

:is(.teacher-desk, .parent-desk, .admin-desk) .tab-menu button {
  min-height: 40px;
  padding: 8px 12px;
  background: transparent;
  color: #1f2933;
  border: 0;
  border-radius: 4px;
  text-align: left;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

:is(.teacher-desk, .parent-desk, .admin-desk) .tab-menu button[aria-current="true"] {
  font-weight: 600;
  background: hsl(210 40% 96.1%);
  box-shadow: inset 3px 0 0 #1d4e89;
}

:is(.teacher-desk, .parent-desk, .admin-desk) .tab-menu button:hover,
:is(.teacher-desk, .parent-desk, .admin-desk) .tab-menu button:focus-visible {
  background: hsl(210 40% 96.1%);
}

.teacher-desk .parent-summary {
  margin: 0 0 10px;
  line-height: 1.5;
}

.teacher-desk .grade-wrap {
  overflow-x: auto;
}

.teacher-desk .sheet label {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  font-weight: 700;
}

.teacher-desk .sheet input,
.teacher-desk .sheet select,
.teacher-desk .sheet textarea {
  font: inherit;
  padding: 8px;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  box-sizing: border-box;
  max-width: 100%;
}

.teacher-desk .sheet textarea {
  width: min(100%, 40rem);
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-bar h2 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 9rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-bar a.quiet,
:is(.teacher-desk, .parent-desk, .student-desk) #calendar form button {
  min-height: 0;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 400;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar form button:not(.quiet) {
  background: #1d4e89;
  color: #fff;
  border: 0;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar form.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar form.choices label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar form.choices input,
:is(.teacher-desk, .parent-desk, .student-desk) #calendar form.choices select {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Behavior matches the Corteza note form. A wide window is the table.
   Below 961 pixels, including a phone turned sideways, each note is a card.
   Save note is the blue button. The share box stores the choice by itself. */

.teacher-desk #behavior form.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.teacher-desk #behavior form.choices label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.teacher-desk #behavior label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.teacher-desk #behavior form.choices input,
.teacher-desk #behavior form.choices select,
.teacher-desk #behavior form.choices textarea {
  display: block;
  width: auto;
  min-height: 0;
  margin-top: 0;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid #c5d0dc;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
  background: #fff;
}

.teacher-desk #behavior form.choices textarea {
  width: 20rem;
}

.teacher-desk #behavior form.choices button {
  min-height: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.teacher-desk #behavior .behavior-wide {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.teacher-desk #behavior table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.teacher-desk #behavior th,
.teacher-desk #behavior td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: normal;
  vertical-align: top;
  font-weight: 400;
}

.teacher-desk #behavior th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.teacher-desk #lockers .grade-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.teacher-desk #lockers table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.teacher-desk #lockers th,
.teacher-desk #lockers td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
}

.teacher-desk #lockers th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.teacher-desk #map .grade-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.teacher-desk #map table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.teacher-desk #map th,
.teacher-desk #map td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
}

.teacher-desk #map th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.teacher-desk #map .waiting {
  margin: 8px 0;
  color: #1f2933;
}

.teacher-desk #scale-sheet h2 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.teacher-desk #scale-sheet .waiting {
  margin: 8px 0;
  color: #1f2933;
}

.teacher-desk #scale-sheet table {
  width: auto;
  margin-bottom: 8px;
  border-collapse: collapse;
}

.teacher-desk #scale-sheet th,
.teacher-desk #scale-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
}

.teacher-desk #scale-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.teacher-desk #scale-sheet input:not([type="number"]) {
  width: 8rem;
}

.teacher-desk #scale-sheet input[type="number"] {
  font: inherit;
  padding: 6px 8px;
}

.teacher-desk #scale-sheet label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
}

.teacher-desk #scale-sheet button {
  font: inherit;
  padding: 8px 14px;
  background: #1d4e89;
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.teacher-desk #day-sheet .grade-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.teacher-desk #day-sheet table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
}

.teacher-desk #day-sheet th,
.teacher-desk #day-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
}

.teacher-desk #day-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.teacher-desk #day-sheet tr[data-section] {
  cursor: pointer;
}

.teacher-desk #day-sheet tr[data-section]:hover {
  background: #f8fafc;
}

.teacher-desk #day-sheet a {
  color: inherit;
  text-decoration: none;
}

.teacher-desk #behavior td form,
.teacher-desk #behavior .behavior-card form {
  margin: 0;
}

.teacher-desk #behavior input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.teacher-desk .behavior-card {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid hsl(214.3 31.8% 91.4%);
  border-radius: 0;
  background: transparent;
}

.teacher-desk .behavior-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.teacher-desk .behavior-card p {
  margin: 0 0 6px;
}

.teacher-desk .behavior-card span {
  display: block;
  color: hsl(215.4 16.3% 46.9%);
  font-size: 0.85rem;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-head {
  padding: 4px;
  color: #52606d;
  font-size: 12px;
  font-weight: 400;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-cell {
  min-height: 4.5rem;
  padding: 6px;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 4px;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-outside {
  background: transparent;
  border-color: transparent;
  color: #9aa5b1;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-line,
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-kind {
  font-size: 13px;
  line-height: 1.35;
}

/* Student's Desk Calendar uses the ordinary line, and the day number is its own line. */
.student-desk #calendar {
  line-height: normal;
}

.student-desk #calendar > .message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.student-desk #calendar .calendar-line {
  display: block;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-0 { --frame: #5b8fd0; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-1 { --frame: #3d9a68; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-2 { --frame: #b98320; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-3 { --frame: #c75f8d; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-4 { --frame: #d0652f; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-5 { --frame: #8a7fd0; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-6 { --frame: #2f9a9a; }
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-shade-7 { --frame: #a07c4c; }

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-cell[class*="calendar-shade-"] {
  border-color: var(--frame);
  box-shadow: inset 0 0 0 1px var(--frame);
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-today {
  outline: 3px solid #1d4e89;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e4e7eb;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-list .calendar-kind {
  margin-top: 0;
  text-align: right;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-list li[class*="calendar-shade-"] {
  padding-right: 8px;
  padding-left: 8px;
  margin-bottom: 6px;
  border: 2px solid var(--frame);
  border-radius: 4px;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar.calendar-posting .calendar-cell,
:is(.teacher-desk, .parent-desk, .student-desk) #calendar.calendar-posting .calendar-list li {
  cursor: pointer;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar a.calendar-day-open {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 400;
  min-height: 0;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar a.calendar-event,
:is(.teacher-desk, .parent-desk, .student-desk) #calendar span.calendar-event {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 400;
  font-size: 13px;
  min-height: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

:is(.parent-desk, .student-desk) #calendar span.calendar-event {
  cursor: default;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-outside a.calendar-day-open {
  color: inherit;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-event-who,
:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-event-when {
  color: #52606d;
  font-size: 12px;
}

:is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-list .calendar-kind .calendar-event {
  text-align: right;
}

.teacher-desk .narrow-stack {
  display: none;
}

.teacher-desk .directory-card {
  border: 1px solid #d5dee8;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 10px;
  background: #fff;
}

@media (min-width: 961px) {
  .teacher-desk.bookings-open .taskbar,
  .teacher-desk.account-open .taskbar,
  .student-desk.calendar-open .taskbar {
    display: flex;
  }
}

/* Account settings matches the Corteza sheet: the empty line above the heading,
   the choice sentence, and the hint in the body color. The column stays empty.
   A wide window keeps the thin bar. Below 961 pixels the menu button opens it. */
.teacher-desk .account-choice {
  max-width: 36rem;
}

.teacher-desk .account-choice .waiting {
  margin: 8px 0;
  color: #1f2933;
  font-weight: 400;
}

/* Reservations is the empty frame: no sheet padding, and the note fills the rest. */
.teacher-desk.bookings-open .sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.teacher-desk.bookings-open #bookings {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.teacher-desk.bookings-open #bookings .waiting {
  margin: 8px 0;
  color: #1f2933;
}

@media (max-width: 960px) {
  .teacher-desk .places,
  .teacher-desk .tasks {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: 12px;
  }

  .teacher-desk .places::-webkit-scrollbar,
  .teacher-desk .tasks::-webkit-scrollbar {
    display: none;
  }

  .teacher-desk .places a,
  .teacher-desk .tasks a {
    flex: 0 0 auto;
    scroll-margin-inline: 12px;
  }

  .teacher-desk .places.slide-more,
  .teacher-desk .tasks.slide-more {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }

  .teacher-desk .places.slide-back,
  .teacher-desk .tasks.slide-back {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px);
    mask-image: linear-gradient(to right, transparent, #000 16px);
  }

  .teacher-desk .places.slide-back.slide-more,
  .teacher-desk .tasks.slide-back.slide-more {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent);
  }

  :is(.teacher-desk, .parent-desk, .admin-desk) button.tab-more:not([hidden]) {
    display: inline-flex;
  }

  .teacher-desk .workspace.classes-open .classes-backdrop {
    top: var(--desk-top, 52px);
    z-index: 20;
  }

  .teacher-desk .workspace.classes-open nav.sections {
    top: var(--desk-top, 52px);
    z-index: 30;
  }

  .teacher-desk .workspace.classes-open .year select {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }

  .teacher-desk .sis-account-menu a {
    min-height: 40px;
  }

  .teacher-desk .places.row-open,
  .teacher-desk .tasks.row-open {
    flex-wrap: wrap;
    overflow: visible;
  }

  .teacher-desk .places a,
  .teacher-desk .tasks a {
    font-size: 16px;
    flex: 0 0 auto;
  }

  :is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-grid {
    display: none;
  }

  :is(.teacher-desk, .parent-desk, .student-desk) #calendar .calendar-list,
  .teacher-desk .narrow-stack {
    display: block;
  }

  .teacher-desk .wide-table {
    display: none;
  }
}

/* Admissions: the list stays beside the file on a wide window.
   Below 961 pixels, including a phone turned sideways, the file is the next screen.
   Homepage: the form is 380 pixels beside the preview when the window is at least 900 wide and 520 tall.
   Below that, including about 800, the preview stacks under the form.
   A short landscape window, including a phone turned sideways, keeps both on the screen. */
#admissions {
  max-width: 72rem;
}

#admissions h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: normal;
}

#admissions h2 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: normal;
}

#admissions .waiting {
  margin: 8px 0;
  color: #1f2933;
}

#admissions .hint {
  margin: 0 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
}

#admissions [data-panel="decisions"] > .hint {
  margin: 16px 0;
  line-height: normal;
}

#admissions [data-panel="decisions"] .admissions-sheet th,
#admissions [data-panel="decisions"] .admissions-sheet td {
  line-height: normal;
}

#admissions select.decision-pick {
  width: auto;
  margin: 4px 0 0;
  padding: 6px 8px;
  font: inherit;
  font-weight: 400;
}

#admissions .admissions-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
  margin: 0 0 16px;
}

#admissions .admissions-add label,
#admissions .admissions-file label {
  display: block;
}

#admissions .admissions-add input,
#admissions .admissions-file input[type="text"],
#admissions .admissions-file input[type="email"],
#admissions .admissions-file input[type="tel"] {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: none;
  min-height: 0;
  margin-top: 4px;
  padding: 1px 2px;
  border: 2px inset rgb(118, 118, 118);
  border-radius: 0;
  font: revert;
  background: #fff;
}

#admissions select,
#admissions input[type="date"] {
  box-sizing: border-box;
  min-height: 0;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 0;
  background: rgb(239, 239, 239);
  font-size: 14px;
  font-weight: 400;
}

#admissions button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

#admissions button:disabled {
  opacity: 0.6;
  cursor: default;
}

#admissions .admissions-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

#admissions .admissions-sheet table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

#admissions .admissions-sheet th,
#admissions .admissions-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 400;
}

#admissions .admissions-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

#admissions .admissions-file fieldset {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 16px;
}

#admissions .check {
  display: flex;
  align-items: center;
  gap: 8px;
}

#admissions .check input {
  width: auto;
  margin: 0;
}

#admissions .admissions-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0;
}

/* A person a public form made may be someone already here (docs/adr/0170). */
#admissions .match-mark {
  display: block;
  font-size: 0.8125rem;
  color: #8a5a00;
}

#admissions .match-note {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #e3c98a;
  border-left-width: 4px;
  border-radius: 6px;
  background: #fff8e6;
}

#admissions .match-note p {
  margin: 0 0 8px;
}

#admissions .match-note .match-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
}

#admissions .match-note summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
}

#admissions.file-open .admissions-board {
  display: grid;
  grid-template-columns: minmax(16rem, 34rem) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  #admissions.file-open .admissions-board {
    display: block;
  }

  #admissions.file-open .admissions-list {
    display: none;
  }
}

.admin-desk main.sheet:has(#admissions) > .message.is-alert,
.admin-desk main.sheet:has(#admissions) > .message.failed {
  color: #9b1c1c;
  font-weight: 400;
}

.admin-desk main.sheet:has(.form-sheet:not([hidden])) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-desk main.sheet:has(.form-sheet:not([hidden])) #admissions,
.admin-desk main.sheet:has(.form-sheet:not([hidden])) #admissions [data-panel="settings"],
#admissions .form-sheet:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: none;
}

#admissions .form-sheet[hidden] {
  display: none;
}

#admissions .form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  margin: 0 0 12px;
}

#admissions .form-head h1 {
  margin: 0;
  min-width: 0;
}

#admissions a.form-preview {
  flex: none;
  font: inherit;
  padding: 8px 14px;
  background: #1d4e89;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

#admissions .form-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 24px;
}

#admissions .admissions-fields label {
  display: block;
}

#admissions .admissions-fields input,
#admissions .admissions-fields select,
#admissions .admissions-fields textarea,
#admissions .question-card input,
#admissions .question-card select,
#admissions .question-card textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  margin-top: 4px;
}

#admissions .admissions-fields textarea,
#admissions .question-card textarea {
  min-height: 5rem;
}

#admissions .admissions-fields .check,
#admissions .question-card .check {
  display: flex;
  align-items: center;
  gap: 8px;
}

#admissions .admissions-fields .check input,
#admissions .question-card .check input {
  width: auto;
  max-width: none;
  margin: 0;
}

#admissions .question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
}

#admissions .question-card {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 36rem;
}

#admissions .question-card .question-moves {
  margin: 8px 0 0;
}

#admissions .question-gap {
  margin: 0;
}

#admissions .question-gap button {
  padding: 4px 12px;
}

#admissions .question-choices[hidden] {
  display: none;
}

#admissions .step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 8px;
}

#admissions .admissions-fields fieldset {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 16px;
}

.admin-desk main.sheet:has(#website) {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.admin-desk main.sheet:has(#website) > .message {
  display: none !important;
}

#website {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

#website .homepage-form {
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
}

#website .homepage-form h1 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

#website .homepage-form label,
#website .homepage-form fieldset {
  display: block;
  margin: 0 0 14px;
}

#website .homepage-form fieldset {
  padding: 12px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
}

#website .homepage-form legend {
  padding: 0 4px;
  font-weight: 600;
}

#website .homepage-form input[type="text"],
#website .homepage-form select,
#website .homepage-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #c5cdd6;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
}

#website .homepage-form textarea {
  resize: vertical;
}

#website .homepage-form button {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

#website .homepage-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

#website .homepage-form img[hidden],
#website .homepage-form .thumb[hidden] {
  display: none !important;
}

#website .homepage-form img,
#website .homepage-form .thumb {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 8px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f6f8;
}

#website .homepage-form .thumb {
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 600;
}

#website .accent-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

#website .accent-row input[type="text"] {
  flex: 1;
}

#website .accent-row input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

#website .homepage-form .message {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

#website .homepage-form .message.problem {
  color: #7f1d1d;
}

#website .homepage-form label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 0;
  font-weight: 400;
}

#website .homepage-form label.check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
}

#website .homepage-form .hint {
  margin: 12px 0 0;
  color: #52606d;
  font-size: 14px;
  font-weight: 400;
}

#website iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-top: 1px solid #e4e7eb;
  background: #fff;
}

@media (min-width: 900px) and (min-height: 520px) {
  #website {
    flex-direction: row;
    overflow: hidden;
  }

  #website .homepage-form {
    flex: 0 0 380px;
    overflow: auto;
    border-right: 1px solid #e4e7eb;
  }

  #website iframe {
    flex: 1;
    min-height: 0;
    border-top: 0;
  }
}

@media (orientation: landscape) and (max-height: 519px) {
  #website {
    flex-direction: row;
    overflow: hidden;
  }

  #website .homepage-form {
    flex: 1 1 50%;
    overflow: auto;
  }

  #website iframe {
    flex: 1 1 50%;
    min-height: 0;
    border-top: 0;
    border-left: 1px solid #e4e7eb;
  }
}

/* Mailroom folder rows. Same rows as the master desk chrome.
   Scoped here so the class list on the desk keeps its own label. */
.clearsis-mail .sis-list-label,
.messages-open [role="dialog"] .sis-list-label {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0 0 4px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: normal;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.clearsis-mail .sis-list-row,
.messages-open [role="dialog"] .sis-list-row {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: color 150ms, background-color 150ms;
}

.clearsis-mail .sis-list-row:hover,
.messages-open [role="dialog"] .sis-list-row:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.clearsis-mail .sis-list-row:focus-visible,
.messages-open [role="dialog"] .sis-list-row:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 1px;
}

.clearsis-mail .sis-list-row[aria-current="page"],
.messages-open [role="dialog"] .sis-list-row[aria-current="page"] {
  color: hsl(var(--foreground));
  font-weight: 500;
  background: hsl(var(--primary) / 10%);
}

.clearsis-mail .sis-list-row[aria-current="page"]:hover,
.messages-open [role="dialog"] .sis-list-row[aria-current="page"]:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / 10%);
}

.clearsis-mail .sis-list-row svg,
.messages-open [role="dialog"] .sis-list-row svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.clearsis-mail .sis-list-row[aria-current="page"] svg,
.messages-open [role="dialog"] .sis-list-row[aria-current="page"] svg {
  color: hsl(var(--primary));
}

.clearsis-mail .sis-list-row-collapsed,
.messages-open [role="dialog"] .sis-list-row-collapsed {
  justify-content: center;
  padding: 0;
}

.clearsis-mail .sis-list-row-later,
.messages-open [role="dialog"] .sis-list-row-later {
  opacity: 0.4;
  cursor: default;
}

.clearsis-mail .sis-list-row-later:hover,
.messages-open [role="dialog"] .sis-list-row-later:hover {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.clearsis-mail .sis-list-count,
.messages-open [role="dialog"] .sis-list-count {
  margin-left: auto;
  min-width: 1.5rem;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}

.clearsis-mail .sis-list-row[aria-current="page"] .sis-list-count,
.messages-open [role="dialog"] .sis-list-row[aria-current="page"] .sis-list-count {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.clearsis-mail .sis-list-name,
.messages-open [role="dialog"] .sis-list-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* Messages fills the sheet. Mailroom keeps folders and the signed-in name. */
body.messages-open {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body.messages-open .sections,
body.messages-open.no-children nav.sections,
body.messages-open .classes-backdrop {
  display: none;
}

body.messages-open .workspace,
body.messages-open .work,
body.messages-open .sheet {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.messages-open .sheet {
  padding: 0;
}

body.messages-open .taskbar {
  display: none;
}

/* Student's Desk and Parent's Desk Messages keep the empty white bar.
   The year, the children, and the menu button stay off. */
body.student-desk.messages-open .taskbar,
body.parent-desk.messages-open .taskbar {
  display: flex;
}

/* Corteza writes Saved. above the mail after a student sends. An empty line stays off. */
body.student-desk.messages-open #message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

body.student-desk.messages-open #message.failed {
  color: #9b1c1c;
}

body.student-desk.messages-open #message:empty {
  display: none;
}

/* Corteza draws this mail menu at 36 pixels on a wide window, and 40 below 961. */
body.parent-desk.messages-open a.sis-account-logout {
  min-height: 36px;
}

@media (max-width: 960px) {
  body.parent-desk.messages-open a.sis-account-logout {
    min-height: 40px;
  }
}

#messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
}

#message-app {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}

#message-app > div {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}

/* Teacher attendance matches the Corteza sheet: the date changes the week,
   a day heading is that same change, and This quarter toggles the columns. */

.teacher-desk #message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-weight: 400;
}

.teacher-desk #message.is-alert {
  color: #9b1c1c;
}

.teacher-desk #attendance .choices {
  gap: 12px;
}

.teacher-desk #attendance .choices label {
  font-size: 14px;
  font-weight: 400;
}

.teacher-desk #attendance .choices input[type="date"] {
  width: auto;
  min-height: 0;
  margin-top: 4px;
  padding: 6px 8px;
}

.teacher-desk #attendance .choices button.quiet,
.teacher-desk #attendance #save-attendance {
  min-height: 0;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 400;
}

.teacher-desk #attendance-history:disabled {
  opacity: 0.6;
  cursor: default;
}

.teacher-desk #attendance-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.teacher-desk #attendance .att-sheet th,
.teacher-desk #attendance .att-sheet td {
  padding: 8px 10px;
  white-space: nowrap;
}

.teacher-desk #attendance .att-sheet th:first-child {
  width: 10rem;
  min-width: 10rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-desk #attendance .att-sheet td:first-child {
  width: 14rem;
  min-width: 10rem;
  max-width: 16rem;
  overflow: visible;
  white-space: normal;
}

.teacher-desk #attendance .att-sheet thead th {
  font-size: 14px;
  background: #f8fafc;
}

.teacher-desk #attendance .att-sheet thead th.is-focus {
  background: #d6e6f5;
}

.teacher-desk #attendance .att-sheet td.is-focus {
  background: #e8f2fb;
}

.teacher-desk #attendance .att-sheet th:not(:first-child),
.teacher-desk #attendance .att-sheet td:not(:first-child) {
  width: 4.5rem;
  padding: 4px;
  text-align: center;
}

.teacher-desk #attendance .att-sheet th.term-count,
.teacher-desk #attendance .att-sheet td.term-count {
  width: auto;
  min-width: 9.5rem;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
}

.teacher-desk #attendance .att-sheet thead th.term-count {
  font-size: 14px;
  font-weight: 600;
}

.teacher-desk #attendance .term-none {
  color: #52606d;
  font-size: inherit;
  font-weight: 400;
}

.teacher-desk #attendance .day-today {
  color: #1d4e89;
  font-size: 11px;
  font-weight: 500;
}

.teacher-desk #attendance button.day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 0;
  padding: 2px 4px;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: none;
  cursor: pointer;
}

.teacher-desk #attendance button.day-head:hover,
.teacher-desk #attendance button.day-head:focus-visible {
  background: rgba(29, 78, 137, 0.08);
}

.teacher-desk #attendance button.att-cell.is-tardy,
.teacher-desk #attendance span.att-letter.is-tardy {
  color: #92400e;
}

.teacher-desk #attendance button.att-cell.is-excused,
.teacher-desk #attendance span.att-letter.is-excused {
  color: #52606d;
}

.teacher-desk #attendance #mark-menu {
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 12rem;
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.teacher-desk #attendance #mark-menu button {
  display: block;
  width: auto;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 400;
  text-align: left;
}

.teacher-desk #attendance #mark-menu button:hover,
.teacher-desk #attendance #mark-menu button:focus-visible,
.teacher-desk #attendance #mark-menu button[aria-checked="true"] {
  background: hsl(210 40% 96.1%);
}

.teacher-desk #attendance #mark-menu .mark-comment {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 4px 2px;
  font-size: 13px;
  font-weight: 400;
  color: #52606d;
}

.teacher-desk #attendance #mark-menu .mark-comment textarea,
.teacher-desk #attendance #mark-menu .mark-comment select,
.teacher-desk #attendance #mark-menu .mark-comment input {
  width: 100%;
  box-sizing: border-box;
}

.teacher-desk #substitute-line textarea {
  width: auto;
  min-width: 16rem;
  max-width: 100%;
}

@media (max-width: 960px) {
  .teacher-desk #attendance-sheet {
    overflow-x: hidden;
  }

  .teacher-desk #attendance-sheet.quarter-open {
    overflow-x: auto;
  }

  .teacher-desk #attendance .att-sheet {
    width: 100%;
    table-layout: fixed;
  }

  .teacher-desk #attendance-sheet.quarter-open .att-sheet {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  .teacher-desk #attendance .att-sheet th:first-child,
  .teacher-desk #attendance .att-sheet td:first-child {
    width: 34%;
    min-width: 0;
    max-width: none;
    overflow: visible;
    white-space: normal;
  }

  .teacher-desk #attendance .att-sheet th:not(:first-child),
  .teacher-desk #attendance .att-sheet td:not(:first-child) {
    width: auto;
    min-width: 0;
    padding: 4px 2px;
  }

  .teacher-desk #attendance-sheet.quarter-open .att-sheet th:not(:first-child),
  .teacher-desk #attendance-sheet.quarter-open .att-sheet td:not(:first-child) {
    width: auto;
    min-width: 2.5rem;
  }

  .teacher-desk #attendance button.att-cell,
  .teacher-desk #attendance span.att-letter {
    width: 1.75rem;
    height: 1.75rem;
  }
}

/* Staff Profile. The form matches the Corteza sheet: the heading, the empty
   lines, the phone kind, the country, and the blue Save. Saved. sits on the
   line above Profile. Below 961 pixels the menu button still opens the column. */

.teacher-desk .sheet > .message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-weight: 400;
}

.teacher-desk .sheet > .message.failed {
  color: #9b1c1c;
}

.teacher-desk .household-form {
  display: grid;
  gap: 16px;
  max-width: 36rem;
}

.teacher-desk .household-form h1,
.teacher-desk .household-form h2 {
  margin: 0;
  font-weight: 700;
}

.teacher-desk .household-form section,
.teacher-desk .household-phone,
.teacher-desk .household-address {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.teacher-desk .household-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.teacher-desk .household-form input:not([type="checkbox"]):not([type="file"]),
.teacher-desk .household-form select {
  font: inherit;
  font-weight: 400;
  padding: 6px 8px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.teacher-desk .household-form input[type="file"] {
  align-self: start;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.teacher-desk .household-form button {
  font: inherit;
  font-weight: 400;
  justify-self: start;
  min-height: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: #1d4e89;
  color: #fff;
  cursor: pointer;
}

.teacher-desk .household-topic {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 8px 12px 12px;
  border: 2px groove #d9e2ec;
  min-inline-size: min-content;
}

.teacher-desk .household-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.teacher-desk .household-form label.household-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.teacher-desk .household-form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.admin-desk main.sheet:has(#days-form) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #days-form {
  line-height: normal;
}

.admin-desk #days-form .day-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: end;
  margin: 0 0 16px;
}

.admin-desk #days-form .day-bulk label,
.admin-desk #days-form .day-bulk legend {
  display: block;
  margin: 0;
  font-size: 14px;
}

.admin-desk #days-form input[type="date"],
.admin-desk #days-form select {
  display: block;
  box-sizing: content-box;
  width: auto;
  min-height: 0;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 0;
  font: inherit;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #days-form input[type="date"] {
  border: 2px inset #767676;
  background: #fff;
}

.admin-desk #days-form select {
  border: 1px solid #767676;
  background-color: #efefef;
}

.admin-desk #days-form .day-bulk fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-desk #days-form .day-bulk fieldset label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 4px 12px 0 0;
  font-size: 14px;
}

.admin-desk #days-form .day-bulk fieldset input {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.admin-desk #days-form button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.admin-desk #days-form > button {
  margin-top: 16px;
}

.admin-desk #days-form .day-bulk button {
  margin-top: 0;
}

.admin-desk #days-form button.day-remove {
  margin: 0;
  padding: 4px 0;
  background: transparent;
  color: #1d4e89;
}

.admin-desk #days-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #schedule-days-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk #schedule-days-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #schedule-days-sheet th,
.admin-desk #schedule-days-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-desk #schedule-days-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #schedule-days-empty {
  margin: 8px 0;
}

.admin-desk #schedule-sections-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk #schedule-sections-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #schedule-sections-sheet th,
.admin-desk #schedule-sections-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  line-height: normal;
}

.admin-desk #schedule-sections-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #schedule-sections-sheet td.plain {
  white-space: normal;
}

.admin-desk #schedule-sections-empty {
  margin: 8px 0;
  color: #1f2933;
}

.admin-desk main.sheet:has(#year-edit) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #year-edit {
  line-height: normal;
}

.admin-desk #year-edit h1 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 650;
  line-height: normal;
}

.admin-desk #year-edit h2 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: normal;
}

.admin-desk #year-edit .year-name {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #year-edit .year-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 8px 0 0;
}

.admin-desk #year-edit .year-dates label,
.admin-desk #year-edit .year-name {
  color: #1f2933;
}

.admin-desk #year-edit .year-dates label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #year-edit .year-name input {
  display: block;
  box-sizing: content-box;
  width: min(100%, 22rem);
  min-height: 0;
  margin-top: 4px;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 650;
  line-height: normal;
}

.admin-desk #year-edit input[type="date"],
.admin-desk #year-edit input[type="text"],
.admin-desk #year-edit select {
  display: block;
  box-sizing: content-box;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 0;
  font: inherit;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #year-edit .year-name input {
  box-sizing: content-box;
  width: min(100%, 22rem);
  padding: 1px 2px;
  font-size: 1.4rem;
  font-weight: 650;
}

.admin-desk #year-edit input[type="date"],
.admin-desk #year-edit input[type="text"] {
  border: 2px inset #767676;
  background: #fff;
}

.admin-desk #year-edit select {
  border: 1px solid #767676;
  background-color: #efefef;
}

.admin-desk #year-edit #schedule-periods input[type="text"] {
  width: 12rem;
  padding: 1px 2px;
}

.admin-desk #year-edit button {
  min-height: 0;
  margin: 16px 0 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.admin-desk #year-edit button.period-remove {
  margin: 0;
  padding: 4px 0;
  background: transparent;
  color: #1d4e89;
}

.admin-desk #year-edit button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #schedule-periods-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk #schedule-periods-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #schedule-periods-sheet th,
.admin-desk #schedule-periods-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-desk #schedule-periods-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #schedule-periods-empty,
.admin-desk #year-empty {
  margin: 8px 0;
  color: #1f2933;
}

.admin-desk main.sheet:has(#bells-form) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #bells-form {
  line-height: normal;
}

.admin-desk #bells-form .schedule-bell {
  margin: 0 0 16px;
}

.admin-desk #bells-form .bell-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: end;
  margin: 0 0 8px;
}

.admin-desk #bells-form .bell-facts label {
  display: block;
  margin: 0;
  color: #1f2933;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #bells-form .bell-facts label.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
}

.admin-desk #bells-form input[type="time"] {
  width: 100px;
}

.admin-desk #bells-form input[type="text"],
.admin-desk #bells-form input[type="time"] {
  display: block;
  box-sizing: border-box;
  width: auto;
  height: 25px;
  max-width: 100%;
  min-height: 0;
  margin-top: 4px;
  padding: 0 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #bells-form input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-desk #bells-form .schedule-bell .sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk #bells-form .schedule-bell .sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #bells-form .schedule-bell .sheet th,
.admin-desk #bells-form .schedule-bell .sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-desk #bells-form .schedule-bell .sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #bells-form button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.admin-desk #bells-form > button {
  margin-top: 16px;
}

.admin-desk #bells-form .add-bell {
  margin-top: 8px;
}

.admin-desk #bells-form button.type-remove,
.admin-desk #bells-form button.bell-remove {
  margin: 0;
  padding: 4px 0;
  background: transparent;
  color: #1d4e89;
}

.admin-desk #bells-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #schedule-bells-empty {
  margin: 8px 0;
  color: #1f2933;
}

.admin-desk main.sheet:has(#rooms-form) > .message.is-alert {
  font-weight: 400;
}

.admin-desk #rooms-form button {
  min-height: 0;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.admin-desk #rooms-form .room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.admin-desk #rooms-form > .room-actions:last-child {
  margin: 16px 0 0;
}

.admin-desk #rooms-form .room-actions button {
  margin-top: 0;
}

.admin-desk #schedule-rooms-sheet {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.admin-desk #schedule-rooms-sheet table {
  border-collapse: collapse;
  width: 100%;
}

.admin-desk #schedule-rooms-sheet th,
.admin-desk #schedule-rooms-sheet td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  line-height: normal;
}

.admin-desk #schedule-rooms-sheet th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.admin-desk #rooms-form td.room-name {
  width: 18rem;
}

.admin-desk #rooms-form button.room-name-show,
.admin-desk #rooms-form button.room-sections-show {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}

.admin-desk #rooms-form button.room-name-show.room-placeholder,
.admin-desk #rooms-form button.room-sections-show.room-placeholder {
  color: #7b8794;
}

.admin-desk #rooms-form .room-name-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.admin-desk #rooms-form button.room-name-show[hidden],
.admin-desk #rooms-form button.room-sections-show[hidden],
.admin-desk #rooms-form .room-name-edit[hidden],
.admin-desk #rooms-form .room-sections-edit[hidden] {
  display: none;
}

.admin-desk #rooms-form .room-name-edit input {
  box-sizing: border-box;
  width: 12rem;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #rooms-form button.room-remove,
.admin-desk #rooms-form .room-sections button {
  margin: 0;
  padding: 4px 0;
  background: transparent;
  color: #1d4e89;
}

.admin-desk #rooms-form .room-sections-edit label {
  display: block;
  margin-top: 8px;
}

.admin-desk #rooms-form .room-sections-edit select {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin-top: 4px;
  padding: 1px 2px;
  border: 2px inset #767676;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-weight: 400;
  line-height: normal;
}

.admin-desk #rooms-form .room-sections {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-desk #rooms-form .room-sections li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 4px 0;
}

.admin-desk #rooms-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-desk #schedule-rooms-empty {
  margin: 8px 0;
  color: #1f2933;
}

/* Setup admissions: the Corteza school draws these controls with the
   browser's own look, 14 pixel labels, and no 44 pixel minimum. */
#admissions [data-panel="settings"] label {
  margin: 0;
  font-size: 14px;
}

#admissions [data-panel="settings"] .admissions-fields input:not([type="checkbox"]),
#admissions [data-panel="settings"] .admissions-fields textarea,
#admissions [data-panel="settings"] .question-card input:not([type="checkbox"]),
#admissions [data-panel="settings"] .question-card textarea {
  box-sizing: content-box;
  min-height: 0;
  padding: revert;
  border: revert;
  border-radius: revert;
  font: revert;
  background: revert;
}

#admissions [data-panel="settings"] .question-card input:not([type="checkbox"]) {
  width: 100%;
  max-width: none;
}

#admissions [data-panel="settings"] .admissions-fields input[type="number"] {
  padding: 6px 8px;
  font: inherit;
}

#admissions [data-panel="settings"] .admissions-fields textarea {
  min-height: 5rem;
}

#admissions [data-panel="settings"] .admissions-fields .check input,
#admissions [data-panel="settings"] .question-card .check input {
  min-height: 0;
  margin: 0;
}

.admin-desk label.year .sis-list-label {
  margin-bottom: 4px;
}

#admissions [data-panel="settings"],
#admissions [data-panel="settings"] .form-head {
  line-height: normal;
}

#admissions [data-panel="settings"] p:not(.waiting):not(.question-moves):not(.question-gap) {
  margin: 16px 0;
}

#admissions [data-panel="settings"] .admissions-fields select,
#admissions [data-panel="settings"] .question-card select {
  border: revert;
  border-radius: revert;
  background: revert;
  color: revert;
}

#admissions [data-panel="settings"] .question-card label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#admissions [data-panel="settings"] .question-card input:not([type="checkbox"]),
#admissions [data-panel="settings"] .question-card select,
#admissions [data-panel="settings"] .question-card textarea {
  width: auto;
  max-width: none;
  margin-top: 0;
}

#admissions [data-panel="settings"] .question-card .check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#admissions [data-panel="settings"] .admissions-add input {
  width: 100%;
  max-width: 24rem;
}

#admissions [data-panel="settings"] .question-card .check input {
  margin: revert;
}

#admissions [data-panel="settings"] .admissions-fields input[type="number"],
#admissions [data-panel="settings"] .admissions-fields input[type="date"] {
  padding: 6px 8px;
  font: inherit;
}

#admissions [data-panel="settings"] .admissions-fields .question-card label:not(.check) {
  display: block;
}

#admissions [data-panel="settings"] .admissions-fields .question-card input:not([type="checkbox"]),
#admissions [data-panel="settings"] .admissions-fields .question-card select,
#admissions [data-panel="settings"] .admissions-fields .question-card textarea {
  width: 100%;
  max-width: 24rem;
  margin-top: 4px;
}

@media (max-width: 960px) {
  .admin-desk .tabline {
    gap: 8px;
  }
}

/* Sign-in matches the Corteza sign-in that Log out opens (docs/screen-match.md, Sign-in).
   One white card. A window 576 or wider: the card is 408 wide and sits 48 pixels below the middle line.
   Below 576, including a phone held upright: the card fills the width less 20 pixels a side.
   A phone turned sideways keeps the 408 card 48 pixels from the top, and the page scrolls.
   Corteza's Poppins files are missing, so its title, labels, and message draw in the browser's serif.
   The same serif is named here. */
html:has(body.auth-login) {
  height: 100%;
}

body.auth-login {
  display: grid;
  grid-template-rows: auto;
  min-height: 100%;
  margin: 0;
  overflow: auto;
  background: #f4f5f7;
  color: #1a1c1e;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

body.auth-login > header {
  display: block;
}

body.auth-login main.login {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  margin: auto;
  padding: 0 20px;
}

.login-card {
  background: #fff;
}

.login-head {
  display: flow-root;
  border-bottom: 1px solid #e4e9ef;
  background: #fff;
}

.login-mark {
  margin: 8px 0;
  text-align: center;
}

.login-card .school-login-name {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.login-title {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #e4e9ef;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.login-card form {
  margin: 0;
  padding: 16px;
}

.login-error {
  margin: 0 0 24px;
  color: #e54122;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
}

.login-field {
  margin: 0 0 16px;
}

.login-field label {
  display: inline-block;
  margin: 0 0 8px;
  font-family: "Times New Roman", Times, serif;
}

.login-field input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 6px 12px;
  border: 2px solid #e4e9ef;
  border-radius: 4px;
  background: #fff;
  color: #0b344e;
  font: inherit;
  line-height: 1.5;
}

.login-field input::placeholder {
  color: #758d9b;
  opacity: 1;
}

.login-field input:focus,
.login-field input:focus-visible {
  outline: none;
}

.login-card button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid #1a1c1e;
  border-radius: 4.8px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.login-card button.login-remember {
  background: var(--school-accent, #1a1c1e);
  border-color: var(--school-accent, #1a1c1e);
  color: var(--school-accent-ink, #fff);
}

.login-card button.login-plain {
  margin-top: 8px;
  background: #fff;
  color: #1a1c1e;
}

.login-card button.login-remember:hover {
  background: #ff7d3b;
  border-color: #ff742e;
  color: #fff;
}

.login-card button.login-plain:hover {
  background: #dce2e8;
  border-color: #d4dce3;
  color: #0b344e;
}

@media (min-width: 576px) {
  body.auth-login main.login {
    margin-top: 48px;
  }

  .login-mark {
    margin: 24px 0;
  }
}

body.auth-login[data-theme="heritage"] {
  background-color: #f3efe4;
  color: #1f1a14;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
}
body.auth-login[data-theme="heritage"] :is(.login-card, .login-head) { background: #fffdf8; }
body.auth-login[data-theme="heritage"] button.login-remember {
  background: var(--school-accent, #1e3a5f);
  border-color: var(--school-accent, #1e3a5f);
}
body.auth-login[data-theme="heritage"] button.login-plain {
  background: #fffdf8;
  border-color: #1f1a14;
  color: #1f1a14;
}

body.auth-login[data-theme="horizon"] {
  background-color: #f4f5f7;
  color: #1a1c1e;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

body.auth-login[data-theme="gather"] {
  background-color: #f7f1e8;
  color: #2c2118;
  font-family: "Iowan Old Style", Georgia, serif;
}
body.auth-login[data-theme="gather"] :is(.login-card, .login-head) { background: #fff8f1; }
body.auth-login[data-theme="gather"] button.login-remember {
  background: var(--school-accent, #8c3f24);
  border-color: var(--school-accent, #8c3f24);
}
body.auth-login[data-theme="gather"] button.login-plain {
  background: #fff8f1;
  border-color: #2c2118;
  color: #2c2118;
}

/* First sign-in and Sign-in is off match corteza/desk/password.html and signin-off.html (docs/screen-match.md).
   A plain column at the top left at every width: 576 wide with 24 above and 16 a side.
   The boxes keep the browser's own look, 384 wide on a wide window.
   Below 961 pixels, including a phone turned sideways, a box is as wide as the column plus its own border. */
body.plain-form {
  margin: 0;
  color: #1f2933;
  background: #f4f6f8;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
}

body.plain-form main.user-form {
  width: auto;
  max-width: 36rem;
  margin: 0;
  padding: 24px 16px;
  box-sizing: content-box;
  background: none;
  border: 0;
  border-radius: 0;
}

body.plain-form .user-form h1 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

body.plain-form .user-form p {
  margin: 16px 0;
}

body.plain-form .user-form label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
}

body.plain-form .user-form input {
  all: revert;
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-top: 4px;
}

body.plain-form .user-form button {
  min-height: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: #1d4e89;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

body.plain-form .user-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

body.plain-form .user-form p#message {
  min-height: 1.4em;
  margin: 8px 0 12px;
  color: #1f2933;
  font-weight: 400;
}

body.plain-form .user-form p#message.failed {
  color: #9b1c1c;
}

@media (max-width: 960px) {
  body.plain-form .user-form input {
    max-width: none;
  }
}

/* Sign-in is off: Log out keeps the browser's own link colors, as on Corteza. */
body.plain-form .user-form a {
  color: revert;
}

/* Logout successful, opened by Log out on Sign-in is off, as on Corteza.
   It uses the sign-in card's frame: an empty band, then the words, then Click here to log in. */
.login-card .login-body {
  padding: 16px;
}

.login-done {
  color: #0b344e;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
}

.login-again {
  margin: 16px 0;
  text-align: center;
}

.login-again a {
  color: #ff9661;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.login-again a:hover {
  color: #ff6315;
}

/* The six parts a parent may see, on the student file and on a court order
   (docs/adr/0166, docs/adr/0174). */
.admin-desk .part-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.admin-desk .may-see {
  min-width: 300px;
}

.admin-desk .may-see .part-boxes .user-check {
  flex: 0 0 calc(50% - 8px);
}

.admin-desk .custody-note {
  margin: 4px 0 8px;
  color: #52606d;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}

.admin-desk #documents-form tr.order-parents > td {
  padding: 4px 16px 16px;
  background: #f8fafc;
  white-space: normal;
}

.admin-desk #documents-form tr.order-parents h3 {
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2933;
}

.admin-desk #documents-form .order-parent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 32px;
  padding: 4px 0;
  border-top: 1px solid #e4e7eb;
}

.admin-desk #documents-form .order-parent .order-named {
  flex: 0 0 220px;
  font-weight: 600;
}

.admin-desk #documents-form .order-parent .custody-note {
  flex: 0 0 100%;
}

.admin-desk #documents-form .order-parent input:disabled + *,
.admin-desk #documents-form .order-parent label:has(input:disabled) {
  color: #9aa5b1;
}

@media (max-width: 960px) {
  .admin-desk #documents-form .order-parent .order-named,
  .admin-desk #documents-form .order-parent .part-boxes {
    flex: 0 0 100%;
  }
}

.admin-desk #documents-form .order-parent .part-label {
  flex: 0 0 110px;
  align-self: center;
  color: #52606d;
  font-size: 14px;
}

.admin-desk #documents-form .order-parent .part-boxes {
  flex: 1 1 100%;
  padding-left: 28px;
}

@media (max-width: 960px) {
  .admin-desk #documents-form .order-parent .part-label {
    flex: 0 0 100%;
    padding-top: 8px;
  }
}

/* Below 961 pixels the papers table scrolls sideways. The parents block stays as wide as the
   screen and does not scroll with it (docs/adr/0174). */
@media (max-width: 960px) {
  .admin-desk #documents-form .order-parents-inner {
    position: sticky;
    left: 16px;
    width: calc(100vw - 82px);
  }
}

/* School Settings, Background work (docs/adr/0177). A table on a wide window.
   Below 961 pixels, including a phone turned sideways, each row is its own block. */
.admin-desk #work-record h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.admin-desk #work-record .work-state {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #d9e2ec;
  background: #f8fafc;
}

.admin-desk #work-record .work-state.is-alert {
  border-color: #9b1c1c;
  background: #fdf2f2;
  color: #9b1c1c;
  font-weight: 600;
}

.admin-desk .work-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-desk .work-table th,
.admin-desk .work-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #d9e2ec;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.admin-desk .work-table th {
  background: #f8fafc;
  font-size: 14px;
}

.admin-desk .work-table .work-less {

/* What a new school fills in first (docs/adr/0167.1). One list on every width.
   From 600 pixels, which includes a phone turned sideways, it runs in two columns. */
.first-steps {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #c7d2de;
  border-left: 4px solid #1e5a8a;
  border-radius: 6px;
  background: #fff;
}

.first-steps h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.first-steps-count {
  margin: 0 0 10px;
  color: #52606d;
  max-width: 44rem;
}

.first-steps ol {
  margin: 0;
  padding: 0 0 0 1.6em;
}

.first-step {
  margin: 0 0 8px;
  break-inside: avoid;
}

.first-step a {
  font-weight: 600;
}

.first-step-need {
  display: block;
  color: #52606d;
  font-size: 14px;
}

.admin-desk .work-table .work-failing td:last-child {
  color: #9b1c1c;
}

@media (max-width: 960px) {
  .admin-desk .work-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .admin-desk .work-table,
  .admin-desk .work-table tbody,
  .admin-desk .work-table tr,
  .admin-desk .work-table td {
    display: block;
  }

  .admin-desk .work-table tr {
    margin: 0 0 12px;
    border: 1px solid #d9e2ec;
  }

  .admin-desk .work-table td {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 8px;
    border-bottom: 1px solid #eef2f6;
    overflow-wrap: anywhere;
  }

  .admin-desk .work-table td::before {
    content: attr(data-label);
    color: #52606d;
    font-size: 14px;
  }
}

.first-step.done a {
  font-weight: 400;
  color: #52606d;
}

.first-step.done .first-step-need {
  color: #1b6e3c;
  font-weight: 600;
}

.first-step.done .first-step-need::before {
  content: "✓ ";
}

@media (min-width: 600px) {
  .first-steps ol {
    columns: 2;
    column-gap: 32px;
  }
}

/* School, Schedule, Sections: the form that adds or changes one (docs/adr/0180).
   On a wide window the boxes sit in a wrapping row. Below 961 pixels each takes a line. */
.admin-desk .section-add,
.admin-desk .section-back {
  margin: 0 0 12px;
}

.admin-desk #add-section {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #334e7a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.admin-desk #add-section:hover,
.admin-desk #add-section:focus-visible {
  background: #263b5e;
}

.admin-desk #section-form .section-fields > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
}

.admin-desk #section-form .section-fields select,
.admin-desk #section-form .section-fields input {
  width: 100%;
  box-sizing: border-box;
}

.admin-desk #section-form .section-days {
  margin: 4px 0 14px;
}

.admin-desk #section-remove,
.admin-desk #year-add {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #d9e0e7;
}

/* A check box and its word sit on one line: the grades on School profile and the weekdays on a section. */
.admin-desk .grade-levels label.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.admin-desk .grade-levels label.check input {
  width: auto;
  margin: 0;
}
