.stu-splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--mode-bg, #faf8f5);
  padding: 24px;
}
.stu-splash .stu-wordmark {
  width: 150px;
  height: 76px;
}
.splash-loader {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line, #ddd);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: stu-spin 0.9s linear infinite;
}
@keyframes stu-spin {
  to {
    transform: rotate(360deg);
  }
}
.stu-splash .form-error {
  max-width: 440px;
  text-align: center;
}
.warning-screen {
  min-height: 100dvh;
  max-width: 740px;
  margin: auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.warning-screen blockquote {
  margin: 0;
  padding: 20px;
  background: var(--mode-soft);
  border-radius: 18px;
  line-height: 1.6;
}
.warning-screen li {
  margin: 12px 0;
  line-height: 1.6;
}
.warning-screen .checkbox {
  margin: 24px 0;
}
.birthday-setup {
  max-width: 520px;
  margin: 40px auto;
}
.birthday-setup p {
  line-height: 1.6;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 50px;
  background: var(--mode-soft);
  color: var(--mode-text);
}
.profile-badge.stu-staff {
  background: var(--green);
  color: #fff;
}
.profile-entire-card .modal-heading,
.profile-entire-card .modal-heading button,
.profile-entire-card .sheet-handle {
  background: transparent !important;
  box-shadow: none !important;
}
.profile-entire-card .modal-heading button {
  color: var(--stu-ink);
  border: 0;
}
.profile-entire-card .profile-icon-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}
.profile-icon-actions button {
  width: 54px;
  min-height: 48px;
  justify-content: center;
}
.profile-safety-actions {
  display: flex;
  justify-content: space-evenly;
  gap: 12px;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--line);
}
.profile-safety-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--mode-text);
  font-weight: 600;
}
.person-body .person-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.person-actions .button {
  flex: 1;
  min-width: 0;
  white-space: normal;
  padding: 10px 8px;
  font-size: 12px;
  margin: 0;
}
.person-body .match-reason {
  margin-bottom: 8px;
}
.portrait-inner {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.portrait-inner .persona-art {
  width: 100%;
  height: 100%;
  display: block;
}
.persona-art {
  display: block;
}
.notification-item.is-unread {
  border-left: 1px solid var(--line);
}
.toast {
  max-width: calc(100vw - 32px);
  width: max-content;
  box-sizing: border-box;
  gap: 10px;
}
.toast > span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.toast > svg,
.toast > button {
  flex-shrink: 0;
}
.typing-indicator {
  min-height: 28px;
  padding: 5px 20px;
  font-size: 12px;
  color: var(--mode-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  height: 100%;
  text-align: center;
}
.chat-unavailable > p {
  line-height: 1.7;
  max-width: 420px;
}
.chat-unavailable > .text-link {
  align-self: flex-start;
}
.typing-dots {
  display: flex;
  gap: 3px;
}
.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: typing-bounce 1s infinite;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing-bounce {
  50% {
    transform: translateY(-3px);
    opacity: 0.4;
  }
}
.environment-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--mode-surface);
}
.environment-header .stu-wordmark {
  width: 90px;
  height: 45px;
}
.environment-header a,
.environment-header > button {
  margin-left: auto;
}
.environment-header small {
  display: block;
  margin-top: 5px;
  color: var(--mode-muted);
}
.moderation-environment {
  min-height: 100dvh;
  background: var(--mode-bg);
}
.moderation-environment > .admin-panel {
  max-width: 1440px;
  margin: auto;
  padding: 24px;
}
.badge-manager {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.navbar-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.navbar-settings > p {
  width: 100%;
  line-height: 1.6;
}
.prospective-profile-tools {
  margin: 24px auto;
  max-width: 760px;
}
.prospective-profile-tools > details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.prospective-profile-tools summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.prospective-environment {
  min-height: 100dvh;
  background: var(--mode-bg);
  padding-bottom: 100px;
}
.prospective-environment > main {
  max-width: 1120px;
  margin: auto;
  padding: 28px 24px;
}
.prospective-questions {
  max-width: 760px;
  margin: auto;
}
.prospective-questions > p {
  line-height: 1.6;
}
.prospective-question {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.prospective-question blockquote {
  margin: 16px 0;
  padding: 16px;
  background: var(--mode-soft);
  border-radius: 12px;
}
.prospective-person {
  overflow: hidden;
  border-radius: 24px;
  background: var(--mode-surface);
}
.prospective-person > .button {
  margin: 12px;
  width: calc(100% - 24px);
}
.prospective-nav {
  display: flex !important;
  justify-content: space-evenly;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
}
.prospective-nav button {
  flex: 1;
}
@media (max-width: 760px) {
  .toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto;
    transform: none;
  }
  .warning-screen {
    padding: 28px 20px 48px;
  }
  .moderation-environment > .admin-panel {
    padding: 14px;
  }
  .environment-header {
    padding: 12px 16px;
    gap: 12px;
  }
  .prospective-environment > main {
    padding: 20px 16px;
  }
  .prospective-environment:has(.thread-open) > .environment-header {
    display: none;
  }
  .prospective-environment .messenger {
    height: calc(100dvh - 190px);
  }
  .prospective-environment .messenger.thread-open {
    height: calc(100dvh - 100px);
  }
  .profile-entire-card .sheet-handle {
    position: absolute;
    top: 0;
  }
  .profile-entire-card .modal-heading {
    position: absolute;
    top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typing-dots i,
  .splash-loader {
    animation: none;
  }
}

/* A single inset composer surface, with a persistent send / hold-to-record button. */
.whatsapp-composer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  padding: 10px 14px 8px;
  background: var(--mode-paper, #f8f6f0);
  align-items: end;
  flex-shrink: 0;
}
.whatsapp-composer .composer-input {
  position: relative;
  display: flex;
  align-items: end;
  border-radius: 25px;
  border: 1px solid var(--mode-border, #ded9e6);
  background: var(--mode-card, #fff);
  padding: 0;
  min-width: 0;
  box-shadow: 0 2px 5px #201a3505;
}
.whatsapp-composer .composer-input textarea {
  background: transparent;
  border: 0;
  border-radius: 25px;
  min-height: 46px;
  max-height: 130px;
  resize: none;
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  font-size: 16px;
  line-height: 20px;
  box-shadow: none;
  color: var(--mode-ink, #201a35);
}
.whatsapp-composer .composer-plus {
  flex: 0 0 42px;
  width: 42px;
  height: 46px;
  border: 0;
  background: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  color: var(--mode-muted, #514861);
}
.whatsapp-composer .send-message-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: #6236ff;
  color: white;
}
.whatsapp-composer .send-message-button:disabled {
  opacity: 0.5;
}
.whatsapp-composer .composer-hint {
  grid-column: 1/-1;
  font-size: 10px;
  line-height: 1.4;
  padding: 0 8px;
  overflow-wrap: anywhere;
}
.mention-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  max-height: 230px;
  overflow: auto;
  padding: 8px;
  background: var(--mode-card, #fff);
  color: var(--mode-ink, #201a35);
  border: 1px solid var(--mode-border, #ded9e6);
  border-radius: 18px;
  box-shadow: 0 8px 24px #201a3522;
}
.mention-suggestions small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 8px;
  color: var(--mode-muted, #514861);
}
.mention-suggestions button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  padding: 10px;
  text-align: left;
}
.mention-suggestions button.selected,
.mention-suggestions button:hover {
  background: var(--mode-soft, #e8e0ff);
}
.mention-suggestions button > svg {
  margin-left: auto;
  opacity: 0.5;
}
.mention-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8e0ff;
  color: #6236ff;
  font-weight: bold;
}
.composer-mentions {
  grid-column: 1/-1;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 5px;
  font-size: 11px;
}
.composer-mentions span {
  background: var(--mode-soft, #e8e0ff);
  color: var(--mode-ink, #201a35);
  padding: 3px 7px;
  border-radius: 10px;
}
.hold-mic {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.hold-mic.is-recording {
  background: #e85353;
}
.hold-voice-status {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 12px;
  padding: 7px;
  border-radius: 12px;
  background: var(--mode-soft, #e8e0ff);
  overflow-wrap: anywhere;
}
.hold-voice-status > span:nth-child(3) {
  margin-right: auto;
}
.hold-voice-status button {
  background: none;
  border: 0;
  color: inherit;
  padding: 6px;
  text-decoration: underline;
}
.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85353;
  animation: voice-pulse 1s infinite;
}
.cancel-recording {
  color: #b42323;
}
@keyframes voice-pulse {
  50% {
    opacity: 0.35;
  }
}
.chat-markdown {
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 14px;
  line-height: 1.5;
}
.chat-markdown .markdown-line,
.chat-markdown .markdown-item {
  white-space: pre-wrap;
}
.chat-markdown .markdown-heading {
  font-weight: 700;
  font-size: 1.1em;
  margin: 3px 0;
}
.chat-markdown blockquote {
  margin: 5px 0;
  padding-left: 10px;
  border-left: 3px solid currentColor;
  opacity: 0.85;
}
.chat-markdown code {
  font:
    0.9em/1.5 Consolas,
    monospace;
  background: #201a3512;
  padding: 1px 4px;
  border-radius: 4px;
}
.chat-markdown pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow: auto;
  padding: 8px;
  background: #201a3512;
  border-radius: 8px;
  margin: 5px 0;
}
.chat-markdown pre code {
  padding: 0;
  background: none;
}
.chat-markdown a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 760px) {
  .whatsapp-composer {
    padding: 8px 10px 6px;
  }
  .whatsapp-composer .composer-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recording-dot {
    animation: none;
  }
}

.chat-paused-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  background: var(--mode-soft, #e8e0ff);
}
.chat-paused-notice span {
  flex: 1;
  min-width: 180px;
}
.restriction-category {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 99px;
  background: var(--mode-soft, #e8e0ff);
}

.chat-markdown .markdown-link {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

/* Brand greeting: intact mark, conversation dots and a cropped U curve. */
.splash-playful {
  background: var(--mode-canvas, #f8f6f0);
  color: var(--mode-text, #201a35);
  gap: 16px;
  overflow: hidden;
  text-align: center;
}
.splash-scene {
  position: relative;
  width: 260px;
  height: 225px;
  margin-bottom: 12px;
  isolation: isolate;
}
.splash-mark-disc {
  position: absolute;
  width: 158px;
  height: 158px;
  left: 51px;
  top: 42px;
  border-radius: 46px;
  background: #6236ff;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  box-shadow: 0 14px 0 #e8e0ff;
  animation: stu-greet 0.24s ease-out both;
}
.splash-mark-disc img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  transform: rotate(8deg);
}
.splash-orbit {
  position: absolute;
  display: block;
  background: #d8ff62;
  border-radius: 50%;
}
.orbit-one {
  width: 49px;
  height: 49px;
  left: 12px;
  top: 54px;
}
.orbit-two {
  width: 29px;
  height: 29px;
  right: 7px;
  bottom: 20px;
  background: #ff846b;
}
.splash-tagline {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.splash-progress {
  display: flex;
  gap: 7px;
  margin-top: 17px;
  align-items: center;
  height: 14px;
}
.splash-progress i {
  width: 7px;
  height: 7px;
  background: #6236ff;
  border-radius: 50%;
  animation: stu-breathe 1.8s ease-in-out infinite;
}
.splash-progress i:nth-child(2) {
  animation-delay: 0.15s;
}
.splash-progress i:nth-child(3) {
  animation-delay: 0.3s;
}
.splash-season-detail {
  position: absolute;
  display: block;
  z-index: 2;
}
.season-christmas .detail-one {
  width: 46px;
  height: 42px;
  right: 16px;
  top: 7px;
  background: #ff846b;
  border-radius: 6px;
  transform: rotate(15deg);
  border-top: 7px solid #6236ff;
}
.season-christmas .detail-one:after {
  content: "";
  position: absolute;
  inset: -7px 19px 0;
  background: #d8ff62;
}
.season-christmas .detail-two {
  width: 12px;
  height: 12px;
  left: 19px;
  bottom: 15px;
  border-radius: 50%;
  background: #e8e0ff;
  box-shadow:
    28px -35px 0 2px #e8e0ff,
    209px -112px 0 1px #e8e0ff;
}
.season-summer .detail-one {
  width: 54px;
  height: 54px;
  right: 14px;
  top: 0;
  border-radius: 50%;
  background: #d8ff62;
  border: 7px solid #f8f6f0;
  outline: 3px dashed #6236ff;
}
.season-summer .detail-two {
  width: 62px;
  height: 22px;
  left: 4px;
  bottom: 8px;
  border-bottom: 6px solid #6236ff;
  border-radius: 0 0 50% 50%;
  transform: rotate(-12deg);
}
.season-halloween .detail-one {
  width: 49px;
  height: 50px;
  right: 14px;
  top: 0;
  background: #e8e0ff;
  border-radius: 26px 26px 12px 12px;
  transform: rotate(12deg);
}
.season-halloween .detail-one:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 13px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #201a35;
  box-shadow: 16px 0 0 #201a35;
}
.season-halloween .detail-two {
  left: 13px;
  bottom: 7px;
  width: 42px;
  height: 33px;
  background: #ff846b;
  border-radius: 45%;
  border: 3px solid #201a35;
}
.season-halloween .detail-two:after {
  content: "";
  position: absolute;
  top: -10px;
  left: 17px;
  width: 6px;
  height: 10px;
  background: #6236ff;
  border-radius: 3px;
}
@keyframes stu-greet {
  from {
    opacity: 0;
    transform: translateY(8px) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-8deg);
  }
}
@keyframes stu-breathe {
  0%,
  70%,
  100% {
    opacity: 0.35;
  }
  35% {
    opacity: 1;
  }
}
.stu-unavailable {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 22px;
  text-align: center;
  background: var(--mode-canvas, #f8f6f0);
  color: var(--mode-text, #201a35);
}
.stu-unavailable .stu-wordmark {
  width: 110px;
  height: 56px;
  margin-bottom: 10px;
}
.stu-unavailable h1 {
  font-size: clamp(26px, 6vw, 38px);
  letter-spacing: -1px;
  line-height: 1.13;
  margin: 0;
  max-width: 460px;
}
.stu-unavailable > p {
  max-width: 410px;
  line-height: 1.6;
  margin: 0;
}
.unavailable-illustration {
  position: relative;
  width: 130px;
  height: 100px;
  margin: 8px 0 20px;
}
.unavailable-u {
  position: absolute;
  left: 27px;
  top: 10px;
  width: 76px;
  height: 70px;
  border: 17px solid #6236ff;
  border-top: 0;
  border-radius: 0 0 45px 45px;
  transform: rotate(-12deg);
}
.unavailable-illustration i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d8ff62;
  left: 7px;
  top: 8px;
}
.unavailable-illustration i:last-child {
  left: 113px;
  top: 57px;
  background: #ff846b;
}
.unavailable-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0;
}
.unavailable-actions .button {
  min-height: 46px;
}
.unavailable-code {
  font-size: 13px;
  opacity: 0.85;
}
.unavailable-code code {
  font-family: monospace;
  font-weight: 700;
  border: 1px solid var(--line, #e8e0ff);
  padding: 6px 9px;
  border-radius: 7px;
}
.unavailable-help {
  font-size: 13px;
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  .splash-mark-disc,
  .splash-progress i {
    animation: none;
  }
  .splash-progress i {
    opacity: 0.7;
  }
}

.splash-mark-disc img {
  opacity: 0;
}
.splash-mark-disc:after {
  content: "";
  position: absolute;
  width: 112px;
  height: 112px;
  background: #d8ff62;
  mask: url("/assets/brand/stu-brandmark.png") center/contain no-repeat;
  -webkit-mask: url("/assets/brand/stu-brandmark.png") center/contain no-repeat;
  transform: rotate(8deg);
}
.splash-playful .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stu-unavailable .button:not(.outline) {
  background: #6236ff;
  color: #fff;
  border: 1px solid #6236ff;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
