@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700;800&display=swap");

html,
body {
  height: 100%;
}

:root {
  --mc-bg-1: #0a1225;
  --mc-bg-2: #15123a;
  --mc-accent-1: #22d3ee;
  --mc-accent-2: #f59e0b;
  --mc-accent-3: #f43f5e;
  --mc-mobile-chat-offset: 10.25rem;
  --mc-app-viewport-height: 100dvh;
  --mc-app-viewport-width: 100vw;
  --mc-app-top-offset: 0px;
  --mc-app-keyboard-inset: 0px;
}

html[data-ui-ready="false"] *,
html[data-ui-ready="false"] *::before,
html[data-ui-ready="false"] *::after {
  animation: none !important;
  transition: none !important;
}

body.mc-body {
  min-height: var(--mc-app-viewport-height);
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(1000px 500px at 110% -10%, rgba(245, 158, 11, 0.2), transparent 55%),
    linear-gradient(155deg, var(--mc-bg-1), var(--mc-bg-2));
}

#main-content {
  min-height: 0;
}

body.mc-body:has(.mc-chat-page) {
  height: var(--mc-app-viewport-height);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
}

body.mc-body:has(.mc-chat-page) #main-content {
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.mc-skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.35rem;
  transform: translateY(-180%);
  z-index: 1200;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  background: #22d3ee;
  color: #0b1120;
  font-weight: 700;
  text-decoration: none;
}

.mc-skip-link:focus-visible {
  transform: translateY(0);
}

.mc-body :focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 2px;
}

[data-bs-theme="light"] .mc-body :focus-visible {
  outline-color: rgba(3, 105, 161, 0.85);
}
[data-bs-theme="light"] body.mc-body {
  background:
    radial-gradient(1000px 500px at -10% -20%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(1200px 700px at 110% -10%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(160deg, #f8fafc, #e2e8f0);
}

.mc-navbar {
  position: relative;
  z-index: 1080;
  background: rgba(7, 10, 24, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

[data-bs-theme="light"] .mc-navbar {
  background: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(71, 85, 105, 0.18);
}

.mc-brand {
  letter-spacing: 0.04em;
  font-weight: 800;
  color: #fff;
}

.mc-header-search {
  flex: 1 1 auto;
  align-items: center;
  gap: 0.45rem;
  max-width: 34rem;
  margin-left: 1.25rem;
  margin-right: 1rem;
}

.mc-header-search-field {
  flex: 1 1 auto;
}

.mc-header-search .form-control {
  border-radius: 0.45rem;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.42);
  color: #f8fafc;
}

.mc-header-search .form-control::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.mc-header-search .form-control:focus {
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
}

.mc-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

.mc-logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, #22d3ee, #60a5fa 50%, #f59e0b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
}

.mc-logo-glyph {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #0b1120;
}

.mc-logo-word {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

.mc-user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.45rem;
  padding-right: 0.65rem;
}

.mc-nav-btn {
  border-radius: 0.45rem;
}

.mc-navbar .btn-outline-light {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.2);
}

.mc-navbar .btn-outline-light:hover,
.mc-navbar .btn-outline-light:focus,
.mc-navbar .btn-outline-light:active {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.38);
}

[data-bs-theme="light"] .mc-navbar .btn-outline-light {
  color: #0f172a;
  border-color: rgba(71, 85, 105, 0.35);
  background: rgba(255, 255, 255, 0.88);
}

[data-bs-theme="light"] .mc-navbar .btn-outline-light:hover,
[data-bs-theme="light"] .mc-navbar .btn-outline-light:focus,
[data-bs-theme="light"] .mc-navbar .btn-outline-light:active {
  color: #0f172a;
  border-color: rgba(51, 65, 85, 0.5);
  background: rgba(226, 232, 240, 0.88);
}

[data-bs-theme="light"] .mc-header-search .form-control {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
}

[data-bs-theme="light"] .mc-header-search .form-control::placeholder {
  color: rgba(71, 85, 105, 0.78);
}

[data-bs-theme="light"] .mc-header-search .form-control:focus {
  background: #fff;
  color: #0f172a;
}

.mc-user-menu-name {
  line-height: 1;
}

.mc-nav-notification {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  box-shadow: none;
}

.mc-nav-notification:hover,
.mc-nav-notification:focus,
.mc-nav-notification:active {
  border: 0;
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  box-shadow: none;
}

[data-bs-theme="light"] .mc-nav-notification {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-nav-notification:hover,
[data-bs-theme="light"] .mc-nav-notification:focus,
[data-bs-theme="light"] .mc-nav-notification:active {
  background: rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

.mc-nav-notification i {
  font-size: 0.95rem;
}

.mc-nav-notification-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 0.55rem;
  background: #ef4444;
  color: #fff;
  border: 1px solid rgba(15, 23, 42, 0.6);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 0.95rem;
  text-align: center;
}

.mc-user-avatar-image,
.mc-user-avatar-fallback {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
}

.mc-user-avatar-image {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mc-user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: linear-gradient(145deg, #22d3ee, #60a5fa 52%, #f59e0b);
}

.mc-account-avatar-editor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mc-account-avatar-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.55rem;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.25);
}

.mc-user-menu-dropdown {
  z-index: 1090;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(10, 18, 40, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.32);
}

.mc-user-menu-dropdown .dropdown-item {
  color: #e2e8f0;
}

.mc-user-menu-dropdown .dropdown-item:hover,
.mc-user-menu-dropdown .dropdown-item:focus {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.7);
}

.mc-user-menu-dropdown .dropdown-divider {
  border-color: rgba(148, 163, 184, 0.25);
}

.mc-user-menu-status-form .form-select,
.mc-user-menu-status-form .form-control {
  background: rgba(2, 6, 23, 0.45);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

.mc-user-menu-status-form .form-select:focus,
.mc-user-menu-status-form .form-control:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 0.12rem rgba(56, 189, 248, 0.18);
}

.mc-user-menu-status-badge {
  text-transform: capitalize;
}

[data-bs-theme="light"] .mc-user-menu-status-form .form-select,
[data-bs-theme="light"] .mc-user-menu-status-form .form-control {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

.mc-flash-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  display: grid;
  gap: 0.55rem;
  max-width: min(92vw, 420px);
}

.mc-flash-alert {
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.4);
  animation: mc-flash-in 180ms ease-out;
}

.mc-flash-alert.alert-success {
  background: rgba(5, 46, 22, 0.92);
  border-color: rgba(74, 222, 128, 0.5);
  color: #dcfce7;
}

.mc-flash-alert.alert-danger {
  background: rgba(69, 10, 10, 0.92);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fee2e2;
}

.mc-flash-alert .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.mc-flash-alert .btn-close:hover {
  opacity: 1;
}

.mc-notification--unread {
  border-color: rgba(34, 211, 238, 0.45) !important;
  background: rgba(8, 47, 73, 0.22);
}

.mc-notification-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.3);
}

body[data-density="compact"] .mc-notification-link {
  padding: 0.68rem 0.78rem;
}

.mc-notification-link {
  display: block;
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
}

.mc-notification-link:hover,
.mc-notification-link:focus {
  color: inherit;
}

.mc-notification-title {
  font-weight: 700;
}

.mc-notification-meta {
  margin-top: 0.1rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.mc-notification-body {
  margin-top: 0.45rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.mc-notification-menu {
  width: min(28rem, calc(100vw - 1.5rem));
  padding: 0.45rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 18, 40, 0.98);
  backdrop-filter: blur(8px);
}

.mc-notification-menu-list {
  display: grid;
  gap: 0.45rem;
  max-height: min(65vh, 34rem);
  overflow-y: auto;
}

.mc-notification-menu-footer {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mc-notification-menu-view-all {
  border-radius: 0.45rem;
}

.mc-notification-menu-empty,
.mc-notification-menu-loading {
  padding: 0.8rem 0.9rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .mc-notification-menu {
    position: fixed !important;
    top: calc(4rem + max(env(safe-area-inset-top), 0px)) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    min-width: 0;
    max-width: none;
    margin-top: 0;
  }

  .mc-notification-menu-list {
    max-height: min(60vh, 28rem);
  }

  .mc-user-menu-dropdown {
    position: fixed !important;
    top: calc(4rem + max(env(safe-area-inset-top), 0px)) !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
    min-width: 0;
    max-height: min(72vh, 34rem);
    overflow-y: auto;
  }
}

@keyframes mc-flash-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mc-logo-lockup--hero .mc-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
}

.mc-logo-lockup--hero .mc-logo-word {
  font-size: 1.85rem;
}

.mc-section-nav {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .mc-section-nav {
  border-bottom-color: rgba(71, 85, 105, 0.16);
}

.mc-shell {
  max-width: 1120px;
}

.mc-chat-page {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
}

.mc-chat-layout {
  display: grid;
  grid-template-columns: minmax(14.5rem, 16.5rem) minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

.mc-chat-sidebar-column,
.mc-chat-main-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mc-chat-main-column {
  min-width: 0;
}

.mc-chat-sidebar-column {
  max-width: 16.5rem;
}

.mc-breadcrumb-bar {
  padding: 0.15rem 0;
}

.mc-breadcrumb-bar .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(148, 163, 184, 0.7);
  --bs-breadcrumb-item-active-color: rgba(226, 232, 240, 0.95);
  font-size: 0.82rem;
  opacity: 0.92;
}

.mc-breadcrumb-bar .breadcrumb a {
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
}

.mc-breadcrumb-bar .breadcrumb a:hover {
  color: #22d3ee;
}

[data-bs-theme="light"] .mc-breadcrumb-bar .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(71, 85, 105, 0.7);
  --bs-breadcrumb-item-active-color: rgba(15, 23, 42, 0.95);
}

[data-bs-theme="light"] .mc-breadcrumb-bar .breadcrumb a {
  color: #475569;
}

[data-bs-theme="light"] .mc-breadcrumb-bar .breadcrumb a:hover {
  color: #0369a1;
}

.mc-card {
  background: rgba(12, 17, 40, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="light"] .mc-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.mc-sidebar-offcanvas {
  background: transparent;
  border: 0;
}

.mc-sidebar-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(7, 10, 24, 0.96);
  color: #e2e8f0;
}

.mc-sidebar-offcanvas .offcanvas-body {
  padding: 0;
  padding-bottom: calc(max(env(safe-area-inset-bottom), 0px) + var(--mc-app-keyboard-inset));
}

.mc-sidebar-offcanvas .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.mc-sidebar-offcanvas .btn-close:hover {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .mc-sidebar-offcanvas {
    width: min(22rem, 92vw);
    top: var(--mc-app-top-offset) !important;
    height: calc(var(--mc-app-viewport-height) - var(--mc-app-top-offset)) !important;
    max-height: calc(var(--mc-app-viewport-height) - var(--mc-app-top-offset)) !important;
    background: rgba(7, 10, 24, 0.98);
    backdrop-filter: blur(8px);
  }
}

[data-bs-theme="light"] .mc-sidebar-offcanvas .offcanvas-header {
  border-bottom-color: rgba(71, 85, 105, 0.22);
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
}

@media (max-width: 991.98px) {
  [data-bs-theme="light"] .mc-sidebar-offcanvas {
    background: rgba(248, 250, 252, 0.98);
  }
}

[data-bs-theme="light"] .mc-sidebar-offcanvas .btn-close {
  filter: none;
}

.mc-hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

.mc-home-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.mc-home-copy,
.mc-home-visual {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.1rem;
  background: rgba(10, 18, 45, 0.56);
  box-shadow: 0 20px 45px rgba(3, 8, 24, 0.35);
}

.mc-home-copy {
  padding: 2rem;
}

.mc-home-eyebrow {
  color: #7dd3fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.mc-home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.mc-home-metric {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.7rem;
  padding: 0.6rem 0.65rem;
  background: rgba(2, 6, 23, 0.36);
  display: grid;
  gap: 0.12rem;
}

.mc-home-metric-value {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.86rem;
}

.mc-home-metric-label {
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.74rem;
}

.mc-home-visual {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.mc-home-preview-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.55);
  padding: 0.75rem;
}

.mc-home-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.mc-home-preview-dots {
  display: inline-flex;
  gap: 0.28rem;
}

.mc-home-preview-dots span {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.mc-home-preview-tag {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.mc-home-preview-body {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 0.6rem;
}

.mc-home-preview-column {
  display: grid;
  gap: 0.45rem;
}

.mc-home-preview-pill {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0.55rem;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

.mc-home-preview-pill.active {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(12, 74, 110, 0.5);
  color: #cffafe;
}

.mc-home-preview-feed {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  padding: 0.55rem;
  background: rgba(15, 23, 42, 0.36);
  display: grid;
  gap: 0.5rem;
}

.mc-home-msg strong {
  color: #f8fafc;
  font-size: 0.8rem;
}

.mc-home-msg p {
  margin: 0.1rem 0 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.78rem;
}

.mc-home-reactions {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.77rem;
}

.mc-home-composer {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 0.35rem 0.65rem;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.76rem;
}

.mc-home-float {
  position: absolute;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.65);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.mc-home-float--one {
  right: 0.95rem;
  top: 0.8rem;
}

.mc-home-float--two {
  left: 1rem;
  bottom: 0.9rem;
}

.mc-text-muted {
  color: rgba(255, 255, 255, 0.72);
}
[data-bs-theme="light"] .mc-text-muted {
  color: rgba(15, 23, 42, 0.72);
}

.mc-btn-primary {
  border: none;
  color: #0f172a;
  font-weight: 700;
  background: linear-gradient(90deg, var(--mc-accent-1), #60a5fa);
}

.mc-composer {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 0.35rem;
  align-items: center;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.35);
  padding: 0.32rem;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

body[data-density="compact"] .mc-composer {
  gap: 0.25rem;
  padding: 0.24rem;
}

form[data-controller~="composer"] {
  position: relative;
}

.mc-composer-plus,
.mc-composer-icon,
.mc-composer-send {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body[data-density="compact"] .mc-composer-plus,
body[data-density="compact"] .mc-composer-icon,
body[data-density="compact"] .mc-composer-send {
  width: 1.85rem;
  height: 1.85rem;
}

.mc-composer-plus.btn-outline-light,
.mc-composer-icon.btn-outline-light,
.mc-composer-gif.btn-outline-light {
  border-color: transparent;
  background: transparent;
}

.mc-composer-plus.btn-outline-light:hover,
.mc-composer-plus.btn-outline-light:focus,
.mc-composer-icon.btn-outline-light:hover,
.mc-composer-icon.btn-outline-light:focus,
.mc-composer-gif.btn-outline-light:hover,
.mc-composer-gif.btn-outline-light:focus {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.55);
}

.mc-composer-send {
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(160deg, #38bdf8, #0ea5e9);
  color: #062238;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.26);
  transition: transform 100ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.mc-composer-send i {
  font-size: 0.92rem;
  font-weight: 700;
}

.mc-composer-send:hover,
.mc-composer-send:focus,
.mc-composer-send:active {
  border-color: rgba(125, 211, 252, 0.85);
  background: linear-gradient(160deg, #67e8f9, #22d3ee);
  color: #062238;
  box-shadow: 0 8px 18px rgba(34, 211, 238, 0.32);
}

.mc-composer-send:active {
  transform: translateY(1px);
}

.mc-composer-gif {
  width: auto;
  min-width: 2.2rem;
  padding: 0 0.42rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mc-composer-input {
  border-radius: 0.45rem;
  border-color: transparent;
  background: transparent;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  box-shadow: none;
}

body[data-density="compact"] .mc-composer-input {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  min-height: 1.85rem;
}

.mc-composer-input:focus {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(2, 6, 23, 0.45);
  box-shadow: none;
}

[data-bs-theme="light"] .mc-composer {
  border-color: rgba(71, 85, 105, 0.32);
  background: rgba(255, 255, 255, 0.82);
}

[data-bs-theme="light"] .mc-composer-input {
  background: transparent;
}

[data-bs-theme="light"] .mc-composer-input:focus {
  border-color: rgba(3, 105, 161, 0.4);
  background: rgba(241, 245, 249, 0.9);
}

[data-bs-theme="light"] .mc-composer-plus.btn-outline-light,
[data-bs-theme="light"] .mc-composer-icon.btn-outline-light {
  color: #0f172a;
  border-color: transparent;
  background: transparent;
}

[data-bs-theme="light"] .mc-composer-send {
  border-color: rgba(3, 105, 161, 0.4);
  background: linear-gradient(160deg, #38bdf8, #0284c7);
  color: #f8fafc;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

[data-bs-theme="light"] .mc-composer-send:hover,
[data-bs-theme="light"] .mc-composer-send:focus,
[data-bs-theme="light"] .mc-composer-send:active {
  border-color: rgba(3, 105, 161, 0.56);
  background: linear-gradient(160deg, #22d3ee, #0369a1);
  color: #f8fafc;
}

.mc-file-input-hidden {
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  white-space: nowrap;
}

.mc-dm-pane {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 0.35rem;
  overflow: hidden;
}

body[data-density="compact"] .mc-dm-pane {
  row-gap: 0.25rem;
}

.mc-dm-messages {
  min-height: 0;
  max-height: none;
  height: auto;
}

.mc-channel-pane {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  row-gap: 0.45rem;
  overflow: hidden;
}

body[data-density="compact"] .mc-channel-pane {
  row-gap: 0.28rem;
}

.mc-channel-messages {
  min-height: 0;
  max-height: none;
  height: auto;
}

.mc-message--pending {
  opacity: 0.62;
  filter: saturate(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
}

.mc-message--pending-enter {
  opacity: 0;
  transform: translateY(6px);
}

.mc-message--pending-exit {
  opacity: 0;
  transform: translateY(-4px);
}

.mc-message--pending[data-pending-state="failed"] {
  opacity: 1;
  filter: none;
  border-left: 2px solid rgba(244, 63, 94, 0.75);
  padding-left: 0.75rem;
}

.mc-message--pending[data-pending-state="sending"],
.mc-message--pending[data-pending-state="queued"] {
  border-left: 2px solid rgba(148, 163, 184, 0.35);
  padding-left: 0.75rem;
}

.mc-reply-snippet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.92);
}

[data-bs-theme="light"] .mc-reply-snippet {
  color: #475569;
}

.mc-pending-note {
  color: rgba(148, 163, 184, 0.92);
}

.mc-message--pending[data-pending-state="failed"] .mc-pending-note {
  color: rgba(251, 113, 133, 0.95);
}

.mc-pending-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.mc-pending-actions .btn {
  border-radius: 0.4rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
}

[data-delivery-state] {
  color: rgba(148, 163, 184, 0.9);
}

.mc-thread-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.3);
  padding: 0.6rem;
}

.mc-thread-scroll {
  max-height: 180px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.22);
}

@media (max-width: 991.98px) {
  .mc-chat-page {
    padding-top: 0.75rem !important;
    padding-bottom: calc(0.75rem + var(--mc-app-keyboard-inset)) !important;
  }

  .mc-onboarding-hero,
  .mc-discovery-layout {
    grid-template-columns: 1fr;
  }

  .mc-directory-hero {
    flex-direction: column;
  }

  .mc-directory-search-wrap {
    grid-template-columns: 1fr;
  }

  .mc-onboarding-hero-copy,
  .mc-onboarding-sidecar,
  .mc-workspace-card,
  .mc-empty-state {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mc-onboarding-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .mc-chat-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
  }

  .mc-home-hero {
    grid-template-columns: 1fr;
  }

  .mc-home-copy {
    padding: 1.2rem;
  }

  .mc-home-metrics {
    grid-template-columns: 1fr;
  }

  .mc-dm-pane,
  .mc-channel-pane {
    min-height: 0;
  }

  .mc-chat-sidebar-column {
    display: block;
  }

  .mc-chat-main-column {
    min-height: 0;
    flex: 1 1 auto;
  }

  .mc-channel-pane,
  .mc-dm-pane {
    padding: 1rem !important;
    row-gap: 0.55rem;
    height: 100%;
    padding-bottom: calc(1rem + max(env(safe-area-inset-bottom), 0px) + var(--mc-app-keyboard-inset)) !important;
  }

  .mc-message-scroll.mc-channel-messages,
  .mc-message-scroll.mc-dm-messages {
    min-height: 0;
    max-height: none;
  }
}

[data-bs-theme="light"] .mc-thread-panel {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.94);
}

[data-bs-theme="light"] .mc-thread-scroll {
  background: rgba(226, 232, 240, 0.5);
}

.mc-btn-google {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mc-btn-google:hover,
.mc-btn-google:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.mc-form .form-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.mc-form .form-check-label {
  color: rgba(255, 255, 255, 0.85);
}
[data-bs-theme="light"] .mc-form .form-label {
  color: rgba(15, 23, 42, 0.85);
}
[data-bs-theme="light"] .mc-form .form-check-label {
  color: rgba(15, 23, 42, 0.85);
}

.mc-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.mc-form .form-control::placeholder {
  color: rgba(226, 232, 240, 0.72);
}
[data-bs-theme="light"] .mc-form .form-control {
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.2);
}
[data-bs-theme="light"] .mc-form .form-control::placeholder {
  color: rgba(71, 85, 105, 0.82);
}

.mc-form .form-control:focus {
  border-color: var(--mc-accent-1);
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.25);
}

.mc-form .form-text,
.mc-form a {
  color: rgba(255, 255, 255, 0.75);
}
[data-bs-theme="light"] .mc-form .form-text,
[data-bs-theme="light"] .mc-form a {
  color: rgba(15, 23, 42, 0.7);
}

.mc-message-scroll {
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.35);
  position: relative;
  overscroll-behavior: contain;
  scroll-padding-bottom: 4.5rem;
}
[data-bs-theme="light"] .mc-message-scroll {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.18) !important;
}

.mc-jump-newest-wrap {
  position: sticky;
  bottom: 0.75rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 9;
}

.mc-jump-newest {
  pointer-events: auto;
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

[data-bs-theme="light"] .mc-jump-newest {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(71, 85, 105, 0.28);
}

[data-bs-theme="light"] .mc-card .text-white {
  color: #0f172a !important;
}
[data-bs-theme="light"] .mc-card .text-secondary {
  color: #64748b !important;
}
[data-bs-theme="light"] .mc-card .btn-outline-light {
  color: #334155;
  border-color: #94a3b8;
  background: rgba(255, 255, 255, 0.8);
}
[data-bs-theme="light"] .mc-card .btn-outline-light:hover {
  color: #0f172a;
  border-color: #64748b;
  background: rgba(226, 232, 240, 0.9);
}
[data-bs-theme="light"] .mc-card .badge.text-bg-secondary {
  color: #0f172a !important;
  background: #94a3b8 !important;
}

.mc-card .list-group-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.72rem 0.85rem;
}
.mc-card .list-group-item.active {
  color: #fff;
}
[data-bs-theme="light"] .mc-card .list-group-item {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
[data-bs-theme="light"] .mc-card .list-group-item-action {
  color: #0f172a;
}
[data-bs-theme="light"] .mc-card .list-group-item-action:hover,
[data-bs-theme="light"] .mc-card .list-group-item-action:focus {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.9);
}
[data-bs-theme="light"] .mc-card .list-group-item.active,
[data-bs-theme="light"] .mc-card .list-group-item-action.active {
  color: #082f49;
  background: rgba(56, 189, 248, 0.35);
  border-color: rgba(2, 132, 199, 0.38);
}
[data-bs-theme="light"] .mc-card .list-group-item .text-muted {
  color: #64748b !important;
}

.mc-reaction-pill {
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mc-reaction-add {
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0.1rem 0.3rem;
  line-height: 1;
}
[data-bs-theme="light"] .mc-reaction-pill {
  border-color: rgba(71, 85, 105, 0.32);
  color: #0f172a;
  background: rgba(226, 232, 240, 0.8);
}
[data-bs-theme="light"] .mc-reaction-add.btn-outline-light {
  color: #0f172a;
  border-color: rgba(71, 85, 105, 0.4);
  background: rgba(255, 255, 255, 0.85);
}
[data-bs-theme="light"] .mc-reaction-add.btn-outline-light:hover {
  background: rgba(226, 232, 240, 0.95);
}

.mc-message {
  position: relative;
  margin-bottom: 1rem;
  min-width: 0;
}

.mc-message-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.mc-message-main {
  min-width: 0;
}

.mc-message-avatar-button,
.mc-member-avatar-button,
.mc-user-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.mc-message-avatar-button,
.mc-member-avatar-button {
  line-height: 0;
}

.mc-user-link {
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.mc-message-author {
  color: #f8fafc;
}

.mc-message-avatar-image,
.mc-message-avatar-fallback,
.mc-member-avatar-image,
.mc-member-avatar-fallback {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
}

.mc-message-avatar-image,
.mc-member-avatar-image {
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.22);
}

.mc-message-avatar-fallback,
.mc-member-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: linear-gradient(145deg, #22d3ee, #60a5fa 52%, #f59e0b);
}

.mc-user-card-popover {
  position: fixed;
  z-index: 1100;
  width: min(21rem, calc(100vw - 1rem));
}

.mc-user-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.95rem;
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 33, 0.98)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 42%);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
  padding: 1rem;
}

.mc-user-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.mc-user-card-avatar-image,
.mc-user-card-avatar-fallback {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.75rem;
}

.mc-user-card-avatar-image {
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.mc-user-card-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(145deg, #22d3ee, #60a5fa 52%, #f59e0b);
}

.mc-user-card-name {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.05;
}

.mc-user-card-handle,
.mc-user-card-context,
.mc-user-card-section-label {
  color: rgba(148, 163, 184, 0.92);
}

.mc-user-card-section {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 0.75rem;
}

.mc-user-card-section-label {
  margin-bottom: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mc-user-card-section-value,
.mc-user-card-status {
  color: #e2e8f0;
}

.mc-user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

body[data-density="compact"] .mc-message {
  margin-bottom: 0.55rem;
}

.mc-message-reactions {
  justify-content: flex-end;
  opacity: 0.92;
}

body[data-density="compact"] .mc-message-reactions {
  margin-top: 0.35rem !important;
}

.mc-message-actions-inline {
  display: flex;
  gap: 0.18rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  position: absolute;
  right: 0;
  top: 0;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.5rem;
  padding: 0.12rem;
  z-index: 5;
}

body[data-density="compact"] .mc-message-actions-inline {
  padding: 0.08rem;
  gap: 0.12rem;
}

.mc-message-actions-inline .mc-reaction-add {
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding: 0;
  border-radius: 0.42rem;
}

.mc-message-actions-mobile .dropdown-menu {
  min-width: 10.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.96);
}

.mc-message-actions-mobile .dropdown-item {
  color: #e2e8f0;
}

.mc-message-actions-mobile .dropdown-item:hover,
.mc-message-actions-mobile .dropdown-item:focus {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.7);
}

.mc-message-kebab {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-density="compact"] .mc-reaction-add,
body[data-density="compact"] .mc-message-kebab {
  min-width: 1.75rem;
  min-height: 1.75rem;
}

.mc-message:hover .mc-message-actions-inline,
.mc-message:focus-within .mc-message-actions-inline {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .mc-message-actions-inline {
    opacity: 0;
  }
}

@media (max-width: 767.98px) {
  body.mc-body:has(.mc-chat-page) {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .mc-message-main > .d-flex:first-of-type {
    padding-right: 2.3rem;
  }

  .mc-message-shell {
    gap: 0.55rem;
  }

  .mc-message-avatar-image,
  .mc-message-avatar-fallback {
    width: 1.9rem;
    height: 1.9rem;
  }

  .mc-composer {
    grid-template-columns: auto 1fr auto auto auto;
    gap: 0.28rem;
  }

  .mc-composer-plus,
  .mc-composer-icon,
  .mc-composer-send {
    width: 1.85rem;
    height: 1.85rem;
  }

  .mc-composer-gif {
    min-width: 2rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
  }

  .mc-composer-input {
    border-radius: 0.45rem;
  }

  .mc-emoji-autocomplete,
  .mc-mention-autocomplete {
    left: 0.25rem;
    width: min(calc(100vw - 1rem), calc(100% - 0.5rem));
    max-height: min(38vh, 190px);
  }

  .mc-message-scroll {
    min-height: 240px;
    scroll-padding-bottom: 5rem;
  }

  .mc-dm-pane,
  .mc-channel-pane {
    padding: 0.85rem !important;
    row-gap: 0.5rem;
    padding-bottom: calc(0.85rem + max(env(safe-area-inset-bottom), 0px) + var(--mc-app-keyboard-inset)) !important;
  }
}

html[data-display-mode="standalone"] .mc-breadcrumb-bar {
  display: none;
}

html[data-display-mode="standalone"] .mc-navbar .navbar {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

html[data-display-mode="standalone"] .mc-navbar {
  padding-top: max(env(safe-area-inset-top), 0px);
}

.mc-message-main > .d-flex:first-of-type {
  padding-right: 9.5rem;
  min-height: 1.8rem;
}

.mc-message-emoji-picker {
  margin-top: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.6rem;
  background: rgba(2, 6, 23, 0.45);
  padding: 0.45rem;
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  position: relative;
  z-index: 6;
}

[data-bs-theme="light"] .mc-message-emoji-picker {
  border-color: rgba(71, 85, 105, 0.25);
  background: rgba(248, 250, 252, 0.92);
}

.mc-emoji-grid {
  max-height: 220px;
  overflow-y: auto;
}

.mc-inline-custom-emoji {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  vertical-align: text-bottom;
}

.mc-emoji-popover {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.9);
  padding: 0.65rem;
  margin-bottom: 0.6rem;
}

.mc-emoji-popover-list {
  max-height: 250px;
  overflow-y: auto;
  display: grid;
  gap: 0.55rem;
}

.mc-emoji-group {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 0.45rem;
}

.mc-emoji-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.mc-emoji-option {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mc-emoji-autocomplete {
  position: absolute;
  left: 2.8rem;
  right: auto;
  bottom: calc(100% + 0.25rem);
  top: auto;
  width: min(26rem, calc(100vw - 1rem));
  max-height: min(42vh, 220px);
  overflow-y: auto;
  z-index: 1200;
  border-radius: 0.6rem;
  padding: 0.2rem;
}

.mc-mention-autocomplete {
  position: absolute;
  left: 2.8rem;
  right: auto;
  bottom: calc(100% + 0.25rem);
  top: auto;
  width: min(26rem, calc(100vw - 1rem));
  max-height: min(42vh, 220px);
  overflow-y: auto;
  z-index: 1201;
  border-radius: 0.6rem;
  padding: 0.2rem;
}

.mc-mention-autocomplete .dropdown-item.active {
  background: rgba(14, 165, 233, 0.25);
  color: #e0f2fe;
}

.mc-presence-online {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}
.mc-presence-idle {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.mc-presence-away {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}
.mc-presence-dnd {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
}
.mc-presence-offline {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}
.mc-presence-hidden {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}
[data-bs-theme="light"] .mc-presence-online {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}
[data-bs-theme="light"] .mc-presence-idle {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}
[data-bs-theme="light"] .mc-presence-away {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}
[data-bs-theme="light"] .mc-presence-dnd {
  background: rgba(225, 29, 72, 0.12);
  color: #9f1239;
}
[data-bs-theme="light"] .mc-presence-offline {
  background: rgba(71, 85, 105, 0.1);
  color: #334155;
}
[data-bs-theme="light"] .mc-presence-hidden {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.mc-attachments,
.mc-link-previews {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.mc-attachment-gallery {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.mc-attachment-gallery--1 {
  grid-template-columns: 1fr;
}

.mc-attachment-gallery--2,
.mc-attachment-gallery--3,
.mc-attachment-gallery--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mc-attachment {
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.35);
  border-radius: 0.6rem;
  overflow: hidden;
  color: #e2e8f0;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}

.mc-attachment-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: rgba(2, 6, 23, 0.14);
}

.mc-attachment-image-card {
  padding: 0;
}

.mc-attachment-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem 0.75rem;
  min-width: 0;
}

.mc-attachment-caption-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.mc-attachment-file,
.mc-attachment-audio,
.mc-attachment-video {
  padding: 0.7rem 0.8rem;
}

.mc-attachment-fileinfo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}

.mc-attachment-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 1rem;
}

.mc-attachment-filemeta {
  min-width: 0;
}

.mc-attachment-caption-meta {
  min-width: 0;
}

.mc-attachment-fileheader,
.mc-attachment-metarow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mc-attachment-kind,
.mc-attachment-ext {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mc-attachment-kind {
  color: #cbd5e1;
  font-weight: 700;
}

.mc-attachment-ext {
  color: #94a3b8;
}

.mc-attachment-filename {
  margin-top: 0.15rem;
  color: #f8fafc;
  font-weight: 600;
  word-break: break-word;
}

.mc-attachment-metarow {
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.mc-attachment-open {
  color: #67e8f9;
  text-decoration: none;
  font-weight: 600;
}

.mc-attachment-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mc-attachment-media {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(2, 6, 23, 0.2);
}

.mc-attachment-video .mc-attachment-media {
  max-height: 420px;
}

.mc-link-preview {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.35);
  border-radius: 0.6rem;
  padding: 0.5rem;
  text-decoration: none;
  color: #e2e8f0;
  min-width: 0;
  max-width: 100%;
}
.mc-link-preview:has(img[src=""]) {
  grid-template-columns: 1fr;
}
.mc-link-preview:not(:has(img)) {
  grid-template-columns: 1fr;
}

.mc-link-preview img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 0.4rem;
}

.mc-link-preview-host {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mc-link-preview-url {
  font-size: 0.83rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mc-link-preview-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mc-link-preview-description {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.1rem;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mc-message-scroll:has(.mc-jump-newest:not(.d-none)) .mc-message-actions-inline {
  opacity: 0 !important;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .mc-attachment-gallery--2,
  .mc-attachment-gallery--3,
  .mc-attachment-gallery--4 {
    grid-template-columns: 1fr;
  }

  .mc-attachment-caption,
  .mc-attachment-fileheader,
  .mc-attachment-metarow {
    flex-direction: column;
    align-items: flex-start;
  }

  .mc-attachment-actions {
    justify-content: flex-start;
  }

  .mc-link-preview {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.45rem;
    padding: 0.45rem;
  }

  .mc-link-preview img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
  }
}

[data-bs-theme="light"] .mc-attachment,
[data-bs-theme="light"] .mc-link-preview {
  border-color: rgba(71, 85, 105, 0.25);
  background: rgba(248, 250, 252, 0.94);
  color: #0f172a;
}

[data-bs-theme="light"] .mc-link-preview-host {
  color: #64748b;
}

[data-bs-theme="light"] .mc-attachment-icon {
  background: rgba(148, 163, 184, 0.16);
  color: #334155;
}

[data-bs-theme="light"] .mc-attachment-kind {
  color: #334155;
}

[data-bs-theme="light"] .mc-attachment-ext,
[data-bs-theme="light"] .mc-attachment-metarow {
  color: #64748b;
}

[data-bs-theme="light"] .mc-attachment-filename {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-attachment-open {
  color: #0369a1;
}

[data-bs-theme="light"] .mc-link-preview-description {
  color: #475569;
}

.mc-lightbox-modal {
  border-radius: 0.65rem;
}

.mc-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: min(86vh, 1080px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.mc-card .table {
  color: rgba(255, 255, 255, 0.86);
}
.mc-card .table > :not(caption) > * > * {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-density="compact"] .mc-card .table > :not(caption) > * > * {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}
[data-bs-theme="light"] .mc-card .table {
  color: #0f172a;
}
[data-bs-theme="light"] .mc-card .table > :not(caption) > * > * {
  border-color: rgba(15, 23, 42, 0.12);
}

.mc-message-line {
  white-space: pre-wrap;
}

body[data-density="compact"] .mc-message-line {
  line-height: 1.32;
}

body[data-density="compact"] .mc-reply-snippet {
  margin-bottom: 0.15rem !important;
  font-size: 0.72rem;
}

body[data-density="compact"] .mc-message .small.text-secondary,
body[data-density="compact"] .mc-message [data-delivery-state] {
  font-size: 0.72rem;
}

.mc-message .small.text-secondary,
.mc-message [data-delivery-state] {
  color: rgba(148, 163, 184, 0.78) !important;
}

.mc-inline-code {
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

.mc-code-block {
  margin: 0.35rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.55rem;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  overflow-x: auto;
}

.mc-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.mc-blockquote {
  margin: 0.35rem 0;
  padding: 0.15rem 0 0.15rem 0.8rem;
  border-left: 3px solid rgba(34, 211, 238, 0.65);
  color: #cbd5e1;
}

.mc-blockquote-line + .mc-blockquote-line {
  margin-top: 0.18rem;
}

.mc-message-list {
  margin: 0.35rem 0 0.35rem 1.15rem;
  padding-left: 0.2rem;
}

.mc-message-list-item + .mc-message-list-item {
  margin-top: 0.18rem;
}

body[data-density="compact"] .mc-message-scroll.mc-channel-messages,
body[data-density="compact"] .mc-message-scroll.mc-dm-messages {
  padding: 0.65rem !important;
}

body[data-density="compact"] .mc-card.p-4,
body[data-density="compact"] .mc-card.p-4.p-md-5 {
  padding: 1rem !important;
}

@media (min-width: 768px) {
  body[data-density="compact"] .mc-card.p-4.p-md-5 {
    padding: 1.15rem !important;
  }
}

.mc-inline-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.mc-mention {
  display: inline-flex;
  align-items: center;
  padding: 0.02rem 0.34rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(2, 132, 199, 0.2);
  color: #e0f2fe;
  font-weight: 700;
  line-height: 1.25;
}

[data-bs-theme="light"] .mc-inline-link {
  color: #0369a1;
}

[data-bs-theme="light"] .mc-inline-code {
  background: rgba(148, 163, 184, 0.18);
  color: #0f172a;
}

[data-bs-theme="light"] .mc-code-block {
  background: rgba(226, 232, 240, 0.72);
  border-color: rgba(71, 85, 105, 0.2);
  color: #0f172a;
}

[data-bs-theme="light"] .mc-blockquote {
  color: #334155;
  border-left-color: rgba(3, 105, 161, 0.55);
}

[data-bs-theme="light"] .mc-mention {
  border-color: rgba(3, 105, 161, 0.35);
  background: rgba(186, 230, 253, 0.7);
  color: #0c4a6e;
}

.mc-message-scroll.mc-channel-messages,
.mc-message-scroll.mc-dm-messages {
  max-height: none;
  height: 100%;
}

.mc-message-line--emoji {
  line-height: 1.2;
}

.mc-message-line--emoji-md {
  font-size: 1.45rem;
}

.mc-message-line--emoji-lg {
  font-size: 1.95rem;
}

.mc-message-line--emoji-xl {
  font-size: 2.6rem;
}

.mc-members-list .list-group-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 0.62rem 0.75rem;
}

.mc-members-list .list-group-item > .d-flex:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.mc-members-list .list-group-item .mc-user-link span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-members-list .list-group-item .badge {
  max-width: 100%;
}

.mc-members-list .list-group-item .small.mt-1 {
  margin-top: 0.2rem !important;
}
[data-bs-theme="light"] .mc-members-list .list-group-item {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}

.mc-role-owner {
  color: #f472b6;
  font-weight: 700;
}
.mc-role-admin {
  color: #f59e0b;
  font-weight: 700;
}
.mc-role-moderator {
  color: #22d3ee;
  font-weight: 700;
}
.mc-role-member {
  color: #cbd5e1;
  font-weight: 600;
}

[data-bs-theme="light"] .mc-role-owner {
  color: #be185d;
}
[data-bs-theme="light"] .mc-role-admin {
  color: #b45309;
}
[data-bs-theme="light"] .mc-role-moderator {
  color: #0e7490;
}
[data-bs-theme="light"] .mc-role-member {
  color: #334155;
}

.mc-role-badge-owner {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
}
.mc-role-badge-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.mc-role-badge-moderator {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}
.mc-role-badge-member {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

[data-bs-theme="light"] .mc-role-badge-owner {
  background: rgba(190, 24, 93, 0.12);
  color: #9d174d;
}
[data-bs-theme="light"] .mc-role-badge-admin {
  background: rgba(180, 83, 9, 0.12);
  color: #92400e;
}
[data-bs-theme="light"] .mc-role-badge-moderator {
  background: rgba(14, 116, 144, 0.12);
  color: #155e75;
}
[data-bs-theme="light"] .mc-role-badge-member {
  background: rgba(51, 65, 85, 0.1);
  color: #334155;
}

.mc-community-home-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.26);
}
@media (max-width: 767.98px) {
  .mc-community-home-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mc-stat-card {
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.24);
}

.mc-stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.92);
}

.mc-stat-value {
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: 800;
}

.mc-stat-value--role {
  font-size: 0.95rem;
}

.mc-page-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.mc-page-header-copy h1,
.mc-page-header-copy h2 {
  margin-bottom: 0.25rem;
}

.mc-page-header-copy p {
  margin-bottom: 0;
}

.mc-surface-grid {
  display: grid;
  gap: 1rem;
}

.mc-surface-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mc-panel {
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.22);
}

.mc-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.mc-panel-title {
  color: #f8fafc;
  font-weight: 800;
  margin: 0;
}

.mc-empty-panel {
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.14);
  color: rgba(148, 163, 184, 0.92);
}

.mc-data-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.95rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.18);
}

.mc-reportable-card {
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.18);
}

.mc-settings-section + .mc-settings-section {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mc-community-section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.mc-invite-composer {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.2);
}

.mc-invite-grid {
  display: grid;
  gap: 0.9rem;
}

.mc-invite-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.24);
}

.mc-invite-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.mc-invite-title {
  color: #f8fafc;
  font-weight: 800;
}

.mc-invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.92);
}

.mc-invite-url {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.mc-invite-url code {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
}

.mc-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.mc-invite-state {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mc-invite-state--active {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.mc-invite-state--expired,
.mc-invite-state--used-up {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.mc-invite-state--revoked {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

.mc-invite-landing {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(160deg, rgba(7, 12, 34, 0.96), rgba(4, 12, 42, 0.9));
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.36);
}

.mc-invite-landing-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mc-invite-landing-title {
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.mc-invite-landing-subtitle {
  color: rgba(226, 232, 240, 0.8);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.mc-invite-landing-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.mc-invite-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

[data-bs-theme="light"] .mc-community-home-hero,
[data-bs-theme="light"] .mc-stat-card,
[data-bs-theme="light"] .mc-invite-composer,
[data-bs-theme="light"] .mc-invite-card,
[data-bs-theme="light"] .mc-panel,
[data-bs-theme="light"] .mc-reportable-card,
[data-bs-theme="light"] .mc-data-table-wrap {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.94);
}

[data-bs-theme="light"] .mc-stat-label {
  color: #64748b;
}

[data-bs-theme="light"] .mc-stat-value {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-panel-title {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-invite-title {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-invite-landing {
  border-color: rgba(71, 85, 105, 0.18);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  box-shadow: 0 18px 42px rgba(148, 163, 184, 0.18);
}

[data-bs-theme="light"] .mc-invite-landing-badge {
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
}

[data-bs-theme="light"] .mc-invite-landing-title {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-invite-landing-subtitle {
  color: #475569;
}

[data-bs-theme="light"] .mc-invite-meta {
  color: #64748b;
}

[data-bs-theme="light"] .mc-invite-url {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.26);
}

[data-bs-theme="light"] .mc-invite-url code {
  color: #334155;
}

[data-bs-theme="light"] .mc-invite-state--active {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

[data-bs-theme="light"] .mc-invite-state--expired,
[data-bs-theme="light"] .mc-invite-state--used-up {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

[data-bs-theme="light"] .mc-invite-state--revoked {
  background: rgba(244, 63, 94, 0.12);
  color: #9f1239;
}

[data-bs-theme="light"] .mc-empty-panel {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
}

@media (max-width: 767.98px) {
  .mc-invite-landing-stats {
    grid-template-columns: 1fr;
  }

  .mc-surface-grid--two {
    grid-template-columns: 1fr;
  }
}

[data-bs-theme="light"] .mc-onboarding-hero-copy,
[data-bs-theme="light"] .mc-onboarding-sidecar,
[data-bs-theme="light"] .mc-workspace-card,
[data-bs-theme="light"] .mc-empty-state {
  border-color: rgba(71, 85, 105, 0.18);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.95));
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.18);
}

[data-bs-theme="light"] .mc-onboarding-title,
[data-bs-theme="light"] .mc-workspace-card-title,
[data-bs-theme="light"] .mc-empty-state-title {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-onboarding-subtitle,
[data-bs-theme="light"] .mc-onboarding-step span,
[data-bs-theme="light"] .mc-workspace-card-meta,
[data-bs-theme="light"] .mc-workspace-card-slug {
  color: #475569;
}

[data-bs-theme="light"] .mc-onboarding-step {
  border-color: rgba(71, 85, 105, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.mc-onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.82fr);
  gap: 1rem;
}

.mc-onboarding-hero-copy,
.mc-onboarding-sidecar {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.55), rgba(8, 13, 33, 0.88)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 40%);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.mc-onboarding-hero-copy {
  padding: 1.6rem;
}

.mc-onboarding-title {
  color: #f8fafc;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.mc-onboarding-subtitle {
  color: rgba(203, 213, 225, 0.86);
  max-width: 44rem;
  font-size: 1rem;
}

.mc-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.mc-onboarding-sidecar {
  padding: 1rem 1rem 1.1rem;
}

.mc-onboarding-sidecar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.mc-onboarding-sidecar-label {
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.mc-onboarding-steps {
  display: grid;
  gap: 0.7rem;
}

.mc-onboarding-step {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.28);
  padding: 0.8rem;
}

.mc-onboarding-step strong {
  color: #f8fafc;
}

.mc-onboarding-step span {
  color: rgba(203, 213, 225, 0.8);
  font-size: 0.88rem;
}

.mc-discovery-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mc-workspace-card-list {
  display: grid;
  gap: 0.75rem;
}

.mc-workspace-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.95rem;
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.58), rgba(8, 13, 33, 0.9)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 42%);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.24);
  padding: 0.95rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.mc-workspace-card:hover,
.mc-workspace-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.32);
}

.mc-workspace-card--discover {
  text-decoration: none;
}

.mc-workspace-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}

.mc-workspace-card-title {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.mc-workspace-card-slug {
  color: rgba(148, 163, 184, 0.94);
  font-size: 0.84rem;
}

.mc-workspace-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.84rem;
}

.mc-workspace-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mc-empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.2);
  padding: 1rem;
}

.mc-empty-state-title {
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mc-directory-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.mc-directory-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.mc-directory-search .form-control {
  min-height: 3rem;
}

.mc-perm-panel {
  padding: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.26);
}

.mc-group-grid {
  display: grid;
  gap: 0.8rem;
}

.mc-group-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.26);
  padding: 0.8rem;
}

.mc-group-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
}

.mc-group-members {
  display: grid;
  gap: 0.35rem;
}

.mc-group-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.28);
}

.mc-workspace-emoji-list {
  display: grid;
  gap: 0.55rem;
}

.mc-workspace-emoji-row {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.24);
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mc-channel-create-trigger {
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.mc-channel-create-trigger:hover,
.mc-channel-create-trigger:focus {
  color: #22d3ee;
  text-decoration: none;
}

.mc-channel-create-menu {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.22);
  padding: 0.65rem;
}

.mc-new-dm-trigger {
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  font-size: 1.55rem;
  line-height: 1;
  padding: 0;
}

.mc-new-dm-trigger:hover,
.mc-new-dm-trigger:focus {
  color: #22d3ee;
  text-decoration: none;
}

.mc-new-dm-icon-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.mc-new-dm-icon-plus {
  position: absolute;
  right: -0.3rem;
  bottom: -0.22rem;
  font-size: 0.72rem;
  color: #22d3ee;
  background: rgba(10, 18, 37, 0.95);
  border-radius: 0.35rem;
}

[data-bs-theme="light"] .mc-new-dm-icon-plus {
  background: rgba(248, 250, 252, 0.96);
  color: #0369a1;
}

.mc-new-dm-submit {
  min-width: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mc-channel-rule-list {
  display: grid;
  gap: 0.9rem;
}

.mc-channel-rule-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.26);
  padding: 0.8rem;
}

.mc-rule-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mc-rule-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

[data-bs-theme="light"] .mc-emoji-popover {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(248, 250, 252, 0.95);
}

[data-bs-theme="light"] .mc-message-actions-inline {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(71, 85, 105, 0.35);
}

[data-bs-theme="light"] .mc-message-actions-mobile .dropdown-menu {
  border-color: rgba(71, 85, 105, 0.26);
  background: rgba(248, 250, 252, 0.98);
}

[data-bs-theme="light"] .mc-message-actions-mobile .dropdown-item {
  color: #334155;
}

[data-bs-theme="light"] .mc-message-actions-mobile .dropdown-item:hover,
[data-bs-theme="light"] .mc-message-actions-mobile .dropdown-item:focus {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.9);
}

[data-bs-theme="light"] .mc-message-avatar-image,
[data-bs-theme="light"] .mc-member-avatar-image,
[data-bs-theme="light"] .mc-user-card-avatar-image {
  border-color: rgba(71, 85, 105, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="light"] .mc-user-card {
  border-color: rgba(71, 85, 105, 0.18);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.2);
}

[data-bs-theme="light"] .mc-user-card-name,
[data-bs-theme="light"] .mc-user-link {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-message-author {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-user-card-handle,
[data-bs-theme="light"] .mc-user-card-context,
[data-bs-theme="light"] .mc-user-card-section-label {
  color: #64748b;
}

[data-bs-theme="light"] .mc-user-card-section-value,
[data-bs-theme="light"] .mc-user-card-status {
  color: #334155;
}

[data-bs-theme="light"] .mc-workspace-emoji-row {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.95);
}

[data-bs-theme="light"] .mc-channel-create-trigger {
  color: #334155;
}

[data-bs-theme="light"] .mc-new-dm-trigger {
  color: #334155;
}

[data-bs-theme="light"] .mc-channel-create-menu {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.94);
}

[data-bs-theme="light"] .mc-logo-word {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-brand {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-btn-google {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.86);
}

[data-bs-theme="light"] .mc-btn-google:hover,
[data-bs-theme="light"] .mc-btn-google:focus {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.95);
}

[data-bs-theme="light"] .mc-user-menu-dropdown {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(248, 250, 252, 0.98);
}

[data-bs-theme="light"] .mc-user-menu-dropdown .dropdown-item {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-user-menu-dropdown .dropdown-item:hover,
[data-bs-theme="light"] .mc-user-menu-dropdown .dropdown-item:focus {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.8);
}

[data-bs-theme="light"] .mc-user-menu-dropdown .dropdown-divider {
  border-color: rgba(71, 85, 105, 0.24);
}

[data-bs-theme="light"] .mc-flash-alert.alert-success {
  background: rgba(220, 252, 231, 0.96);
  border-color: rgba(34, 197, 94, 0.35);
  color: #14532d;
}

[data-bs-theme="light"] .mc-flash-alert.alert-danger {
  background: rgba(254, 226, 226, 0.96);
  border-color: rgba(239, 68, 68, 0.35);
  color: #7f1d1d;
}

[data-bs-theme="light"] .mc-flash-alert .btn-close {
  filter: none;
}

.mc-user-menu-toggle.btn-outline-light {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

.mc-user-menu-toggle.btn-outline-light:hover,
.mc-user-menu-toggle.btn-outline-light:focus,
.mc-user-menu-toggle.btn-outline-light:active {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(148, 163, 184, 0.6);
  color: #f8fafc;
}

[data-bs-theme="light"] .mc-user-menu-toggle.btn-outline-light {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(71, 85, 105, 0.3);
  color: #0f172a;
}

[data-bs-theme="light"] .mc-user-menu-toggle.btn-outline-light:hover,
[data-bs-theme="light"] .mc-user-menu-toggle.btn-outline-light:focus,
[data-bs-theme="light"] .mc-user-menu-toggle.btn-outline-light:active {
  background: rgba(226, 232, 240, 0.84);
  border-color: rgba(71, 85, 105, 0.44);
  color: #0f172a;
}

[data-bs-theme="light"] .mc-nav-notification-badge {
  border-color: rgba(248, 250, 252, 0.9);
}

[data-bs-theme="light"] .mc-notification--unread {
  border-color: rgba(2, 132, 199, 0.45) !important;
  background: rgba(186, 230, 253, 0.35);
}

[data-bs-theme="light"] .mc-shell .text-white {
  color: #0f172a !important;
}

[data-bs-theme="light"] .mc-shell .text-white-50,
[data-bs-theme="light"] .mc-shell .text-secondary {
  color: #64748b !important;
}

[data-bs-theme="light"] .mc-card .border-light {
  border-color: rgba(71, 85, 105, 0.2) !important;
}

[data-bs-theme="light"] .mc-home-copy,
[data-bs-theme="light"] .mc-home-visual {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-bs-theme="light"] .mc-home-eyebrow {
  color: #0369a1;
}

[data-bs-theme="light"] .mc-home-metric {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.94);
}

[data-bs-theme="light"] .mc-home-metric-value {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-home-metric-label {
  color: #64748b;
}

[data-bs-theme="light"] .mc-home-preview-card,
[data-bs-theme="light"] .mc-home-preview-feed {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(71, 85, 105, 0.2);
}

[data-bs-theme="light"] .mc-home-preview-pill {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(71, 85, 105, 0.2);
  color: #334155;
}

[data-bs-theme="light"] .mc-home-preview-pill.active {
  border-color: rgba(3, 105, 161, 0.45);
  background: rgba(224, 242, 254, 0.9);
  color: #0c4a6e;
}

[data-bs-theme="light"] .mc-home-msg strong {
  color: #0f172a;
}

[data-bs-theme="light"] .mc-home-msg p,
[data-bs-theme="light"] .mc-home-reactions,
[data-bs-theme="light"] .mc-home-composer {
  color: #475569;
}

@media (max-width: 767.98px) {
  .mc-rule-row {
    grid-template-columns: 1fr auto auto;
  }

  .mc-rule-row .btn {
    grid-column: 1 / -1;
  }
}

[data-bs-theme="light"] .mc-perm-panel,
[data-bs-theme="light"] .mc-group-card,
[data-bs-theme="light"] .mc-channel-rule-card {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.94);
}

[data-bs-theme="light"] .mc-group-member-row {
  border-color: rgba(71, 85, 105, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="light"] .mc-rule-row {
  border-top-color: rgba(71, 85, 105, 0.16);
}

[data-bs-theme="light"] .mc-notification-item {
  border-color: rgba(71, 85, 105, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

[data-bs-theme="light"] .mc-notification-meta {
  color: #64748b;
}

[data-bs-theme="light"] .mc-notification-body {
  color: #475569;
}

[data-bs-theme="light"] .mc-notification-menu {
  border-color: rgba(71, 85, 105, 0.2);
  background: rgba(248, 250, 252, 0.98);
}

[data-bs-theme="light"] .mc-notification-menu-footer {
  border-top-color: rgba(71, 85, 105, 0.16);
}

[data-bs-theme="light"] .mc-notification-menu-empty,
[data-bs-theme="light"] .mc-notification-menu-loading {
  color: #64748b;
}

.mc-global-announcement {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
}

.mc-global-announcement .container span p {
  display: inline;
  margin: 0;
}

.mc-announcement-dismiss {
  filter: invert(1);
  flex: 0 0 auto;
  margin-top: 0.1rem;
  opacity: 0.85;
}

.mc-announcement-dismiss:hover,
.mc-announcement-dismiss:focus {
  opacity: 1;
}

.mc-global-announcement--info {
  background: rgba(8, 47, 73, 0.92);
}

.mc-global-announcement--success {
  background: rgba(20, 83, 45, 0.92);
}

.mc-global-announcement--warning {
  background: rgba(120, 53, 15, 0.92);
}

.mc-global-announcement--danger {
  background: rgba(127, 29, 29, 0.92);
}

.mc-announcement-preview {
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.mc-announcement-preview--info {
  background: rgba(8, 47, 73, 0.7);
}

.mc-announcement-preview--success {
  background: rgba(20, 83, 45, 0.7);
}

.mc-announcement-preview--warning {
  background: rgba(120, 53, 15, 0.7);
}

.mc-announcement-preview--danger {
  background: rgba(127, 29, 29, 0.7);
}

[data-bs-theme="light"] .mc-global-announcement {
  color: #0f172a;
  border-top-color: rgba(71, 85, 105, 0.18);
  border-bottom-color: rgba(71, 85, 105, 0.18);
}

[data-bs-theme="light"] .mc-announcement-dismiss {
  filter: none;
}

[data-bs-theme="light"] .mc-global-announcement--info {
  background: rgba(224, 242, 254, 0.95);
}

[data-bs-theme="light"] .mc-global-announcement--success {
  background: rgba(220, 252, 231, 0.95);
}

[data-bs-theme="light"] .mc-global-announcement--warning {
  background: rgba(254, 243, 199, 0.95);
}

[data-bs-theme="light"] .mc-global-announcement--danger {
  background: rgba(254, 226, 226, 0.95);
}
