/* Admin-managed study-guide lists embedded in existing course-home module cards. */
.msg-shell {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  min-width: 0;
}
.msg-shell[hidden] { display: none; }
.msg-shell--error { border-style: dashed; }
.msg-heading { display: flex; align-items: center; gap: 0.65rem; }
.msg-icon { font-size: 1.2rem; line-height: 1; }
.msg-heading-text { min-width: 0; }
.msg-heading h4 { margin: 0; color: var(--ink); font-size: 0.95rem; }
.msg-heading p, .msg-state { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.msg-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.msg-item { min-width: 0; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.msg-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.msg-link:hover .msg-title { color: var(--accent); }
.msg-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.msg-title { min-width: 0; overflow-wrap: anywhere; }
.msg-open { flex: none; color: var(--accent); font-family: var(--font-mono, monospace); font-size: 0.7rem; }
.msg-description { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 0.82rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-topics { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.msg-topic {
  max-width: 100%;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.msg-topic--module { color: var(--accent); }
@media (max-width: 640px) {
  .msg-shell { padding: 0.8rem; }
  .msg-link { align-items: flex-start; flex-direction: column; gap: 0.15rem; padding: 0.35rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .msg-link, .msg-title { transition: none; }
}
