/* Approved student D: a full-width wall with continuous, in-card conversations. */
body.board-page[data-board-role="student"][data-board-theme="light"] {
  --primary: #6037d1;
  --primary-rgb: 96, 55, 209;
  --board-mock-primary: #6037d1;
  --board-mock-text: #252136;
  --board-mock-muted: #625c70;
  --board-mock-line: #e2deeb;
  --font-heading: var(--font-body);
}

body.student-board-page[data-board-role="student"][data-board-background="solid-cloud"] {
  --class-board-background-color: #f8f7fd;
}

.student-board-brandbar { display: none; }
body.board-page[data-board-role="student"][data-board-has-selection="true"] .student-board-brandbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 24px;
  margin: 0 -28px;
  padding: 0 28px;
  border-bottom: 1px solid #e2deeb;
  background: #fff;
  color: #252136;
  font-size: 14px;
}
.student-board-brandbar strong { font-size: 19px; letter-spacing: -.5px; }
.student-board-brandbar > span:first-of-type { padding-left: 24px; border-left: 1px solid #ddd7e9; }
.student-board-actor { margin-left: auto; font-weight: 700; }

body.board-page[data-board-role="student"] .student-board-shell { width: 100%; max-width: none; padding: 0 28px 72px; }
body.board-page[data-board-role="student"][data-board-theme="light"] .glass-nav.student-board-header {
  position: relative;
  top: auto;
  min-height: 96px;
  height: auto;
  margin: 0;
  padding: 20px 0 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body.board-page[data-board-role="student"] .student-board-heading { min-width: 0; }
body.board-page[data-board-role="student"] .student-board-heading .premium-title {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
}
body.board-page[data-board-role="student"] .student-board-heading .subtitle { margin-top: 4px; font-size: 14px; }
body.board-page[data-board-role="student"][data-board-theme="light"] .board-toolbar.board-redesign-post-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.board-page[data-board-role="student"] .board-search-wrap { flex: 1 1 240px; max-width: 480px; }
body.board-page[data-board-role="student"] .board-sort-wrap { flex: 0 0 auto; }
body.board-page[data-board-role="student"] #studentBoardPresentation { flex: 0 0 auto; width: auto; min-height: 44px; height: 44px; }
body.board-page[data-board-role="student"][data-board-theme="light"] .board-search-wrap,
body.board-page[data-board-role="student"][data-board-theme="light"] .board-sort-wrap {
  min-height: 44px;
  border-radius: 9px;
  background: #fff;
}
body.board-page[data-board-role="student"] .student-board-view-switch button:not(.is-active) { display: none; }
body.board-page[data-board-role="student"] .student-board-view-switch { border: 0; background: transparent; }
body.board-page[data-board-role="student"] .student-board-view-switch button.is-active {
  color: #625c70;
  background: #efedf6;
}
body.board-page[data-board-role="student"] .board-result-meta { margin-left: auto; white-space: nowrap; }
body.board-page[data-board-role="student"][data-board-theme="light"] #fabWrite {
  /* Retire the shared legacy fixed-compose rule for this student toolbar only. */
  position: static !important;
  inset: auto !important;
  z-index: auto;
  display: inline-flex;
  width: auto;
  height: 44px;
  min-height: 44px;
  min-width: 118px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 9px;
  color: #fff;
  background: #6037d1;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 2px 5px #6037d11a;
  transform: none;
  transition: background .15s;
}
body.board-page #fabWrite[hidden] { display: none !important; }
body.board-page[data-board-role="student"][data-board-theme="light"] #studentBoardState {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #625c70;
  font-size: 13px;
}

body.board-page[data-board-role="student"][data-board-view="gallery"] #postContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: 20px;
  align-items: start;
}
body.board-page[data-board-role="student"][data-board-theme="light"] .post-card {
  height: auto;
  min-height: 0;
  align-self: start;
  overflow: visible;
  border: 1px solid #e2deeb;
  border-radius: 14px;
  background: var(--post-pastel, #fff);
  box-shadow: 0 2px 7px #35225706;
}
body.board-page[data-board-role="student"] .post-card[data-post-background="post-cloud"] { --post-pastel: #fff; }
body.board-page[data-board-role="student"][data-board-theme="light"] .post-card:hover,
body.board-page[data-board-role="student"][data-board-theme="light"] .post-card:focus-within {
  border-color: #bdb0dc;
  box-shadow: 0 3px 12px #3522570a;
  transform: none;
}
body.board-page[data-board-role="student"] .post-body { padding: 18px 18px 0; }
body.board-page[data-board-role="student"] .post-read-zone { margin: 4px 0 12px; padding: 0; border: 0; min-height: 0; }
body.board-page[data-board-role="student"] .post-title { margin: 0 0 8px; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
body.board-page[data-board-role="student"][data-board-view] #postContainer .post-content-preview {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  color: #393444;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}
body.board-page[data-board-role="student"] .post-content-preview p { margin: 0 0 .5em; font-size: inherit; line-height: inherit; }
body.board-page[data-board-role="student"] .post-content-preview p:last-child { margin-bottom: 0; }
body.board-page[data-board-role="student"][data-board-view] #postContainer .post-image-wrap {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #faf9fd;
}
body.board-page[data-board-role="student"] .post-image { display: block; height: auto; max-height: 360px; object-fit: contain; }
body.board-page[data-board-role="student"] .post-actions { margin: 8px 0 0; padding: 0; border: 0; }
body.board-page[data-board-role="student"] .action-btn { min-height: 44px; padding: 5px 8px; border: 0; background: transparent; color: #625c70; }
body.board-page[data-board-role="student"] .reaction-total-badge { display: none; }
.board-inline-post-status { padding: 8px 10px; border-radius: 8px; color: #56349e; background: #f0eafb; font-size: 13px; }

.board-inline-comments { margin: 0 18px; padding: 12px 0 16px; border-top: 1px solid #e7e3ee; }
.board-inline-comments-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #625c70; font-size: 14px; }
.board-inline-comment-list { display: grid; gap: 12px; height: auto; max-height: none; overflow: visible; }
.board-inline-comment { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.board-inline-comment[data-depth="1"] { margin-left: 30px; padding-left: 10px; border-left: 2px solid #e5deef; }
.board-inline-comment-avatar { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #7752c9; font-size: 13px; font-weight: 700; }
.board-inline-comment-avatar[data-teacher="true"] { background: #426aca; }
.board-inline-comment-main { min-width: 0; flex: 1; }
.board-inline-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; line-height: 1.5; color: #32283e; }
.board-inline-comment-meta time { color: #716a7b; font-size: 11px; }
.board-inline-comment-teacher,
.board-inline-comment-own { padding: 1px 4px; border-radius: 4px; color: #5b39a7; background: #eee7fc; font-size: 11px; }
.board-inline-comment .student-board-comment-copy { margin: 3px 0 0; color: #443b50; font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-inline-comment .student-board-comment-emoticon { max-width: 128px; max-height: 128px; }
.board-inline-comment-actions { display: flex; flex-wrap: wrap; gap: 2px; }
.board-inline-comment-action { min-height: 36px; padding: 4px 7px; border: 0; border-radius: 6px; background: transparent; color: #665b78; font: inherit; font-size: 12px; cursor: pointer; }
.board-inline-comment-action:hover { color: #50309a; background: #f3effb; }
.board-inline-comment-form { margin-top: 12px; }
.board-inline-comment-context { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 5px; padding-left: 8px; color: #6037b5; font-size: 13px; }
.board-inline-comment-input-row { display: flex; align-items: flex-end; gap: 2px; padding: 2px 4px; border: 1px solid #d4cedd; border-radius: 10px; background: #fff; }
.board-inline-comment-input-row:focus-within { border-color: #7752c9; box-shadow: 0 0 0 2px #7752c91a; }
.board-inline-comment-input { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 11px 8px; resize: none; overflow: hidden; border: 0; outline: none; background: transparent; color: #32283e; font: inherit; font-size: 16px; line-height: 1.5; }
.board-inline-comment-emoticon,
.board-inline-comment-send { display: inline-flex; width: 40px; min-height: 44px; flex: 0 0 40px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #64596e; font-size: 18px; cursor: pointer; }
.board-inline-comment-send { color: #6037b5; }
.board-inline-comment-form button:disabled,
.board-inline-comment-input:disabled { opacity: .55; cursor: default; }
.board-inline-comment-continuation { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #e2deeb; border-radius: 8px; background: #faf8fe; color: #604799; font: inherit; font-size: 13px; cursor: pointer; }
.board-inline-comments-status,
.board-inline-comment-notice,
.board-inline-comment-message { margin: 8px 0 0; color: #706879; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.board-inline-comments-status:empty,
.board-inline-comment-notice:empty,
.board-inline-comment-message:empty { display: none; }
.board-inline-comments [data-tone="bad"] { color: #a32e4d; }
.board-inline-comments [data-tone="good"] { color: #21684d; }
.board-inline-comments [hidden] { display: none !important; }
.board-inline-comments :focus-visible { outline: 2px solid #7752c9; outline-offset: 2px; }
.board-inline-comments textarea:focus-visible { outline: none; }

@media (max-width: 1280px) {
  body.board-page[data-board-role="student"] .board-search-wrap { flex: 1 1 230px; max-width: 340px; }
  body.board-page[data-board-role="student"] #studentBoardToolbar { gap: 8px; }
}
@media (max-width: 1080px) {
  body.board-page[data-board-role="student"][data-board-view="gallery"] #postContainer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.board-page[data-board-role="student"] .student-board-shell { padding-left: 20px; padding-right: 20px; }
  body.board-page[data-board-role="student"][data-board-has-selection="true"] .student-board-brandbar { margin: 0 -20px; padding: 0 20px; }
  body.board-page[data-board-role="student"] .student-board-header .nav-left { gap: 10px; }
  body.board-page[data-board-role="student"] .student-board-header-actions { gap: 6px; }
}
@media (max-width: 680px) {
  body.board-page[data-board-role="student"][data-board-view="gallery"] #postContainer { grid-template-columns: minmax(0, 1fr); }
  body.board-page[data-board-role="student"] .student-board-header { flex-wrap: wrap; gap: 12px; }
  body.board-page[data-board-role="student"] .student-board-shell { padding-left: 14px; padding-right: 14px; }
  body.board-page[data-board-role="student"][data-board-has-selection="true"] .student-board-brandbar { margin: 0 -14px; padding: 0 14px; gap: 14px; }
  .student-board-brandbar > span:first-of-type { padding-left: 14px; }
}
