@font-face {
  font-family: "AppleColorEmojiWeb";
  src: url("/fonts/AppleColorEmoji.ttc") format("truetype-collection");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazir-Bold";
  src: url("/fonts/Vazir-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-family: "Vazir-Bold";
  --emoji-font-family: "AppleColorEmojiWeb";
}

[class^="cpd-theme"],
[class*=" cpd-theme"] {
  --cpd-font-family-sans: "Vazir-Bold", "AppleColorEmojiWeb", var(--emoji-font-family), "Apple Color Emoji", "Segoe UI Emoji", "Arial",
    "Helvetica", sans-serif, "Noto Color Emoji";
}

body,
button,
input,
select,
textarea {
  font-family: var(--cpd-font-family-sans) !important;
}

#mx_mlcia_login_vanta_bg {
  background: linear-gradient(135deg, #002222 0%, #0a2b2b 52%, #001a1a 100%);
  display: none;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

#mx_mlcia_login_vanta_bg .mx_mlcia_login_bg_canvas {
  display: block;
  height: 100%;
  width: 100%;
}

body.mx_mlcia_login_bg_active {
  --mx-mlcia-login-meta-text: #334155;
  --mx-mlcia-login-footer-text: #1f2937;
  --mx-mlcia-bs-field-bg: rgba(255, 255, 255, 0.74);
  --mx-mlcia-bs-field-border: rgba(15, 23, 42, 0.16);
  --mx-mlcia-bs-field-border-focus: color-mix(in srgb, var(--accent-color, #0ea5e9) 78%, #0f172a);
  --mx-mlcia-bs-btn-start: color-mix(in srgb, var(--accent-color, #0ea5e9) 88%, #0f172a);
  --mx-mlcia-bs-btn-end: color-mix(in srgb, var(--accent-color, #0ea5e9) 58%, #0f172a);
  --mx-mlcia-bs-btn-shadow: color-mix(in srgb, var(--accent-color, #0ea5e9) 44%, transparent);
  --mx-mlcia-bs-muted: #334155;
  background: transparent !important;
}

body.mx_mlcia_login_bg_active #matrixchat {
  position: relative;
  z-index: 1;
}

body.mx_mlcia_login_bg_active .mx_AuthPage {
  --mx-mlcia-login-btn-bg: color-mix(in srgb, var(--accent-color, #0ea5e9) 88%, #0b1324);
  --mx-mlcia-login-btn-bg-hover: color-mix(in srgb, var(--accent-color, #0ea5e9) 97%, #0b1324);
  --mx-mlcia-login-btn-text: #ffffff;
  --mx-mlcia-login-surface: color-mix(in srgb, var(--timeline-background-color, #ffffff) 44%, rgba(255, 255, 255, 0.28));
  --mx-mlcia-login-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.36)) 72%, rgba(255, 255, 255, 0.22));
  --mx-mlcia-login-shadow: color-mix(in srgb, #020617 34%, transparent);
  --mx-mlcia-login-field-bg: color-mix(in srgb, var(--timeline-background-color, #ffffff) 80%, rgba(255, 255, 255, 0.72));
  --mx-mlcia-login-field-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.38)) 74%, rgba(15, 23, 42, 0.1));
  --mx-mlcia-login-field-text: var(--timeline-text-color, #0f172a);
  --mx-mlcia-login-field-muted: var(--timeline-text-secondary-color, #475569);
  --mx-mlcia-login-focus-ring: color-mix(in srgb, var(--accent-color, #0ea5e9) 32%, transparent);
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 90%, #1f2937);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 84%, #111827);
  align-items: center;
  background: transparent !important;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(16px, 3.4vh, 30px) clamp(12px, 3vw, 26px) clamp(22px, 4.8vh, 46px);
  scrollbar-gutter: stable;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal {
  background: var(--mx-mlcia-login-surface) !important;
  -webkit-backdrop-filter: blur(15px) saturate(110%);
  backdrop-filter: blur(15px) saturate(110%);
  border: 1px solid var(--mx-mlcia-login-border);
  border-radius: clamp(18px, 2.2vw, 26px);
  box-shadow: 0 14px 36px var(--mx-mlcia-login-shadow);
  color: var(--mx-mlcia-login-field-text);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-height: none;
  max-width: 620px;
  overflow: hidden;
  position: relative;
  scrollbar-gutter: stable;
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  transform-origin: 50% 70%;
  width: min(620px, calc(100vw - 24px));
  animation: mx_mlcia_login_modal_rise 1.35s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal::before {
  content: none;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal > * {
  position: relative;
  z-index: 1;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal.mx_AuthPage_modal_withBlur .mx_AuthPage_modalContent,
body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthPage_modalContent {
  background: transparent !important;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal::-webkit-scrollbar {
  width: 8px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 34%, transparent);
  border-radius: 999px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal::-webkit-scrollbar-track {
  background: transparent;
}

body.cpd-theme-dark.mx_mlcia_login_bg_active .mx_AuthPage,
.cpd-theme-dark body.mx_mlcia_login_bg_active .mx_AuthPage {
  --mx-mlcia-login-btn-bg: color-mix(in srgb, var(--accent-color, #0ea5e9) 75%, #1e293b);
  --mx-mlcia-login-btn-bg-hover: color-mix(in srgb, var(--accent-color, #0ea5e9) 88%, #111827);
  --mx-mlcia-login-btn-text: #f8fafc;
  --mx-mlcia-login-surface: color-mix(in srgb, var(--timeline-background-color, #0f172a) 48%, rgba(2, 6, 23, 0.26));
  --mx-mlcia-login-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.48)) 70%, rgba(148, 163, 184, 0.24));
  --mx-mlcia-login-shadow: color-mix(in srgb, #020617 68%, transparent);
  --mx-mlcia-login-field-bg: color-mix(in srgb, var(--timeline-background-color, #0f172a) 62%, rgba(15, 23, 42, 0.4));
  --mx-mlcia-login-field-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.54)) 80%, rgba(148, 163, 184, 0.36));
  --mx-mlcia-login-field-text: var(--timeline-text-color, #e2e8f0);
  --mx-mlcia-login-field-muted: var(--timeline-text-secondary-color, #94a3b8);
  --mx-mlcia-login-focus-ring: color-mix(in srgb, var(--accent-color, #0ea5e9) 44%, transparent);
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #94a3b8) 92%, #e2e8f0);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #94a3b8) 88%, #f1f5f9);
}

body.cpd-theme-light.mx_mlcia_login_bg_active .mx_AuthPage,
.cpd-theme-light body.mx_mlcia_login_bg_active .mx_AuthPage {
  --mx-mlcia-login-btn-bg: color-mix(in srgb, var(--accent-color, #0ea5e9) 88%, #0b1324);
  --mx-mlcia-login-btn-bg-hover: color-mix(in srgb, var(--accent-color, #0ea5e9) 97%, #0b1324);
  --mx-mlcia-login-btn-text: #ffffff;
  --mx-mlcia-login-surface: color-mix(in srgb, var(--timeline-background-color, #ffffff) 46%, rgba(255, 255, 255, 0.32));
  --mx-mlcia-login-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.3)) 70%, rgba(255, 255, 255, 0.3));
  --mx-mlcia-login-shadow: color-mix(in srgb, #020617 28%, transparent);
  --mx-mlcia-login-field-bg: color-mix(in srgb, var(--timeline-background-color, #ffffff) 84%, rgba(255, 255, 255, 0.76));
  --mx-mlcia-login-field-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.34)) 72%, rgba(15, 23, 42, 0.12));
  --mx-mlcia-login-field-text: var(--timeline-text-color, #0f172a);
  --mx-mlcia-login-field-muted: var(--timeline-text-secondary-color, #475569);
  --mx-mlcia-login-focus-ring: color-mix(in srgb, var(--accent-color, #0ea5e9) 34%, transparent);
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 92%, #1f2937);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 86%, #111827);
}

body.mx_mlcia_login_tone_dark.mx_mlcia_login_bg_active .mx_AuthPage {
  --mx-mlcia-login-btn-bg: color-mix(in srgb, var(--accent-color, #0ea5e9) 75%, #1e293b);
  --mx-mlcia-login-btn-bg-hover: color-mix(in srgb, var(--accent-color, #0ea5e9) 88%, #111827);
  --mx-mlcia-login-btn-text: #f8fafc;
  --mx-mlcia-login-surface: color-mix(in srgb, var(--timeline-background-color, #0f172a) 48%, rgba(2, 6, 23, 0.26));
  --mx-mlcia-login-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.48)) 70%, rgba(148, 163, 184, 0.24));
  --mx-mlcia-login-shadow: color-mix(in srgb, #020617 68%, transparent);
  --mx-mlcia-login-field-bg: color-mix(in srgb, var(--timeline-background-color, #0f172a) 62%, rgba(15, 23, 42, 0.4));
  --mx-mlcia-login-field-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.54)) 80%, rgba(148, 163, 184, 0.36));
  --mx-mlcia-login-field-text: var(--timeline-text-color, #e2e8f0);
  --mx-mlcia-login-field-muted: var(--timeline-text-secondary-color, #94a3b8);
  --mx-mlcia-login-focus-ring: color-mix(in srgb, var(--accent-color, #0ea5e9) 44%, transparent);
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #94a3b8) 92%, #e2e8f0);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #94a3b8) 88%, #f1f5f9);
}

body.mx_mlcia_login_tone_light.mx_mlcia_login_bg_active .mx_AuthPage {
  --mx-mlcia-login-btn-bg: color-mix(in srgb, var(--accent-color, #0ea5e9) 88%, #0b1324);
  --mx-mlcia-login-btn-bg-hover: color-mix(in srgb, var(--accent-color, #0ea5e9) 97%, #0b1324);
  --mx-mlcia-login-btn-text: #ffffff;
  --mx-mlcia-login-surface: color-mix(in srgb, var(--timeline-background-color, #ffffff) 46%, rgba(255, 255, 255, 0.32));
  --mx-mlcia-login-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.3)) 70%, rgba(255, 255, 255, 0.3));
  --mx-mlcia-login-shadow: color-mix(in srgb, #020617 28%, transparent);
  --mx-mlcia-login-field-bg: color-mix(in srgb, var(--timeline-background-color, #ffffff) 84%, rgba(255, 255, 255, 0.76));
  --mx-mlcia-login-field-border: color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.34)) 72%, rgba(15, 23, 42, 0.12));
  --mx-mlcia-login-field-text: var(--timeline-text-color, #0f172a);
  --mx-mlcia-login-field-muted: var(--timeline-text-secondary-color, #475569);
  --mx-mlcia-login-focus-ring: color-mix(in srgb, var(--accent-color, #0ea5e9) 34%, transparent);
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 92%, #1f2937);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 86%, #111827);
}

.mx_mlcia_ssm_source_menu,
.mx_mlcia_ssm_picker_root,
.mx_mlcia_ssm_picker_root * {
  box-sizing: border-box;
}

.mx_mlcia_ssm_source_menu {
  background: color-mix(in srgb, var(--timeline-background-color, #ffffff) 96%, #0f172a);
  border: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.36)) 85%, transparent);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
  color: var(--timeline-text-color, #111827);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 245px;
  padding: 10px;
  position: fixed;
  z-index: 999999;
}

.mx_mlcia_ssm_source_menu_title {
  color: var(--timeline-text-secondary-color, #64748b);
  font-size: 12px;
  padding: 2px 8px 6px;
}

.mx_mlcia_ssm_source_menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  justify-content: flex-start;
  padding: 10px 12px;
  text-align: left;
}

.mx_mlcia_ssm_source_menu button:hover {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 12%, transparent);
}

.mx_mlcia_ssm_picker_root {
  inset: 0;
  position: fixed;
  z-index: 999998;
}

.mx_mlcia_ssm_picker_backdrop {
  background: rgba(2, 6, 23, 0.46);
  inset: 0;
  position: absolute;
}

.mx_mlcia_ssm_picker_dialog {
  background: color-mix(in srgb, var(--timeline-background-color, #ffffff) 97%, #0f172a);
  border: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.36)) 85%, transparent);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.34);
  color: var(--timeline-text-color, #111827);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: min(720px, calc(100dvh - 42px));
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 36px));
}

.mx_mlcia_ssm_picker_header {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.36)) 78%, transparent);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 18px;
}

.mx_mlcia_ssm_picker_header strong {
  display: block;
  font-size: 16px;
}

.mx_mlcia_ssm_picker_header span {
  color: var(--timeline-text-secondary-color, #64748b);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.mx_mlcia_ssm_picker_close {
  background: color-mix(in srgb, var(--roomlist-background-color, #f8fafc) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.34)) 78%, transparent);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
  height: 36px;
  line-height: 1;
  width: 36px;
}

.mx_mlcia_ssm_picker_alert {
  display: none;
  font-size: 13px;
  line-height: 1.8;
  margin: 12px 16px 0;
  padding: 10px 12px;
}

.mx_mlcia_ssm_picker_alert_error,
.mx_mlcia_ssm_picker_alert_warning,
.mx_mlcia_ssm_picker_alert_info {
  border-radius: 12px;
  display: block;
}

.mx_mlcia_ssm_picker_alert_error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #dc2626;
}

.mx_mlcia_ssm_picker_alert_warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #b45309;
}

.mx_mlcia_ssm_picker_alert_info {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color, #0ea5e9) 26%, transparent);
  color: var(--timeline-text-color, #111827);
}

.mx_mlcia_ssm_picker_content {
  min-height: 260px;
  overflow: auto;
  padding: 16px;
}

.mx_mlcia_ssm_picker_loading,
.mx_mlcia_ssm_picker_empty {
  align-items: center;
  color: var(--timeline-text-secondary-color, #64748b);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 260px;
  text-align: center;
}

.mx_mlcia_ssm_picker_empty strong {
  color: var(--timeline-text-color, #111827);
  font-size: 16px;
}

.mx_mlcia_ssm_picker_empty p {
  margin: 0;
  max-width: 420px;
}

.mx_mlcia_ssm_spinner {
  animation: mx_mlcia_ssm_spin 0.8s linear infinite;
  border: 3px solid color-mix(in srgb, var(--accent-color, #0ea5e9) 20%, transparent);
  border-radius: 999px;
  border-top-color: var(--accent-color, #0ea5e9);
  height: 30px;
  width: 30px;
}

.mx_mlcia_ssm_login {
  display: grid;
  gap: 14px;
  margin: 10px auto;
  max-width: 390px;
  width: 100%;
}

.mx_mlcia_ssm_login h3,
.mx_mlcia_ssm_login p {
  margin: 0;
  text-align: center;
}

.mx_mlcia_ssm_login p {
  color: var(--timeline-text-secondary-color, #64748b);
  font-size: 13px;
  line-height: 1.9;
}

.mx_mlcia_ssm_login label,
.mx_mlcia_ssm_toolbar label {
  color: var(--timeline-text-secondary-color, #64748b);
  display: grid;
  font-size: 12px;
  gap: 6px;
}

.mx_mlcia_ssm_login input,
.mx_mlcia_ssm_toolbar input,
.mx_mlcia_ssm_toolbar select {
  background: color-mix(in srgb, var(--timeline-background-color, #ffffff) 82%, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.4)) 90%, transparent);
  border-radius: 10px;
  color: var(--timeline-text-color, #111827);
  min-height: 38px;
  padding: 8px 10px;
}

.mx_mlcia_ssm_browser {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 430px;
}

.mx_mlcia_ssm_toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 190px) 1fr auto auto;
}

.mx_mlcia_ssm_toolbar form {
  display: flex;
  gap: 8px;
}

.mx_mlcia_ssm_toolbar form input {
  flex: 1;
  min-width: 120px;
}

.mx_mlcia_ssm_breadcrumbs {
  align-items: center;
  color: var(--timeline-text-secondary-color, #64748b);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.mx_mlcia_ssm_breadcrumbs button {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color, #0ea5e9) 18%, transparent);
  border-radius: 999px;
  color: var(--timeline-text-color, #111827);
  cursor: pointer;
  padding: 5px 10px;
}

.mx_mlcia_ssm_items {
  border: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.32)) 82%, transparent);
  border-radius: 14px;
  flex: 1;
  max-height: 390px;
  min-height: 250px;
  overflow: auto;
}

.mx_mlcia_ssm_item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.22)) 78%, transparent);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr auto;
  min-height: 54px;
  padding: 9px 12px;
  text-align: start;
  width: 100%;
}

.mx_mlcia_ssm_item:last-child {
  border-bottom: 0;
}

.mx_mlcia_ssm_item:hover,
.mx_mlcia_ssm_item_selected {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 10%, transparent);
}

.mx_mlcia_ssm_item_icon {
  font-size: 22px;
  text-align: center;
}

.mx_mlcia_ssm_item_main {
  min-width: 0;
}

.mx_mlcia_ssm_item_main strong,
.mx_mlcia_ssm_item_main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_ssm_item_main strong {
  font-size: 14px;
}

.mx_mlcia_ssm_item_main em {
  color: var(--timeline-text-secondary-color, #64748b);
  font-size: 12px;
  font-style: normal;
  margin-top: 3px;
}

.mx_mlcia_ssm_item_action {
  color: var(--timeline-text-secondary-color, #64748b);
  font-size: 12px;
}

.mx_mlcia_ssm_footer,
.mx_mlcia_ssm_picker_actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.mx_mlcia_ssm_footer {
  border-top: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.28)) 72%, transparent);
  padding-top: 12px;
}

.mx_mlcia_ssm_footer span {
  color: var(--timeline-text-secondary-color, #64748b);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_ssm_btn {
  background: color-mix(in srgb, var(--roomlist-background-color, #f8fafc) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--roomlist-separator-color, rgba(148, 163, 184, 0.36)) 86%, transparent);
  border-radius: 10px;
  color: var(--timeline-text-color, #111827);
  cursor: pointer;
  min-height: 38px;
  padding: 8px 12px;
}

.mx_mlcia_ssm_btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent-color, #0ea5e9) 40%, transparent);
}

.mx_mlcia_ssm_btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mx_mlcia_ssm_btn_primary {
  background: linear-gradient(135deg, var(--accent-color, #0ea5e9), color-mix(in srgb, var(--accent-color, #0ea5e9) 72%, #0f172a));
  border-color: transparent;
  color: #fff;
}

@keyframes mx_mlcia_ssm_spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 680px) {
  .mx_mlcia_ssm_picker_dialog {
    max-height: calc(100dvh - 18px);
    width: calc(100vw - 18px);
  }

  .mx_mlcia_ssm_toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .mx_mlcia_ssm_toolbar form {
    flex-direction: column;
  }

  .mx_mlcia_ssm_footer,
  .mx_mlcia_ssm_picker_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mx_mlcia_ssm_footer span,
  .mx_mlcia_ssm_footer .mx_mlcia_ssm_btn {
    width: 100%;
  }
}

body.cpd-theme-dark.mx_mlcia_login_bg_active,
.cpd-theme-dark body.mx_mlcia_login_bg_active,
body.mx_mlcia_login_tone_dark.mx_mlcia_login_bg_active {
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #94a3b8) 90%, #e2e8f0);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #94a3b8) 86%, #f8fafc);
  --mx-mlcia-bs-field-bg: rgba(15, 23, 42, 0.52);
  --mx-mlcia-bs-field-border: rgba(148, 163, 184, 0.44);
  --mx-mlcia-bs-field-border-focus: color-mix(in srgb, var(--accent-color, #0ea5e9) 80%, #93c5fd);
  --mx-mlcia-bs-btn-start: color-mix(in srgb, var(--accent-color, #0ea5e9) 72%, #1e293b);
  --mx-mlcia-bs-btn-end: color-mix(in srgb, var(--accent-color, #0ea5e9) 54%, #0f172a);
  --mx-mlcia-bs-btn-shadow: color-mix(in srgb, #0ea5e9 42%, rgba(2, 6, 23, 0.52));
  --mx-mlcia-bs-muted: #cbd5e1;
}

body.cpd-theme-light.mx_mlcia_login_bg_active,
.cpd-theme-light body.mx_mlcia_login_bg_active,
body.mx_mlcia_login_tone_light.mx_mlcia_login_bg_active {
  --mx-mlcia-login-meta-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 92%, #1f2937);
  --mx-mlcia-login-footer-text: color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 90%, #0f172a);
  --mx-mlcia-bs-field-bg: rgba(255, 255, 255, 0.76);
  --mx-mlcia-bs-field-border: rgba(15, 23, 42, 0.18);
  --mx-mlcia-bs-field-border-focus: color-mix(in srgb, var(--accent-color, #0ea5e9) 78%, #0f172a);
  --mx-mlcia-bs-btn-start: color-mix(in srgb, var(--accent-color, #0ea5e9) 86%, #0f172a);
  --mx-mlcia-bs-btn-end: color-mix(in srgb, var(--accent-color, #0ea5e9) 56%, #0f172a);
  --mx-mlcia-bs-btn-shadow: color-mix(in srgb, var(--accent-color, #0ea5e9) 46%, rgba(15, 23, 42, 0.24));
  --mx-mlcia-bs-muted: #334155;
}

body.mx_mlcia_login_bg_active .mx_AuthHeader,
body.mx_mlcia_login_bg_active .mx_AuthHeaderLogo {
  display: none !important;
}

body.mx_mlcia_login_bg_active.mx_mlcia_page_welcome .mx_AuthHeader,
body.mx_mlcia_login_bg_active.mx_mlcia_page_welcome .mx_AuthHeaderLogo {
  display: block !important;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody {
  background: transparent !important;
  border-radius: inherit !important;
  box-sizing: border-box;
  color: var(--mx-mlcia-login-field-text);
  font-size: clamp(12px, 0.75rem + 0.08vw, 14px);
  margin: 0;
  max-width: 100% !important;
  min-width: 0;
  padding: clamp(22px, 3.3vw, 34px) clamp(18px, 4vw, 38px) clamp(16px, 3vw, 28px);
  width: 100% !important;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_Field {
  margin-bottom: 14px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_text {
  margin: 0 0 18px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_fieldRow {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_fieldRow > .mx_Field {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_button-container {
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_Login_submit {
  margin: 14px 0 10px !important;
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_language {
  margin-bottom: 12px;
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_language .mx_Dropdown_input {
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_LoginWithQR {
  min-height: 0;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_LoginWithQR .mx_LoginWithQR_qrWrapper {
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_LoginWithQR .mx_LoginWithQR_buttons .mx_AccessibleButton {
  max-width: 100%;
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_InteractiveAuthEntryComponents_passwordSection {
  width: 100%;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody h1 {
  font-size: clamp(22px, 2.35vw, 28px);
  line-height: 1.3;
  margin: 0 0 8px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody h2 {
  font-size: clamp(13px, 1.18vw, 15px);
  line-height: 1.5;
  margin: 0 0 4px;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_ErrorMessage,
body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_Login_error {
  color: var(--warning-color, #dc2626) !important;
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 4px;
  text-align: start;
}

body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_Login_error.mx_Login_serverError {
  text-align: start;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody h1,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody h2 {
  color: var(--mx-mlcia-login-field-text);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field label {
  color: var(--mx-mlcia-login-field-muted);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field select,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"],
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"] {
  appearance: none;
  background: var(--mx-mlcia-login-field-bg) !important;
  border: 1px solid var(--mx-mlcia-login-field-border) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 24%, transparent);
  box-sizing: border-box;
  color: var(--mx-mlcia-login-field-text) !important;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 !important;
  min-height: 48px;
  padding: 11px 14px !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input::placeholder,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"]::placeholder,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"]::placeholder {
  color: color-mix(in srgb, var(--mx-mlcia-login-field-muted) 82%, transparent);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input:focus,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field select:focus,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"]:focus,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"]:focus {
  background: color-mix(in srgb, var(--mx-mlcia-login-field-bg) 94%, transparent) !important;
  border-color: color-mix(in srgb, var(--accent-color, #0ea5e9) 74%, var(--mx-mlcia-login-field-border)) !important;
  box-shadow: 0 0 0 3px var(--mx-mlcia-login-focus-ring), inset 0 1px 0 color-mix(in srgb, #ffffff 30%, transparent) !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody a:hover,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody a:link,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody a:visited {
  color: color-mix(in srgb, var(--accent-color, #0ea5e9) 76%, var(--mx-mlcia-login-field-text));
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"] {
  background: var(--mx-mlcia-login-btn-bg) !important;
  border: 1px solid color-mix(in srgb, var(--mx-mlcia-login-btn-bg) 78%, #ffffff) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--mx-mlcia-login-btn-bg) 36%, transparent);
  color: var(--mx-mlcia-login-btn-text) !important;
  min-height: 46px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit:hover,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind:hover,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"]:hover {
  background: var(--mx-mlcia-login-btn-bg-hover) !important;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--mx-mlcia-login-btn-bg-hover) 40%, transparent);
  transform: translateY(-1px);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit:disabled,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind:disabled,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"]:disabled {
  filter: grayscale(0.25);
  opacity: 0.72;
  transform: none;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_ServerPicker,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_Login_type_container,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_ServerPickerDialog,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_Login_forgot,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody_changeFlow,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_ButtonCreateAccount,
body.mx_mlcia_auth_custom.mx_mlcia_page_login a[href*="#/register"],
body.mx_mlcia_auth_custom.mx_mlcia_page_login a[href*="register"],
body.mx_mlcia_auth_custom.mx_mlcia_page_login a[href*="forgot-password"] {
  display: none !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_mlcia_translated_title,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_mlcia_translated_subtitle {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_mlcia_translated_title::after,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_mlcia_translated_subtitle::after {
  color: var(--mx-mlcia-login-field-text);
  display: block;
  inset: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  position: absolute;
  text-wrap: balance;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_mlcia_translated_title::after {
  content: attr(data-mlcia-title);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_mlcia_translated_subtitle::after {
  color: var(--mx-mlcia-login-field-muted);
  content: attr(data-mlcia-subtitle);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_mlcia_translated_title {
  min-height: 66px;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_mlcia_translated_subtitle {
  min-height: 24px;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody[data-mlcia-powered]::after {
  border-top: 1px dashed color-mix(in srgb, var(--roomlist-separator-color, rgba(127, 127, 127, 0.3)) 70%, transparent);
  color: var(--mx-mlcia-login-meta-text);
  content: attr(data-mlcia-powered) "\A" attr(data-mlcia-server);
  display: block;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
  opacity: 0.98;
  padding-top: 9px;
  text-align: center;
  white-space: pre-line;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody[data-mlcia-powered-dir="rtl"]::after {
  direction: rtl;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody[data-mlcia-powered-dir="ltr"]::after {
  direction: ltr;
}

body.mx_mlcia_login_bg_active .mx_AuthFooter > * {
  display: none !important;
}

body.mx_mlcia_login_bg_active .mx_AuthFooter {
  align-items: center;
  background: none !important;
  display: flex;
  justify-content: center;
  min-height: auto;
  opacity: 1 !important;
  padding: 2px 16px 8px;
  text-align: center;
}

body.mx_mlcia_login_bg_active .mx_AuthFooter::after {
  color: var(--mx-mlcia-login-footer-text);
  content: attr(data-mlcia-footer-text);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.7;
  opacity: 0.98;
}

body.mx_mlcia_login_bg_active .mx_AuthFooter[data-mlcia-footer-dir="rtl"]::after {
  direction: rtl;
}

body.mx_mlcia_login_bg_active .mx_AuthFooter[data-mlcia-footer-dir="ltr"]::after {
  direction: ltr;
}

/* Bootstrap-inspired v2 login form redesign (no external CDN). */
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthPage_modal .mx_AuthBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3.4vw, 38px) clamp(18px, 4.2vw, 38px) clamp(18px, 3.1vw, 28px);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthPage_modal .mx_AuthBody .mx_Field {
  margin: 0 !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthPage_modal .mx_AuthBody .mx_Field + .mx_Field {
  margin-top: 2px !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field label,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_type_label {
  color: var(--mx-mlcia-bs-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.025em;
  margin-bottom: 7px !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field select,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"],
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"],
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_LoginForm_username input,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_LoginForm_password input {
  background: var(--mx-mlcia-bs-field-bg) !important;
  border: 1px solid var(--mx-mlcia-bs-field-border) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 30%, transparent), 0 6px 16px color-mix(in srgb, #020617 14%, transparent);
  color: var(--mx-mlcia-login-field-text) !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.45;
  min-height: 52px !important;
  padding: 12px 16px !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input::placeholder,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"]::placeholder,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"]::placeholder {
  color: color-mix(in srgb, var(--mx-mlcia-bs-muted) 72%, transparent) !important;
  font-weight: 500;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input:focus,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field select:focus,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"]:focus,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"]:focus {
  background: color-mix(in srgb, var(--mx-mlcia-bs-field-bg) 92%, transparent) !important;
  border-color: var(--mx-mlcia-bs-field-border-focus) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mx-mlcia-bs-field-border-focus) 24%, transparent), inset 0 1px 0
      color-mix(in srgb, #ffffff 34%, transparent), 0 10px 24px color-mix(in srgb, #020617 20%, transparent) !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AuthBody_button-container {
  margin-top: 4px;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"] {
  background: linear-gradient(140deg, var(--mx-mlcia-bs-btn-start) 0%, var(--mx-mlcia-bs-btn-end) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--mx-mlcia-bs-btn-start) 76%, #ffffff) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--mx-mlcia-bs-btn-shadow) 56%, transparent), inset 0 1px 0
    color-mix(in srgb, #ffffff 36%, transparent) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  margin: 16px 0 10px !important;
  min-height: 52px !important;
  overflow: hidden;
  position: relative;
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.36);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: 100%;
  animation: mx_mlcia_login_btn_pulse 3.8s ease-in-out infinite;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit::after,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind::after,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"]::after {
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.3) 46%, transparent 75%);
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit:hover,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind:hover,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"]:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit:active,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind:active,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"]:active {
  transform: translateY(0);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AuthBody_text,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AuthBody_changeFlow,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AuthBody_did-not-receive,
body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_smallError,
body.mx_mlcia_login_bg_active .mx_AuthFooter::after {
  color: var(--mx-mlcia-login-footer-text) !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody[data-mlcia-powered]::after {
  color: var(--mx-mlcia-login-footer-text) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.85;
  opacity: 1;
}

body.mx_mlcia_login_bg_active .mx_AuthFooter::after {
  font-size: clamp(12px, 0.78rem + 0.1vw, 13px);
  font-weight: 600;
  text-shadow: 0 1px 10px color-mix(in srgb, #020617 24%, transparent);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome {
  --mx-mlcia-welcome-text: var(--mx-mlcia-login-field-text);
  --mx-mlcia-welcome-muted: var(--mx-mlcia-login-field-muted);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody {
  padding: clamp(22px, 4vw, 36px) clamp(18px, 4.5vw, 40px) clamp(20px, 3.8vw, 30px);
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_mlcia_welcome_title,
body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_WelcomePage .mx_mlcia_welcome_title,
body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_Welcome .mx_mlcia_welcome_title {
  color: var(--mx-mlcia-welcome-text) !important;
  font-size: clamp(22px, 2.1vw, 29px) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 1.45 !important;
  margin: 0 0 12px !important;
  text-wrap: balance;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_mlcia_welcome_subtitle,
body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_WelcomePage .mx_mlcia_welcome_subtitle,
body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_Welcome .mx_mlcia_welcome_subtitle {
  color: var(--mx-mlcia-welcome-muted) !important;
  font-size: clamp(13px, 1.02vw, 16px) !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
  margin: 0 0 16px !important;
  overflow-wrap: anywhere;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_text {
  color: var(--mx-mlcia-welcome-muted) !important;
  font-size: clamp(13px, 0.92vw, 15px) !important;
  line-height: 1.75 !important;
  margin: 0 0 16px !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_AccessibleButton,
body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody button,
body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_Login_submit {
  font-size: 14px !important;
  min-height: 44px !important;
}

body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody[data-mlcia-powered]::after {
  margin-top: 14px;
}

@media (max-width: 640px) {
  body.mx_mlcia_login_bg_active .mx_AuthPage {
    padding: 10px 8px 18px;
  }

  body.mx_mlcia_login_bg_active .mx_AuthPage_modal {
    border-radius: 16px;
    width: min(620px, calc(100vw - 12px));
  }

  body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody {
    padding: 16px 14px;
  }

  body.mx_mlcia_login_bg_active .mx_AuthPage_modal .mx_AuthBody .mx_AuthBody_fieldRow {
    flex-direction: column;
    gap: 0;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody {
    padding: 18px 14px 16px;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_mlcia_welcome_title {
    font-size: clamp(20px, 5.3vw, 24px) !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_welcome .mx_AuthPage_modal .mx_AuthBody .mx_mlcia_welcome_subtitle {
    font-size: clamp(13px, 3.55vw, 15px) !important;
    line-height: 1.82 !important;
    margin-bottom: 12px !important;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthPage_modal .mx_AuthBody {
    gap: 10px;
    padding: 18px 14px 16px;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field input,
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Field select,
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="text"],
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody input[type="password"] {
    border-radius: 12px !important;
    font-size: 14px !important;
    min-height: 48px !important;
    padding: 11px 14px !important;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit,
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind,
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"] {
    border-radius: 12px !important;
    min-height: 48px !important;
  }
}

@media (max-height: 760px) {
  body.mx_mlcia_login_bg_active .mx_AuthPage {
    justify-content: flex-start;
  }

  body.mx_mlcia_login_bg_active .mx_AuthPage_modal {
    margin-top: 8px;
    max-height: min(94vh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mx_mlcia_login_bg_active .mx_AuthPage_modal,
  body.mx_mlcia_login_bg_active .mx_AuthPage_modal::before {
    animation: none !important;
    transition: none !important;
  }

  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_Login_submit,
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody .mx_AccessibleButton.mx_AccessibleButton_hasKind,
  body.mx_mlcia_auth_custom.mx_mlcia_page_login .mx_AuthBody button[type="submit"] {
    animation: none !important;
  }
}

@keyframes mx_mlcia_login_modal_rise {
  0% {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(58px) scale(0.97);
  }
  62% {
    filter: blur(1px);
    opacity: 1;
    transform: translateY(-5px) scale(1.005);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mx_mlcia_login_btn_pulse {
  0%,
  100% {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--mx-mlcia-bs-btn-shadow) 46%, transparent), inset 0 1px 0
      color-mix(in srgb, #ffffff 30%, transparent);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 14px 30px color-mix(in srgb, var(--mx-mlcia-bs-btn-shadow) 58%, transparent), inset 0 1px 0
      color-mix(in srgb, #ffffff 40%, transparent);
    transform: translateY(-1px);
  }
}

@keyframes mx_mlcia_login_water_drain {
  0% {
    opacity: 0.95;
    transform: translateY(0);
  }
  70% {
    opacity: 0.52;
    transform: translateY(-62%);
  }
  100% {
    opacity: 0;
    transform: translateY(-112%);
  }
}

/* Force built-in Light/Dark themes to keep Vazir-Bold as default (same as custom themes). */
.cpd-theme-light.cpd-theme-light,
.cpd-theme-dark.cpd-theme-dark,
body.cpd-theme-light,
body.cpd-theme-dark,
html.cpd-theme-light,
html.cpd-theme-dark {
  --font-family: "Vazir-Bold", sans-serif !important;
  --cpd-font-family-sans: "Vazir-Bold", var(--emoji-font-family), "Apple Color Emoji", "Segoe UI Emoji", "Arial",
    "Helvetica", sans-serif, "Noto Color Emoji" !important;
}

.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content > .mx_MImageBody,
.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content > .mx_MVideoBody,
.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content > .mx_MAudioBody,
.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content > .mx_MFileBody {
  display: block;
  margin: 0;
}

.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_caption {
  background: var(--backgroundColor);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.35));
  border-radius: 0 0 var(--cornerRadius) var(--cornerRadius);
  border-top: 0;
  box-sizing: border-box;
  line-height: 1.55;
  margin-top: -8px;
  overflow-wrap: anywhere;
  padding: 10px 12px 11px;
  width: 100%;
}

.mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_caption .mx_EventTile_body {
  margin: 0;
}

@supports selector(.mx_EventTile_content:has(> .mx_EventTile_caption)) {
  .mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content:has(
      > .mx_EventTile_caption
    )
    > .mx_MImageBody
    .mx_MImageBody_thumbnail_container,
  .mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content:has(
      > .mx_EventTile_caption
    )
    > .mx_MVideoBody
    .mx_MVideoBody_container {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .mx_EventTile[data-layout="bubble"] .mx_EventTile_line.mx_EventTile_mediaLine .mx_EventTile_content:has(
      > .mx_EventTile_caption
    )
    > .mx_EventTile_caption {
    margin-top: 0;
  }
}

.mx_mlcia_room_verified_badge {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 1;
  vertical-align: middle;
}

.mx_mlcia_room_verified_badge svg {
  display: block;
}

.mx_RoomHeader_heading .mx_mlcia_room_verified_badge {
  margin-inline-start: 0;
}

.mx_RoomSummaryCard_roomName .mx_mlcia_room_verified_badge,
.mx_RoomPreviewCard_name .mx_mlcia_room_verified_badge {
  margin-inline-start: 4px;
  padding: 0;
}

.mx_RoomListItemView_roomName .mx_mlcia_room_verified_badge,
.mx_RoomTile_name .mx_mlcia_room_verified_badge {
  margin-inline-start: 4px;
  padding: 0;
}

.mx_mlcia_verify_toggle {
  align-items: center !important;
  column-gap: 10px;
  display: flex !important;
}

.mx_mlcia_verify_toggle .mx_mlcia_verify_toggle_marker {
  align-items: center;
  background: transparent;
  border: 1.5px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.4));
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--accent-color);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 16px;
  justify-content: center;
  line-height: 1;
  min-width: 16px;
  width: 16px;
}

.mx_mlcia_verify_toggle .mx_mlcia_verify_toggle_label {
  flex: 1 1 auto;
  min-width: 0;
}

.mx_mlcia_verify_toggle.mx_mlcia_verify_toggle_checked .mx_mlcia_verify_toggle_marker {
  background: color-mix(in srgb, var(--accent-color) 16%, transparent);
  border-color: var(--accent-color);
}

.mx_mlcia_verify_toggle.mx_mlcia_verify_toggle_busy {
  opacity: 0.75;
}

.mx_mlcia_story_strip_wrapper {
  position: relative;
  background: var(--cpd-color-bg-canvas-default, #ffffff);
  border-bottom: 1px solid var(--cpd-color-gray-400, #d0d7df);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 12px 12px;
  padding: 12px 0 10px;
  flex-shrink: 0;
}

.mx_mlcia_story_strip_header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mx_mlcia_story_strip_title {
  color: var(--cpd-color-text-secondary, #334155);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.mx_mlcia_story_strip_scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.mx_mlcia_story_strip_scroller::-webkit-scrollbar {
  height: 6px;
}

.mx_mlcia_story_strip_scroller::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--cpd-color-text-secondary, #64748b) 20%, transparent);
  border-radius: 999px;
}

.mx_mlcia_story_chip {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--cpd-color-text-primary, #0f172a);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 66px;
  padding: 2px 0;
}

.mx_mlcia_story_chip_avatar_wrap {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  padding: 2px;
  background: color-mix(in srgb, var(--cpd-color-gray-400, #cbd5e1) 45%, transparent);
}

.mx_mlcia_story_chip_unseen .mx_mlcia_story_chip_avatar_wrap {
  background: linear-gradient(135deg, #2ec4ff 0%, #00b894 100%);
}

.mx_mlcia_story_chip_mine .mx_mlcia_story_chip_avatar_wrap {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
}

.mx_mlcia_story_chip_avatar {
  align-items: center;
  background: var(--cpd-color-bg-canvas-default, #fff);
  border-radius: 999px;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  width: 50px;
}

.mx_mlcia_story_chip_avatar_image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mx_mlcia_story_chip_avatar_initials {
  color: var(--cpd-color-text-secondary, #475569);
  font-size: 12px;
}

.mx_mlcia_story_chip_plus {
  color: var(--cpd-color-text-action-accent, #0284c7);
  font-size: 28px;
  line-height: 1;
}

.mx_mlcia_story_chip_label {
  color: var(--cpd-color-text-secondary, #334155);
  font-size: 11px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_story_empty {
  align-items: center;
  display: inline-flex;
  min-height: 62px;
}

.mx_mlcia_story_empty_text {
  color: var(--cpd-color-text-secondary, #64748b);
  font-size: 12px;
}

.mx_mlcia_story_viewer,
.mx_mlcia_story_composer {
  inset: 0;
  position: fixed;
  z-index: 4100;
}

.mx_mlcia_story_viewer_backdrop,
.mx_mlcia_story_composer_backdrop {
  background: rgba(9, 14, 24, 0.82);
  inset: 0;
  position: absolute;
}

.mx_mlcia_story_viewer_dialog {
  background: #0f172a;
  border-radius: 16px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  height: min(90vh, 820px);
  left: 50%;
  max-width: min(94vw, 460px);
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.mx_mlcia_story_viewer_top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 0;
}

.mx_mlcia_story_viewer_progress {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
}

.mx_mlcia_story_viewer_progress_part {
  background: rgba(203, 213, 225, 0.36);
  border-radius: 999px;
  display: block;
  height: 3px;
}

.mx_mlcia_story_viewer_progress_part_done {
  background: #f8fafc;
}

.mx_mlcia_story_viewer_meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mx_mlcia_story_viewer_owner_info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mx_mlcia_story_viewer_owner {
  font-size: 13px;
  font-weight: 500;
}

.mx_mlcia_story_viewer_time {
  color: rgba(248, 250, 252, 0.7);
  font-size: 11px;
}

.mx_mlcia_story_viewer_close {
  background: transparent;
  border: 0;
  color: #f8fafc;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 2px 6px;
}

.mx_mlcia_story_viewer_stage {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
  padding: 12px 8px;
  overflow: hidden;
}

.mx_mlcia_story_nav {
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 999px;
  color: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 48px;
  justify-content: center;
  width: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease;
  z-index: 10;
}

.mx_mlcia_story_nav:hover {
  background: rgba(15, 23, 42, 0.9);
}

.mx_mlcia_story_nav_prev {
  left: 16px;
}

.mx_mlcia_story_nav_next {
  right: 16px;
}

.mx_mlcia_story_viewer_media_wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.mx_mlcia_story_viewer_media {
  border-radius: 14px;
  display: block;
  max-height: 100%;
  max-width: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  min-width: 0;
  flex-shrink: 1;
}

.mx_mlcia_story_viewer_placeholder {
  align-items: center;
  border: 1px dashed rgba(203, 213, 225, 0.45);
  border-radius: 14px;
  color: #cbd5e1;
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 260px;
  width: 100%;
}

.mx_mlcia_story_viewer_caption {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.6;
  max-height: 24vh;
  overflow: auto;
  padding: 0 2px;
  text-align: center;
  white-space: pre-wrap;
  width: 100%;
}

.mx_mlcia_story_composer_dialog {
  background: var(--cpd-color-bg-canvas-default, #ffffff);
  border-radius: 14px;
  color: var(--cpd-color-text-primary, #0f172a);
  left: 50%;
  max-width: min(92vw, 480px);
  padding: 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.mx_mlcia_story_composer_title {
  font-size: 16px;
  margin: 0 0 12px;
}

.mx_mlcia_story_composer_text {
  border: 1px solid var(--cpd-color-gray-400, #cbd5e1);
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 14px;
  min-height: 90px;
  outline: none;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.mx_mlcia_story_composer_file {
  align-items: center;
  background: color-mix(in srgb, var(--cpd-color-bg-subtle-secondary, #f1f5f9) 70%, transparent);
  border: 1px dashed var(--cpd-color-gray-400, #cbd5e1);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  min-height: 52px;
  position: relative;
}

.mx_mlcia_story_composer_file input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.mx_mlcia_story_composer_files {
  color: var(--cpd-color-text-secondary, #475569);
  font-size: 12px;
  margin-top: 8px;
  min-height: 17px;
}

.mx_mlcia_story_composer_progress {
  color: var(--cpd-color-text-secondary, #334155);
  font-size: 12px;
  margin-top: 8px;
  min-height: 17px;
}

.mx_mlcia_story_composer_actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.mx_mlcia_story_btn {
  background: var(--cpd-color-bg-action-primary-rest, #0284c7);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  min-width: 112px;
  padding: 7px 14px;
}

.mx_mlcia_story_btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.mx_mlcia_story_btn_ghost {
  background: transparent;
  border: 1px solid var(--cpd-color-gray-400, #cbd5e1);
  color: var(--cpd-color-text-primary, #0f172a);
}

@media (max-width: 768px) {
  .mx_mlcia_story_strip_wrapper {
    margin: 0 10px 6px;
  }

  .mx_mlcia_story_chip {
    min-width: 60px;
  }

  .mx_mlcia_story_chip_avatar {
    height: 46px;
    width: 46px;
  }

  .mx_mlcia_story_viewer_dialog {
    border-radius: 0;
    height: 100vh;
    max-width: 100vw;
  }
}

/* Reaction Bar */
.mx_mlcia_story_reaction_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  margin-top: 12px;
}

.mx_mlcia_quick_reaction {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.mx_mlcia_quick_reaction:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.15);
}

.mx_mlcia_quick_reaction.mx_mlcia_reaction_active {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
  transform: scale(1.2);
}

.mx_mlcia_reaction_more {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #fff;
}

.mx_mlcia_reaction_more:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Reaction Picker */
.mx_mlcia_reaction_picker {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  z-index: 1000;
}

.mx_mlcia_picker_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.mx_mlcia_picker_close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
}

.mx_mlcia_picker_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mx_mlcia_picker_emoji {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 28px;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.mx_mlcia_picker_emoji:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.mx_mlcia_picker_emoji.mx_mlcia_reaction_active {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

/* Reaction Summary (for story owner) */
.mx_mlcia_story_reaction_summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mx_mlcia_story_reaction_summary:hover {
  background: rgba(0, 0, 0, 0.5);
}

.mx_mlcia_reaction_summary_item {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.mx_mlcia_reaction_total {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-right: 4px;
}

/* Reactions Modal */
.mx_mlcia_reactions_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.mx_mlcia_reactions_modal {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.mx_mlcia_reactions_modal_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mx_mlcia_reactions_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mx_mlcia_reactions_modal_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.mx_mlcia_reactions_modal_close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.mx_mlcia_reactions_modal_body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.mx_mlcia_reactions_empty {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 15px;
}

.mx_mlcia_reactions_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mx_mlcia_reaction_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mx_mlcia_reaction_item:last-child {
  border-bottom: none;
}

.mx_mlcia_reaction_emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.mx_mlcia_reaction_user {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_reaction_time {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}

/* Reply Button */
.mx_mlcia_story_reply_btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #fff;
  margin-right: 4px;
}

.mx_mlcia_story_reply_btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Reply Modal */
.mx_mlcia_reply_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.mx_mlcia_reply_modal {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.mx_mlcia_reply_modal_content {
  display: flex;
  flex-direction: column;
}

.mx_mlcia_reply_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mx_mlcia_reply_modal_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.mx_mlcia_reply_modal_close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.mx_mlcia_reply_modal_body {
  padding: 20px;
}

.mx_mlcia_reply_story_preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 16px;
}

.mx_mlcia_reply_preview_img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mx_mlcia_reply_preview_placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.mx_mlcia_reply_preview_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mx_mlcia_reply_preview_owner {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_reply_preview_body {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_reply_textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  box-sizing: border-box;
}

.mx_mlcia_reply_textarea:focus {
  outline: none;
  border-color: #0dbd8b;
}

.mx_mlcia_reply_actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.mx_mlcia_reply_cancel,
.mx_mlcia_reply_send {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx_mlcia_reply_cancel {
  background: #f0f0f0;
  color: #666;
}

.mx_mlcia_reply_cancel:hover {
  background: #e0e0e0;
}

.mx_mlcia_reply_send {
  background: #0dbd8b;
  color: #fff;
}

.mx_mlcia_reply_send:hover {
  background: #0aa876;
}

.mx_mlcia_reply_send:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Mentions */
.mx_mlcia_mention {
  color: #0dbd8b;
  font-weight: 600;
  background: rgba(13, 189, 139, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mx_mlcia_mention:hover {
  background: rgba(13, 189, 139, 0.2);
}

.mx_mlcia_story_viewer_caption .mx_mlcia_mention {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.mx_mlcia_story_viewer_caption .mx_mlcia_mention:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Story Owner Bar */
.mx_mlcia_story_owner_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.mx_mlcia_story_stats_btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 16px;
  transition: background 0.2s ease;
  font-weight: 500;
}

.mx_mlcia_story_stats_btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Stats Modal */
.mx_mlcia_stats_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.mx_mlcia_stats_modal {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.mx_mlcia_stats_modal_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mx_mlcia_stats_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mx_mlcia_stats_modal_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.mx_mlcia_stats_modal_close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.mx_mlcia_stats_modal_body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mx_mlcia_stats_summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mx_mlcia_stat_card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mx_mlcia_stat_icon {
  font-size: 32px;
  flex-shrink: 0;
}

.mx_mlcia_stat_info {
  flex: 1;
}

.mx_mlcia_stat_value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}

.mx_mlcia_stat_label {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.mx_mlcia_stats_section {
  margin-top: 8px;
}

.mx_mlcia_stats_section h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 12px 0;
}

.mx_mlcia_stats_empty {
  text-align: center;
  color: #999;
  padding: 20px;
  font-size: 15px;
}

.mx_mlcia_viewers_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mx_mlcia_viewer_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mx_mlcia_viewer_item:last-child {
  border-bottom: none;
}

.mx_mlcia_viewer_name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.mx_mlcia_viewer_time {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
  margin-right: 12px;
}

@media (max-width: 768px) {
  .mx_mlcia_stats_summary {
    grid-template-columns: 1fr;
  }
  
  .mx_mlcia_stat_card {
    padding: 12px;
  }
}

/* Highlight Button */
.mx_mlcia_story_highlight_btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 16px;
  transition: background 0.2s ease;
  font-weight: 500;
}

.mx_mlcia_story_highlight_btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Highlight Modal */
.mx_mlcia_highlight_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.mx_mlcia_highlight_modal {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.mx_mlcia_highlight_modal_content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mx_mlcia_highlight_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.mx_mlcia_highlight_modal_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.mx_mlcia_highlight_modal_close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.mx_mlcia_highlight_modal_body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mx_mlcia_highlight_empty {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 15px;
}

.mx_mlcia_highlight_list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.mx_mlcia_highlight_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx_mlcia_highlight_item:hover {
  background: #f8f9fa;
  border-color: #0dbd8b;
}

.mx_mlcia_highlight_title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.mx_mlcia_highlight_count {
  font-size: 13px;
  color: #999;
  margin-right: 12px;
}

.mx_mlcia_highlight_new_btn {
  width: 100%;
  padding: 12px;
  background: #0dbd8b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mx_mlcia_highlight_new_btn:hover {
  background: #0aa876;
}

.mx_mlcia_highlight_input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.mx_mlcia_highlight_input:focus {
  outline: none;
  border-color: #0dbd8b;
}

.mx_mlcia_highlight_actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.mx_mlcia_highlight_cancel,
.mx_mlcia_highlight_create {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx_mlcia_highlight_cancel {
  background: #f0f0f0;
  color: #666;
}

.mx_mlcia_highlight_cancel:hover {
  background: #e0e0e0;
}

.mx_mlcia_highlight_create {
  background: #0dbd8b;
  color: #fff;
}

.mx_mlcia_highlight_create:hover {
  background: #0aa876;
}

.mx_mlcia_highlight_create:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Sticker System */
.mx_mlcia_story_composer_sticker_section {
  margin: 16px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.mx_mlcia_story_composer_selected_stickers {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mx_mlcia_story_selected_sticker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 18px;
}

.mx_mlcia_story_sticker_remove {
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mx_mlcia_story_sticker_remove:hover {
  background: #cc0000;
}

.mx_mlcia_story_sticker_picker {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  max-height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 10001;
}

.mx_mlcia_story_sticker_picker_header {
  padding: 16px;
  background: #0dbd8b;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.mx_mlcia_story_sticker_picker_content {
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.mx_mlcia_story_sticker_pack {
  margin-bottom: 20px;
}

.mx_mlcia_story_sticker_pack_title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0dbd8b;
}

.mx_mlcia_story_sticker_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
}

.mx_mlcia_story_sticker_item {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mx_mlcia_story_sticker_item:hover {
  background: #e9ecef;
  border-color: #0dbd8b;
  transform: scale(1.1);
}

.mx_mlcia_story_sticker_overlay {
  position: absolute;
  font-size: 48px;
  pointer-events: none;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image Editor */
.mx_mlcia_image_editor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mx_mlcia_image_editor_backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.mx_mlcia_image_editor_dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.mx_mlcia_image_editor_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #0dbd8b;
  color: #fff;
}

.mx_mlcia_image_editor_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.mx_mlcia_image_editor_close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mx_mlcia_image_editor_close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mx_mlcia_image_editor_canvas_wrap {
  flex: 1;
  overflow: auto;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mx_mlcia_image_editor_canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mx_mlcia_image_editor_tools {
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mx_mlcia_image_editor_section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mx_mlcia_image_editor_section label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mx_mlcia_image_editor_filter {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.mx_mlcia_image_editor_filter:focus {
  outline: none;
  border-color: #0dbd8b;
}

.mx_mlcia_image_editor_slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.mx_mlcia_image_editor_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0dbd8b;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mx_mlcia_image_editor_slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.mx_mlcia_image_editor_slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0dbd8b;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.mx_mlcia_image_editor_slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.mx_mlcia_image_editor_actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.mx_mlcia_edit_image_btn {
  background: #0dbd8b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.2s ease;
}

.mx_mlcia_edit_image_btn:hover {
  background: #0aa876;
}

.mx_mlcia_message_action_button {
  align-items: center;
  display: inline-flex !important;
  justify-content: center;
}

.mx_mlcia_message_action_button svg {
  display: block;
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.mx_mlcia_message_action_button_busy {
  opacity: 0.7;
}

.mx_mlcia_caption_modal_backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 6000;
}

.mx_mlcia_caption_modal {
  background: var(--timeline-background-color, #fff);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.28));
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  color: var(--timeline-text-color, #111827);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(640px, 86vh);
  max-width: min(580px, 94vw);
  padding: 18px;
  width: 100%;
}

.mx_mlcia_caption_modal_header {
  font-size: 15px;
}

.mx_mlcia_caption_modal_form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.mx_mlcia_caption_modal_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(400px, 54vh);
  overflow: auto;
  padding-inline-end: 4px;
}

.mx_mlcia_caption_modal_row {
  background: color-mix(in srgb, var(--timeline-highlights-color, #f8fafc) 60%, transparent);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.24));
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.mx_mlcia_caption_modal_preview {
  align-items: center;
  background: color-mix(in srgb, var(--timeline-background-color, #fff) 82%, transparent);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.2));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.mx_mlcia_caption_modal_preview_media {
  border-radius: 6px;
  display: block;
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.mx_mlcia_caption_modal_preview_file {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.mx_mlcia_caption_modal_preview_meta {
  color: var(--timeline-text-secondary-color, #64748b);
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_caption_modal_filename {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_caption_modal_input {
  background: var(--timeline-background-color, #fff);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.35));
  border-radius: 8px;
  color: var(--timeline-text-color, #111827);
  font: inherit;
  line-height: 1.45;
  min-height: 64px;
  outline: none;
  padding: 8px 10px;
  resize: vertical;
}

.mx_mlcia_caption_modal_input:focus {
  border-color: var(--accent-color, #0ea5e9);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color, #0ea5e9) 18%, transparent);
}

.mx_mlcia_caption_modal_actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.mx_mlcia_caption_modal_btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  min-height: 36px;
  padding: 0 14px;
}

.mx_mlcia_caption_modal_btn_cancel {
  background: color-mix(in srgb, var(--timeline-highlights-color, #e2e8f0) 65%, transparent);
  color: var(--timeline-text-color, #1f2937);
}

.mx_mlcia_caption_modal_btn_submit {
  background: var(--accent-color, #0ea5e9);
  color: #fff;
}

.mx_MatrixChat_splash {
  --mx-splash-bg-base: var(--timeline-background-color, #ffffff);
  --mx-splash-bg-subtle: var(--cpd-color-bg-canvas-default, #f8fafc);
  --mx-splash-highlight: var(--timeline-highlights-color, #eef2ff);
  --mx-splash-text: var(--timeline-text-color, #0f172a);
  --mx-splash-text-muted: var(--timeline-text-secondary-color, #475569);
  --mx-splash-border: var(--roomlist-separator-color, rgba(127, 127, 127, 0.32));
  --mx-splash-danger: var(--warning-color, #dc2626);
  align-items: center;
  background:
    radial-gradient(circle at 18% 15%, color-mix(in srgb, var(--accent-color, #0ea5e9) 14%, transparent) 0, transparent 40%),
    linear-gradient(160deg, color-mix(in srgb, var(--mx-splash-bg-base) 94%, var(--mx-splash-bg-subtle)) 0%, var(--mx-splash-bg-base) 100%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
  padding: 24px;
  position: relative;
  animation: mx_mlcia_splash_fade 0.45s ease-out;
}

.mx_MatrixChat_splash::before {
  background: url("/ssm-org-logo.png?v=20260509a") center / contain no-repeat;
  content: "";
  display: block;
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--mx-splash-text) 16%, transparent));
  height: 112px;
  transform-origin: 50% 50%;
  width: 112px;
  animation: mx_mlcia_splash_logo 2.8s ease-in-out infinite;
}

.mx_MatrixChat_splash::after {
  color: var(--mx-splash-text-muted);
  content: "Loading secure workspace";
  display: block;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-top: 2px;
  opacity: 0.92;
}

.mx_MatrixChat_splash .mx_Spinner,
.mx_MatrixChat_splash .mx_LoginSplashView_migrationProgress {
  background: color-mix(in srgb, var(--mx-splash-bg-base) 94%, transparent);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--mx-splash-text) 9%, transparent);
  color: var(--mx-splash-text);
  min-width: min(500px, calc(100vw - 48px));
  padding: 14px 18px;
}

.mx_MatrixChat_splash .mx_LoginSplashView_migrationProgress > p {
  color: var(--mx-splash-text-muted);
  margin: 0 0 10px;
}

.mx_MatrixChat_splash .mx_ProgressBar {
  height: 10px;
}

.mx_MatrixChat_splash .mx_LoginSplashView_splashButtons {
  margin-top: 4px;
  position: static;
  text-align: center;
  width: auto;
}

.mx_MatrixChat_splash .mx_LoginSplashView_splashButtons .mx_AccessibleButton_kind_link_inline {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 12%, var(--mx-splash-bg-base));
  border: 1px solid color-mix(in srgb, var(--accent-color, #0ea5e9) 36%, var(--mx-splash-border));
  border-radius: 999px;
  color: var(--mx-splash-text);
  display: inline-flex;
  min-height: 36px;
  padding: 0 16px;
  text-decoration: none;
}

.mx_MatrixChat_splash .mx_LoginSplashView_splashButtons .mx_AccessibleButton_kind_link_inline:hover {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 22%, var(--mx-splash-bg-base));
}

.mx_MatrixChat_splash .mx_LoginSplashView_syncError {
  background: color-mix(in srgb, var(--mx-splash-danger) 82%, #4c0519);
  border: 1px solid color-mix(in srgb, var(--mx-splash-danger) 60%, var(--mx-splash-border));
  border-radius: 10px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--mx-splash-danger) 32%, transparent);
  color: #fff;
  left: auto;
  margin-bottom: 10px;
  max-width: min(680px, calc(100vw - 48px));
  padding: 14px 16px;
  position: static;
  top: auto;
  transform: none;
}

@keyframes mx_mlcia_splash_logo {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.015);
  }
}

@keyframes mx_mlcia_splash_fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .mx_MatrixChat_splash {
    padding: 20px 14px;
  }

  .mx_MatrixChat_splash::before {
    height: 90px;
    width: 90px;
  }

  .mx_MatrixChat_splash .mx_Spinner,
  .mx_MatrixChat_splash .mx_LoginSplashView_migrationProgress {
    min-width: 0;
    width: 100%;
  }
}

.mx_mlcia_custom_theme_setting {
  align-items: center;
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.25));
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px;
}

.mx_mlcia_shared_theme_setting {
  align-items: flex-start;
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.25));
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.mx_mlcia_custom_theme_setting_body {
  min-width: 0;
}

.mx_mlcia_shared_theme_setting_body {
  min-width: 0;
}

.mx_mlcia_custom_theme_setting_title {
  color: var(--timeline-text-color, #111827);
  font-size: 14px;
}

.mx_mlcia_custom_theme_setting_desc {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 12px;
  margin-top: 4px;
}

.mx_mlcia_shared_theme_controls {
  display: grid;
  gap: 8px;
  width: 100%;
}

.mx_mlcia_shared_theme_select {
  background: color-mix(in srgb, var(--timeline-background-color, #fff) 96%, transparent);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.34));
  border-radius: 9px;
  color: var(--timeline-text-color, #111827);
  font-size: 12px;
  min-height: 34px;
  padding: 6px 10px;
  width: 100%;
}

.mx_mlcia_shared_theme_buttons {
  display: flex;
  gap: 8px;
}

.mx_mlcia_shared_theme_btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  min-height: 32px;
  padding: 0 12px;
}

.mx_mlcia_shared_theme_btn_apply {
  background: var(--accent-color, #0ea5e9);
  color: #fff;
}

.mx_mlcia_shared_theme_btn_refresh {
  background: color-mix(in srgb, var(--timeline-highlights-color, #e2e8f0) 68%, transparent);
  color: var(--timeline-text-color, #111827);
}

.mx_mlcia_shared_theme_status {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 11px;
  min-height: 16px;
}

.mx_mlcia_shared_theme_status[data-error="1"] {
  color: var(--warning-color, #dc2626);
}

.mx_mlcia_custom_theme_switch {
  cursor: pointer;
  display: inline-flex;
  position: relative;
}

.mx_mlcia_custom_theme_switch input {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.mx_mlcia_custom_theme_switch_slider {
  background: color-mix(in srgb, var(--roomlist-separator-color, #cbd5e1) 65%, transparent);
  border-radius: 999px;
  display: inline-block;
  height: 24px;
  position: relative;
  transition: 0.2s ease;
  width: 44px;
}

.mx_mlcia_custom_theme_switch_slider::before {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: 0.2s ease;
  width: 18px;
}

.mx_mlcia_custom_theme_switch input:checked + .mx_mlcia_custom_theme_switch_slider {
  background: var(--accent-color, #0ea5e9);
}

.mx_mlcia_custom_theme_switch input:checked + .mx_mlcia_custom_theme_switch_slider::before {
  transform: translateX(20px);
}

.mx_mlcia_theme_editor {
  background: color-mix(in srgb, var(--timeline-background-color, #fff) 94%, transparent);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.32));
  border-radius: 14px;
  bottom: 88px;
  box-shadow: 0 20px 52px color-mix(in srgb, var(--timeline-text-color, #0f172a) 15%, transparent);
  left: 18px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
  position: fixed;
  width: min(360px, calc(100vw - 36px));
  z-index: 3200;
}

.mx_mlcia_theme_editor_header {
  border-bottom: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.25));
  cursor: move;
  padding: 12px 12px 10px;
  user-select: none;
}

.mx_mlcia_theme_editor_header h3 {
  color: var(--timeline-text-color, #111827);
  font-size: 15px;
  margin: 0;
}

.mx_mlcia_theme_editor_header p {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 12px;
  margin: 5px 0 0;
}

.mx_mlcia_theme_editor_drag_label {
  color: var(--timeline-text-secondary-color, #64748b);
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-top: 7px;
  text-transform: uppercase;
}

.mx_mlcia_theme_editor_list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 290px);
  overflow: auto;
  padding: 10px;
}

.mx_mlcia_theme_editor_row {
  align-items: center;
  background: color-mix(in srgb, var(--timeline-highlights-color, #f1f5f9) 62%, transparent);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.28));
  border-radius: 10px;
  color: var(--timeline-text-color, #111827);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
}

.mx_mlcia_theme_editor_row:hover {
  background: color-mix(in srgb, var(--accent-color, #0ea5e9) 10%, var(--timeline-highlights-color, #f8fafc));
}

.mx_mlcia_theme_editor_name {
  flex: 1 1 auto;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_theme_editor_right {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-inline-start: 8px;
}

.mx_mlcia_theme_editor_swatch {
  border: 1px solid color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 35%, transparent);
  border-radius: 6px;
  display: inline-block;
  height: 18px;
  width: 24px;
}

.mx_mlcia_theme_editor_value {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 11px;
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx_mlcia_theme_editor_actions {
  align-items: center;
  backdrop-filter: blur(4px);
  background: color-mix(in srgb, var(--timeline-background-color, #fff) 90%, transparent);
  border-top: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.3));
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  left: 0;
  padding: 12px 18px;
  position: fixed;
  right: 0;
  z-index: 3210;
}

.mx_mlcia_theme_editor_btn {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  min-height: 38px;
  padding: 0 16px;
}

.mx_mlcia_theme_editor_btn_cancel {
  background: color-mix(in srgb, var(--timeline-highlights-color, #e2e8f0) 68%, transparent);
  color: var(--timeline-text-color, #111827);
}

.mx_mlcia_theme_editor_btn_reset {
  background: color-mix(in srgb, var(--room-highlight-color, #d8f1fb) 72%, transparent);
  color: var(--timeline-text-color, #111827);
}

.mx_mlcia_theme_editor_btn_save {
  background: var(--accent-color, #0ea5e9);
  color: #fff;
}

.mx_mlcia_theme_editor_popover {
  background: color-mix(in srgb, var(--timeline-background-color, #fff) 95%, transparent);
  border: 1px solid var(--roomlist-separator-color, rgba(127, 127, 127, 0.34));
  border-radius: 12px;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--timeline-text-color, #0f172a) 20%, transparent);
  max-width: min(320px, calc(100vw - 16px));
  padding: 10px;
  position: fixed;
  width: 300px;
  z-index: 3220;
}

.mx_mlcia_theme_editor_popover_header {
  align-items: center;
  cursor: move;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mx_mlcia_theme_editor_popover_title {
  color: var(--timeline-text-color, #111827);
  font-size: 13px;
}

.mx_mlcia_theme_editor_popover_drag {
  color: var(--timeline-text-secondary-color, #64748b);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mx_mlcia_theme_editor_palette {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 10px;
}

.mx_mlcia_theme_editor_palette_btn {
  border: 1px solid color-mix(in srgb, var(--timeline-text-secondary-color, #475569) 26%, transparent);
  border-radius: 999px;
  cursor: pointer;
  height: 24px;
  width: 100%;
}

.mx_mlcia_theme_editor_picker_row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mx_mlcia_theme_editor_picker_row span {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 12px;
}

.mx_mlcia_theme_editor_picker_row input[type=\"color\"] {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 30px;
  padding: 0;
  width: 48px;
}

.mx_mlcia_theme_editor_slider_row {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.mx_mlcia_theme_editor_slider_row label {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 12px;
}

.mx_mlcia_theme_editor_slider_value {
  color: var(--timeline-text-color, #111827);
  font-size: 12px;
  justify-self: end;
  margin-top: -22px;
}

.mx_mlcia_theme_editor_slider_row input[type=\"range\"] {
  width: 100%;
}

.mx_mlcia_theme_editor_color_preview {
  align-items: center;
  border: 1px dashed color-mix(in srgb, var(--timeline-text-secondary-color, #64748b) 30%, transparent);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
}

.mx_mlcia_theme_editor_color_preview_swatch {
  background-image:
    linear-gradient(45deg, rgba(148, 163, 184, 0.22) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.22) 75%),
    linear-gradient(45deg, rgba(148, 163, 184, 0.22) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.22) 75%);
  background-position: 0 0, 6px 6px;
  background-size: 12px 12px;
  border: 1px solid color-mix(in srgb, var(--timeline-text-secondary-color, #64748b) 32%, transparent);
  border-radius: 8px;
  height: 34px;
  min-width: 58px;
}

.mx_mlcia_theme_editor_color_preview_value {
  color: var(--timeline-text-secondary-color, #475569);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .mx_mlcia_theme_editor {
    bottom: 78px;
    left: 10px;
    max-height: calc(100vh - 154px);
    width: calc(100vw - 20px);
  }

  .mx_mlcia_theme_editor_list {
    max-height: calc(100vh - 240px);
  }

  .mx_mlcia_theme_editor_actions {
    padding: 10px;
  }

  .mx_mlcia_theme_editor_popover {
    left: 8px !important;
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
  }

  .mx_mlcia_shared_theme_buttons {
    flex-wrap: wrap;
  }

  .mx_mlcia_shared_theme_btn {
    flex: 1 1 120px;
  }
}


.mx_Emoji,
.mx_EmojiPicker,
.mx_EmojiPicker * ,
.mx_EventTile_body span[aria-label*="emoji"],
.mx_Autocomplete_Completion * {
  font-family: "AppleColorEmojiWeb", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji !important;
}
