.teacher-dashboard-workspace {
  grid-template-rows: 65px minmax(0, 1fr);
}

.dashboard-canvas {
  display: grid;
  grid-template-rows: 66px 128px minmax(290px, 1.35fr) minmax(220px, 1fr) 86px;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 14px 24px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 58% 16%, rgba(212, 181, 120, .07), transparent 26%),
    repeating-linear-gradient(0deg, rgba(110, 75, 30, .016) 0 1px, transparent 1px 5px),
    #f8f2e6;
  scrollbar-width: thin;
  scrollbar-color: #b3925b transparent;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-welcome > div {
  min-width: 145px;
}

.dashboard-welcome h1 {
  margin: 0;
  color: #4b3929;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .12em;
}

.dashboard-welcome > div i {
  display: block;
  width: 120px;
  height: 15px;
  margin-top: 5px;
  background:
    radial-gradient(circle, #b58a45 0 2px, transparent 2.5px) center / 10px 10px no-repeat,
    linear-gradient(90deg, #bd9a63 0 43%, transparent 43% 57%, #bd9a63 57% 100%) center / 100% 1px no-repeat;
}

.welcome-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(180, 137, 68, .4);
  border-radius: 50%;
  color: #a47e41;
  background: rgba(255, 251, 241, .7);
}

.welcome-icon svg {
  width: 24px;
  height: 24px;
}

.dashboard-welcome p {
  margin: 0;
}

.dashboard-welcome p strong,
.dashboard-welcome p time {
  display: block;
}

.dashboard-welcome p strong {
  color: #43382f;
  font-size: 17px;
  font-weight: 500;
}

.dashboard-welcome p time {
  margin-top: 5px;
  color: #83786a;
  font-size: 12px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-summary article,
.dashboard-panel,
.dashboard-quick-actions {
  position: relative;
  border: 1px solid rgba(178, 132, 61, .58);
  border-radius: 3px;
  background:
    radial-gradient(circle at 90% 5%, rgba(209, 176, 112, .09), transparent 32%),
    rgba(255, 251, 243, .72);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .28);
}

.dashboard-summary article::before,
.dashboard-panel::before,
.dashboard-panel::after,
.dashboard-quick-actions::before,
.dashboard-quick-actions::after {
  content: "✦";
  position: absolute;
  z-index: 2;
  color: #b3833a;
  font-size: 10px;
  line-height: 1;
}

.dashboard-summary article::before,
.dashboard-panel::before,
.dashboard-quick-actions::before {
  top: -5px;
  left: -4px;
}

.dashboard-panel::after,
.dashboard-quick-actions::after {
  right: -4px;
  bottom: -5px;
  transform: rotate(180deg);
}

.dashboard-summary article {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 14px 18px;
}

.dashboard-summary article > div {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(168, 127, 68, .32);
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 3px double #c69b51;
  border-radius: 50%;
  color: #f4e4bd;
  background: #6d5736;
  box-shadow: 0 0 0 3px rgba(184, 139, 67, .08);
}

.summary-icon.ochre {
  background: #80643b;
}

.summary-icon.blue {
  background: #22465b;
}

.summary-icon.navy {
  background: #0b314b;
}

.summary-icon svg {
  width: 40px;
  height: 40px;
}

.dashboard-summary h2,
.dashboard-summary p {
  margin: 0;
}

.dashboard-summary h2 {
  color: #55493d;
  font-size: 15px;
  font-weight: 500;
}

.dashboard-summary strong {
  display: block;
  margin-top: 3px;
  color: #811f2c;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
}

.dashboard-summary strong small {
  margin-left: 5px;
  color: #61574d;
  font-size: 12px;
  font-weight: 400;
}

.dashboard-summary strong.tonight {
  font-size: 30px;
}

.dashboard-summary p {
  margin-top: 7px;
  color: #897e70;
  font-size: 11px;
}

.dashboard-top-grid {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.dashboard-middle-grid {
  display: grid;
  grid-template-columns: 31% 34% 35%;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.dashboard-panel {
  min-width: 0;
  min-height: 0;
  padding: 12px 13px;
  overflow: hidden;
}

.dashboard-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 33px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(171, 127, 61, .34);
}

.dashboard-panel > header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #4a3e33;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .05em;
}

.dashboard-panel > header h2 svg {
  width: 22px;
  height: 22px;
  color: #7f653d;
}

.panel-more {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  color: #7a2933;
  border-top: 1px solid rgba(171, 127, 61, .28);
  font-size: 11px;
}

.panel-more:hover,
.panel-more:focus-visible,
.student-records header a:hover,
.student-records header a:focus-visible {
  color: #a22b3a;
  outline: 0;
}

.course-table {
  padding-bottom: 30px;
}

.course-table-head,
.course-table article {
  display: grid;
  grid-template-columns: 1.25fr 1.35fr .75fr .7fr 1.1fr;
  align-items: center;
  column-gap: 12px;
}

.course-table-head {
  min-height: 32px;
  padding: 0 16px 0 55px;
  color: #73695e;
  font-size: 11px;
}

.course-table article {
  position: relative;
  min-height: 66px;
  padding: 7px 9px 7px 55px;
  border: 1px solid rgba(171, 127, 61, .25);
  border-radius: 5px;
  background: rgba(255, 253, 248, .62);
}

.course-table article + article {
  border-top: 0;
}

.course-table article > div {
  min-width: 0;
}

.course-table article strong,
.course-table article small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-table article strong {
  color: #493f35;
  font-size: 11px;
  font-weight: 500;
}

.course-table article small {
  margin-top: 4px;
  color: #81776a;
  font-size: 9px;
}

.course-table article > div:last-child {
  display: flex;
  gap: 6px;
}

.course-table button {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid #b68a43;
  border-radius: 3px;
  color: #6d5c45;
  background: transparent;
  white-space: nowrap;
  font-size: 10px;
}

.course-table button:hover,
.course-table button:focus-visible {
  outline: 0;
  filter: brightness(1.1);
}

.course-table .primary-action {
  color: #fae8c1;
  border: 3px double #c99b52;
  background: #761d29;
}

.class-badge {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #fff5e5;
  background: #756777;
  font-size: 18px;
}

.class-badge.green {
  background: #4f755e;
}

.class-badge.blue {
  background: #365b7a;
}

.todo-panel {
  padding-bottom: 35px;
}

.todo-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-panel li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 75px 75px;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  border-bottom: 1px solid rgba(171, 127, 61, .22);
  font-size: 10px;
}

.todo-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
}

.todo-panel label input {
  position: absolute;
  opacity: 0;
}

.todo-panel label span {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #a7967d;
  border-radius: 3px;
  background: #fffdf8;
}

.todo-panel label input:checked + span {
  border-color: #8a2734;
  background:
    linear-gradient(135deg, transparent 42%, #fff 42% 53%, transparent 53%) 3px 6px / 7px 5px no-repeat,
    linear-gradient(45deg, transparent 39%, #fff 39% 56%, transparent 56%) 7px 2px / 8px 10px no-repeat,
    #8a2734;
}

.todo-panel label strong {
  overflow: hidden;
  color: #4b4238;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-panel li b {
  font-weight: 400;
}

.todo-panel .high {
  color: #8c2632;
}

.todo-panel .medium {
  color: #bd781d;
}

.todo-panel .low {
  color: #416c9b;
}

.todo-panel time {
  color: #82786b;
  text-align: right;
  white-space: nowrap;
}

.class-activity > header label {
  color: #766b5f;
  font-size: 10px;
}

.class-activity select {
  min-height: 28px;
  margin-left: 8px;
  padding: 0 25px 0 8px;
  border: 1px solid rgba(171, 127, 61, .36);
  color: #6d6256;
  background: rgba(255, 253, 248, .65);
  font: inherit;
}

.class-activity > p {
  margin: 8px 0 0;
  color: #766b5f;
  font-size: 10px;
}

.chart-area {
  position: relative;
  height: calc(100% - 64px);
  min-height: 140px;
  padding: 15px 8px 25px 38px;
}

.chart-grid {
  position: absolute;
  inset: 16px 8px 25px 38px;
  background: repeating-linear-gradient(to bottom, rgba(151, 117, 69, .22) 0 1px, transparent 1px 25%);
}

.chart-area > svg {
  position: absolute;
  inset: 17px 12px 28px 42px;
  width: calc(100% - 54px);
  height: calc(100% - 45px);
  overflow: visible;
}

.chart-area polyline {
  fill: none;
  stroke: #7c202d;
  stroke-width: 2.5;
}

.chart-area circle {
  fill: #7c202d;
  stroke: #f6eddb;
  stroke-width: 2;
}

.axis {
  position: absolute;
  left: 0;
  color: #8c8174;
  font-size: 8px;
}

.axis.a100 { top: 11px; }
.axis.a75 { top: 33%; }
.axis.a50 { top: 52%; }
.axis.a25 { top: 70%; }
.axis.a0 { bottom: 23px; }

.chart-values,
.chart-dates {
  position: absolute;
  right: 8px;
  left: 38px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.chart-values {
  top: 19%;
  align-items: end;
  color: #594a3d;
  font-size: 8px;
}

.chart-values span:nth-child(2) { transform: translateY(-6px); }
.chart-values span:nth-child(3) { transform: translateY(-18px); }
.chart-values span:nth-child(4) { transform: translateY(2px); }
.chart-values span:nth-child(5) { transform: translateY(-7px); }
.chart-values span:nth-child(6) { transform: translateY(-12px); }
.chart-values span:nth-child(7) { transform: translateY(-14px); }

.chart-dates {
  bottom: 3px;
  color: #82786c;
  font-size: 8px;
}

.student-records header a {
  color: #7c2933;
  font-size: 9px;
}

.student-records article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 51px;
  border-bottom: 1px solid rgba(171, 127, 61, .2);
}

.record-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff6e8;
  background: #746b7b;
  font-size: 17px;
}

.record-avatar.slate {
  background: #59777d;
}

.record-avatar.violet {
  background: #756777;
}

.student-records strong {
  display: block;
  color: #4b4036;
  font-size: 10px;
  font-weight: 500;
}

.student-records p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #81766a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-records time {
  align-self: start;
  margin-top: 10px;
  color: #8c8175;
  font-size: 8px;
}

.principal-notice {
  padding-bottom: 34px;
}

.principal-notice article {
  position: relative;
  min-height: calc(100% - 39px);
  margin-top: 7px;
  padding: 15px 15px 32px;
  border: 1px solid rgba(171, 127, 61, .35);
  border-radius: 5px;
  background: rgba(252, 243, 221, .5);
}

.principal-notice h3 {
  margin: 0;
  color: #752330;
  font-size: 13px;
  font-weight: 500;
}

.principal-notice p {
  margin: 12px 0 0;
  color: #62584d;
  font-size: 9px;
  line-height: 1.8;
}

.principal-notice article time {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: #887b6d;
  text-align: right;
  font-size: 8px;
  line-height: 1.5;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-width: 0;
  overflow: hidden;
}

.dashboard-quick-actions button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 8px 26px;
  border: 0;
  border-right: 1px solid rgba(171, 127, 61, .33);
  color: #493e34;
  background: transparent;
  text-align: left;
}

.dashboard-quick-actions button:last-child {
  border-right: 0;
}

.dashboard-quick-actions button:hover,
.dashboard-quick-actions button:focus-visible {
  outline: 0;
  background: rgba(207, 174, 112, .1);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 52px;
  border-radius: 4px;
  color: #f6e6c3;
  background: #6b573a;
}

.quick-icon.wine {
  background: #7b2632;
}

.quick-icon.ochre {
  color: #655132;
  background: #f4ead4;
}

.quick-icon svg {
  width: 30px;
  height: 30px;
}

.dashboard-quick-actions strong,
.dashboard-quick-actions small {
  display: block;
}

.dashboard-quick-actions strong {
  font-size: 16px;
  font-weight: 500;
}

.dashboard-quick-actions small {
  margin-top: 6px;
  color: #897e71;
  font-size: 9px;
}

@media (max-width: 1680px) {
  .dashboard-canvas {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dashboard-summary article {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .summary-icon {
    width: 62px;
    height: 62px;
  }

  .summary-icon svg {
    width: 34px;
    height: 34px;
  }

  .dashboard-top-grid {
    grid-template-columns: 58% 42%;
  }

  .course-table-head,
  .course-table article {
    grid-template-columns: 1.25fr 1.3fr .75fr .65fr 1.25fr;
  }

  .course-table button {
    padding: 0 9px;
  }

  .todo-panel li {
    grid-template-columns: minmax(0, 1fr) 66px 70px;
  }

  .dashboard-quick-actions button {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 1320px) {
  .dashboard-canvas {
    grid-template-rows: auto auto auto auto auto;
    overflow-y: auto;
  }

  .dashboard-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-summary article {
    min-height: 112px;
  }

  .dashboard-top-grid,
  .dashboard-middle-grid {
    grid-template-columns: 1fr;
  }

  .tonight-courses,
  .todo-panel {
    min-height: 320px;
  }

  .class-activity,
  .student-records,
  .principal-notice {
    min-height: 230px;
  }

  .dashboard-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-quick-actions button {
    min-height: 80px;
    border-bottom: 1px solid rgba(171, 127, 61, .33);
  }
}

@media (max-width: 720px) {
  .teacher-dashboard-workspace {
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
  }

  .dashboard-canvas {
    display: block;
    padding: 16px 12px 26px;
    overflow: visible;
  }

  .dashboard-welcome,
  .dashboard-summary,
  .dashboard-top-grid,
  .dashboard-middle-grid,
  .dashboard-quick-actions {
    margin-bottom: 14px;
  }

  .dashboard-welcome > div {
    min-width: 118px;
  }

  .dashboard-welcome h1 {
    font-size: 24px;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-summary article {
    min-height: 112px;
  }

  .course-table {
    min-width: 750px;
  }

  .tonight-courses {
    overflow-x: auto;
  }

  .todo-panel {
    min-width: 0;
  }

  .todo-panel li {
    grid-template-columns: minmax(0, 1fr) 62px;
    padding: 5px 0;
  }

  .todo-panel time {
    grid-column: 2;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }
}
