/* STELLAR student workspace. Shared navigation, profiles and direct messages. */
:root {
  --student-bg: #f4f6f8;
  --student-surface: #fff;
  --student-soft: #f5f8f9;
  --student-ink: #192a35;
  --student-muted: #667985;
  --student-line: #dfe7eb;
  --student-accent: #087d82;
  --student-accent-ink: #fff;
  --student-tint: #e9f5f3;
  --student-bubble: #e0f2ee;
  --student-shadow: 0 12px 40px #1b394507;
  --student-danger: #b23b42;
  --student-header: #ffffffed;
}
html[data-theme="dark"] {
  --student-bg: #0c131b;
  --student-surface: #131e28;
  --student-soft: #182631;
  --student-ink: #ecf2f5;
  --student-muted: #9bafbd;
  --student-line: #283844;
  --student-accent: #66d1c5;
  --student-accent-ink: #09272a;
  --student-tint: #183b3e;
  --student-bubble: #214847;
  --student-shadow: 0 12px 40px #00000014;
  --student-danger: #ff9b9f;
  --student-header: #101923ed;
}
.student-page {
  margin: 0;
  background: var(--student-bg);
  color: var(--student-ink);
  font:
    400 15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.student-page *,
.student-header *,
.student-header-tools * {
  box-sizing: border-box;
}
.student-page h1,
.student-page h2,
.student-page h3,
.student-page p {
  margin-top: 0;
}
.student-page h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 8px;
  font-weight: 650;
}
.student-page h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.45px;
  font-weight: 650;
  margin-bottom: 8px;
}
.student-page h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 8px;
}
.student-page button,
.student-page input,
.student-page textarea {
  font: inherit;
}
.student-page button {
  cursor: pointer;
}
.student-page button:disabled {
  cursor: default;
  opacity: 0.5;
}
.student-page a {
  color: inherit;
  text-decoration: none;
}
.student-page :is(button, a, input, textarea, summary):focus-visible,
.student-header-tools :is(button, a, summary):focus-visible {
  outline: 2px solid var(--student-accent);
  outline-offset: 3px;
}
.student-page [hidden] {
  display: none !important;
}
.student-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}
.student-skip {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 20000;
  padding: 12px 18px;
  background: var(--student-surface);
  border: 1px solid var(--student-accent);
  border-radius: 8px;
}
.student-skip:focus {
  top: 12px;
}
.student-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.student-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--student-header);
  border-bottom: 1px solid var(--student-line);
  backdrop-filter: blur(18px);
}
.student-header-inner {
  height: 78px;
  max-width: 1440px;
  padding: 0 40px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.student-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
  color: var(--student-ink);
  text-decoration: none;
}
.student-brand .stellar-symbol {
  width: 42px;
  height: 42px;
  flex: none;
}
.student-brand .stellar-wordmark {
  width: 166px;
  height: 24px;
  color: inherit;
  flex: none;
}
.student-nav {
  display: flex;
  align-self: stretch;
  gap: 26px;
  align-items: stretch;
}
.student-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--student-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.student-nav .student-icon {
  width: 18px;
  height: 18px;
}
.student-nav a:hover,
.student-nav a[aria-current] {
  color: var(--student-accent);
}
.student-nav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  left: 0;
  right: 0;
  background: var(--student-accent);
}
.student-header-tools,
[data-student-account] {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--student-ink);
  font:
    500 13px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  flex: none;
}
.student-injected {
  margin-inline-start: auto;
}
.student-icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  text-decoration: none;
}
.student-icon-button:hover {
  background: var(--student-soft);
  border-color: var(--student-line);
}
.student-signin {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid var(--student-line);
  border-radius: 9px;
}
.student-message-shortcut {
  position: relative;
}
.student-inbox-count {
  position: absolute;
  right: -3px;
  top: -3px;
  border: 2px solid var(--student-surface);
  min-width: 20px;
  height: 20px;
  border-radius: 12px;
  background: var(--student-accent);
  color: var(--student-accent-ink);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
}
.student-account-menu,
.student-thread-menu {
  position: relative;
}
.student-account-menu summary,
.student-thread-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}
.student-account-menu summary::-webkit-details-marker,
.student-thread-menu summary::-webkit-details-marker {
  display: none;
}
.student-account-menu summary > .student-icon {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}
.student-header-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.student-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: var(--student-tint);
  color: var(--student-accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--student-accent) 12%, transparent);
}
.student-avatar img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  z-index: 1;
}
.student-header-tools .student-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.student-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 240px;
  border: 1px solid var(--student-line);
  background: var(--student-surface);
  color: var(--student-ink);
  box-shadow: 0 18px 50px #00182425;
  border-radius: 13px;
  padding: 7px;
  z-index: 500;
  font:
    500 13px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.student-dropdown a,
.student-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.student-dropdown a:hover,
.student-dropdown button:hover {
  background: var(--student-soft);
}
.student-dropdown .student-icon {
  width: 17px;
  height: 17px;
  color: var(--student-muted);
}
.student-menu-identity {
  padding: 12px;
  border-bottom: 1px solid var(--student-line);
  margin-bottom: 5px;
  display: grid;
  gap: 4px;
}
.student-menu-identity strong {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-menu-identity span {
  font-size: 11px;
  color: var(--student-muted);
}
.student-muted {
  color: var(--student-muted);
}
.student-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--student-accent);
  margin-bottom: 12px;
}
.student-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.student-button.primary {
  background: var(--student-accent);
  color: var(--student-accent-ink);
}
.student-button.primary:hover {
  filter: brightness(0.95);
}
.student-button.secondary {
  background: var(--student-surface);
  color: var(--student-ink);
  border-color: var(--student-line);
}
.student-button.secondary:hover {
  background: var(--student-soft);
}
.student-button.danger {
  background: var(--student-danger);
  color: var(--student-surface);
}
.student-text-link,
.student-text-button {
  color: var(--student-accent) !important;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
}
.student-text-link:hover,
.student-text-button:hover {
  text-decoration: underline;
}
.student-panel {
  border: 1px solid var(--student-line);
  background: var(--student-surface);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--student-shadow);
}
.student-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 30px;
}
.student-page-heading p {
  font-size: 14px;
  margin-bottom: 0;
}
.student-account-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 40px 72px;
}
.student-profile-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.student-account-sidebar {
  position: sticky;
  top: 110px;
}
.student-account-sidebar nav {
  display: grid;
  gap: 7px;
}
.student-account-sidebar nav :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--student-muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
}
.student-account-sidebar nav [aria-current] {
  background: var(--student-tint);
  color: var(--student-accent);
  font-weight: 650;
}
.student-account-sidebar nav :is(a, button):hover {
  background: var(--student-tint);
}
.student-sidebar-note {
  margin: 32px 14px 0;
  padding-top: 22px;
  border-top: 1px solid var(--student-line);
}
.student-sidebar-note .student-eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
}
.student-sidebar-note p {
  font-size: 12px;
  color: var(--student-muted);
}
.student-profile-content {
  min-width: 0;
}
.student-profile-card {
  border: 1px solid var(--student-line);
  border-radius: 14px;
  background: var(--student-surface);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--student-shadow);
}
.student-profile-cover {
  position: relative;
  isolation: isolate;
  height: 136px;
  overflow: hidden;
  background: #0d202d url("/shared/stellar-stars.jpg") center 36% / cover;
  display: flex;
  align-items: flex-start;
  padding: 25px 30px;
  color: #b9d4db;
}
.student-profile-cover:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #07131bd9, #10262e70);
}
.student-profile-cover > span {
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.9;
}
.student-profile-cover > svg {
  position: absolute;
  width: 145px;
  height: 145px;
  right: 48px;
  top: 18px;
  transform: rotate(-12deg);
  opacity: 0.65;
}
.student-profile-identity {
  padding: 0 30px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  flex-wrap: wrap;
}
.student-profile-avatar {
  align-self: flex-start;
  margin-top: -33px;
  border-radius: 50%;
  background: var(--student-surface);
  padding: 5px;
}
.student-profile-avatar .student-avatar {
  height: 94px;
  width: 94px;
  font-size: 28px;
}
.student-profile-name {
  flex: 1;
  min-width: 180px;
  padding-top: 19px;
}
.student-member-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  color: var(--student-accent);
}
.student-profile-name h2 {
  font-size: 26px;
  margin: 3px 0 5px;
  overflow-wrap: anywhere;
}
.student-profile-name p {
  font-size: 13px;
  margin-bottom: 6px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.student-joined {
  font-size: 11px;
  color: var(--student-muted);
}
.student-profile-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 22px;
  align-items: start;
}
.student-section-heading {
  margin-bottom: 24px;
}
.student-section-heading h2 {
  font-size: 18px;
  margin-bottom: 5px;
}
.student-section-heading p {
  font-size: 12px;
  margin-bottom: 0;
}
.student-form {
  display: grid;
  gap: 22px;
}
.student-form label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--student-ink);
}
.student-form :is(input, textarea),
.student-message-search-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--student-line);
  border-radius: 8px;
  background: var(--student-surface);
  color: var(--student-ink);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 2px #00000003;
  transition: border-color 0.15s;
}
.student-form input:focus,
.student-form textarea:focus {
  border-color: var(--student-accent);
}
.student-form input[readonly] {
  background: var(--student-soft);
  color: var(--student-muted);
}
.student-form textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 320px;
}
.student-form input::placeholder,
.student-form textarea::placeholder {
  color: var(--student-muted);
  opacity: 0.8;
}
.student-optional {
  margin-left: auto;
  color: var(--student-muted);
  font-size: 10px;
  font-weight: 400;
}
.student-field-help {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--student-muted);
}
.student-form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.student-photo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--student-line);
}
.student-photo-actions .student-field-help {
  width: 100%;
}
.student-form .student-upload-label {
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  position: relative;
}
.student-upload-label:focus-within {
  outline: 2px solid var(--student-accent);
  outline-offset: 3px;
}
.student-upload-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
}
.student-form .student-bio-counter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.student-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--student-line);
}
.student-form-footer .student-button {
  margin-left: auto;
}
.student-status {
  font-size: 12px;
  color: var(--student-muted);
  margin: 0;
  white-space: pre-line;
}
.student-status.error,
.student-chat-status.error {
  color: var(--student-danger);
}
.student-status.ok,
.student-chat-status.ok {
  color: var(--student-accent);
}
.student-small-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--student-tint);
  color: var(--student-accent);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.student-privacy-card {
  padding: 24px;
}
.student-privacy-card h3 {
  font-size: 15px;
}
.student-privacy-card p {
  font-size: 12px;
  color: var(--student-muted);
  margin-bottom: 20px;
}
.student-privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--student-line);
}
.student-privacy-row strong {
  font-size: 10px;
  font-weight: 550;
  color: var(--student-accent);
}
.student-privacy-card .student-field-help {
  font-size: 11px;
  margin: 20px 0 0;
}
.student-security-panel {
  min-height: 430px;
}
.student-security-panel > .student-muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.student-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--student-line);
}
.student-security-row h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.student-security-row p {
  font-size: 12px;
  color: var(--student-muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.student-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 90px;
  max-width: 1040px;
  align-items: center;
  margin: 54px auto;
}
.student-auth-intro h1 {
  font-size: 48px;
  line-height: 1.13;
  letter-spacing: -1.8px;
  margin: 20px 0;
}
.student-auth-intro > p {
  color: var(--student-muted);
  max-width: 400px;
  line-height: 1.8;
  font-size: 15px;
}
.student-auth-benefits {
  display: grid;
  gap: 20px;
  margin: 30px 0 36px;
}
.student-auth-benefits > span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--student-accent);
  display: flex;
  gap: 18px;
}
.student-auth-benefits strong {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--student-ink);
  font-weight: 500;
}
.student-auth-card {
  padding: 34px;
  border-radius: 17px;
  background: var(--student-surface);
  border: 1px solid var(--student-line);
  box-shadow: var(--student-shadow);
}
.student-auth-card h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 20px 0 10px;
}
.student-auth-card > .student-muted {
  font-size: 13px;
  margin-bottom: 28px;
}
.student-auth-card .student-form {
  gap: 18px;
}
.student-auth-card .student-button {
  margin-top: 5px;
}
.student-auth-card .student-status {
  margin-top: 16px;
}
.student-auth-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 550;
  color: var(--student-accent);
}
.student-auth-links a:hover {
  text-decoration: underline;
}
.student-auth-footnote {
  border-top: 1px solid var(--student-line);
  padding-top: 20px;
  margin-top: 28px;
  font-size: 11px;
  color: var(--student-muted);
}
.student-notice {
  font-size: 12px;
  border: 1px solid var(--student-line);
  padding: 12px;
  background: var(--student-soft);
  border-radius: 8px;
}
/* Messaging: an inbox and an independently scrolling conversation. */
.student-chat-main {
  max-width: 1440px;
  padding: 28px 40px 28px;
  margin: auto;
}
.student-messages-heading {
  margin-bottom: 23px;
}
.student-messages-heading h1 {
  font-size: 29px;
  margin-bottom: 4px;
}
.student-messages-heading .student-eyebrow {
  font-size: 9px;
  margin-bottom: 7px;
}
.student-messages-heading p {
  font-size: 12px;
}
.student-messenger {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  position: relative;
  height: calc(100dvh - 240px);
  min-height: 480px;
  max-height: 960px;
  background: var(--student-surface);
  border: 1px solid var(--student-line);
  border-radius: 15px;
  box-shadow: var(--student-shadow);
  overflow: hidden;
}
.student-conversations {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--student-line);
}
.student-inbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  gap: 15px;
}
.student-inbox-heading h2 {
  font-size: 18px;
  margin-bottom: 2px;
}
.student-inbox-heading span {
  font-size: 11px;
  color: var(--student-muted);
}
.student-inbox-heading button {
  background: var(--student-tint);
  color: var(--student-accent);
  width: 33px;
  height: 33px;
}
.student-chat-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--student-line);
  border-radius: 8px;
  background: var(--student-soft);
  padding: 9px 11px;
  color: var(--student-muted);
  margin: 0 18px 14px;
}
.student-chat-search .student-icon {
  width: 16px;
  height: 16px;
}
.student-chat-search:focus-within {
  outline: 2px solid var(--student-accent);
  outline-offset: 2px;
}
.student-chat-search input {
  font-size: 12px;
  line-height: 1.7;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0 !important;
  background: transparent;
  color: var(--student-ink);
  padding: 0;
}
.student-chat-search input::placeholder {
  color: var(--student-muted);
}
.student-inbox-filters {
  display: flex;
  gap: 8px;
  padding: 0 18px 17px;
  border-bottom: 1px solid var(--student-line);
}
.student-inbox-filters button {
  background: transparent;
  border: 1px solid var(--student-line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 550;
  color: var(--student-muted);
}
.student-inbox-filters button[aria-pressed="true"] {
  color: var(--student-accent);
  border-color: transparent;
  background: var(--student-tint);
}
.student-inbox-filters span {
  font-size: 9px;
  margin-left: 3px;
}
.student-conversation-list {
  list-style: none;
  padding: 7px 0;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
}
.student-conversation-list li > button[data-conversation] {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border: 0;
  border-left: 3px solid transparent;
}
.student-conversation-list li > button[data-conversation]:hover {
  background: var(--student-soft);
}
.student-conversation-list li > button.active[data-conversation] {
  background: var(--student-tint);
  border-left-color: var(--student-accent);
}
.student-conversation-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
.student-conversation-copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
}
.student-conversation-copy strong {
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.student-conversation-copy time {
  font-size: 9px;
  white-space: nowrap;
  color: var(--student-muted);
}
.student-last-message {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--student-muted);
}
.student-unread-badge {
  font-size: 9px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--student-accent-ink);
  background: var(--student-accent);
  font-weight: 650;
  flex: none;
}
.student-list-empty,
.student-list-loading {
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--student-muted);
  font-size: 12px;
  text-align: center;
}
.student-list-empty > .student-icon {
  width: 27px;
  height: 27px;
  opacity: 0.5;
  margin-bottom: 8px;
}
.student-list-empty strong {
  color: var(--student-ink);
  font-size: 12px;
  font-weight: 600;
}
.student-list-empty span {
  font-size: 11px;
  max-width: 210px;
}
.student-list-empty .student-text-button {
  font-size: 11px;
  padding: 4px;
}
.student-inbox-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--student-line);
  padding: 12px 20px;
  font-size: 10px;
  color: var(--student-muted);
  background: var(--student-soft);
}
.student-connection-dot {
  width: 6px;
  height: 6px;
  background: #b68a4e;
  border-radius: 50%;
  flex: none;
}
.student-connection-dot.connected {
  background: var(--student-accent);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--student-accent) 10%, transparent);
}
.student-thread {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--student-surface);
}
.student-thread-header {
  height: 76px;
  min-height: 76px;
  border-bottom: 1px solid var(--student-line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: var(--student-surface);
  z-index: 2;
}
.student-peer-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.student-peer-button > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.student-peer-button strong {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.student-thread-subtitle {
  display: block;
  font-size: 10px;
  color: var(--student-muted);
}
.student-thread-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.student-conversation-back {
  display: none;
}
.student-thread-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: radial-gradient(
    ellipse at 50% 30%,
    var(--student-tint),
    transparent 55%
  );
}
.student-empty-orbit {
  height: 104px;
  width: 104px;
  padding: 19px;
  margin-bottom: 26px;
  border: 1px solid var(--student-line);
  border-radius: 50%;
  background: var(--student-surface);
  box-shadow:
    0 0 0 16px color-mix(in srgb, var(--student-tint) 45%, transparent),
    0 0 0 33px color-mix(in srgb, var(--student-tint) 20%, transparent);
}
.student-empty-orbit svg {
  width: 100%;
  height: 100%;
}
.student-thread-empty .student-eyebrow {
  margin-top: 12px;
  font-size: 9px;
}
.student-thread-empty h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
}
.student-thread-empty p {
  font-size: 13px;
  color: var(--student-muted);
  line-height: 1.9;
  margin: 5px 0 24px;
}
.student-private-note {
  font-size: 10px;
  color: var(--student-muted);
  margin-top: 40px;
}
.student-thread-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 28px 24px;
  background-color: var(--student-soft);
  background-image: radial-gradient(
    color-mix(in srgb, var(--student-muted) 12%, transparent) 0.7px,
    transparent 0.7px
  );
  background-size: 20px 20px;
  scrollbar-gutter: stable;
}
.student-message-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.student-day-divider {
  display: flex;
  justify-content: center;
  margin: 14px 0 18px;
}
.student-day-divider span {
  font-size: 10px;
  line-height: 1.4;
  background: var(--student-surface);
  border: 1px solid var(--student-line);
  border-radius: 16px;
  padding: 5px 12px;
  color: var(--student-muted);
}
.student-message-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}
.student-message-row.mine {
  flex-direction: row-reverse;
}
.student-message-bubble {
  max-width: min(76%, 540px);
  background: var(--student-surface);
  border: 1px solid var(--student-line);
  border-radius: 3px 13px 13px;
  padding: 10px 13px 7px;
  box-shadow: 0 1px 2px #001e2c04;
  min-width: 74px;
}
.mine .student-message-bubble {
  background: var(--student-bubble);
  border-color: transparent;
  border-radius: 13px 3px 13px 13px;
}
.student-message-bubble > p {
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 3px;
}
.student-message-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--student-muted);
  direction: ltr;
}
.student-receipt .student-icon {
  width: 13px;
  height: 13px;
}
.student-receipt.read {
  color: var(--student-accent);
}
.student-copy-message {
  opacity: 0;
  width: 30px;
  height: 30px;
  color: var(--student-muted);
}
.student-copy-message .student-icon {
  width: 15px;
  height: 15px;
}
.student-message-row:hover .student-copy-message,
.student-message-row:focus-within .student-copy-message {
  opacity: 1;
}
.student-message-bubble.failed {
  border: 1px solid var(--student-danger);
}
.student-retry-message {
  background: transparent;
  border: 0;
  font-size: 10px !important;
  text-decoration: underline;
  color: var(--student-danger);
  padding: 4px 0;
}
.student-conversation-start {
  font-size: 12px;
  line-height: 1.9;
  color: var(--student-muted);
  text-align: center;
  padding: 40px 10px;
}
.student-load-older {
  display: block;
  margin: 0 auto 15px;
  font-size: 10px !important;
  border: 1px solid var(--student-line);
  border-radius: 16px;
  padding: 6px 13px;
  background: var(--student-surface);
  color: var(--student-muted);
}
.student-jump-latest {
  position: absolute;
  bottom: 112px;
  right: 25px;
  border: 1px solid var(--student-line);
  background: var(--student-surface);
  color: var(--student-accent);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px !important;
  box-shadow: 0 4px 20px #001e2c18;
  z-index: 3;
}
.student-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 21px 8px;
  border-top: 1px solid var(--student-line);
  background: var(--student-surface);
}
.student-composer > .student-icon-button {
  color: var(--student-muted);
  margin-bottom: 2px;
}
.student-composer textarea {
  flex: 1;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  padding: 11px 14px;
  border: 1px solid var(--student-line);
  border-radius: 10px;
  font-size: 13px;
  line-height: 20px;
  background: var(--student-soft);
  color: var(--student-ink);
}
.student-send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: var(--student-accent);
  color: var(--student-accent-ink);
}
.student-send-button .student-icon {
  width: 19px;
  height: 19px;
}
.student-send-button:disabled {
  background: var(--student-soft);
  color: var(--student-muted);
  opacity: 0.7 !important;
}
.student-composer-hint {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 0 76px 10px;
  font-size: 9px;
  color: var(--student-muted);
}
.student-chat-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--student-muted);
  margin: 0;
  padding: 0 24px;
  min-height: 0;
}
.student-chat-status:not(:empty) {
  padding-top: 8px;
  padding-bottom: 10px;
  border-top: 1px solid var(--student-line);
}
.student-emoji-picker {
  position: absolute;
  bottom: 104px;
  left: 22px;
  max-width: 280px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 12px;
  background: var(--student-surface);
  border: 1px solid var(--student-line);
  border-radius: 12px;
  z-index: 8;
  box-shadow: 0 8px 30px #001c301a;
}
.student-emoji-picker button {
  font-size: 20px;
  border: 0;
  background: transparent;
  padding: 5px;
  border-radius: 6px;
}
.student-emoji-picker button:hover {
  background: var(--student-tint);
}
.student-peer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 310px;
  overflow-y: auto;
  border-left: 1px solid var(--student-line);
  background: var(--student-surface);
  box-shadow: -12px 0 35px #001d3010;
  padding: 20px;
}
.student-peer-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--student-line);
  padding-bottom: 14px;
  font-size: 13px;
}
#peerProfile {
  text-align: center;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#peerProfile .student-avatar {
  width: 78px;
  height: 78px;
  font-size: 23px;
  margin-bottom: 5px;
}
#peerProfile h3 {
  font-size: 20px;
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: 0;
}
#peerProfile p {
  font-size: 12px;
  color: var(--student-muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  max-width: 100%;
}
#peerProfile .student-button {
  margin-top: 12px;
}
.student-chat-gate {
  max-width: 620px;
  text-align: center;
  margin: 45px auto;
  padding: 50px 24px;
}
.student-empty-emblem {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: var(--student-tint);
  color: var(--student-accent);
}
.student-empty-emblem .student-icon {
  width: 30px;
  height: 30px;
}
.student-chat-gate h2 {
  font-size: 26px;
}
.student-chat-gate .student-status {
  margin: 18px 0;
}
.student-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: min(680px, 85dvh);
  border: 1px solid var(--student-line);
  border-radius: 16px;
  background: var(--student-surface);
  color: var(--student-ink);
  padding: 26px;
  box-shadow: 0 30px 100px #0006;
  overflow-y: auto;
}
.student-dialog::backdrop {
  background: #07162188;
  backdrop-filter: blur(3px);
}
.student-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.student-dialog-heading h2 {
  font-size: 21px;
  margin: 0;
}
.student-dialog-heading .student-eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.student-dialog > .student-muted {
  font-size: 12px;
}
.student-dialog .student-chat-search {
  margin: 20px 0 12px;
  padding: 11px;
}
.student-student-results {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 100px;
}
.student-student-results li > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: inherit;
}
.student-student-results li > button:hover {
  background: var(--student-tint);
}
.student-student-results button > span:not(.student-avatar) {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.student-student-results button > span > span {
  font-size: 11px;
  color: var(--student-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 280px;
}
.student-student-results button > .student-icon {
  width: 17px;
  height: 17px;
  color: var(--student-muted);
}
.student-peer-privacy {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-top: 1px solid var(--student-line);
  padding-top: 24px;
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--student-muted);
}
#profileLoadStatus:not(:empty) {
  margin-bottom: 20px;
}
.student-student-results strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.student-student-results small {
  font-size: 11px;
  color: var(--student-muted);
}
.student-dialog-empty {
  font-size: 12px;
  text-align: center;
  color: var(--student-muted);
  padding: 26px 0;
}
.student-message-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.student-message-search-form input {
  font-size: 13px;
}
.student-message-search-results article {
  border-bottom: 1px solid var(--student-line);
  padding: 15px 0;
}
.student-message-search-results article time {
  font-size: 10px;
  color: var(--student-muted);
}
.student-message-search-results article p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.student-confirm-dialog > p {
  font-size: 13px;
  color: var(--student-muted);
  line-height: 1.8;
}
.student-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
@media (hover: none) {
  .student-copy-message {
    opacity: 0.65;
  }
}
@media (min-width: 1600px) {
  .student-messenger {
    height: calc(100dvh - 255px);
  }
}
@media (max-width: 1100px) {
  .student-header-inner {
    padding: 0 26px;
    gap: 20px;
  }
  .student-nav {
    gap: 18px;
  }
  .student-header-name {
    display: none;
  }
  .student-profile-editor {
    grid-template-columns: minmax(0, 1fr);
  }
  .student-privacy-card {
    display: none;
  }
  .student-profile-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
  }
  .student-auth-layout {
    gap: 45px;
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .student-messenger {
    grid-template-columns: 285px minmax(0, 1fr);
  }
  .student-chat-main {
    padding-left: 26px;
    padding-right: 26px;
  }
}
@media (max-width: 850px) {
  .student-nav {
    gap: 15px;
  }
  .student-nav .student-icon {
    display: none;
  }
  .student-brand {
    gap: 10px;
  }
  .student-brand .stellar-wordmark {
    width: 135px;
  }
  .student-brand .stellar-symbol {
    width: 36px;
    height: 36px;
  }
  .student-header-tools {
    gap: 6px;
  }
  .student-header-inner {
    padding: 0 20px;
    gap: 12px;
  }
  .student-auth-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .student-auth-intro h1 {
    font-size: 38px;
  }
  .student-auth-card {
    padding: 26px;
  }
  .student-account-main {
    padding: 30px 24px 60px;
  }
  .student-profile-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }
  .student-panel {
    padding: 23px;
  }
  .student-profile-identity {
    padding: 0 24px 24px;
    gap: 15px;
  }
  .student-profile-name h2 {
    font-size: 23px;
  }
  .student-form-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .student-header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 13px;
    padding-bottom: 0;
  }
  .student-header-tools {
    margin-left: auto;
  }
  .student-header [data-student-account] > .student-message-shortcut {
    display: none;
  }
  .student-nav {
    order: 3;
    width: 100%;
    height: 45px;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
  }
  .student-nav .student-icon {
    display: block;
    width: 16px;
    height: 16px;
  }
  .student-nav a {
    font-size: 11px;
    gap: 6px;
  }
  .student-nav a[aria-current]:after {
    height: 2px;
  }
  .student-brand .stellar-wordmark {
    width: 142px;
  }
  .student-brand .stellar-symbol {
    width: 36px;
    height: 36px;
  }
  .student-account-main {
    padding: 26px 20px 50px;
  }
  .student-page-heading {
    margin-bottom: 24px;
    gap: 16px;
  }
  .student-page h1 {
    font-size: 27px;
  }
  .student-page-heading p {
    font-size: 12px;
  }
  .student-page-heading > .student-button {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .student-profile-layout {
    display: block;
  }
  .student-account-sidebar {
    position: static;
    margin-bottom: 22px;
  }
  .student-account-sidebar nav {
    display: flex;
    border-bottom: 1px solid var(--student-line);
    border-radius: 0;
    gap: 5px;
    padding-bottom: 10px;
    overflow-x: auto;
  }
  .student-account-sidebar nav :is(a, button) {
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex: none;
  }
  .student-account-sidebar nav a {
    display: none;
  }
  .student-sidebar-note {
    display: none;
  }
  .student-profile-cover {
    height: 120px;
    padding: 22px;
  }
  .student-profile-cover > svg {
    right: 20px;
    width: 125px;
    height: 125px;
  }
  .student-profile-avatar .student-avatar {
    width: 76px;
    height: 76px;
    font-size: 24px;
  }
  .student-profile-avatar {
    margin-top: -30px;
  }
  .student-profile-name {
    min-width: 150px;
    padding-top: 13px;
  }
  .student-profile-identity {
    padding: 0 20px 22px;
    gap: 13px;
  }
  .student-profile-name h2 {
    font-size: 21px;
  }
  .student-profile-name p {
    font-size: 12px;
  }
  .student-profile-identity > .student-button {
    margin-left: 91px;
  }
  .student-profile-editor {
    display: block;
  }
  .student-form {
    gap: 19px;
  }
  .student-security-row {
    flex-wrap: wrap;
  }
  .student-auth-layout {
    display: block;
    max-width: 440px;
    margin: 10px auto;
  }
  .student-auth-intro {
    margin-bottom: 28px;
  }
  .student-auth-intro h1 {
    font-size: 34px;
    margin: 12px 0;
  }
  .student-auth-intro > p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .student-auth-benefits,
  .student-auth-intro .student-text-link {
    display: none;
  }
  .student-auth-card {
    padding: 26px;
  }
  .student-auth-intro .student-eyebrow {
    font-size: 9px;
  }
  .student-chat-main {
    padding: 20px 14px 14px;
  }
  .student-messages-heading {
    margin-bottom: 18px;
    padding: 0 4px;
  }
  .student-messages-heading h1 {
    font-size: 25px;
  }
  .student-messages-heading p,
  .student-messages-heading > .student-text-link {
    display: none;
  }
  .student-messages-heading .student-eyebrow {
    font-size: 8px;
    margin-bottom: 5px;
  }
  .student-messenger {
    grid-template-columns: 1fr;
    height: calc(100dvh - 222px);
    max-height: none;
    min-height: 360px;
    border-radius: 12px;
  }
  .student-conversations {
    border-right: 0;
  }
  .student-thread {
    display: none;
  }
  .student-messenger.has-conversation .student-thread {
    display: flex;
  }
  .student-messenger.has-conversation .student-conversations {
    display: none;
  }
  .student-conversation-back {
    display: inline-flex;
    width: 32px;
    height: 36px;
    padding: 5px;
  }
  .student-thread-header {
    padding: 0 12px;
    height: 67px;
    min-height: 67px;
    gap: 8px;
  }
  .student-peer-button {
    gap: 9px;
  }
  .student-peer-button .student-avatar {
    width: 35px;
    height: 35px;
    font-size: 11px;
  }
  .student-thread-actions {
    gap: 0;
  }
  .student-thread-actions .student-icon-button {
    width: 33px;
    height: 33px;
  }
  .student-thread-body {
    padding: 10px 13px 18px;
  }
  .student-message-bubble {
    max-width: 83%;
    padding: 9px 11px 6px;
  }
  .student-message-bubble > p {
    font-size: 13px;
  }
  .student-message-row {
    gap: 0;
  }
  .student-copy-message {
    width: 28px;
    min-width: 28px;
  }
  .student-composer {
    padding: 11px 10px 8px;
    gap: 5px;
  }
  .student-composer textarea {
    font-size: 14px;
  }
  .student-composer > .student-icon-button {
    width: 31px;
    height: 40px;
    padding: 5px;
  }
  .student-send-button {
    width: 39px;
  }
  .student-composer-hint {
    padding: 0 56px 9px 50px;
  }
  .student-composer-hint > span:first-child {
    visibility: hidden;
    height: 0;
  }
  .student-peer-panel {
    width: 100%;
    border-left: 0;
  }
  .student-emoji-picker {
    bottom: 89px;
    left: 10px;
  }
  .student-inbox-heading {
    padding: 19px 20px 16px;
  }
  .student-dialog {
    padding: 22px;
  }
  .student-thread-empty {
    padding: 20px;
  }
  .student-chat-gate {
    margin: 15px auto;
  }
  .student-auth-intro h1 br {
    display: none;
  }
}
@media (max-width: 620px) {
  .site-header .student-header-tools [data-student-account],
  .topbar-actions [data-student-account] {
    gap: 5px;
  }
  .site-header .student-header-tools .student-header-name,
  .topbar-actions .student-header-name {
    display: none;
  }
  .site-header .student-header-tools .student-message-shortcut,
  .topbar-actions .student-message-shortcut {
    display: none;
  }
  .student-injected {
    gap: 4px;
  }
  .site-header .student-account-menu summary > .student-icon {
    display: none;
  }
  .site-header .student-signin {
    padding: 8px;
    border: 0;
    font-size: 11px;
  }
  .student-header-tools .student-dropdown {
    min-width: 225px;
  }
  .student-header .student-brand .stellar-wordmark {
    width: 130px;
  }
  .student-header .student-brand .stellar-symbol {
    width: 32px;
    height: 32px;
  }
  .student-header .student-brand {
    gap: 8px;
  }
  .student-header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .student-nav {
    gap: 25px;
  }
  .student-account-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .student-page-heading > .student-button {
    font-size: 0;
    gap: 0;
    padding: 9px 12px;
  }
  .student-page-heading > .student-button > span {
    font-size: 18px;
  }
  .student-profile-name {
    min-width: 0;
    flex-basis: calc(100% - 105px);
  }
  .student-profile-name h2 {
    font-size: 20px;
  }
  .student-profile-cover > span {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .student-form-footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  .student-form-footer .student-status {
    flex-basis: 100%;
  }
  .student-form-footer .student-button {
    width: 100%;
  }
  .student-photo-actions {
    gap: 12px;
  }
  .student-photo-actions .student-text-button {
    font-size: 11px;
  }
  .student-profile-card {
    margin-bottom: 18px;
  }
  .student-account-sidebar {
    margin-bottom: 17px;
  }
  .student-profile-identity {
    padding-left: 17px;
    padding-right: 17px;
  }
  .student-auth-intro h1 {
    font-size: 30px;
  }
  .student-auth-card h2 {
    font-size: 24px;
  }
  .student-messages-heading {
    margin-bottom: 15px;
  }
  .student-messenger {
    height: calc(100dvh - 218px);
  }
  .student-messages-heading h1 {
    font-size: 23px;
  }
  .student-dialog .student-message-search-form {
    flex-wrap: wrap;
  }
  .student-message-search-form .student-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .student-page * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Keep the curriculum controls inside a narrow phone header. */
@media (max-width: 620px) {
  .topbar {
    gap: 8px;
    padding-inline: 10px;
  }
  .topbar .brand {
    gap: 7px;
    min-width: 0;
    flex: 1;
  }
  .topbar .brand .stellar-symbol {
    width: 28px;
    height: 28px;
  }
  .topbar .brand .stellar-wordmark {
    width: 98px;
  }
  .topbar .brand-text em {
    display: none;
  }
  .topbar .topbar-actions {
    gap: 5px;
    margin-left: 0;
  }
  .topbar .topbar-actions .progress-chip {
    display: none;
  }
  .topbar .search-trigger,
  .topbar .icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    flex: none;
  }
  .topbar .student-signin {
    font-size: 0;
    padding: 6px;
    width: 34px;
    height: 34px;
    border: 0;
  }
  .topbar .student-account-menu summary > .student-icon {
    display: none;
  }
  .topbar .student-avatar {
    width: 32px;
    height: 32px;
  }
  .topbar .student-dropdown {
    right: -36px;
  }
}

/* Floating message reactions, separate from message content. */
.student-message-row{position:relative;padding-bottom:14px}
.student-message-row:has(.student-reaction-picker[open]){z-index:5}
.student-message-bubble{position:relative}
.student-message-reactions{position:absolute;bottom:-13px;left:10px;display:flex;gap:4px;z-index:1}
.mine .student-message-reactions{left:auto;right:10px}
.student-message-reactions>button{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--student-line);border-radius:16px;padding:2px 7px;background:var(--student-surface);color:var(--student-muted);box-shadow:0 2px 5px #0002;cursor:pointer;font-size:16px;line-height:22px}
.student-message-reactions>button span{font:500 11px/1 system-ui}
.student-message-reactions>button[aria-pressed="true"]{border-color:#72b6a5;background:var(--student-bubble)}
.student-reaction-picker{position:static;flex:none}
.student-reaction-picker summary{list-style:none;display:flex;align-items:center;justify-content:center;width:30px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--student-muted);cursor:pointer;opacity:0;transition:opacity .15s,background .15s}
.student-reaction-picker summary::-webkit-details-marker{display:none}
.student-message-row:hover .student-reaction-picker summary,.student-message-row:focus-within .student-reaction-picker summary,.student-reaction-picker[open] summary{opacity:1}
.student-reaction-picker summary:hover{background:var(--student-surface)}
.student-reaction-picker[open]>div{position:absolute;bottom:calc(100% + 3px);left:0;display:flex;align-items:center;flex-wrap:nowrap;gap:2px;padding:7px 9px;border:1px solid var(--student-line);border-radius:999px;background:var(--student-surface);box-shadow:0 6px 24px #0004;z-index:10;width:max-content;max-width:100%;box-sizing:border-box}
.mine .student-reaction-picker[open]>div{left:auto;right:0}
.student-message-row:nth-child(2) .student-reaction-picker[open]>div{bottom:auto;top:calc(100% - 8px)}
.student-reaction-picker[open]>div>button{display:flex;align-items:center;justify-content:center;flex:0 1 40px;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:28px;line-height:1;transition:transform .12s,background .12s}
.student-reaction-picker[open]>div>button:hover{transform:scale(1.16);background:#8882}
.student-reaction-picker summary:focus-visible,.student-message-reactions button:focus-visible,.student-reaction-picker button:focus-visible{outline:2px solid #8ab4d8;outline-offset:2px}
@media(hover:none),(max-width:700px){.student-reaction-picker summary{opacity:1}.student-reaction-picker[open]>div{gap:0;padding:6px}.student-reaction-picker[open]>div>button{width:30px;height:36px;flex-basis:30px;font-size:25px}}
@media(prefers-reduced-motion:reduce){.student-reaction-picker button,.student-reaction-picker summary{transition:none!important}}
