/* MXH Extend UI R4. Nova visual language on the existing Custom DOM.
 * No visibility overrides for permission or loading states; no media-player resets. */
body.mxh-extend-ui {
  --mxh-ui-bg:#f4f5f8;
  --mxh-ui-surface:#ffffff;
  --mxh-ui-field:#f5f5f7;
  --mxh-ui-raised:#ededf1;
  --mxh-ui-text:#25252b;
  --mxh-ui-muted:#6b6b77;
  --mxh-ui-line:#e6e6ed;
  --mxh-ui-accent:#6552da;
  --mxh-ui-accent-soft:#efecff;
  --mxh-ui-button:#6552da;
  --mxh-ui-radius:20px;
  --mxh-ui-space:20px;
  --mxh-ui-shadow:0 16px 48px rgba(31,25,61,.13);
  --mxh-nova-bg:var(--mxh-ui-bg);
  --mxh-nova-page:var(--mxh-ui-bg);
  --mxh-nova-soft:var(--mxh-ui-field);
  --mxh-nova-surface:var(--mxh-ui-surface);
  --mxh-nova-text:var(--mxh-ui-text);
  --mxh-nova-muted:var(--mxh-ui-muted);
  --mxh-nova-border:var(--mxh-ui-line);
  --mxh-nova-primary:var(--mxh-ui-accent);
  --mxh-nova-selected:var(--mxh-ui-accent-soft);
  --mxh-nova-radius:var(--mxh-ui-radius);
  --mxh-nova-field:11px;
  --body-bg-color:var(--mxh-ui-bg);
  --body-bg-color-dark:var(--mxh-ui-bg);
  --body-color:var(--mxh-ui-text);
  --body-color-dark:var(--mxh-ui-text);
  --header-bg-color:var(--mxh-ui-surface);
  --header-bg-color-dark:var(--mxh-ui-surface);
  --card-dark-color:var(--mxh-ui-surface);
  --card-dark-divider:var(--mxh-ui-line);
  --card-dark-hover:var(--mxh-ui-raised);
  --card-dark-input:var(--mxh-ui-field);
  --card-dark-input-color:var(--mxh-ui-text);
  --mxh-r2-bg:var(--mxh-ui-bg);
  --mxh-r2-surface:var(--mxh-ui-surface);
  --mxh-r2-text:var(--mxh-ui-text);
  --mxh-r2-muted:var(--mxh-ui-muted);
  --mxh-r2-line:var(--mxh-ui-line);
  --mxh-r2-primary:var(--mxh-ui-accent);
  --mxh-r2-selected:var(--mxh-ui-accent-soft);
  background-color:var(--mxh-ui-bg);
  color:var(--mxh-ui-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.mxh-extend-ui.night-mode {
  --mxh-ui-bg:#0b0b0d;
  --mxh-ui-surface:#18181b;
  --mxh-ui-field:#101012;
  --mxh-ui-raised:#27272c;
  --mxh-ui-text:#f3f3f5;
  --mxh-ui-muted:#a5a5b1;
  --mxh-ui-line:#2b2b31;
  --mxh-ui-accent:#9a8bff;
  --mxh-ui-accent-soft:#272139;
  --mxh-ui-button:#6e5add;
  --mxh-ui-shadow:0 16px 48px rgba(0,0,0,.38);
}
body.mxh-extend-ui[data-mxh-accent="blue"] {--mxh-ui-accent:#2464cb;--mxh-ui-accent-soft:#e9f1ff;--mxh-ui-button:#2464cb}
body.mxh-extend-ui.night-mode[data-mxh-accent="blue"] {--mxh-ui-accent:#83b1ff;--mxh-ui-accent-soft:#192b45;--mxh-ui-button:#2867cb}
body.mxh-extend-ui[data-mxh-accent="teal"] {--mxh-ui-accent:#08786e;--mxh-ui-accent-soft:#e3f5f0;--mxh-ui-button:#08786e}
body.mxh-extend-ui.night-mode[data-mxh-accent="teal"] {--mxh-ui-accent:#6bd9bd;--mxh-ui-accent-soft:#17372f;--mxh-ui-button:#08786e}
body.mxh-extend-ui[data-mxh-accent="rose"] {--mxh-ui-accent:#b83d6f;--mxh-ui-accent-soft:#fceaf2;--mxh-ui-button:#b83d6f}
body.mxh-extend-ui.night-mode[data-mxh-accent="rose"] {--mxh-ui-accent:#f399bc;--mxh-ui-accent-soft:#3b2030;--mxh-ui-button:#b43d70}
body.mxh-extend-ui[data-mxh-density="compact"] {--mxh-ui-space:14px;--mxh-ui-radius:16px}
/* Shared surfaces, including account, wallet, advertising and admin screens. */
body.mxh-extend-ui .card,
body.mxh-extend-ui .post,
body.mxh-extend-ui .blog-wrapper,
body.mxh-extend-ui .profile-tabs-wrapper {
  border-color:var(--mxh-ui-line);
  border-radius:var(--mxh-ui-radius);
  background-color:var(--mxh-ui-surface);
  box-shadow:none;
}
body.mxh-extend-ui .card {margin-bottom:var(--mxh-ui-space)}
body.mxh-extend-ui .card-header {border-color:var(--mxh-ui-line);padding:16px var(--mxh-ui-space);font-weight:650;border-radius:calc(var(--mxh-ui-radius) - 1px) calc(var(--mxh-ui-radius) - 1px) 0 0!important}
body.mxh-extend-ui .card-footer {border-color:var(--mxh-ui-line);border-radius:0 0 calc(var(--mxh-ui-radius) - 1px) calc(var(--mxh-ui-radius) - 1px)!important}
body.mxh-extend-ui .card-body {padding:var(--mxh-ui-space)}
body.mxh-extend-ui .card.panel-messages>.card-body {padding:0}
body.mxh-extend-ui .card.panel-messages.fresh>.card-body {padding:var(--mxh-ui-space)}
body.mxh-extend-ui .text-muted {color:var(--mxh-ui-muted)!important}
body.mxh-extend-ui .btn {font-weight:600;box-shadow:none;border-radius:11px}
body.mxh-extend-ui .btn.rounded-pill {border-radius:11px!important}
body.mxh-extend-ui .btn-primary {--bs-btn-bg:var(--mxh-ui-button);--bs-btn-border-color:var(--mxh-ui-button);--bs-btn-hover-bg:var(--mxh-ui-button);--bs-btn-hover-border-color:var(--mxh-ui-button);background-color:var(--mxh-ui-button);border-color:var(--mxh-ui-button);color:#fff}
body.mxh-extend-ui .btn-primary:hover {filter:brightness(1.08)}
body.mxh-extend-ui .btn-light {background-color:var(--mxh-ui-raised);border-color:transparent;color:var(--mxh-ui-text)}
body.mxh-extend-ui .btn-light:hover {background-color:var(--mxh-ui-line);color:var(--mxh-ui-text)}
body.mxh-extend-ui .btn-outline-primary {color:var(--mxh-ui-accent);border-color:var(--mxh-ui-accent)}
body.mxh-extend-ui .btn-outline-primary:hover {color:#fff;background:var(--mxh-ui-button)}
body.mxh-extend-ui .text-primary {color:var(--mxh-ui-accent)!important}
body.mxh-extend-ui .form-control,
body.mxh-extend-ui .form-select,
body.mxh-extend-ui .select2-container--default .select2-selection--single,
body.mxh-extend-ui .select2-container--default .select2-selection--multiple {background-color:var(--mxh-ui-field);border-color:var(--mxh-ui-line);color:var(--mxh-ui-text);border-radius:11px;box-shadow:none}
body.mxh-extend-ui .form-control:focus,
body.mxh-extend-ui .form-select:focus {border-color:var(--mxh-ui-accent);box-shadow:0 0 0 3px var(--mxh-ui-accent-soft)}
body.mxh-extend-ui .form-control::placeholder {color:var(--mxh-ui-muted)}
body.mxh-extend-ui .form-check-input:checked {background-color:var(--mxh-ui-button);border-color:var(--mxh-ui-button)}
body.mxh-extend-ui .input-group-text {color:var(--mxh-ui-muted);background-color:var(--mxh-ui-raised);border-color:var(--mxh-ui-line);border-radius:11px}
body.mxh-extend-ui :is(button,a,summary,[tabindex]):focus-visible {outline:2px solid var(--mxh-ui-accent);outline-offset:3px}
body.mxh-extend-ui .dropdown-menu {background-color:var(--mxh-ui-surface);border:1px solid var(--mxh-ui-line);color:var(--mxh-ui-text);border-radius:15px;box-shadow:var(--mxh-ui-shadow);padding:7px}
body.mxh-extend-ui .dropdown-item {border-radius:9px;padding:10px 12px;color:var(--mxh-ui-text);white-space:normal}
body.mxh-extend-ui .dropdown-item:hover,
body.mxh-extend-ui .dropdown-item:focus {background-color:var(--mxh-ui-raised);color:var(--mxh-ui-text)}
body.mxh-extend-ui .dropdown-divider {border-color:var(--mxh-ui-line)}
body.mxh-extend-ui .dropdown-widget-header,
body.mxh-extend-ui .dropdown-widget-footer {background:var(--mxh-ui-surface);border-color:var(--mxh-ui-line);border-radius:10px;color:var(--mxh-ui-text)}
body.mxh-extend-ui .dropdown-widget-body {border-radius:10px}
body.mxh-extend-ui .modal-content {background:var(--mxh-ui-surface);color:var(--mxh-ui-text);border:1px solid var(--mxh-ui-line);border-radius:22px;box-shadow:var(--mxh-ui-shadow)}
body.mxh-extend-ui .modal-header,
body.mxh-extend-ui .modal-footer {border-color:var(--mxh-ui-line);padding:16px 20px}
body.mxh-extend-ui .modal-title {font-weight:700}
/* Header. Keep the original fixed height, alerts and sidebar offsets. */
body.mxh-extend-ui .main-header {background:var(--mxh-ui-surface);border-bottom:1px solid var(--mxh-ui-line);box-shadow:none}
body.mxh-extend-ui .main-header .logo {font-size:26px;letter-spacing:-.8px;color:var(--mxh-ui-text)}
body.mxh-extend-ui .main-header .logo img {max-height:40px}
body.mxh-extend-ui .main-header .search-wrapper .form-control {height:44px;border:1px solid var(--mxh-ui-line);background:var(--mxh-ui-field);border-radius:14px;padding-inline-start:42px;padding-inline-end:70px;font-size:14px}
body.mxh-extend-ui .main-header .search-input-icon {inset-inline-start:14px;inset-inline-end:auto;color:var(--mxh-ui-muted);top:12px}
body.mxh-extend-ui .mxh-search-key {position:absolute;inset-inline-end:12px;top:11px;border:1px solid var(--mxh-ui-line);border-radius:5px;padding:1px 5px;font-family:inherit;font-size:11px;line-height:20px;color:var(--mxh-ui-muted);background:var(--mxh-ui-surface);pointer-events:none}
body.mxh-extend-ui .navbar-wrapper>ul>li>a {background:var(--mxh-ui-raised);height:40px;min-width:40px;line-height:40px;margin-top:15px;border-radius:12px;padding-inline:9px;color:var(--mxh-ui-text)}
body.mxh-extend-ui .navbar-wrapper>ul>li>a:hover {background:var(--mxh-ui-line)}
body.mxh-extend-ui .navbar-wrapper .user-menu>img {width:30px;height:30px;border-radius:10px;object-fit:cover}
body.mxh-extend-ui .main-header .header-icon {color:var(--mxh-ui-text)}
body.mxh-extend-ui .navbar-wrapper .counter {inset-inline-end:-4px;top:-5px;min-width:17px;border-radius:20px;border:2px solid var(--mxh-ui-surface);line-height:13px}
body.mxh-extend-ui .main-header .menu-icon {color:var(--mxh-ui-text);border-radius:10px}
/* Navigation and feed. Existing module permissions determine the visible links. */
body.mxh-extend-ui .main-side-nav-card {background:transparent;border:0}
body.mxh-extend-ui .main-side-nav {padding:0}
body.mxh-extend-ui .main-side-nav>li>a {padding:11px 13px;border-radius:13px;color:var(--mxh-ui-text);font-size:14px;font-weight:600;min-height:46px}
body.mxh-extend-ui .main-side-nav>li>a:hover {background:var(--mxh-ui-raised)}
body.mxh-extend-ui .main-side-nav>li.active>a {background:var(--mxh-ui-accent-soft);color:var(--mxh-ui-accent)}
body.mxh-extend-ui .main-side-nav>li>a .main-icon {width:23px;height:23px}
body.mxh-extend-ui .mxh-nova-sidebar-label {padding:12px 13px 8px;text-transform:none;font-size:12px;letter-spacing:0;color:var(--mxh-ui-muted)}
body.mxh-extend-ui .post {border:1px solid var(--mxh-ui-line);margin-bottom:var(--mxh-ui-space);overflow:visible}
body.mxh-extend-ui .post-header {padding:16px var(--mxh-ui-space) 12px}
body.mxh-extend-ui .post-avatar-picture {border-radius:14px}
body.mxh-extend-ui .post-text {padding-inline:var(--mxh-ui-space);font-size:15px;line-height:1.65}
body.mxh-extend-ui .post-actions {padding:6px 10px;border-color:var(--mxh-ui-line)}
body.mxh-extend-ui .post-actions .action-btn {border-radius:9px;padding:8px 6px;font-weight:600}
body.mxh-extend-ui .post-actions .action-btn:hover {background:var(--mxh-ui-raised)}
body.mxh-extend-ui .post-footer {background:var(--mxh-ui-surface);border-color:var(--mxh-ui-line);border-radius:0 0 var(--mxh-ui-radius) var(--mxh-ui-radius)}
body.mxh-extend-ui .comment-inner {background:var(--mxh-ui-field);border-radius:15px;color:var(--mxh-ui-text)}
body.mxh-extend-ui .comment-inner:before {border-right-color:var(--mxh-ui-field)}
body.mxh-extend-ui .comment-form textarea {background:var(--mxh-ui-field);border:1px solid var(--mxh-ui-line);border-radius:14px;color:var(--mxh-ui-text)}
body.mxh-extend-ui .publisher {border:1px solid var(--mxh-ui-line);border-radius:var(--mxh-ui-radius);background:var(--mxh-ui-surface)}
body.mxh-extend-ui .publisher-message:not(.colored) {border-radius:15px;background:var(--mxh-ui-field);margin:12px;padding-block:4px}
body.mxh-extend-ui .publisher-avatar {border-radius:12px}
body.mxh-extend-ui .publisher-meta {border-color:var(--mxh-ui-line);background:transparent}
body.mxh-extend-ui .publisher-footer {border-color:var(--mxh-ui-line);border-radius:0 0 var(--mxh-ui-radius) var(--mxh-ui-radius)}
body.mxh-extend-ui .stories-wrapper {padding-bottom:16px}
body.mxh-extend-ui .stories-wrapper .story>.item-link>.item-preview,
body.mxh-extend-ui .stories-wrapper .add-story .img {border-color:var(--mxh-ui-accent)}
/* Profile, Page, Group and Event shell. Profile R3 supplies verified counts/actions. */
body.mxh-extend-ui .profile-header {border:1px solid var(--mxh-ui-line);border-radius:26px;background:var(--mxh-ui-surface);margin-top:20px;margin-bottom:22px}
body.mxh-extend-ui .profile-header .profile-cover-wrapper {border-radius:25px 25px 0 0;background:linear-gradient(135deg,#4c447c 0%,#282636 55%,#131317 100%)}
body.mxh-extend-ui .profile-header .profile-name-wrapper,
body.mxh-extend-ui .profile-header .profile-buttons-wrapper {background-color:var(--mxh-ui-surface);color:var(--mxh-ui-text)}
body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile {--mxh-demo-surface:var(--mxh-ui-surface);--mxh-demo-text:var(--mxh-ui-text);--mxh-demo-muted:var(--mxh-ui-muted);--mxh-demo-line:var(--mxh-ui-line);border-radius:26px}
body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-cover-wrapper {border-radius:25px 25px 0 0;background:linear-gradient(135deg,#4c447c 0%,#282636 55%,#131317 100%)}
body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-name-wrapper {font-weight:750;letter-spacing:-.6px}
body.mxh-extend-ui .mxh-demo-profile .mxh-demo-counts {gap:8px 16px;letter-spacing:0}
body.mxh-extend-ui .mxh-demo-profile .mxh-demo-handle {letter-spacing:0}
body.mxh-extend-ui .mxh-demo-profile .profile-name-wrapper .verified-badge .svg-container {width:25px!important;height:25px!important}
body.mxh-extend-ui .mxh-demo-profile .profile-buttons-wrapper .btn {min-height:40px;white-space:nowrap;font-size:13px}
body.mxh-extend-ui .mxh-demo-profile .profile-buttons-wrapper .js_friend-add {background:var(--mxh-ui-button);border-color:var(--mxh-ui-button)}
body.mxh-extend-ui .mxh-demo-profile .profile-buttons-wrapper .js_follow {background:#9cc9ef;border-color:#9cc9ef;color:#132d46}
body.mxh-extend-ui .mxh-demo-profile .mxh-demo-support {gap:10px}
body.mxh-extend-ui .mxh-demo-profile .mxh-demo-gift-btn {padding:9px 16px;min-height:40px}
body.mxh-extend-ui .profile-tabs-wrapper {position:relative;justify-content:flex-start!important;gap:4px;padding:9px;border:1px solid var(--mxh-ui-line);border-radius:23px;overflow-x:auto;scrollbar-width:thin;scroll-padding-inline:10px}
body.mxh-extend-ui .profile-tabs-wrapper>a {flex:none;display:flex;align-items:center;gap:4px;white-space:nowrap;padding:12px 15px;border-radius:13px;border:0;font-size:14px;color:var(--mxh-ui-muted)}
body.mxh-extend-ui .profile-tabs-wrapper>a.active {color:var(--mxh-ui-accent);background:var(--mxh-ui-accent-soft);border:0}
body.mxh-extend-ui .profile-tabs-wrapper>a:hover {color:var(--mxh-ui-text);background:var(--mxh-ui-raised)}
body.mxh-extend-ui .profile-tabs-wrapper>a>.d-none.d-xxl-inline-block {display:inline-block!important}
body.mxh-extend-ui .profile-tabs-wrapper.mxh-tabs-overflow {overflow:visible}
body.mxh-extend-ui .mxh-tab-more {margin-inline-start:auto;position:relative;flex:none}
body.mxh-extend-ui .mxh-tab-more>summary {list-style:none;display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;cursor:pointer;border-radius:12px;background:var(--mxh-ui-raised);font-weight:600;font-size:13px}
body.mxh-extend-ui .mxh-tab-more>summary::-webkit-details-marker {display:none}
body.mxh-extend-ui .mxh-tab-more>summary:after {content:"";display:block;width:6px;height:6px;border-inline-end:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}
body.mxh-extend-ui .mxh-tab-more[open]>summary {color:var(--mxh-ui-accent);background:var(--mxh-ui-accent-soft)}
body.mxh-extend-ui .mxh-tab-more-menu {position:absolute;inset-inline-end:0;top:calc(100% + 9px);z-index:50;min-width:200px;padding:7px;background:var(--mxh-ui-surface);border:1px solid var(--mxh-ui-line);border-radius:15px;box-shadow:var(--mxh-ui-shadow)}
body.mxh-extend-ui .mxh-tab-more-menu>a {display:flex;align-items:center;gap:9px;padding:10px 12px;white-space:nowrap;border-radius:9px;border:0;font-size:14px;color:var(--mxh-ui-text)}
body.mxh-extend-ui .mxh-tab-more-menu>a:hover {background:var(--mxh-ui-raised)}
body.mxh-extend-ui .mxh-tab-more-menu>a.active {background:var(--mxh-ui-accent-soft);color:var(--mxh-ui-accent)}
body.mxh-extend-ui .mxh-tab-more-menu .d-none.d-xxl-inline-block {display:inline-block!important}
/* Messenger. Popup width remains unchanged because legacy positioning uses it. */
body.mxh-extend-ui .chat-sidebar {background:var(--mxh-ui-surface);border-color:var(--mxh-ui-line)}
body.mxh-extend-ui .chat-sidebar-footer {border-color:var(--mxh-ui-line)}
body.mxh-extend-ui .chat-widget,
body.mxh-extend-ui .panel-messages {--mxh-chat-surface:var(--mxh-ui-surface);--mxh-chat-field:var(--mxh-ui-field);--mxh-chat-line:var(--mxh-ui-line);--mxh-chat-text:var(--mxh-ui-text);--mxh-chat-muted:var(--mxh-ui-muted);--mxh-chat-hover:var(--mxh-ui-raised);border-color:var(--mxh-ui-line);background:var(--mxh-ui-surface);color:var(--mxh-ui-text)}
body.mxh-extend-ui .chat-widget-head,
body.mxh-extend-ui .chat-widget-content {background:var(--mxh-ui-surface);border-color:var(--mxh-ui-line)}
body.mxh-extend-ui .chat-widget .chat-widget-head {border-radius:18px 18px 0 0}
body.mxh-extend-ui .chat-widget .chat-head-label {color:var(--mxh-ui-text)}
body.mxh-extend-ui .chat-widget .chat-head-btn {color:var(--mxh-ui-text)}
body.mxh-extend-ui .chat-widget .chat-head-btn .svg-container,
body.mxh-extend-ui .chat-widget .chat-head-btn .svg-container svg {color:var(--mxh-ui-text)!important}
body.mxh-extend-ui .chat-widget .js_chat-call-start .svg-container {display:none}
body.mxh-extend-ui .chat-widget .js_chat-call-start:before {content:"";display:block;width:18px;height:18px;background:currentColor;mask:var(--mxh-call-icon) center/contain no-repeat;-webkit-mask:var(--mxh-call-icon) center/contain no-repeat}
body.mxh-extend-ui .chat-widget .js_chat-call-start[data-type="audio"] {--mxh-call-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2C9.7 20.5 3.5 14.3 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E")}
body.mxh-extend-ui .chat-widget .js_chat-call-start[data-type="video"] {--mxh-call-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='13' height='14' rx='2'/%3E%3Cpath d='m16 9 5-3v12l-5-3'/%3E%3C/svg%3E")}
body.mxh-extend-ui .mxh-demo-minimize i:before {content:"";display:block;width:12px;height:1.5px;background:currentColor;mask:none;-webkit-mask:none}
body.mxh-extend-ui .mxh-demo-menu>summary>i:before {content:"";display:block;width:16px;height:16px;background:linear-gradient(currentColor,currentColor) center/14px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 14px no-repeat;mask:none;-webkit-mask:none}
body.mxh-extend-ui .panel-messages>.card-header {min-height:68px;background:var(--mxh-ui-surface)}
body.mxh-extend-ui .panel-messages .chat-to {border-color:var(--mxh-ui-line);background:var(--mxh-ui-field);color:var(--mxh-ui-text);border-radius:11px;margin:12px}
body.mxh-extend-ui .panel-messages .chat-form {border-radius:0 0 var(--mxh-ui-radius) var(--mxh-ui-radius)}
body.mxh-extend-ui .panel-messages .conversation-body .text {font-size:14px;line-height:1.55;border-radius:17px}
body.mxh-extend-ui .conversation .time {color:var(--mxh-ui-muted);font-size:10px;margin-top:5px}
body.mxh-extend-ui .conversation:not(.right) .text {background:var(--mxh-ui-raised);color:var(--mxh-ui-text)}
body.mxh-extend-ui .conversation .img-wrapper,
body.mxh-extend-ui .conversation .video-wrapper {border-radius:14px}
body.mxh-extend-ui .js_live-messages-alt .data-container {margin:2px 8px;padding:12px;border-radius:13px}
body.mxh-extend-ui .js_live-messages-alt .unread .data-container {background:var(--mxh-ui-accent-soft)}
body.mxh-extend-ui .js_live-messages-alt .data-container:hover {background:var(--mxh-ui-raised)}
body.mxh-extend-ui .data-avatar img {object-fit:cover}
body.mxh-extend-ui .chat-product {border-color:var(--mxh-ui-line);border-radius:13px;background:var(--mxh-ui-field)}
/* Real chat attachments and message actions supplied by the compatibility API. */
body.mxh-extend-ui .mxh-extend-attach[hidden],
body.mxh-extend-ui .mxh-chat-pick[hidden],
body.mxh-extend-ui .mxh-media-count[hidden],
body.mxh-extend-ui .mxh-message-actions button[hidden],
body.mxh-extend-ui .mxh-tab-more[hidden] {display:none!important}
body.mxh-extend-ui .mxh-chat-file-input {display:none!important}
body.mxh-extend-ui .mxh-extend-attach .mxh-demo-popover {width:230px;padding:8px}
body.mxh-extend-ui .mxh-chat-pick {position:relative;display:flex;align-items:center;gap:13px;min-height:48px;width:100%;margin:0;padding:11px 12px;border:0;border-radius:11px;background:transparent;color:var(--mxh-ui-text);font:inherit;font-size:14px;font-weight:600;line-height:1.4;text-align:start;cursor:pointer}
body.mxh-extend-ui .mxh-chat-pick:hover {background:var(--mxh-ui-raised)}
body.mxh-extend-ui .mxh-chat-pick:disabled {opacity:.45;cursor:wait}
body.mxh-extend-ui .mxh-chat-pick i,
body.mxh-extend-ui .mxh-chat-pick svg {width:21px;height:21px;font-size:20px;flex:none}
body.mxh-extend-ui .mxh-chat-pick[data-mxh-kind="photo"] :is(i,svg) {color:#69b67c!important}
body.mxh-extend-ui .mxh-chat-pick[data-mxh-kind="video"] :is(i,svg) {color:#ed7c7c!important}
body.mxh-extend-ui .mxh-chat-pick[data-mxh-kind="file"] :is(i,svg) {color:#77b8ef!important}
body.mxh-extend-ui .mxh-media-count {position:absolute;top:-4px;inset-inline-end:-6px;min-width:17px;padding:2px 4px;border-radius:12px;background:var(--mxh-ui-button);color:#fff;font-size:10px;line-height:14px;text-align:center;pointer-events:none}
body.mxh-extend-ui .mxh-media-preview {display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--mxh-ui-line);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;background:var(--mxh-ui-surface)}
body.mxh-extend-ui .mxh-media-preview-item {position:relative;display:flex;align-items:center;gap:8px;flex:0 0 150px;min-width:0;min-height:64px;padding:8px 23px 8px 8px;border:1px solid var(--mxh-ui-line);border-radius:12px;background:var(--mxh-ui-field)}
body.mxh-extend-ui .mxh-media-preview-item>img {width:42px;height:42px;flex:none;border-radius:8px;object-fit:cover}
body.mxh-extend-ui .mxh-media-kind {display:grid;place-items:center;flex:none;width:32px;height:40px;font-size:25px;color:var(--mxh-ui-accent)}
body.mxh-extend-ui .mxh-media-name {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:11px;line-height:1.45;color:var(--mxh-ui-text)}
body.mxh-extend-ui .mxh-media-remove {position:absolute;top:4px;inset-inline-end:4px;width:21px;height:21px;padding:0;border:0;border-radius:50%;background:var(--mxh-ui-raised);color:var(--mxh-ui-muted);line-height:19px;font-size:18px;cursor:pointer}
body.mxh-extend-ui .mxh-media-remove:hover {color:var(--mxh-ui-text);background:var(--mxh-ui-line)}
body.mxh-extend-ui .mxh-chat-feedback {position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 10px;padding:10px 28px 10px 12px;border:1px solid var(--mxh-ui-line);border-radius:11px;background:var(--mxh-ui-accent-soft);color:var(--mxh-ui-text);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
body.mxh-extend-ui .mxh-chat-feedback>span {flex:1 1 180px;min-width:0}
body.mxh-extend-ui .mxh-chat-feedback>progress {width:100%;height:6px;accent-color:var(--mxh-ui-button);border-radius:4px}
body.mxh-extend-ui .mxh-chat-retry {border:1px solid var(--mxh-ui-accent);border-radius:7px;background:transparent;color:var(--mxh-ui-accent);padding:4px 8px;font-size:12px;font-weight:600}
body.mxh-extend-ui .mxh-chat-dismiss {position:absolute;inset-inline-end:4px;top:4px;display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--mxh-ui-muted);font-size:19px}
body.mxh-extend-ui>.mxh-chat-feedback {position:fixed;bottom:20px;inset-inline-end:85px;max-width:360px;z-index:1100;box-shadow:var(--mxh-ui-shadow)}
body.mxh-extend-ui .mxh-message-menu {clear:both;display:inline-block;vertical-align:middle;margin-top:4px;max-width:100%;font-size:12px;text-align:start}
body.mxh-extend-ui .mxh-message-menu>summary {display:inline-flex;align-items:center;justify-content:center;list-style:none;width:29px;height:23px;min-height:23px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--mxh-ui-muted);font-size:17px;letter-spacing:1px;line-height:1;cursor:pointer}
body.mxh-extend-ui .mxh-message-menu>summary::-webkit-details-marker {display:none}
body.mxh-extend-ui .mxh-message-menu>summary:hover,
body.mxh-extend-ui .mxh-message-menu[open]>summary {background:var(--mxh-ui-raised);color:var(--mxh-ui-text)}
body.mxh-extend-ui .mxh-message-menu[open] {display:block;width:250px;max-width:100%}
body.mxh-extend-ui .mxh-message-actions {margin-top:4px;padding:6px;border:1px solid var(--mxh-ui-line);border-radius:12px;background:var(--mxh-ui-surface);box-shadow:0 4px 12px rgba(0,0,0,.07)}
body.mxh-extend-ui .mxh-message-actions>button {display:block;width:100%;border:0;border-radius:7px;background:transparent;color:var(--mxh-ui-text);text-align:start;padding:8px 10px;font-size:12px;font-weight:600;cursor:pointer}
body.mxh-extend-ui .mxh-message-actions>button:hover {background:var(--mxh-ui-raised)}
body.mxh-extend-ui .mxh-message-actions>.mxh-message-delete {color:#d95367}
body.mxh-extend-ui .mxh-message-react-picker {display:flex;flex-wrap:wrap;gap:2px;margin-block:4px;padding:5px 2px;border-block:1px solid var(--mxh-ui-line)}
body.mxh-extend-ui .mxh-message-react-picker>button {width:28px;height:31px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;font-size:19px;line-height:29px;cursor:pointer}
body.mxh-extend-ui .mxh-message-react-picker>button:hover,
body.mxh-extend-ui .mxh-message-react-picker>button[aria-pressed="true"] {background:var(--mxh-ui-accent-soft);border-color:var(--mxh-ui-accent)}
body.mxh-extend-ui .mxh-message-reactions {clear:both;display:flex;flex-wrap:wrap;gap:4px;padding-top:5px}
body.mxh-extend-ui .conversation.right .mxh-message-reactions {justify-content:flex-end}
body.mxh-extend-ui .mxh-message-reactions>button {padding:3px 7px;border:1px solid var(--mxh-ui-line);border-radius:20px;background:var(--mxh-ui-surface);color:var(--mxh-ui-text);font-size:11px;line-height:17px;cursor:pointer}
body.mxh-extend-ui .mxh-message-reactions>button[aria-pressed="true"] {border-color:var(--mxh-ui-accent);background:var(--mxh-ui-accent-soft)}
body.mxh-extend-ui .mxh-message-media {clear:both;display:flex;flex-direction:column;gap:7px;padding-top:6px;max-width:100%}
body.mxh-extend-ui .mxh-message-media>a>img {max-width:100%;width:220px;height:auto;display:block;border-radius:12px}
body.mxh-extend-ui .mxh-message-media>video {max-width:100%;width:260px;max-height:320px;object-fit:contain;border-radius:12px;background:#000}
body.mxh-extend-ui .mxh-chat-file {display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;min-width:150px;padding:11px;border:1px solid var(--mxh-ui-line);border-radius:12px;background:var(--mxh-ui-field);color:var(--mxh-ui-text);text-decoration:none}
body.mxh-extend-ui .mxh-chat-file:hover {background:var(--mxh-ui-raised);color:var(--mxh-ui-text)}
body.mxh-extend-ui .mxh-chat-file>span:first-child {font-size:23px;color:var(--mxh-ui-accent)}
body.mxh-extend-ui .mxh-chat-file>span:nth-child(2) {flex:1;min-width:0;font-size:12px;font-weight:600;overflow-wrap:anywhere}
body.mxh-extend-ui .mxh-chat-file>small {flex:0 0 100%;padding-inline-start:24px;color:var(--mxh-ui-muted);font-size:10px}
/* Tables and form sections preserve status colors and existing controls. */
body.mxh-extend-ui .table {--bs-table-color:var(--mxh-ui-text);--bs-table-bg:transparent;--bs-table-border-color:var(--mxh-ui-line);--bs-table-striped-color:var(--mxh-ui-text);--bs-table-striped-bg:var(--mxh-ui-field);--bs-table-hover-color:var(--mxh-ui-text);--bs-table-hover-bg:var(--mxh-ui-raised)}
body.mxh-extend-ui .table thead th {color:var(--mxh-ui-muted);background:var(--mxh-ui-field);font-size:12px;letter-spacing:.02em;font-weight:650}
body.mxh-extend-ui .table-responsive {border-radius:13px}
body.mxh-extend-ui .nav-tabs {border-color:var(--mxh-ui-line)}
body.mxh-extend-ui .nav-tabs .nav-link.active {background:var(--mxh-ui-accent-soft);border-color:var(--mxh-ui-line);color:var(--mxh-ui-accent)}
body.mxh-extend-ui .nav-pills .nav-link.active {color:var(--mxh-ui-accent);background:var(--mxh-ui-accent-soft)}
body.mxh-extend-ui .form-table-row {border-color:var(--mxh-ui-line);border-radius:12px}
body.mxh-extend-ui .stat-panel {border-radius:18px;overflow:hidden}
/* Local display options: no global admin settings are changed. */
body.mxh-extend-ui .mxh-ui-dialog {width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--mxh-ui-line);border-radius:22px;background:var(--mxh-ui-surface);color:var(--mxh-ui-text);box-shadow:var(--mxh-ui-shadow);overflow:auto}
body.mxh-extend-ui .mxh-ui-dialog:not([open]) {display:none}
body.mxh-extend-ui .mxh-ui-dialog::backdrop {background:rgba(0,0,0,.48);backdrop-filter:blur(3px)}
body.mxh-extend-ui .mxh-ui-dialog-heading {display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid var(--mxh-ui-line)}
body.mxh-extend-ui .mxh-ui-dialog-heading h2 {font-size:19px;font-weight:700;margin:0}
body.mxh-extend-ui .mxh-ui-dialog-content {padding:20px}
body.mxh-extend-ui .mxh-ui-dialog p {color:var(--mxh-ui-muted);font-size:13px;line-height:1.6}
body.mxh-extend-ui .mxh-ui-dialog fieldset {border:0;padding:0;margin:0 0 22px}
body.mxh-extend-ui .mxh-ui-dialog legend {font-size:13px;font-weight:700;margin:0 0 10px;float:none;width:auto}
body.mxh-extend-ui .mxh-ui-choice-row {display:flex;gap:9px;flex-wrap:wrap}
body.mxh-extend-ui .mxh-ui-choice {display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;background:var(--mxh-ui-field);border:1px solid var(--mxh-ui-line);border-radius:12px;font-size:13px;cursor:pointer}
body.mxh-extend-ui .mxh-ui-choice:has(input:checked) {border-color:var(--mxh-ui-accent);background:var(--mxh-ui-accent-soft)}
body.mxh-extend-ui .mxh-ui-choice input {accent-color:var(--mxh-ui-button)}
body.mxh-extend-ui .mxh-ui-swatch {width:14px;height:14px;flex:none;border-radius:50%}
body.mxh-extend-ui .mxh-ui-swatch-violet {background:#7563e9}
body.mxh-extend-ui .mxh-ui-swatch-blue {background:#3572d3}
body.mxh-extend-ui .mxh-ui-swatch-teal {background:#138575}
body.mxh-extend-ui .mxh-ui-swatch-rose {background:#c34f80}
body.mxh-extend-ui .mxh-ui-dialog-actions {display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--mxh-ui-line)}
body.mxh-extend-ui .mxh-ui-settings-icon {display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;margin-inline-end:10px;color:var(--mxh-ui-accent)}
@media(min-width:1200px) {
  body.mxh-extend-ui .main-header .navbar-wrapper>ul {gap:7px}
  body.mxh-extend-ui .navbar-wrapper .user-menu .title {display:none}
  body.mxh-extend-ui .navbar-wrapper .user-menu:after {display:none}
  body.mxh-extend-ui[data-mxh-width="wide"] .main-wrapper>.container,
  body.mxh-extend-ui[data-mxh-width="wide"] .main-header>.container {max-width:1560px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile {grid-template-columns:clamp(164px,18%,224px) minmax(0,1fr) minmax(220px,auto);column-gap:24px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-cover-wrapper {height:clamp(270px,25vw,360px)}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-name-wrapper {font-size:30px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-buttons-wrapper {max-width:540px}
}
@media(max-width:1199.98px) and (min-width:768px) {
  body.mxh-extend-ui .profile-tabs-wrapper>a {padding-inline:12px;font-size:13px}
  body.mxh-extend-ui .navbar-wrapper>ul>li>a {padding-inline:7px;min-width:36px}
  body.mxh-extend-ui .mxh-search-key {display:none}
  body.mxh-extend-ui .main-header .search-wrapper .form-control {padding-inline-end:12px}
}
@media(max-width:767.98px) {
  body.mxh-extend-ui {--mxh-ui-space:14px;--mxh-ui-radius:17px}
  body.mxh-extend-ui .main-header .logo {font-size:21px;letter-spacing:-.4px}
  body.mxh-extend-ui .main-header .logo img {max-height:34px}
  body.mxh-extend-ui .navbar-wrapper>ul>li>a {min-width:34px;height:36px;line-height:36px;padding-inline:6px;margin-top:17px;border-radius:10px}
  body.mxh-extend-ui .main-header .header-icon {width:20px;height:20px}
  body.mxh-extend-ui .dropdown-menu.dropdown-widget {max-width:calc(100vw - 20px)}
  body.mxh-extend-ui .card-header {padding:14px}
  body.mxh-extend-ui .profile-header {margin-top:12px;border-radius:20px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile {padding-bottom:14px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-cover-wrapper {height:185px;border-radius:19px 19px 0 0}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-avatar-wrapper {width:116px;height:116px;margin-top:-58px;position:relative;top:auto;bottom:auto;left:auto;right:auto;margin-inline:auto;padding:4px;transform:none;border-radius:24px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-avatar-wrapper>img {width:100%;height:100%;border-radius:19px;object-fit:cover}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-name-wrapper {position:relative;inset:auto;padding:10px 12px 9px;font-size:24px;line-height:1.25}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.profile-buttons-wrapper {position:relative;inset:auto;padding:4px 8px 12px;gap:5px}
  body.mxh-extend-ui .profile-header.mxh-demo-profile.mxh-demo-profile>.mxh-demo-support {margin:0 12px;padding:12px 0 0}
  body.mxh-extend-ui .mxh-demo-profile .profile-buttons-wrapper .d-none.d-xxl-inline-block {display:inline-block!important}
  body.mxh-extend-ui .mxh-demo-profile .profile-buttons-wrapper .btn {min-height:38px;font-size:12px;padding-inline:8px}
  body.mxh-extend-ui .mxh-demo-profile .profile-buttons-wrapper>.dropdown>.btn {width:34px;min-width:34px;height:38px;padding:8px}
  body.mxh-extend-ui .profile-tabs-wrapper {border-radius:17px;gap:2px;padding:7px}
  body.mxh-extend-ui .profile-tabs-wrapper>a {padding:10px 11px;font-size:13px}
  body.mxh-extend-ui .profile-tabs-wrapper>a .main-icon {width:19px;height:19px}
  body.mxh-extend-ui .footer-bottom-bar {background:var(--mxh-ui-surface);border-top:1px solid var(--mxh-ui-line);box-shadow:0 -8px 30px rgba(0,0,0,.04);padding-bottom:env(safe-area-inset-bottom)}
  body.mxh-extend-ui .footer-bottom-bar .link.active {color:var(--mxh-ui-accent)}
  body.mxh-extend-ui .footer-bottom-bar .link>a {border-radius:12px}
  body.mxh-extend-ui .mxh-ui-dialog {margin:auto}
  body.mxh-extend-ui .mxh-ui-dialog-content {padding:17px}
}
@media(prefers-reduced-motion:reduce) {
  body.mxh-extend-ui .profile-tabs-wrapper {scroll-behavior:auto}
  body.mxh-extend-ui .btn,
  body.mxh-extend-ui .main-side-nav a,
  body.mxh-extend-ui .profile-tabs-wrapper a {transition:none}
}
