/* Community-only release fixes. The public site does not load this file. */
html,
body,
#root {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: clip;
}

/* Login artwork is intentionally clean: remove the three floating notices. */
.maverick-community .auth-float {
  display: none !important;
}

.maverick-community,
.maverick-community * {
  min-width: 0;
}

/* Login must remain usable at 100% browser zoom and on short screens. */
.maverick-community .auth-card-container,
.maverick-community .auth-showcase,
.maverick-community .auth-form-pane {
  height: auto;
  max-height: none;
}

.maverick-community .auth-card-container,
.maverick-community .auth-form-pane {
  overflow: visible;
}

.maverick-community .auth-card {
  max-height: none;
  overflow: visible;
}

/* The app owns the viewport. Only the conversation pane scrolls. */
.maverick-community .community-layout,
.maverick-community .workspace,
.maverick-community .mc-workspace {
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.maverick-community .community-main,
.maverick-community .workspace__panel,
.maverick-community .mc-main-surface,
.maverick-community .mc-live-grid,
.maverick-community .mc-content-grid,
.maverick-community .mc-embedded-feed {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.maverick-community .community-messages-list,
.maverick-community .message-feed,
.maverick-community .mc-archive-messages,
.maverick-community .dm__messages {
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.maverick-community .community-composer,
.maverick-community .message-composer,
.maverick-community .mc-archive-composer,
.maverick-community .dm__composer {
  flex: none;
}

/* WhatsApp-like readable bubbles: others left, own messages right. */
.maverick-community .mc-embedded-feed .message-card,
.maverick-community .community-messages-list > .message-card,
.maverick-community .message-feed > .message-card {
  width: fit-content;
  max-width: min(76%, 680px);
  overflow-wrap: anywhere;
}

.maverick-community .mc-embedded-feed .message-card--own,
.maverick-community .community-messages-list > .message-card--own,
.maverick-community .message-feed > .message-card--own {
  margin-left: auto;
}

/* Admin navigation scrolls without forcing the page wider than the device. */
.maverick-community .admin-container,
.maverick-community .admin-shell,
.maverick-community .admin-header,
.maverick-community .admin-body,
.maverick-community .admin-section {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
}

.maverick-community .admin-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.maverick-community .admin-tabs::-webkit-scrollbar {
  display: none;
}

.maverick-community .admin-table-wrapper {
  width: 100%;
  max-width: 100%;
}

.maverick-community .admin-table td,
.maverick-community .admin-card,
.maverick-community .admin-list li {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 860px) {
  .maverick-community .auth-card-container {
    display: block;
    min-height: 100dvh;
  }

  .maverick-community .auth-showcase {
    display: flex;
    min-height: clamp(220px, 42svh, 340px);
  }

  .maverick-community .auth-form-pane {
    min-height: 58svh;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .maverick-community .community-main {
    height: calc(100dvh - var(--mc-header-h, 60px));
  }
}

@media (max-width: 340px) {
  .maverick-community .auth-card {
    padding-block: 10px !important;
  }

  .maverick-community .auth-card__form {
    gap: 6px !important;
  }

  .maverick-community .auth-card__back {
    margin-top: 5px !important;
    padding-top: 5px !important;
  }
}

@media (max-width: 720px) {
  .maverick-community .mc-topbar .mc-global-search {
    display: none;
  }

  .maverick-community .mc-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .maverick-community .mc-brand {
    min-width: 0;
  }

  .maverick-community .mc-brand span {
    min-width: 0;
  }

  .maverick-community .mc-brand b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .maverick-community .admin-container,
  .maverick-community .admin-shell {
    padding-inline: 0;
  }

  .maverick-community .admin-header__top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .maverick-community .admin-header h1 {
    font-size: clamp(1.15rem, 5.5vw, 1.5rem);
    overflow-wrap: anywhere;
  }

  .maverick-community .admin-table,
  .maverick-community .admin-table tbody,
  .maverick-community .admin-table tr,
  .maverick-community .admin-table td {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .maverick-community .admin-table td {
    display: grid;
    grid-template-columns: minmax(82px, 31%) minmax(0, 1fr);
    gap: 10px;
    text-align: left;
    align-items: start;
    overflow-wrap: anywhere;
  }

  .maverick-community .admin-table td::before {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .maverick-community #admin-panel-members td:nth-child(1)::before { content: "Name"; }
  .maverick-community #admin-panel-members td:nth-child(2)::before { content: "Email"; }
  .maverick-community #admin-panel-members td:nth-child(3)::before { content: "Status"; }
  .maverick-community #admin-panel-members td:nth-child(4)::before { content: "Role"; }
  .maverick-community #admin-panel-members td:nth-child(5)::before { content: "Community"; }
  .maverick-community #admin-panel-members td:nth-child(6)::before { content: "Actions"; }

  .maverick-community #admin-panel-applications td:nth-child(1)::before { content: "Applicant"; }
  .maverick-community #admin-panel-applications td:nth-child(2)::before { content: "Contact"; }
  .maverick-community #admin-panel-applications td:nth-child(3)::before { content: "Programme"; }
  .maverick-community #admin-panel-applications td:nth-child(4)::before { content: "Application"; }
  .maverick-community #admin-panel-applications td:nth-child(5)::before { content: "Received"; }
  .maverick-community #admin-panel-applications td:nth-child(6)::before { content: "Status"; }

  .maverick-community .admin-table td > :is(b, span, select, button),
  .maverick-community .admin-table td > div {
    min-width: 0;
    justify-self: stretch;
  }

  .maverick-community .admin-table :is(input, select, textarea, button) {
    max-width: 100%;
  }

  .maverick-community .community-messages-list,
  .maverick-community .message-feed {
    padding: 12px 10px;
  }

  .maverick-community .mc-embedded-feed .message-card,
  .maverick-community .community-messages-list > .message-card,
  .maverick-community .message-feed > .message-card {
    max-width: calc(100% - 42px);
  }

  .maverick-community .community-composer,
  .maverick-community .message-composer {
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
  }

  .maverick-community .community-composer textarea,
  .maverick-community .message-composer textarea {
    min-height: 48px;
    max-height: 128px;
    resize: none;
    font-size: 16px;
  }
}

/* The embedded live feed uses the original CommunityFeed classes. Keep its
   three regions locked to the viewport: header, scrollable messages, composer. */
.maverick-community .mc-embedded-feed .community-layout,
.maverick-community .mc-embedded-feed .community-main {
  min-height: 0;
}

.maverick-community .mc-embedded-feed .community-main {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
}

.maverick-community .mc-embedded-feed .community-header {
  border-bottom: 1px solid #dce5f0;
  background: #fff;
  padding: 18px clamp(16px, 3vw, 32px);
}

.maverick-community .mc-embedded-feed .community-header h2 {
  color: #102b4f;
  font-family: var(--mc-sans);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
}

.maverick-community .mc-embedded-feed .community-header p {
  color: #6b7c93;
  margin-top: 4px;
}

.maverick-community .mc-embedded-feed .community-messages-list {
  gap: 10px;
  padding: 18px clamp(16px, 3vw, 34px) 24px;
  background:
    radial-gradient(circle at 20% 10%, #e8f0fa 0 1px, transparent 1.5px) 0 0 / 22px 22px,
    #f6f8fc;
}

.maverick-community .mc-embedded-feed .community-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dce5f0;
  background: #fff;
  padding: 12px clamp(16px, 3vw, 32px) max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px #15345f0a;
}

.maverick-community .mc-embedded-feed .community-composer > label,
.maverick-community .mc-embedded-feed .community-composer .mc-media-tools,
.maverick-community .mc-embedded-feed .community-composer .mc-sharing-note,
.maverick-community .mc-embedded-feed .composer-footer small {
  display: none;
}

.maverick-community .mc-embedded-feed .community-composer textarea {
  grid-column: 1;
  grid-row: 1;
  min-height: 46px;
  max-height: 120px;
  color: #243b57;
  border: 1px solid #cbd8e8;
  border-radius: 23px;
  background: #f7f9fc;
  padding: 12px 16px;
  resize: none;
}

.maverick-community .mc-embedded-feed .composer-footer {
  grid-column: 2;
  grid-row: 1;
  display: block;
}

.maverick-community .mc-embedded-feed .composer-footer .premium-button {
  min-height: 46px;
  border: 0;
  border-radius: 23px;
  color: #fff;
  background: #145da0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .maverick-community .mc-embedded-feed .community-header {
    padding: 14px 14px 12px;
  }

  .maverick-community .mc-embedded-feed .community-messages-list {
    padding: 12px 10px 18px;
  }

  .maverick-community .mc-embedded-feed .community-composer {
    gap: 7px;
    padding: 9px 10px max(10px, env(safe-area-inset-bottom));
  }

  .maverick-community .mc-embedded-feed .composer-footer .premium-button {
    min-width: 46px;
    padding-inline: 12px;
    font-size: 0;
  }

  .maverick-community .mc-embedded-feed .composer-footer .premium-button::after {
    content: "Send";
    font-size: 12px;
  }
}

/* Keep the desktop Faculty and Investor rail visible beside live chat. */
.maverick-community .mc-live-grid {
  width: 100%;
}

.maverick-community .mc-live-panel,
.maverick-community .mc-embedded-feed,
.maverick-community .mc-chat-panel {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.maverick-community .mc-live-panel {
  border-right: 0;
}

.maverick-community .mc-embedded-feed,
.maverick-community .mc-chat-panel {
  background: #f6f8fc;
}

.maverick-community .mc-chat-heading {
  border-bottom: 1px solid #dce5f0;
  background: #fff;
  padding: 18px clamp(16px, 3vw, 32px);
}

.maverick-community .mc-chat-heading h2 {
  color: #102b4f;
  font-family: var(--mc-sans);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
}

.maverick-community .mc-chat-heading p {
  color: #6b7c93;
  margin-top: 4px;
}

.maverick-community .mc-chat-messages,
.maverick-community .mc-chat-panel .message-feed,
.maverick-community .mc-embedded-feed .message-feed,
.maverick-community .mc-embedded-feed .community-messages-list {
  gap: 10px;
  padding: 18px clamp(16px, 3vw, 34px) 24px;
  background:
    radial-gradient(circle at 20% 10%, #e8f0fa 0 1px, transparent 1.5px) 0 0 / 22px 22px,
    #f6f8fc;
}

.maverick-community :is(.mc-chat-message, .message-card) {
  width: fit-content;
  max-width: min(74%, 720px);
  margin-right: auto;
  border: 1px solid #dce5f0;
  border-radius: 8px 16px 16px 16px;
  background: #fff;
  box-shadow: 0 2px 8px #15345f12;
  padding: 10px 12px;
}

.maverick-community :is(.mc-chat-message.is-own, .mc-chat-message--own, .message-card--own) {
  margin-right: 0;
  margin-left: auto;
  border-color: #bfd9ff;
  border-radius: 16px 8px 16px 16px;
  background: #e7f1ff;
}

.maverick-community :is(.mc-chat-message, .message-card) :is(.mc-message-meta, .message-header) {
  gap: 6px;
  margin-bottom: 4px;
}

.maverick-community :is(.mc-chat-message, .message-card) :is(.mc-message-author, .message-author) {
  color: #174d84;
  font-size: 11px;
  font-weight: 800;
}

.maverick-community :is(.mc-chat-message, .message-card) :is(.mc-message-body, .message-body) {
  color: #243b57;
  font-size: 14px;
  line-height: 1.5;
}

.maverick-community :is(.mc-chat-message, .message-card) :is(time, .mc-message-time, .message-time) {
  color: #71829a;
  font-size: 10px;
}

.maverick-community .mc-chat-composer,
.maverick-community .mc-embedded-feed .community-composer,
.maverick-community .mc-chat-panel .community-composer {
  z-index: 3;
  border-top: 1px solid #dce5f0;
  background: #fff;
  padding: 12px clamp(16px, 3vw, 32px) max(14px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px #15345f0a;
}

.maverick-community .mc-chat-composer textarea,
.maverick-community .mc-embedded-feed .community-composer textarea,
.maverick-community .mc-chat-panel .community-composer textarea {
  min-height: 46px;
  max-height: 120px;
  color: #243b57;
  border: 1px solid #cbd8e8;
  border-radius: 23px;
  background: #f7f9fc;
  padding: 12px 16px;
  resize: none;
}

.maverick-community .mc-chat-composer textarea:focus,
.maverick-community .mc-embedded-feed .community-composer textarea:focus,
.maverick-community .mc-chat-panel .community-composer textarea:focus {
  border-color: #4d8ed8;
  background: #fff;
  box-shadow: 0 0 0 3px #4d8ed822;
}

.maverick-community .mc-chat-composer .premium-button,
.maverick-community .mc-embedded-feed .community-composer .premium-button,
.maverick-community .mc-chat-panel .community-composer .premium-button {
  min-height: 42px;
  border: 0;
  border-radius: 21px;
  color: #fff;
  background: #145da0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .maverick-community .mc-live-panel {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .maverick-community .mc-chat-heading {
    padding: 14px 14px 12px;
  }

  .maverick-community .mc-chat-messages,
  .maverick-community .mc-chat-panel .message-feed,
  .maverick-community .mc-embedded-feed .message-feed,
  .maverick-community .mc-embedded-feed .community-messages-list {
    padding: 12px 10px 18px;
  }

  .maverick-community :is(.mc-chat-message, .message-card) {
    max-width: calc(100% - 38px);
    padding: 9px 11px;
  }

  .maverick-community .mc-chat-composer,
  .maverick-community .mc-embedded-feed .community-composer,
  .maverick-community .mc-chat-panel .community-composer {
    padding: 9px 10px max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .maverick-community .mc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .maverick-community .auth-showcase {
    min-height: 238px;
  }

  .maverick-community .auth-showcase__copy {
    inset: auto 12px 12px;
    margin: 0;
    padding: 10px 12px;
  }

  .maverick-community .auth-showcase__copy h2 {
    font-size: clamp(22px, 7.2vw, 29px);
  }

  .maverick-community .auth-showcase__stats {
    justify-content: space-between;
    gap: 10px;
  }

  .maverick-community .auth-card {
    width: 100%;
    padding: 20px 16px;
  }

  .maverick-community .auth-login-tabs button {
    padding-inline: 3px;
    font-size: 11px;
  }
}

@media (max-height: 700px) and (min-width: 861px) {
  .maverick-community .auth-showcase,
  .maverick-community .auth-form-pane {
    min-height: 100dvh;
  }

  .maverick-community .auth-form-pane {
    align-items: flex-start;
    overflow-y: auto;
    padding-block: 16px;
  }

  .maverick-community .auth-card {
    padding-block: 20px;
  }
}

/* Archive: clear two-mode navigation and continuous chronological reading. */
.maverick-community .mc-archive-view-switch {
  align-self: center;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  width: fit-content;
  margin: 10px 20px 2px;
  padding: 4px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  background: #eef3f9;
}

.maverick-community .mc-archive-view-switch button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #65758d;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.maverick-community .mc-archive-view-switch button.is-active {
  color: #15345f;
  background: #fff;
  box-shadow: 0 3px 12px #223b6117;
}

.maverick-community .mc-archive-view-switch button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.maverick-community .mc-archive-messages.is-all-chat {
  scroll-behavior: smooth;
  padding-block: 12px 36px;
}

.maverick-community .mc-all-chat-day {
  display: grid;
  gap: 0;
  width: 100%;
}

.maverick-community .mc-all-chat-day + .mc-all-chat-day {
  margin-top: 8px;
}

.maverick-community .mc-all-chat-day .mc-date-divider {
  position: sticky;
  z-index: 2;
  top: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 16px;
  padding: 6px 12px;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  color: #60728e;
  background: #fffffff2;
  box-shadow: 0 4px 14px #18345c12;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Crisp, consistent media presentation without stretching source images. */
.maverick-community img {
  image-rendering: auto;
}

.maverick-community :is(.mc-avatar, .mc-person-row img, .mc-student-grid img, .mc-faculty img) {
  object-fit: cover;
  object-position: center top;
  background: #e8eef6;
}

.maverick-community :is(.auth-showcase__brand img, .auth-card__brand img, .community-sidebar__brand img) {
  object-fit: contain;
  object-position: center;
}

.maverick-community :is(.mc-chat-image, .mc-collage-tile, .mc-resource-tile, .mc-student-grid article) {
  overflow: hidden;
  border-radius: 14px;
}

.maverick-community :is(.mc-chat-image, .mc-collage-tile, .mc-resource-tile, .mc-student-grid article, .mc-chat-message) {
  border-color: #dce5f0;
  box-shadow: 0 7px 22px #15345f0b;
}

.maverick-community :is(.mc-chat-image, .mc-collage-tile) img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 720px) {
  .maverick-community .mc-archive-view-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 20px);
    margin: 8px 10px 2px;
  }

  .maverick-community .mc-archive-view-switch button {
    min-height: 42px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .maverick-community .mc-timeline {
    width: calc(100% - 20px);
    margin-inline: 10px;
  }

  .maverick-community .mc-timeline label {
    min-width: 0;
  }

  .maverick-community .mc-timeline select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .maverick-community .mc-archive-messages.is-all-chat {
    padding: 6px 10px 30px;
  }

  .maverick-community .mc-all-chat-day .mc-date-divider {
    top: 4px;
  }

  .maverick-community .mc-chat-heading,
  .maverick-community .mc-pinned,
  .maverick-community .mc-archive-notice {
    margin-inline: 10px;
  }

  .maverick-community :is(.mc-resource-grid, .mc-student-grid) {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 10px;
  }
}

/* Final live-chat refinements. */
.maverick-community .mc-embedded-feed .community-composer > * {
  max-width: none !important;
  margin: 0 !important;
}

.maverick-community .auth-showcase__brand {
  border: 1px solid #d7e1ed;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 8px 20px #0b294326;
}

.maverick-community .auth-showcase__brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* Students use one clear Community entry. Directory and direct-message tools
   remain available to staff from their workspace/admin views. */
html[data-mc-role="member"] .mc-navigation nav > button:nth-of-type(2),
html[data-mc-role="member"] .mc-navigation nav > button:nth-of-type(3),
html[data-mc-role="member"] .mc-mobile-bottom > button:nth-of-type(2),
html[data-mc-role="member"] .mc-mobile-bottom > button:nth-of-type(3) {
  display: none;
}

@media (max-width: 720px) {
  .maverick-community .mc-embedded-feed .community-composer textarea {
    min-height: 46px;
    font-size: 16px;
  }
}

/* Maverick Community responsive polish v5 */
.maverick-community .mc-archive-composer{display:none!important}
.maverick-community .mc-archive-view-switch{position:static!important;inset:auto!important;align-self:flex-start!important;margin:12px 20px 6px!important;box-shadow:none!important}
.maverick-community .mc-timeline{position:static!important;inset:auto!important;z-index:auto!important;margin:0 20px 8px!important;background:#f6f8fc!important;border-radius:12px!important}
.maverick-community .mc-archive-messages{min-height:0!important;padding-bottom:28px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable}
.maverick-community .mc-resource-grid{grid-auto-rows:minmax(210px,max-content)!important;align-content:start!important;overflow-x:hidden!important;overflow-y:auto!important}
.maverick-community .mc-resource-grid>:is(.mc-resource-tile,.mc-collage-tile){height:auto!important;min-height:210px!important;overflow:hidden!important}
.maverick-community .mc-resource-grid>.mc-collage-tile{min-height:260px!important}
.maverick-community .mc-resource-tile>.mc-book{flex:0 0 auto!important}
.maverick-community .mc-student-grid{grid-auto-rows:max-content!important;align-content:start!important;overflow-x:hidden!important;overflow-y:auto!important}
.maverick-community .mc-student-grid>article{height:auto!important;min-height:160px!important;overflow:hidden!important}
.maverick-community .mc-student-grid>article>button{min-height:158px!important}
.auth-showcase__brand{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:72px!important;height:72px!important;padding:8px!important;border-radius:18px!important;background:rgba(255,255,255,.96)!important}
.auth-showcase__brand img{width:100%!important;height:100%!important;object-fit:contain!important;image-rendering:auto!important}
@media(max-width:720px){
  .maverick-community .mc-archive-view-switch{align-self:stretch!important;width:auto!important;margin:8px 10px 4px!important}
  .maverick-community .mc-timeline{display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;gap:8px!important;width:auto!important;margin:0 10px 8px!important;padding:8px!important}
  .maverick-community .mc-timeline label{grid-column:2!important;min-width:0!important}
  .maverick-community .mc-resource-grid,.maverick-community .mc-student-grid{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:max-content!important}
  .maverick-community .mc-resource-grid>:is(.mc-resource-tile,.mc-collage-tile){min-height:190px!important}
  .maverick-community .mc-student-grid>article{min-height:138px!important}
  .maverick-community .mc-student-grid>article>button{min-height:136px!important}
}

/* Release fit pass: keep the complete login visible at normal zoom. */
@media (max-width: 860px) {
  .maverick-community .auth-card-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(150px, 22dvh) minmax(0, 1fr) !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .maverick-community .auth-showcase {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  .maverick-community .auth-showcase__copy {
    inset: auto 12px 10px !important;
    max-width: none !important;
    padding: 8px 11px !important;
  }

  .maverick-community .auth-showcase__copy h2 {
    margin: 4px 0 5px !important;
    font-size: clamp(21px, 6vw, 28px) !important;
  }

  .maverick-community .auth-showcase__copy > p {
    display: none !important;
  }

  .maverick-community .auth-showcase__stats {
    gap: 18px !important;
    margin-top: 7px !important;
    padding-top: 7px !important;
  }

  .maverick-community .auth-showcase__stats b {
    font-size: 16px !important;
  }

  .maverick-community .auth-form-pane {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }

  .maverick-community .auth-card {
    width: min(560px, 100%) !important;
    padding: 13px 16px !important;
  }

  .maverick-community .auth-card__form {
    gap: 7px !important;
  }

  .maverick-community .auth-card__form h2 {
    margin: 1px 0 0 !important;
    font-size: 22px !important;
  }

  .maverick-community .auth-card__desc {
    margin: 0 0 2px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .maverick-community .auth-card__eyebrow {
    padding: 2px 8px !important;
    font-size: 10px !important;
  }

  .maverick-community .auth-login-tabs {
    min-height: 42px !important;
    margin: 1px 0 3px !important;
    padding: 3px !important;
  }

  .maverick-community .auth-login-tabs button {
    min-height: 34px !important;
  }

  .maverick-community .auth-card__field {
    gap: 3px !important;
    margin: 0 !important;
  }

  .maverick-community .auth-card__field label {
    margin: 0 !important;
    font-size: 10px !important;
  }

  .maverick-community .auth-card-container input {
    min-height: 42px !important;
    height: 42px !important;
  }

  .maverick-community .auth-card__reveal {
    top: 25px !important;
  }

  .maverick-community .auth-card__links {
    min-height: 30px !important;
    margin: -2px 0 0 !important;
  }

  .maverick-community .auth-card .text-button {
    min-height: 30px !important;
  }

  .maverick-community .auth-card .premium-button {
    min-height: 43px !important;
    height: 43px !important;
    margin-top: 0 !important;
  }

  .maverick-community .auth-card__managed-note {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .maverick-community .auth-card__footer {
    min-height: 35px !important;
    margin: 0 !important;
    padding-top: 6px !important;
    font-size: 10px !important;
  }

  .maverick-community .auth-card__back {
    min-height: 34px !important;
    margin-top: 8px !important;
    padding-top: 7px !important;
  }
}

@media (max-height: 850px) and (min-width: 861px) {
  .maverick-community .auth-card-container,
  .maverick-community .auth-showcase,
  .maverick-community .auth-form-pane {
    height: 100dvh !important;
    min-height: 0 !important;
  }

  .maverick-community .auth-form-pane {
    align-items: center !important;
    padding-block: 12px !important;
    overflow-y: auto !important;
  }

  .maverick-community .auth-card {
    padding: 18px 24px !important;
  }

  .maverick-community .auth-card__form {
    gap: 8px !important;
  }

  .maverick-community .auth-card__form h2 {
    font-size: 22px !important;
  }

  .maverick-community .auth-card__desc {
    margin-bottom: 2px !important;
  }

  .maverick-community .auth-login-tabs {
    margin-block: 1px 3px !important;
  }

  .maverick-community .auth-card__field {
    gap: 3px !important;
  }

  .maverick-community .auth-card-container input {
    min-height: 43px !important;
    height: 43px !important;
  }

  .maverick-community .auth-card__links,
  .maverick-community .auth-card .text-button {
    min-height: 32px !important;
  }

  .maverick-community .auth-card .premium-button {
    min-height: 44px !important;
    height: 44px !important;
  }

  .maverick-community .auth-card__footer {
    padding-top: 8px !important;
  }

  .maverick-community .auth-card__back {
    margin-top: 10px !important;
    padding-top: 9px !important;
  }
}

/* Final chat layout: compact message bubbles with one vertical scroll surface. */
.maverick-community .mc-embedded-feed .community-messages-list {
  align-items: stretch !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  scrollbar-gutter: auto !important;
}

.maverick-community .mc-embedded-feed .community-messages-list > .message-card {
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr) !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  width: fit-content !important;
  min-width: 150px !important;
  max-width: min(72%, 620px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 2px 0 !important;
  padding: 9px 10px 8px !important;
  border-radius: 8px 15px 15px 15px !important;
}

.maverick-community .mc-embedded-feed .community-messages-list > .message-card--own {
  align-self: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  border-radius: 15px 8px 15px 15px !important;
}

.maverick-community .mc-embedded-feed .message-card > :is(.message-header, .message-body) {
  grid-column: 1 / -1 !important;
}

.maverick-community .mc-embedded-feed .message-card .message-body {
  width: auto !important;
  margin-top: 3px !important;
  line-height: 1.42 !important;
}

.maverick-community .mc-embedded-feed .message-card .mc-annotation-actions {
  grid-column: 1 !important;
  align-self: center !important;
  gap: 3px !important;
  margin: 6px 3px 0 0 !important;
}

.maverick-community .mc-embedded-feed .message-card .mc-reply-action {
  grid-column: 2 !important;
  align-self: center !important;
  min-height: 28px !important;
  margin: 6px 0 0 !important;
  padding: 3px 6px !important;
}

.maverick-community .mc-embedded-feed .message-card .message-actions {
  grid-column: 3 !important;
  align-self: center !important;
  justify-self: end !important;
  width: auto !important;
  margin: 6px 0 0 !important;
}

.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button, .mc-reply-action, .message-action) {
  min-height: 28px !important;
  border-radius: 999px !important;
  padding: 3px 7px !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button, .mc-reply-action, .message-action) svg {
  width: 13px !important;
  height: 13px !important;
}

@media (hover: hover) and (pointer: fine) {
  .maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions, .mc-reply-action, .message-actions) {
    opacity: .45;
    transition: opacity .15s ease;
  }

  .maverick-community .mc-embedded-feed .message-card:hover :is(.mc-annotation-actions, .mc-reply-action, .message-actions),
  .maverick-community .mc-embedded-feed .message-card:focus-within :is(.mc-annotation-actions, .mc-reply-action, .message-actions) {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .maverick-community .mc-live-panel > .mc-stats {
    display: none !important;
  }

  .maverick-community .mc-embedded-feed .community-header small {
    display: none !important;
  }

  .maverick-community .mc-embedded-feed .community-messages-list {
    gap: 7px !important;
    padding: 10px 9px 14px !important;
  }

  .maverick-community .mc-embedded-feed .community-messages-list > .message-card {
    min-width: 132px !important;
    max-width: 88% !important;
    padding: 8px 9px 7px !important;
  }

  /* Avatars previously sat outside the viewport and caused a horizontal bar. */
  .maverick-community .mc-embedded-feed .message-card > .mc-avatar {
    display: none !important;
  }

  .maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button, .mc-reply-action, .message-action) {
    width: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    font-size: 0 !important;
    justify-content: center !important;
  }

  .maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button, .mc-reply-action, .message-action) svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Very small phones: retain the complete login card without an inner scroll. */
@media (max-width: 340px) and (max-height: 760px) {
  .maverick-community .auth-card-container {
    grid-template-rows: minmax(145px, 20dvh) minmax(0, 1fr) !important;
  }

  .maverick-community .auth-showcase__copy {
    bottom: 6px !important;
    padding-block: 5px !important;
  }

  .maverick-community .auth-showcase__copy h2 {
    margin-block: 2px 3px !important;
  }

  .maverick-community .auth-showcase__stats {
    margin-top: 4px !important;
    padding-top: 4px !important;
  }

  .maverick-community .auth-form-pane {
    padding-block: 7px max(7px, env(safe-area-inset-bottom)) !important;
  }

  .maverick-community .auth-card {
    padding: 11px 14px !important;
  }

  .maverick-community .auth-card__form {
    gap: 6px !important;
  }

  .maverick-community .auth-card__back {
    min-height: 30px !important;
    margin-top: 5px !important;
    padding-top: 5px !important;
  }
}

.admin-community-list{display:grid!important;gap:10px!important;padding:0!important}
.admin-community-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 16px!important;border:1px solid #dbe3ef!important;border-radius:14px!important;background:#fff!important}
.admin-community-copy{min-width:0!important;overflow-wrap:anywhere!important}
.admin-community-status{display:inline-flex!important;margin-left:10px!important;padding:3px 8px!important;border-radius:999px!important;background:#fff2d9!important;color:#8a5200!important;font-size:12px!important;font-weight:700!important}
.admin-community-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
@media(max-width:720px){
  .admin-community-row{align-items:stretch!important;flex-direction:column!important}
  .admin-community-actions{width:100%!important;flex-wrap:wrap!important}
  .admin-community-actions .action-btn{flex:1 1 140px!important;min-height:44px!important}
  .maverick-community .community-composer textarea{height:48px!important;min-height:48px!important;max-height:48px!important;overflow-y:hidden!important;resize:none!important}
  .maverick-community .community-composer{align-items:center!important}
  .maverick-community .community-composer>.premium-button{height:44px!important;min-height:44px!important;align-self:center!important}
  .maverick-community .mc-live-teaching-bar{align-items:center!important;gap:8px!important;padding:8px 10px!important}
  .maverick-community .mc-live-teaching-bar>button{height:44px!important;min-height:44px!important;padding:0 12px!important;white-space:nowrap!important}
}

/* 2026-09-19 fit8: avatar clipping, stretched teaching bar, mobile archive header. */
.maverick-community .mc-embedded-feed .community-messages-list{padding-left:60px!important;padding-right:60px!important}
.maverick-community .mc-embedded-feed .message-card{position:relative!important;overflow:visible!important}
.maverick-community .mc-embedded-feed .message-card>.mc-avatar{top:2px!important;left:-44px!important;width:34px!important;height:34px!important}
.maverick-community .mc-embedded-feed .message-card--own>.mc-avatar{left:auto!important;right:-44px!important}
.maverick-community .mc-embedded-feed .message-card .message-header{flex-wrap:wrap!important;gap:4px 8px!important;min-width:0!important}
.maverick-community .mc-embedded-feed .message-card .message-author{overflow-wrap:anywhere!important}
.maverick-community .mc-live-teaching-bar{flex:0 0 auto!important;height:auto!important;min-height:0!important;flex-direction:row!important;align-items:center!important;align-self:stretch!important;gap:8px!important;padding:8px 20px!important}
.maverick-community .mc-live-teaching-bar>button{flex:0 0 auto!important;width:auto!important;height:34px!important;min-height:34px!important;padding:0 12px!important;border-radius:999px!important;flex-direction:row!important;white-space:nowrap!important;font-size:12px!important}
.maverick-community .community-header{flex:0 0 auto!important;height:auto!important;padding-bottom:10px!important}
.maverick-community .mc-embedded-feed .community-messages-list:empty,.maverick-community .community-messages-list{min-height:0!important}
.maverick-community .community-notice{flex:0 0 auto!important;margin:0 20px 6px!important}
@media(max-width:720px){
  .maverick-community .mc-workspace:has(.mc-content-grid){padding-bottom:0!important}
  .maverick-community .mc-embedded-feed .community-messages-list{padding-left:9px!important;padding-right:9px!important}
  .maverick-community .mc-live-teaching-bar{padding:6px 10px!important}
  .maverick-community .mc-live-teaching-bar>button{height:40px!important;min-height:40px!important}
  .maverick-community .mc-chat-heading{padding:8px 10px!important}
  .maverick-community .mc-chat-heading p{white-space:normal!important;overflow:visible!important;line-height:1.4!important}
  .maverick-community .mc-archive-notice{display:flex!important;margin:4px 10px!important;padding:6px 9px!important;align-items:center!important}
  .maverick-community .mc-archive-notice p{display:none!important}
  .maverick-community .mc-section-tabs{margin-bottom:0!important}
  .maverick-community .mc-pinned{margin:4px 10px 3px!important;padding:5px 9px!important}
  .maverick-community .mc-archive-view-switch{margin:4px 10px!important;padding:3px!important;min-height:0!important}
  .maverick-community .mc-archive-view-switch button{min-height:36px!important;padding:6px 10px!important}
  .maverick-community .mc-timeline select{font-size:12px!important;text-overflow:ellipsis!important}
  .maverick-community .mc-archive-messages{padding-bottom:calc(66px + env(safe-area-inset-bottom))!important}
}

/* fit9 (verified live 2026-09-19): readable action icons, full-width dividers, compact stats, chat fills height. */
.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions,.mc-reply-action,.message-actions){opacity:1!important}
.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button,.mc-reply-action,.message-action){color:#33568f!important;border:1px solid #d5e0f2!important;background:#f7faff!important}
.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button,.mc-reply-action,.message-action):hover{background:#e9f1ff!important;color:#1f3f7a!important}
.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button,.mc-reply-action,.message-action) svg{width:14px!important;height:14px!important;stroke-width:2!important;opacity:1!important}
@media(min-width:721px){.maverick-community .mc-embedded-feed .message-card :is(.mc-annotation-actions button,.mc-reply-action,.message-action){font-size:11px!important;font-weight:600!important;min-height:28px!important;padding:4px 9px!important;gap:4px!important}}
.maverick-community .mc-embedded-feed .message-card{box-shadow:0 1px 3px rgba(20,40,80,.08)!important;border:1px solid #e3eaf5!important}
.maverick-community .mc-embedded-feed .community-messages-list>.mc-date-divider{align-self:stretch!important;width:auto!important;max-width:none!important}
.maverick-community .mc-live-panel>.mc-stats{padding:8px 15px!important}
.maverick-community .mc-live-panel>.mc-stats>*{min-height:0!important;height:auto!important;padding-top:8px!important;padding-bottom:8px!important;display:flex!important;align-items:center!important;gap:10px!important}
.maverick-community .mc-live-panel>.mc-stats>* :is(b,strong){font-size:18px!important}
.maverick-community .mc-embedded-feed .community-main,.maverick-community.mc-embedded-feed .community-main{display:flex!important;flex-direction:column!important;min-height:0!important}
.maverick-community .mc-embedded-feed .community-main>:not(.community-messages-list){flex:0 0 auto!important}
.maverick-community .mc-embedded-feed .community-main>.community-messages-list{flex:1 1 0!important;min-height:0!important}
@media(max-width:720px){.maverick-community .mc-live-panel{padding-bottom:0!important}}
/* fit9: compact archive header on desktop (verified live). */
@media(min-width:721px){.maverick-community .mc-chat-heading{padding:12px 24px!important}.maverick-community .mc-archive-notice{margin:8px 20px 6px!important;padding:7px 12px!important;align-items:center!important}.maverick-community .mc-archive-notice p{display:none!important}.maverick-community .mc-pinned{margin:0 20px 6px!important;padding:5px 12px!important}.maverick-community .mc-archive-view-switch{margin:4px 20px 4px!important}.maverick-community .mc-timeline{margin-bottom:4px!important;padding-bottom:4px!important}}
/* fit10 (verified live 2026-09-19): admin Members actions on one row (desktop) / tidy grid (mobile); compact Live members cards on mobile. */
@media(min-width:721px){.admin-table td{vertical-align:middle!important}.admin-table td.table-actions{white-space:nowrap!important}.admin-table td.table-actions>*{display:inline-flex!important;vertical-align:middle!important;margin:0 6px 0 0!important}.admin-table td.table-actions>.action-btn{height:36px!important;min-height:36px!important;padding:0 12px!important;align-items:center!important;justify-content:center!important}.admin-table td.table-actions>select{width:auto!important;min-width:130px!important;max-width:160px!important;height:36px!important;min-height:36px!important;padding:0 28px 0 10px!important;line-height:34px!important;font-size:13px!important}}
@media(max-width:720px){.admin-table td.table-actions{grid-template-columns:1fr 1fr!important;gap:8px!important;align-items:center!important}.admin-table td.table-actions::before{grid-column:1/-1!important}.admin-table td.table-actions>.action-btn{grid-column:auto!important;width:100%!important;min-height:44px!important;margin:0!important}.admin-table td.table-actions>select{grid-column:1/-1!important;width:100%!important;margin:0!important}}
@media(max-width:720px){.maverick-community .directory__row .directory__identity{flex:0 0 auto!important}.maverick-community .directory__row{gap:10px!important}}

/* Batch picker beside Archive/Delete in Batches & communities. */
.admin-community-actions select{width:auto!important;min-width:120px!important;max-width:180px!important}
.admin-community-actions .action-btn{white-space:nowrap!important}

/* Live students: the main surface clips overflow for the chat layouts, so the
   directory must own its scrolling or the last students are unreachable. */
.maverick-community .mc-main-surface>.directory{overflow-y:auto!important;min-height:0!important;max-height:100%!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
