/* ZemGuru modular styles 10/16. Original cascade order preserved. */
/* Step 129: community grid audit */
body[data-active="community"] .content {
  padding-top: 8px;
}

.community-page-top {
  margin-bottom: 10px;
}

.community-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
}

.community-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1 1 480px;
  min-width: 0;
}

.community-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.community-toolbar-search {
  width: min(280px, 100%);
  min-width: 200px;
  flex: 1 1 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--panel);
  color: var(--ink);
}

.community-categories-mobile-btn,
.community-topics-mobile-btn {
  display: none;
}

.community-filter-pills {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.community-discussions-filter-pills {
  flex: none;
  width: 100%;
  gap: 6px;
  margin: 0 0 12px;
}

.community-discussions-filter-pills button {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.teacher-dialog-discussions-drawer .community-discussions-filter-pills {
  margin-bottom: 10px;
}

.community-discussions-search-stack {
  position: relative;
  z-index: 2;
}

.community-discussions-search-stack .messenger-drawer-search-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding-bottom: 8px;
  background: #fff;
}

.community-discussions-filter-shell {
  overflow: hidden;
  max-height: 132px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.28s ease, opacity 0.24s ease, transform 0.28s ease;
  will-change: max-height, opacity, transform;
  margin-top: 8px;
}

.community-discussions-panel.filters-collapsed .community-discussions-filter-shell {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  margin-top: 0;
}

@media (max-width: 960px) {
  .community-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .community-toolbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .community-toolbar-search {
    flex: 1 1 100%;
    max-width: none;
  }
}

.community-categories-shell {
  position: relative;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  align-self: stretch;
  flex-shrink: 0;
  z-index: 60;
  overflow: visible;
}

.community-categories-tab,
.community-topics-tab,
.messenger-side-tab {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 56px;
  height: 100%;
  min-height: 100%;
  padding: 18px 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
  color: inherit;
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.community-categories-tab {
  cursor: pointer;
}

.messenger-side-tab:hover,
.messenger-side-tab:focus-visible,
.community-categories-tab:hover,
.community-categories-tab:focus-visible,
.community-topics-tab:hover,
.community-topics-tab:focus-visible {
  border-color: var(--accent-border);
  background: var(--soft-green);
}

.messenger-side-tab.active-tab,
.community-categories-tab.active-tab,
.community-topics-tab.active-tab {
  border-color: rgba(36, 115, 56, 0.28);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(36, 115, 56, 0.12);
}

.community-categories-tab-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.community-categories-glyph {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}

.community-categories-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.community-categories-letter {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
}

.community-categories-dots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 14px;
}

.community-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5ddd7;
  flex-shrink: 0;
}

.community-cat-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 115, 56, 0.16);
}

.community-categories-drawer,
.messenger-side-drawer {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  bottom: 0;
  width: min(280px, calc(100vw - 120px));
  min-width: 240px;
  max-width: 280px;
  max-height: calc(100vh - 180px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  z-index: 80;
}

.community-categories-drawer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messenger-side-shell.is-open .community-categories-drawer,
.messenger-side-shell.is-open .community-topics-drawer.community-topics-drawer-floating,
.messenger-side-shell.is-drawer-visible .community-topics-drawer.community-topics-drawer-floating,
.teacher-dialog-side-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* Step 139: collapsible topics rail */
.community-topics-shell {
  position: relative;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  align-self: stretch;
  flex-shrink: 0;
  z-index: 4;
  overflow: visible;
}

.community-topics-shell.has-chat-mode {
  align-self: stretch;
}

.community-topics-tab {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 56px;
  height: 100%;
  min-height: 100%;
  padding: 18px 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.community-topics-tab:hover,
.community-topics-tab:focus-visible {
  border-color: var(--accent-border);
  background: var(--soft-green);
}

.community-topics-tab-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.community-topics-glyph {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
}

.community-topics-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5ddd7;
  flex-shrink: 0;
  margin-top: 14px;
}

.community-topics-active-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 115, 56, 0.16);
}

.community-topics-drawer.community-topics-drawer-floating {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  bottom: 0;
  width: min(340px, calc(100vw - 150px));
  min-width: 280px;
  max-width: 340px;
  height: auto;
  max-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  z-index: 80;
}

.community-topics-drawer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.community-topics-drawer .community-discussions-head {
  flex-shrink: 0;
}

.community-topics-drawer .community-discussions-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.community-discussions-panel .community-discussions-topic-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.community-discussions-panel .community-discussions-topic-scroll .community-topic-list {
  overflow: visible;
  min-height: auto;
}

.community-topics-drawer .community-discussions-topic-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.community-topics-expanded {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.community-topics-expanded .community-discussions-topic-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.community-topics-shell.is-drawer-visible .community-topics-drawer.community-topics-drawer-floating,
.community-topics-shell.is-open .community-topics-drawer.community-topics-drawer-floating {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.community-main-placeholder {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: min(72vh, 760px);
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.community-main-placeholder-card {
  max-width: 360px;
}

.messenger-drawer-search-wrap {
  margin: 0 0 12px;
}

.messenger-drawer-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fa;
  font: inherit;
  font-size: 14px;
}

.messenger-drawer-search:focus {
  outline: none;
  border-color: rgba(36, 115, 56, 0.35);
  box-shadow: 0 0 0 3px rgba(36, 115, 56, 0.1);
}

.messenger-drawer-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.messenger-create-topic-btn {
  width: 100%;
}

.community-discussions-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.community-discussions-toolbar .community-discussions-head-actions {
  margin-left: 0;
}

.community-discussions-toolbar .community-topics-search-expandable {
  margin-left: auto;
}

.community-discussions-toolbar .community-search-count {
  margin-left: 0;
  margin-right: 6px;
}

.community-discussions-toolbar .community-sort-select {
  max-width: 200px;
  transition:
    opacity 0.2s ease,
    max-width 0.28s ease,
    min-width 0.28s ease,
    padding 0.28s ease,
    border-width 0.28s ease,
    visibility 0.2s ease;
}

.community-discussions-toolbar:has(.community-topics-search-expandable:hover) .community-sort-select,
.community-discussions-toolbar:has(.community-topics-search-expandable:focus-within) .community-sort-select,
.community-discussions-toolbar:has(.community-topics-search-expandable.is-open) .community-sort-select {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  min-width: 0;
  width: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  border-width: 0;
  pointer-events: none;
  overflow: hidden;
}

.community-discussions-toolbar:has(.community-topics-search-expandable:hover) .community-topics-search-expandable,
.community-discussions-toolbar:has(.community-topics-search-expandable:focus-within) .community-topics-search-expandable,
.community-discussions-toolbar:has(.community-topics-search-expandable.is-open) .community-topics-search-expandable {
  max-width: min(320px, calc(100% - 8px));
}

.community-topics-drawer-close {
  flex-shrink: 0;
}

.community-topics-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1750;
  display: flex;
  justify-content: flex-start;
  background: rgba(15, 23, 42, 0.32);
}

.community-topics-mobile-drawer {
  width: min(340px, 92vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 18px 24px;
  background: var(--panel);
  box-shadow: 16px 0 40px rgba(15, 23, 42, 0.2);
  animation: communityCategoriesSlideIn 0.22s ease;
}

.community-topics-mobile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.community-topics-mobile-body .community-discussions-head {
  display: none;
}

.community-topics-mobile-body .community-discussions-topic-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.community-categories-drawer h2,
.community-categories-panel-scroll h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

.community-categories-panel-scroll h2:not(:first-child) {
  margin-top: 16px;
}

.community-categories-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.community-pinned-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.community-pinned-list > * {
  flex-shrink: 0;
}

.community-topics-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.community-discussions-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.community-discussions-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.community-discussions-head-compact {
  justify-content: flex-end;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: 0;
}

.community-discussions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.community-topics-search-expandable {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  max-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fa;
  overflow: hidden;
  cursor: text;
  transition:
    max-width 0.28s ease,
    flex-basis 0.28s ease,
    width 0.28s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.community-topics-search-expandable:hover,
.community-topics-search-expandable:focus-within,
.community-topics-search-expandable.is-open {
  flex: 0 1 auto;
  width: auto;
  max-width: min(280px, 58%);
  justify-content: flex-start;
  box-shadow: 0 0 0 3px rgba(36, 115, 56, 0.08);
  border-color: rgba(36, 115, 56, 0.28);
}

.community-topics-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: #6b7280;
  pointer-events: none;
  flex-shrink: 0;
}

.community-topics-search-input.community-topics-search-input,
.community-topics-search-input.messenger-drawer-search {
  flex: 0 0 0;
  min-width: 0;
  width: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  font-size: 13px;
  box-shadow: none;
  transition: opacity 0.2s ease, flex-basis 0.28s ease, width 0.28s ease;
}

.community-topics-search-expandable:hover .community-topics-search-input,
.community-topics-search-expandable:focus-within .community-topics-search-input,
.community-topics-search-expandable.is-open .community-topics-search-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 72px;
  opacity: 1;
  padding: 0 0 0 10px;
}

.community-topics-search-expandable:hover .community-topics-search-icon,
.community-topics-search-expandable:focus-within .community-topics-search-icon,
.community-topics-search-expandable.is-open .community-topics-search-icon {
  color: var(--accent);
}

.community-topics-search-input:focus {
  outline: none;
  box-shadow: none;
}

.community-sort-select {
  min-width: 168px;
  max-width: 100%;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}

.community-topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  align-content: flex-start;
}

.community-topic-list > * {
  flex-shrink: 0;
}

.community-topic-item.has-search-hit .community-topic-open:hover {
  background: #f8fbf8;
}

.community-topic-search-hit {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f8f4;
  border: 1px solid #dfe9e1;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.community-search-hit-label {
  display: inline-block;
  margin-right: 4px;
  font-weight: 700;
  color: var(--accent);
}

.community-search-mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(36, 115, 56, 0.18);
  color: inherit;
  font-weight: 700;
}

.community-search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.community-search-count:empty,
.community-search-count[hidden] {
  display: none !important;
}

.community-search-empty strong {
  display: block;
  margin-bottom: 4px;
}

.community-topic-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.community-topic-item:hover {
  border-color: var(--accent-border);
  background: #fafcfa;
}

.community-topic-item.active {
  border-color: var(--accent-border);
  background: #f5faf6;
  box-shadow: inset 3px 0 0 var(--accent);
}

.community-topic-open {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px 10px 14px;
  cursor: pointer;
  color: inherit;
  transition: background 0.15s ease;
}

.community-topic-open:hover {
  background: rgba(36, 115, 56, 0.04);
}

.community-topic-item.active .community-topic-open:hover {
  background: transparent;
}

.community-topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.community-topic-badges .badge,
.community-topic-badges .notice-chip {
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 7px;
}

.community-topic-open h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-topic-item-compact .community-topic-open {
  gap: 4px;
  padding: 8px 10px 8px 12px;
}

.community-topic-item-compact .community-topic-open h3 {
  -webkit-line-clamp: 3;
}

.community-topic-excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-topic-last-message {
  margin: 0;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f3f8f4;
  border: 1px solid #e3ece5;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-topic-last-author {
  font-weight: 700;
  color: var(--accent);
}

.community-topic-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
}

.community-topic-meta,
.community-topic-activity {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.community-topic-meta span {
  color: var(--ink);
  font-weight: 600;
}

.community-topic-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f4f1;
  border: 1px solid #dfe7e0;
  font-size: 11px;
  line-height: 1.3;
  color: #4d5852;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-topic-attachment-icon {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
}

.community-topic-unread {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.community-topic-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 10px 0;
}

.community-chat-main,
.community-chat-placeholder {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: min(72vh, 780px);
  max-height: calc(100vh - 180px);
}

.community-chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
  border-style: dashed;
}

.community-chat-placeholder h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.community-sidebar-wrap {
  min-width: 0;
  align-self: start;
}

.community-sidebar-wrap .right-rail {
  gap: 10px;
}

.community-sidebar-wrap .right-rail .panel {
  padding: 14px 16px;
  box-shadow: none;
  border: 1px solid var(--line);
  background: #fafbfa;
}

.community-sidebar-wrap .right-rail h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #4d5852;
}

.community-sidebar-wrap .ask-card {
  background: #f7faf7;
}

.community-sidebar-wrap .ask-card .btn {
  font-size: 13px;
}

.teacher-dialog-panel .teacher-dialog-lead {
  margin: 0 0 10px;
  font-size: 13px;
}

.teacher-dialog-list {
  display: grid;
  gap: 8px;
}

.teacher-dialog-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.teacher-dialog-item:hover {
  background: var(--soft-green);
}

.teacher-dialog-main strong {
  display: block;
  margin-bottom: 2px;
}

.teacher-dialog-topic {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.teacher-dialog-item p {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.teacher-dialog-item small {
  color: var(--muted);
  font-size: 12px;
}

.teacher-dialog-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

body[data-theme="dark"] .teacher-dialog-item {
  border-color: #2a3a30;
}

body[data-theme="dark"] .teacher-dialog-item:hover {
  background: #1a2a20;
}

body[data-theme="dark"] .teacher-dialog-item p {
  color: #eaf3ec;
}

