:root {
  --teacher-navy: #06182c;
  --teacher-navy-deep: #031225;
  --teacher-paper: #f8f2e6;
  --teacher-paper-2: #fffaf0;
  --teacher-gold: #b88636;
  --teacher-gold-soft: #d3b36f;
  --teacher-line: rgba(160, 116, 53, .38);
  --teacher-wine: #761e2b;
  --teacher-wine-dark: #5f111d;
  --teacher-ink: #2d2924;
  --teacher-muted: #756d62;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--teacher-ink);
  background: var(--teacher-navy-deep);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.teacher-app {
  display: grid;
  grid-template-columns: 342px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  min-height: 780px;
  overflow: hidden;
  border: 5px double #9f712c;
  background: var(--teacher-paper);
}

.teacher-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: 268px 1fr 154px;
  height: 100vh;
  min-width: 0;
  color: #e7c576;
  border-right: 1px solid rgba(196, 148, 67, .6);
  background:
    radial-gradient(circle at 48% 6%, rgba(32, 72, 102, .26), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 6px),
    linear-gradient(155deg, #081e36, #031326 68%, #061a2f);
  overflow: hidden;
}

.teacher-sidebar::before,
.teacher-sidebar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 154, 72, .22);
  pointer-events: none;
}

.teacher-sidebar::after {
  inset: auto 20px 2px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(205, 157, 75, .68), transparent);
}

.teacher-brand {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.teacher-brand img {
  width: 132px;
  height: 138px;
  object-fit: contain;
  filter: sepia(.08) saturate(1.08);
}

.teacher-brand strong {
  margin-top: 2px;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .1em;
}

.teacher-brand span {
  margin-top: 9px;
  font-size: 15px;
  letter-spacing: .2em;
}

.teacher-brand i {
  width: 210px;
  height: 18px;
  margin-top: 15px;
  background:
    radial-gradient(circle, #d8b66d 0 2px, transparent 2.5px) center / 12px 12px no-repeat,
    linear-gradient(90deg, transparent, #ae8038 18%, #ae8038 44%, transparent 44% 56%, #ae8038 56% 82%, transparent) center / 100% 1px no-repeat;
}

.teacher-primary-nav {
  display: grid;
  grid-template-rows: repeat(9, minmax(54px, 1fr));
  min-height: 0;
  padding: 8px 14px 20px;
  align-content: stretch;
}

.teacher-primary-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  min-height: 54px;
  padding: 8px 28px;
  border: 1px solid transparent;
  color: #ead09a;
  font-size: 18px;
  letter-spacing: .08em;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.teacher-primary-nav a svg {
  width: 25px;
  height: 25px;
  color: #e2b553;
  stroke-width: 1.8;
}

.teacher-primary-nav a:hover,
.teacher-primary-nav a:focus-visible {
  color: #fff0c8;
  outline: 0;
  background: rgba(211, 179, 111, .08);
}

.teacher-primary-nav a.is-active {
  color: #f8ddb0;
  border-color: #a87430;
  background: linear-gradient(90deg, rgba(101, 19, 30, .94), rgba(127, 31, 42, .9));
  box-shadow: inset 0 0 0 2px rgba(235, 200, 130, .12);
}

.teacher-primary-nav a.is-active::before,
.teacher-primary-nav a.is-active::after {
  content: "✦";
  position: absolute;
  top: 50%;
  color: #d9ad5f;
  font-size: 10px;
  transform: translateY(-50%);
}

.teacher-primary-nav a.is-active::before {
  left: -5px;
}

.teacher-primary-nav a.is-active::after {
  right: -5px;
}

.teacher-primary-nav a.is-active svg {
  color: #f3d99e;
}

.teacher-profile {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-top: 1px solid rgba(204, 158, 73, .38);
}

.teacher-profile strong,
.teacher-profile span,
.teacher-profile small {
  display: block;
}

.teacher-profile strong {
  color: #f0d69e;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.teacher-profile span {
  margin-top: 7px;
  color: #d6bd86;
  font-size: 14px;
}

.teacher-profile small {
  margin-top: 8px;
  color: #96b88a;
  font-size: 12px;
}

.teacher-profile small i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #50a55b;
  box-shadow: 0 0 0 2px rgba(93, 171, 99, .18);
}

.teacher-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid #d2a755;
  border-radius: 50%;
  color: #e5c576;
  background: #071b31;
}

.teacher-avatar img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.teacher-avatar::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid #071b31;
  border-radius: 50%;
  background: #55a65e;
}

.sidebar-moon {
  position: absolute;
  right: 58px;
  bottom: 2px;
  color: rgba(218, 178, 92, .72);
  font-size: 46px;
  opacity: .6;
}

.teacher-workspace {
  display: grid;
  grid-template-rows: 65px 65px minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(116, 82, 35, .018) 0 1px, transparent 1px 5px),
    #f9f3e8;
}

.teacher-topbar {
  display: grid;
  grid-template-columns: 380px minmax(350px, 520px) 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 24px;
  color: #e4c27a;
  border-bottom: 1px solid rgba(193, 143, 60, .6);
  background:
    radial-gradient(circle at 44% -100%, rgba(59, 91, 116, .3), transparent 42%),
    #06182c;
}

.teacher-date {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.teacher-date span {
  color: #e8c66f;
  font-size: 34px;
  line-height: 1;
}

.teacher-date strong {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
}

.teacher-global-search {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(197, 155, 82, .55);
  border-radius: 9px;
  color: #bdad92;
  background: rgba(21, 28, 38, .56);
}

.teacher-global-search:focus-within {
  border-color: #d8b873;
  box-shadow: 0 0 0 2px rgba(211, 179, 111, .1);
}

.teacher-global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f6e9cd;
  background: transparent;
}

.teacher-global-search input::placeholder {
  color: #a99d88;
}

.teacher-global-search kbd {
  color: #c9bba4;
  font-family: inherit;
  font-size: 12px;
}

.teacher-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.teacher-top-actions > button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #e5bd60;
  background: transparent;
}

.teacher-top-actions > button:hover,
.teacher-top-actions > button:focus-visible {
  outline: 0;
  color: #ffe3a2;
  background: rgba(255, 255, 255, .05);
}

.teacher-top-actions button svg {
  width: 25px;
  height: 25px;
}

.teacher-top-actions button b {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff3df;
  background: #9d2b35;
  font-size: 11px;
}

.teacher-top-actions > span strong,
.teacher-top-actions > span small {
  display: block;
}

.teacher-top-actions > span strong {
  color: #ead09b;
  font-size: 14px;
  font-weight: 500;
}

.teacher-top-actions > span small {
  margin-top: 3px;
  color: #a79c89;
  font-size: 11px;
}

.teacher-top-avatar {
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid #d2a558;
  border-radius: 50%;
}

.teacher-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.teacher-top-actions .teacher-user-menu {
  width: 22px;
}

.teacher-notice {
  display: grid;
  grid-template-columns: 26px auto 1fr auto 34px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 6px 7px;
  padding: 0 18px;
  color: #41372d;
  border: 3px double rgba(172, 122, 48, .6);
  background:
    radial-gradient(circle at 87% 10%, rgba(202, 165, 95, .14), transparent 28%),
    rgba(255, 251, 241, .94);
}

.teacher-notice > svg {
  color: #781d2b;
}

.teacher-notice > b {
  padding: 7px 15px;
  border-radius: 5px;
  color: #f6e7c7;
  background: #70202b;
  font-weight: 500;
}

.teacher-notice p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-view {
  min-width: 105px;
  min-height: 34px;
  border: 3px double #c19046;
  border-radius: 4px;
  color: #f8e4ba;
  background: #691725;
}

.notice-view:hover,
.notice-view:focus-visible,
.compose-button:hover,
.compose-button:focus-visible,
.send-button:hover,
.send-button:focus-visible {
  outline: 0;
  filter: brightness(1.13);
}

.notice-close {
  border: 0;
  color: #9b794c;
  background: transparent;
  font-size: 27px;
}

.communication-shell {
  display: grid;
  grid-template-columns: 250px 360px minmax(510px, 1fr) 320px;
  min-width: 0;
  min-height: 0;
  margin: 0 7px 7px;
  border: 2px solid rgba(169, 121, 48, .5);
  background: rgba(255, 251, 243, .72);
  overflow: hidden;
}

.channel-panel,
.conversation-list,
.message-panel,
.contact-panel {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(160, 116, 53, .38);
  background:
    repeating-linear-gradient(0deg, rgba(119, 83, 38, .015) 0 1px, transparent 1px 5px),
    rgba(255, 251, 243, .8);
}

.channel-panel {
  position: relative;
  display: flex;
  padding: 20px 15px 0;
  flex-direction: column;
}

.channel-panel h1 {
  margin: 0;
  text-align: center;
  color: #41362b;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .12em;
}

.ornament-rule {
  width: 126px;
  height: 16px;
  margin: 3px auto 13px;
  background:
    radial-gradient(circle, #b68b43 0 2px, transparent 2.5px) center / 10px 10px no-repeat,
    linear-gradient(90deg, transparent, #c1a06a 15% 44%, transparent 44% 56%, #c1a06a 56% 85%, transparent) center / 100% 1px no-repeat;
}

.compose-button {
  min-height: 44px;
  border: 3px double #b98a3c;
  border-radius: 4px;
  color: #f8e1b4;
  background: linear-gradient(#7d202d, #63151f);
  font-size: 16px;
}

.compose-button span {
  margin-right: 9px;
  font-size: 23px;
  vertical-align: -1px;
}

.channel-panel nav {
  margin-top: 10px;
}

.channel-panel nav button {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 9px;
  border: 0;
  color: #433b33;
  background: transparent;
  text-align: left;
  font-size: 15px;
}

.channel-panel nav button:hover,
.channel-panel nav button:focus-visible {
  outline: 0;
  background: rgba(190, 149, 80, .1);
}

.channel-panel nav button.is-active {
  background: linear-gradient(90deg, rgba(222, 196, 146, .35), rgba(245, 235, 214, .45));
}

.channel-panel nav svg {
  width: 20px;
  height: 20px;
}

.channel-panel nav b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 15px;
  color: #fff4de;
  background: #8b2833;
  font-size: 12px;
  font-weight: 500;
}

.channel-encryption {
  margin-top: auto;
  padding: 24px 10px 27px;
  border-top: 1px solid rgba(160, 116, 53, .35);
  color: #7b6c55;
  text-align: center;
}

.channel-encryption svg {
  color: #9e793e;
  vertical-align: -4px;
}

.channel-encryption strong {
  font-size: 13px;
  font-weight: 500;
}

.channel-encryption span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}

.conversation-list {
  display: grid;
  grid-template-rows: 70px 48px minmax(0, 1fr);
}

.conversation-list > header {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  padding: 14px;
}

.conversation-list > header label {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(151, 117, 69, .28);
  border-radius: 7px;
  color: #9a9287;
  background: rgba(255, 253, 248, .72);
}

.conversation-list > header input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #474037;
  background: transparent;
}

.conversation-list > header button,
.message-header > button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(151, 117, 69, .28);
  border-radius: 7px;
  color: #756b5f;
  background: rgba(255, 253, 248, .68);
}

.conversation-list > header button:hover,
.conversation-list > header button:focus-visible,
.message-header > button:hover,
.message-header > button:focus-visible {
  outline: 0;
  color: #7b2430;
  border-color: #ba914c;
}

.conversation-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(151, 117, 69, .28);
}

.conversation-tabs button {
  position: relative;
  border: 0;
  color: #81786c;
  background: transparent;
}

.conversation-tabs button.is-active {
  color: #7c2531;
}

.conversation-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 2px;
  background: #8b2633;
}

.conversation-items {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b49460 transparent;
}

.conversation-item {
  position: relative;
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto;
  grid-template-rows: 26px 24px;
  align-items: center;
  width: 100%;
  min-height: 83px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(151, 117, 69, .18);
  color: #403831;
  background: transparent;
  text-align: left;
}

.conversation-item:hover,
.conversation-item:focus-visible {
  outline: 0;
  background: rgba(221, 200, 160, .2);
}

.conversation-item.is-active {
  background: linear-gradient(90deg, rgba(219, 194, 144, .25), rgba(255, 252, 245, .52));
}

.conversation-item .round-avatar {
  grid-row: 1 / 3;
}

.conversation-item > span:nth-child(2) {
  min-width: 0;
}

.conversation-item strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item strong svg {
  width: 14px;
  height: 14px;
  color: #a77c39;
  vertical-align: -2px;
}

.conversation-item small {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #81796f;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item time {
  align-self: start;
  color: #8b8378;
  font-size: 10px;
}

.conversation-item > i {
  align-self: end;
  justify-self: end;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8f2431;
}

.conversation-item > b {
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 12px;
  color: white;
  background: #96313b;
  font-size: 10px;
  font-weight: 500;
}

.round-avatar {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  color: #fff7e8;
  background: #75697b;
  font-size: 23px;
}

.round-avatar.slate {
  background: #657c81;
}

.round-avatar.crest-small,
.round-avatar.course-avatar,
.round-avatar.shield-avatar {
  border: 1px solid #b5883d;
  color: #f1d18e;
  background: #071b31;
}

.round-avatar img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.round-avatar.course-avatar svg {
  width: 26px;
  height: 26px;
}

.message-panel {
  display: grid;
  grid-template-rows: 82px minmax(0, 1fr) 145px;
}

.message-header {
  display: grid;
  grid-template-columns: 50px 1fr 44px 44px;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-bottom: 1px solid rgba(151, 117, 69, .28);
}

.message-header h2 {
  margin: 0;
  color: #3c332b;
  font-size: 19px;
  font-weight: 500;
}

.message-header p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #8b8172;
  font-size: 10px;
}

.message-header p b {
  padding: 2px 8px;
  border-radius: 10px;
  color: #66854e;
  background: #edf1df;
  font-weight: 400;
}

.message-header p svg {
  width: 12px;
  height: 12px;
}

.message-header .star-button {
  border: 0;
  color: #c49840;
  background: transparent;
  font-size: 27px;
}

.message-history {
  position: relative;
  min-height: 0;
  padding: 16px 17px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b49460 transparent;
}

.day-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin: 0 10% 14px;
  color: #796f62;
  font-size: 11px;
}

.day-divider::before,
.day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175, 137, 75, .45));
}

.day-divider::after {
  transform: scaleX(-1);
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
}

.message-row > div {
  position: relative;
  max-width: 70%;
  padding: 11px 14px 20px;
  border: 1px solid rgba(151, 117, 69, .28);
  border-radius: 8px;
  background: rgba(255, 253, 248, .82);
}

.message-row p {
  margin: 0;
  color: #423a32;
  font-size: 12px;
  line-height: 1.75;
}

.message-row time {
  position: absolute;
  right: 9px;
  bottom: 5px;
  color: #7e766a;
  font-size: 9px;
}

.message-row.outgoing {
  flex-direction: row-reverse;
}

.message-row.outgoing > div {
  background: linear-gradient(135deg, #fbf1d7, #f5e5bd);
}

.message-row.outgoing time b {
  color: #2686bd;
  font-weight: 500;
}

.message-row.compact > div {
  max-width: 65%;
}

.message-row.tiny {
  margin: 0;
}

.round-avatar.tiny {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 17px;
}

.round-avatar.tiny img {
  width: 30px;
  height: 30px;
}

.round-avatar.tiny.teacher-avatar-campus::after {
  display: none;
}

.file-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  width: min(330px, 68%);
  margin: 7px 0 11px 47px;
  padding: 8px;
  border: 1px solid rgba(151, 117, 69, .28);
  border-radius: 7px;
  background: rgba(255, 253, 248, .82);
}

.file-card > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  color: #fff;
  background: #c23c3c;
}

.file-card strong,
.file-card small {
  display: block;
}

.file-card strong {
  font-size: 12px;
  font-weight: 500;
}

.file-card small,
.file-card time {
  margin-top: 3px;
  color: #827a70;
  font-size: 9px;
}

.file-card > svg {
  width: 15px;
  height: 15px;
}

.privacy-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #9b804e;
  font-size: 9px;
}

.privacy-line svg {
  width: 14px;
  height: 14px;
}

.message-composer {
  padding: 12px 16px;
  border-top: 1px solid rgba(151, 117, 69, .28);
  background: rgba(255, 252, 245, .66);
}

.message-composer textarea {
  display: block;
  width: 100%;
  min-height: 70px;
  padding: 11px;
  resize: none;
  border: 1px solid rgba(151, 117, 69, .28);
  border-radius: 7px;
  outline: 0;
  color: #3f3932;
  background: rgba(255, 253, 248, .78);
}

.message-composer textarea:focus {
  border-color: #b88b43;
  box-shadow: 0 0 0 2px rgba(184, 139, 67, .08);
}

.message-composer > div {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
}

.message-composer > div > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0;
  border: 0;
  color: #685f54;
  background: transparent;
  font-size: 11px;
}

.message-composer > div > button:hover,
.message-composer > div > button:focus-visible {
  outline: 0;
  color: #7c2330;
}

.message-composer .send-button {
  min-width: 130px;
  min-height: 38px;
  margin-left: auto;
  justify-content: center;
  border: 3px double #c19551;
  border-radius: 4px;
  color: #f9e5bb;
  background: linear-gradient(#78202c, #60131d);
  font-size: 15px;
}

.send-button span {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 31px;
  margin-left: 10px;
  border-left: 1px solid rgba(230, 195, 127, .38);
}

.contact-panel {
  border-right: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b49460 transparent;
}

.contact-block {
  padding: 0 16px;
  border-bottom: 1px solid rgba(151, 117, 69, .3);
}

.contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  color: #41372e;
  background: transparent;
  text-align: left;
  font-size: 15px;
}

.contact-heading svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}

.contact-block.is-open .contact-heading svg {
  transform: rotate(180deg);
}

.contact-content {
  padding: 0 2px 17px;
}

.contact-block:not(.is-open) .contact-content {
  display: none;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-person strong,
.contact-person b {
  display: block;
}

.contact-person strong {
  font-size: 15px;
  font-weight: 500;
}

.contact-person b {
  width: max-content;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  color: #66854e;
  background: #edf1df;
  font-size: 10px;
  font-weight: 400;
}

.contact-content > p {
  margin: 12px 0 0;
  color: #7b7165;
  font-size: 11px;
  line-height: 1.55;
}

.contact-content > p svg {
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -3px;
}

.student-meta p {
  margin: 0 0 10px;
}

.contact-content > a,
.contact-record > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  color: #7b2630;
  font-size: 11px;
}

.shared-files > a:not(.view-all) {
  display: grid;
  grid-template-columns: 35px 1fr;
  justify-content: start;
  gap: 10px;
  margin: 0 0 12px;
  color: #433a32;
}

.shared-files i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 35px;
  border-radius: 2px;
  color: #fff;
}

.shared-files i.pdf {
  background: #c2413d;
}

.shared-files i.word {
  background: #2864a0;
}

.shared-files i svg {
  width: 22px;
  height: 22px;
}

.shared-files strong,
.shared-files small {
  display: block;
}

.shared-files strong {
  font-size: 11px;
  font-weight: 500;
}

.shared-files small {
  margin-top: 5px;
  color: #897f73;
  font-size: 9px;
}

.contact-record p {
  display: flex;
  align-items: flex-start;
}

.contact-record p > svg {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  color: #a17838;
}

.contact-record span,
.contact-record small {
  display: block;
}

.contact-record small {
  margin-top: 5px;
  color: #8f8578;
  font-size: 9px;
}

.teacher-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  padding: 12px 22px;
  color: #f7e8c8;
  border: 1px solid #c89a50;
  background: #071a2e;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}

.teacher-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1680px) {
  .teacher-app {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .teacher-sidebar {
    grid-template-rows: 250px 1fr 140px;
  }

  .teacher-brand img {
    width: 110px;
    height: 118px;
  }

  .teacher-primary-nav a {
    min-height: 48px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .teacher-topbar {
    grid-template-columns: 330px minmax(310px, 430px) 1fr;
  }

  .communication-shell {
    grid-template-columns: 195px 285px minmax(470px, 1fr) 252px;
  }

  .channel-panel {
    padding-right: 11px;
    padding-left: 11px;
  }

  .channel-panel nav button {
    padding-right: 5px;
    padding-left: 5px;
  }
}

@media (max-width: 1320px) {
  .teacher-app {
    grid-template-columns: 245px minmax(0, 1fr);
  }

  .teacher-topbar {
    grid-template-columns: 250px minmax(300px, 1fr) auto;
  }

  .teacher-top-actions > span:not(.teacher-top-avatar) {
    display: none;
  }

  .communication-shell {
    grid-template-columns: 185px 270px minmax(430px, 1fr);
  }

  .contact-panel {
    display: none;
  }
}

@media (max-width: 1000px) {
  .teacher-app {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .teacher-sidebar {
    grid-template-rows: 120px 1fr 110px;
  }

  .teacher-brand img {
    width: 68px;
    height: 75px;
  }

  .teacher-brand strong,
  .teacher-brand span,
  .teacher-brand i,
  .teacher-primary-nav a span,
  .teacher-profile > div,
  .sidebar-moon {
    display: none;
  }

  .teacher-primary-nav {
    padding: 5px 9px;
  }

  .teacher-primary-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 5px;
  }

  .teacher-profile {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 15px 5px;
  }

  .teacher-profile .teacher-avatar {
    width: 58px;
    height: 58px;
  }

  .teacher-profile .teacher-avatar img {
    width: 48px;
    height: 48px;
  }

  .teacher-topbar {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .teacher-date {
    display: none;
  }

  .communication-shell {
    grid-template-columns: 260px minmax(430px, 1fr);
  }

  .channel-panel {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--teacher-paper);
  }

  .teacher-app {
    display: block;
    height: auto;
    min-height: 100vh;
    border-width: 2px;
    overflow: visible;
  }

  .teacher-sidebar,
  .teacher-notice,
  .conversation-list {
    display: none;
  }

  .teacher-workspace {
    grid-template-rows: 64px minmax(700px, calc(100vh - 64px));
  }

  .teacher-topbar {
    grid-template-columns: 1fr auto;
    padding: 0 12px;
  }

  .teacher-global-search kbd,
  .teacher-top-actions > button:nth-child(2),
  .teacher-top-avatar,
  .teacher-user-menu {
    display: none;
  }

  .communication-shell {
    display: block;
    margin: 0;
    border: 0;
  }

  .message-panel {
    height: calc(100vh - 64px);
    grid-template-rows: 76px minmax(0, 1fr) 135px;
    border: 0;
  }

  .message-row > div {
    max-width: 83%;
  }

  .message-row.compact > div {
    max-width: 78%;
  }

  .message-composer > div {
    gap: 9px;
  }

  .message-composer > div > button:nth-child(3),
  .message-composer > div > button:nth-child(4) {
    display: none;
  }

  .message-composer .send-button {
    min-width: 100px;
  }
}
