/* Hexai integration shim after the real Aiwave stylesheet. */

:root {
    --sidebar-width: 320px;
    --aipair-header-height: 80px;
    --openBlue: var(--color-primary);
    --textColor: var(--color-heading);
}

/* ai-studio target pass: use the customized AI Studio shell geometry while
   keeping Hexai's dynamic routes and bindings intact. */
:root {
    --aipair-header-height: 65px;
    --sidebar-width: 320px;
    --color-skeleton: #2a2a2a;
}

body.aiwave-dashboard-body {
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header {
    min-height: var(--aipair-header-height) !important;
    height: var(--aipair-header-height) !important;
    padding: 0 24px !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .rbt-dashboard-header .container-fluid,
.aiwave-dashboard-body .rbt-dashboard-header .row,
.aiwave-dashboard-body .rbt-dashboard-header .header-left,
.aiwave-dashboard-body .rbt-dashboard-header .header-right,
.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li {
    min-height: var(--aipair-header-height) !important;
    height: var(--aipair-header-height) !important;
}

.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li > a {
    height: var(--aipair-header-height);
    line-height: var(--aipair-header-height);
}

.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section,
.aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
    top: var(--aipair-header-height) !important;
    width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    height: calc(100vh - var(--aipair-header-height)) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .rbt-left-panel .rbt-default-sidebar-wrapper {
    height: calc(100vh - 390px) !important;
}

.aiwave-dashboard-body .subscription-box.aipair-subscription-box {
    bottom: 100px !important;
    background: var(--color-dark) !important;
}

.aiwave-dashboard-body .subscription-box.aipair-theme-switch-box {
    position: absolute;
    bottom: 24px !important;
    left: 0;
    width: 100%;
    background: var(--color-dark) !important;
}

.aiwave-dashboard-body .aipair-theme-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.aiwave-dashboard-body .aipair-theme-switch .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 6px;
}

.aiwave-dashboard-body .subscription-copyright.copyright-text {
    display: none;
}

.aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
    width: auto !important;
    max-width: none !important;
    min-height: calc(100vh - var(--aipair-header-height) - 70px);
    margin: var(--aipair-header-height) var(--sidebar-width) 70px var(--sidebar-width) !important;
    padding: 0 !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
    padding: 0 190px !important;
}

.aiwave-dashboard-body .aipair-chat-section {
    min-height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
    margin: 0 -190px;
    padding: 14px 190px;
    background: var(--color-dark) !important;
    border-bottom: 1px solid var(--color-border);
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar .section-title {
    align-items: center;
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar .section-title .icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar .section-title .title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
    height: calc(100vh - var(--aipair-header-height) - 74px);
    max-height: calc(100vh - var(--aipair-header-height) - 74px);
    overflow-y: auto;
    scrollbar-width: none;
    padding: 30px 0 88px !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner::-webkit-scrollbar {
    display: none;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box,
.aiwave-dashboard-body .aipair-chat-main .chat-message {
    margin: 0 0 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius);
    background: var(--color-dark) !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box:first-child {
    padding-top: 30px;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner,
.aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech .inner {
    padding: 0 !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section {
    display: flex;
    align-items: flex-start;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section .author,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 20px;
    border-radius: 50%;
}

.aiwave-dashboard-body .aipair-chat-main .chat-content {
    width: 100%;
    max-width: calc(100% - 60px);
}

.aiwave-dashboard-body .aipair-chat-main .chat-content .title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.aiwave-dashboard-body .aipair-chat-main .message-txt {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--color-body) !important;
    font-size: 16px;
    line-height: 1.65;
}

.aiwave-dashboard-body .aipair-chat-main .reaction-section {
    margin-top: 20px;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    position: fixed !important;
    right: var(--sidebar-width) !important;
    bottom: 0 !important;
    left: var(--sidebar-width) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 70px;
    padding: 15px 0 !important;
    background: var(--color-blackest) !important;
    box-shadow: 0 -40px 55px -20px rgb(7, 7, 16) !important;
    transform: none !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
    position: relative;
    margin: 0 190px !important;
    padding: 0 !important;
    border-radius: var(--radius);
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp {
    display: block;
    width: 100%;
    min-height: 56px;
    max-height: 200px;
    padding: 16px 130px 16px 60px !important;
    border: 2px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    outline: 0;
    background: transparent !important;
    color: var(--color-body) !important;
    font-size: 16px;
    line-height: 22px;
    resize: none;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .left-icons,
.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .right-icons {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .left-icons {
    left: 20px;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .right-icons {
    right: 20px;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
}

.aiwave-dashboard-body .aipair-response-shimmer {
    margin: 0;
}

.aiwave-dashboard-body .aipair-response-shimmer .skeleton-placeholder_a2 {
    height: auto;
    min-height: 74px;
    gap: 16px;
}

.aiwave-dashboard-body .aipair-skeleton-lines {
    display: grid;
    flex: 1 1 auto;
    gap: 10px;
}

.aiwave-dashboard-body .aipair-skeleton-lines span {
    display: block;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer_a2 1.5s infinite;
}

.aiwave-dashboard-body .aipair-skeleton-lines span:last-child {
    width: 66%;
}

.aiwave-dashboard-body #container_content > .row.main-row {
    margin-top: var(--aipair-header-height) !important;
}

body.active-light-mode.aiwave-dashboard-body,
body.active-light-mode.aiwave-dashboard-body .rbt-main-content.aipair-chat-main,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    background: #f5f8fa !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .chat-box,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-section .chat-top-bar,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1411764706) !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp {
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp::placeholder {
    color: #65676b !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-skeleton-lines span {
    background: linear-gradient(90deg, #f0f2f5 25%, #fff 50%, #f0f2f5 75%);
    background-size: 200% 100%;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 0 50px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin: 0 -50px;
        padding-right: 50px;
        padding-left: 50px;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
        margin: 0 50px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 0 50px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin: 0 -50px;
        padding-right: 50px;
        padding-left: 50px;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        right: 0 !important;
        left: 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
        margin: 0 50px !important;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --sidebar-width: 280px;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 0 12px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        align-items: center;
        margin: 0 -12px;
        padding: 12px;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar .section-title .icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar .section-title .title {
        max-width: calc(100vw - 110px);
        font-size: 16px;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
        height: calc(100vh - var(--aipair-header-height) - 66px);
        max-height: calc(100vh - var(--aipair-header-height) - 66px);
        padding: 16px 0 76px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box,
    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        margin-bottom: 16px;
        padding: 18px 12px;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section .author,
    .aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-content {
        max-width: calc(100% - 38px);
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        min-height: 66px;
        padding: 10px 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
        margin: 0 12px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp {
        min-height: 48px;
        padding: 12px 96px 12px 42px !important;
        font-size: 14px;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .left-icons {
        left: 10px;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .right-icons {
        right: 10px;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon {
        width: 22px;
        height: 22px;
    }
}

html,
body {
    letter-spacing: 0;
}

body.aiwave-dashboard-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--color-dark) !important;
}

.aiwave-dashboard-body .admin_welcome_message,
.aiwave-dashboard-body #main-footer {
    display: none !important;
}

.aiwave-dashboard-body .ai_app,
.aiwave-dashboard-body .ma_container,
.aiwave-dashboard-body #main-header,
.aiwave-dashboard-body #container_content,
.aiwave-dashboard-body #container_content.wrapper {
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.aiwave-dashboard-body #main-header {
    position: relative;
    z-index: 1000;
}

.aiwave-dashboard-body #bar_loading {
    position: fixed;
    top: var(--aipair-header-height);
    left: 0;
    right: 0;
    z-index: 1100;
}

/* Aiwave header/topbar */
.aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    min-height: var(--aipair-header-height);
    margin: 0 !important;
    padding: 0 24px !important;
    text-align: center;
    background-color: var(--color-dark) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .rbt-dashboard-header .container-fluid,
.aiwave-dashboard-body .rbt-dashboard-header .row,
.aiwave-dashboard-body .rbt-dashboard-header .header-left,
.aiwave-dashboard-body .rbt-dashboard-header .header-right {
    min-height: var(--aipair-header-height);
}

.aiwave-dashboard-body .rbt-dashboard-header .header-left,
.aiwave-dashboard-body .rbt-dashboard-header .header-right {
    align-items: center;
}

.aiwave-dashboard-body .rbt-dashboard-header .header-right {
    justify-content: flex-end;
    gap: 10px;
}

.aiwave-dashboard-body .rbt-dashboard-header .logo {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.aiwave-dashboard-body .rbt-dashboard-header .logo img,
.aiwave-dashboard-body .rbt-dashboard-header #logo {
    width: auto;
    max-width: 164px;
    max-height: 44px;
    object-fit: contain;
    filter: none !important;
}

.aiwave-dashboard-body .rbt-dashboard-header .mainmenu {
    align-items: center;
    border: 0;
    background: none;
    border-radius: 0;
}

.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li {
    display: flex;
    align-items: center;
    height: var(--aipair-header-height);
}

.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li::after,
.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li > a::after {
    display: none;
}

.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 17px;
    white-space: nowrap;
}

.aiwave-dashboard-body .rbt-dashboard-header .submenu li,
.aiwave-dashboard-body .rbt-dashboard-header .rainbow-megamenu li {
    height: auto;
}

.aiwave-dashboard-body .rbt-dashboard-header .submenu a,
.aiwave-dashboard-body .rbt-dashboard-header .rainbow-megamenu a {
    width: 100%;
}

.aiwave-dashboard-body .popup-dashboardleft-btn,
.aiwave-dashboard-body .popup-dashboardright-btn,
.aiwave-dashboard-body .hamberger-button,
.aiwave-dashboard-body .rbt-round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
}

.aiwave-dashboard-body .aipair-notification-wrapper {
    position: relative;
}

.aiwave-dashboard-body .aipair-notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 10px;
    line-height: 18px;
}

.aiwave-dashboard-body .rbt-notification-dropdown,
.aiwave-dashboard-body .rbt-user-menu-list-wrapper {
    min-width: 286px;
    padding: 16px;
    border: 0;
    border-radius: var(--radius);
    background-color: var(--color-blackest);
    box-shadow: 2px 6px 20px 10px rgb(0 0 0 / 50%);
    color: var(--color-body);
}

.aiwave-dashboard-body .rbt-notification-dropdown {
    width: min(380px, calc(100vw - 28px));
}

.aiwave-dashboard-body .aipair-dropdown-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-heading);
}

.aiwave-dashboard-body .aipair-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 36px 12px 0;
}

.aiwave-dashboard-body .aipair-dropdown-head h5 {
    margin: 0;
    font-size: var(--font-size-b2);
    line-height: var(--line-height-b2);
}

.aiwave-dashboard-body .aipair-dropdown-head button,
.aiwave-dashboard-body .notiFooter a {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: var(--font-size-b3);
    font-weight: 500;
}

.aiwave-dashboard-body .noti-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.aiwave-dashboard-body .noti-tablinks {
    padding: 6px 10px;
    border-radius: var(--radius-small);
    background: var(--color-dark);
    color: var(--color-body);
    cursor: pointer;
}

.aiwave-dashboard-body .noti-tablinks.active {
    color: var(--color-white);
    background: var(--color-primary);
}

.aiwave-dashboard-body .noti-inner {
    min-height: 96px;
    max-height: 360px;
    overflow-y: auto;
}

.aiwave-dashboard-body .aipair-dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
}

.aiwave-dashboard-body .aipair-dropdown-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: aipair-pulse 900ms infinite alternate;
}

.aiwave-dashboard-body .aipair-dropdown-loading span:nth-child(2) {
    animation-delay: 120ms;
}

.aiwave-dashboard-body .aipair-dropdown-loading span:nth-child(3) {
    animation-delay: 240ms;
}

@keyframes aipair-pulse {
    to {
        opacity: 0.35;
        transform: translateY(-4px);
    }
}

.aiwave-dashboard-body .notiFooter {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.aiwave-dashboard-body .rbt-admin-card.grid-style a {
    padding: 15px 10px;
    border: 0;
    background: transparent;
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .img-box {
    width: 50px;
    height: 50px;
    max-width: 50px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 50%;
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .img-box img,
.aiwave-dashboard-body .rbt-admin-profile .admin-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .content {
    text-align: left;
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .content .title,
.aiwave-dashboard-body .rbt-admin-card.grid-style .content p {
    display: block;
    max-width: 130px;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .content .title {
    color: var(--color-heading);
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .content p {
    color: var(--color-body);
}

.aiwave-dashboard-body .rbt-admin-card.grid-style .icon {
    margin-left: 34px;
}

.aiwave-dashboard-body .rbt-user-menu-list-wrapper {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.aiwave-dashboard-body .rbt-admin-panel:hover .rbt-user-menu-list-wrapper,
.aiwave-dashboard-body .rbt-admin-panel:focus-within .rbt-user-menu-list-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aiwave-dashboard-body .rbt-user-menu-list-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aiwave-dashboard-body .rbt-user-menu-list-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 3px;
    color: var(--color-body);
}

.aiwave-dashboard-body .rbt-user-menu-list-wrapper a:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.aiwave-dashboard-body .rbt-admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: var(--radius-small);
    background-color: var(--color-dark);
}

.aiwave-dashboard-body .rbt-admin-profile .admin-thumbnail {
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 50%;
}

.aiwave-dashboard-body .rbt-admin-profile .name {
    display: block;
    color: var(--color-heading);
}

.aiwave-dashboard-body .rbt-admin-profile .rbt-btn-link {
    display: inline-flex;
    min-height: 0;
    padding: 0;
    color: var(--color-primary);
}

/* Aiwave left panel */
.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section {
    position: fixed;
    top: var(--aipair-header-height);
    left: 0;
    z-index: 990;
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: calc(100vh - var(--aipair-header-height));
    min-height: 450px;
    padding: 10px 24px 0;
    overflow: hidden;
    background-color: var(--color-dark);
    border-right: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section.collapsed {
    transform: translateX(-100%);
}

.aiwave-dashboard-body .rbt-left-panel .rbt-default-sidebar {
    position: relative;
    height: 100%;
}

.aiwave-dashboard-body .rbt-left-panel .rbt-default-sidebar-wrapper {
    height: calc(100vh - 340px);
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.aiwave-dashboard-body .rbt-left-panel .rbt-default-sidebar-wrapper::-webkit-scrollbar {
    display: none;
}

.aiwave-dashboard-body .rbt-default-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li.has-submenu {
    display: block;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li i {
    width: 35px;
    margin-right: 10px;
    color: var(--color-body);
    font-size: 20px;
    text-align: center;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li img {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    object-fit: contain;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li span {
    min-width: 0;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 55px;
    padding: 10px 12px;
    color: var(--color-body);
    border-radius: var(--radius-small);
    transition: 0.4s;
}

.aiwave-dashboard-body .rbt-default-sidebar-list li a:hover,
.aiwave-dashboard-body .rbt-default-sidebar-list li a.active {
    color: var(--color-primary);
    background: var(--color-blackest);
}

.aiwave-dashboard-body .rbt-default-sidebar-list li a:hover i,
.aiwave-dashboard-body .rbt-default-sidebar-list li a.active i {
    color: var(--color-primary);
}

.aiwave-dashboard-body .rbt-default-sidebar-list .collapse-btn {
    position: relative;
}

.aiwave-dashboard-body .rbt-default-sidebar-list .collapse-btn::after {
    position: absolute;
    top: 50%;
    right: 10px;
    content: "\e996";
    font-family: "feather" !important;
    transform: translateY(-50%);
    transition: all 0.4s ease;
}

.aiwave-dashboard-body .rbt-default-sidebar-list .collapse-btn.collapsed::after {
    content: "\e9b1";
}

.aiwave-dashboard-body .rbt-default-sidebar-list .submenu {
    margin-left: 30px;
}

.aiwave-dashboard-body .rbt-sm-separator {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background-color: var(--color-border);
}

.aiwave-dashboard-body .subscription-box {
    position: absolute;
    bottom: 30px;
    left: 0;
    z-index: 5;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background-color: var(--color-blackest);
}

.aiwave-dashboard-body .subscription-box .inner {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.aiwave-dashboard-body .subscription-box .autor-info {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: var(--radius-small);
    transition: all 0.3s;
}

.aiwave-dashboard-body .subscription-box .autor-info:hover {
    background-color: var(--color-dark);
}

.aiwave-dashboard-body .subscription-box .author-img {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 50%;
}

.aiwave-dashboard-body .subscription-box .author-img.active::after {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 10px;
    height: 10px;
    content: "";
    border-radius: 50%;
    background: var(--color-success);
}

.aiwave-dashboard-body .subscription-box .author-desc {
    min-width: 0;
}

.aiwave-dashboard-body .subscription-box .author-desc h6,
.aiwave-dashboard-body .subscription-box .author-desc p {
    max-width: 132px;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aiwave-dashboard-body .subscription-box .author-desc h6 {
    margin-bottom: 2px;
}

.aiwave-dashboard-body .subscription-box .author-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0 5px;
    border-radius: 4px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-b3);
    line-height: var(--line-height-b3);
}

.aiwave-dashboard-body .aipair-sidebar-credits {
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
}

.aiwave-dashboard-body .aipair-sidebar-credits .sidebar-user-progress-item {
    display: none !important;
}

.aiwave-dashboard-body .aipair-credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-body);
    font-size: var(--font-size-b3);
}

.aiwave-dashboard-body .aipair-credit-row strong {
    color: var(--color-heading);
}

.aiwave-dashboard-body .subscription-box .btn-default {
    display: block;
    min-height: 42px;
    line-height: 42px !important;
    cursor: pointer;
}

.aiwave-dashboard-body .subscription-copyright.copyright-text {
    position: absolute;
    bottom: 10px;
    z-index: 3;
    width: 100%;
    margin-bottom: 0;
}

.aiwave-dashboard-body .sidebar-overlay {
    display: none;
}

.aiwave-dashboard-body .sidebar-overlay.active {
    position: fixed;
    inset: 0;
    z-index: 980;
    display: block !important;
    background: rgb(0 0 0 / 56%);
}

/* Center workbench and regular Hexai pages */
.aiwave-dashboard-body .rbt-main-content {
    width: 805px;
    min-height: 450px;
    margin: var(--aipair-header-height) auto 120px;
    padding: 0;
    transition: all 0.4s ease;
}

.aiwave-dashboard-body .rbt-daynamic-page-content,
.aiwave-dashboard-body .rbt-dashboard-content,
.aiwave-dashboard-body .content-page,
.aiwave-dashboard-body .chat-box-list {
    width: 100%;
}

.aiwave-dashboard-body .rbt-dashboard-content .content-page {
    padding-top: 20px;
}

.aiwave-dashboard-body #container_content > .row.main-row {
    display: block;
    width: calc(100% - var(--sidebar-width) - 48px);
    max-width: none;
    min-height: calc(100vh - var(--aipair-header-height));
    margin: var(--aipair-header-height) 24px 80px calc(var(--sidebar-width) + 24px) !important;
    padding: 24px 0 0 !important;
}

.aiwave-dashboard-body.aipair-left-collapsed #container_content > .row.main-row {
    width: calc(100% - 48px);
    margin-left: 24px !important;
}

.aiwave-dashboard-body #container_content > .row.main-row > .main-div {
    display: block !important;
    width: 100%;
    max-width: 1220px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.aiwave-dashboard-body #container_content > .row.main-row > .main-div > .row {
    margin-right: -12px;
    margin-left: -12px;
}

.aiwave-dashboard-body .row.main-row .bg-white-shadow,
.aiwave-dashboard-body .row.main-row .dash-mainDivs,
.aiwave-dashboard-body .row.main-row .templates-all,
.aiwave-dashboard-body .row.main-row .all-my-documents,
.aiwave-dashboard-body .row.main-row .all-my-images,
.aiwave-dashboard-body .row.main-row .workbook-table,
.aiwave-dashboard-body .row.main-row .history-table,
.aiwave-dashboard-body .row.main-row .support,
.aiwave-dashboard-body .row.main-row .all-system-noti {
    border: 1px solid var(--color-border);
    background: var(--color-dark);
}

/* Chat/workbench */
.aiwave-dashboard-body .chat-box-section {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--color-dark);
}

.aiwave-dashboard-body .chat-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 16px 24px;
    background-color: var(--color-lessdark);
}

.aiwave-dashboard-body .chat-top-bar .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.aiwave-dashboard-body .chat-top-bar .section-title .icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 0;
}

.aiwave-dashboard-body .chat-top-bar .section-title .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aiwave-dashboard-body .chat-top-bar .section-title .title {
    overflow: hidden;
    margin-bottom: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aiwave-dashboard-body .chat-top-bar .more-info-icon {
    padding: 6px 8px;
    border: 0;
    border-radius: 4px;
    background: var(--color-gray);
    color: var(--color-heading);
}

.aiwave-dashboard-body .chat-box-list {
    display: block;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 35px 24px;
}

.aiwave-dashboard-body .chat-box {
    position: relative;
    display: block;
    margin: 0;
    padding: 25px 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-dark);
}

.aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech,
.aiwave-dashboard-body .aipair-chat-main .my-message {
    justify-content: initial;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner,
.aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech .inner,
.aiwave-dashboard-body .aipair-chat-main .chat-box .chat-section,
.aiwave-dashboard-body .aipair-chat-main .chat-content,
.aiwave-dashboard-body .aipair-chat-main .message-txt,
.aiwave-dashboard-body .aipair-chat-main .my-message .message-txt,
.aiwave-dashboard-body .aipair-chat-main .response-message .message-txt {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner,
.aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech .inner {
    max-width: none !important;
    padding: 0 !important;
    color: inherit;
    border-radius: 0 !important;
}

.aiwave-dashboard-body .chat-box:first-child {
    padding-top: 0;
    border-top: 0;
}

.aiwave-dashboard-body .chat-box .inner .chat-section {
    display: flex;
    align-items: flex-start;
}

.aiwave-dashboard-body .chat-box .inner .chat-section .author {
    display: flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-primary);
}

.aiwave-dashboard-body .chat-box .inner .chat-section .author img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.aiwave-dashboard-body .chat-content {
    width: 100%;
    max-width: calc(100% - 60px);
    transition: 0.4s;
}

.aiwave-dashboard-body .chat-content .title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    min-width: 0;
}

.aiwave-dashboard-body .chat-content .rainbow-badge-card {
    flex: 0 0 auto;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 22px;
}

.aiwave-dashboard-body .message-txt {
    max-width: none;
    padding: 0;
    color: var(--color-body);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.aiwave-dashboard-body .message-txt p {
    margin: 10px 0;
}

.aiwave-dashboard-body .reaction-section {
    margin-top: 20px;
}

.aiwave-dashboard-body .reaction-section .btn-grp {
    display: flex;
    justify-content: space-between;
}

.aiwave-dashboard-body .reaction-section .react-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0 10px;
}

/* Static input bar */
.aiwave-dashboard-body .rbt-static-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 5;
    width: 805px;
    max-width: 805px;
    margin-top: auto;
    padding: 20px 15px;
    text-align: center;
    background-color: var(--color-dark);
    box-shadow: 0 -40px 55px -20px rgb(7 7 16);
    transform: translateX(-50%);
    transition: all 0.4s ease;
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea {
    display: block;
    width: 100%;
    max-height: 200px;
    padding: 16px 130px 16px 60px;
    border: 0;
    border-radius: var(--radius);
    outline: 0;
    background-color: transparent;
    color: var(--color-body);
    font-size: 16px;
    line-height: 22px;
    resize: none;
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea::placeholder {
    color: var(--color-body);
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .left-icons,
.aiwave-dashboard-body .rbt-static-bar .new-chat-form .right-icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .left-icons {
    left: 20px;
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .right-icons {
    right: 20px;
    display: flex;
    align-items: center;
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .form-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 100%;
    background: transparent;
    color: var(--color-body);
    cursor: pointer;
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .form-icon + .form-icon {
    margin-left: 10px;
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .form-icon:hover {
    background: var(--color-dark);
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .form-icon i {
    font-size: var(--font-size-b1);
    line-height: var(--line-height-b1);
}

.aiwave-dashboard-body .rbt-static-bar .new-chat-form .input-file {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.aiwave-dashboard-body .rbt-static-bar .small-text {
    padding-top: 15px;
    margin-bottom: 0;
}

/* Aiwave right history panel */
.aiwave-dashboard-body .rbt-right-side-panel {
    position: fixed;
    top: var(--aipair-header-height);
    right: 0;
    z-index: 990;
    width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100vh;
    min-height: 450px;
    overflow: scroll;
    background: var(--color-dark);
    border-left: 1px solid var(--color-border);
    transition: all 0.4s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.aiwave-dashboard-body .rbt-right-side-panel::-webkit-scrollbar {
    display: none;
}

.aiwave-dashboard-body .rbt-right-side-panel.collapsed {
    transform: translateX(100%);
}

.aiwave-dashboard-body .rbt-right-side-panel .right-side-top {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 20px;
    background: var(--color-dark);
    border-bottom: 1px solid var(--color-border);
}

.aiwave-dashboard-body .rbt-right-side-panel .right-side-top a,
.aiwave-dashboard-body .rbt-right-side-panel .right-side-top button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.aiwave-dashboard-body .rbt-right-side-panel .right-side-top .icon {
    margin-right: 10px;
}

.aiwave-dashboard-body .rbt-right-side-panel .right-side-bottom {
    padding: 20px;
}

.aiwave-dashboard-body .rbt-right-side-panel .right-side-bottom .title {
    margin-bottom: 10px;
    padding: 0 8px;
}

.aiwave-dashboard-body .chat-history-section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.aiwave-dashboard-body .chat-history-section + .chat-history-section {
    padding-top: 20px;
}

.aiwave-dashboard-body .chat-history-section:last-child {
    padding-bottom: 0;
    border: none;
}

.aiwave-dashboard-body .chat-history-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.aiwave-dashboard-body .chat-history-list .history-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 5px 5px 5px 10px;
    border: none;
    border-radius: 5px;
    color: var(--color-body);
    font-size: var(--font-size-b2);
    font-weight: 400;
    line-height: var(--line-height-b2);
    letter-spacing: 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.aiwave-dashboard-body .chat-history-list .history-box:hover,
.aiwave-dashboard-body .chat-history-list .history-box.active {
    background: var(--color-blackest);
}

.aiwave-dashboard-body .aipair-history-title {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.aiwave-dashboard-body .aipair-history-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aiwave-dashboard-body .chat-history-list .more-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: var(--color-heading);
    font-size: var(--font-size-b1);
    line-height: var(--line-height-b1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.aiwave-dashboard-body .chat-history-list .history-box:hover .more-info-icon,
.aiwave-dashboard-body .chat-history-list .history-box.active .more-info-icon,
.aiwave-dashboard-body .chat-history-list .more-info-icon.show {
    opacity: 0.8;
    visibility: visible;
}

.aiwave-dashboard-body .small-search.search-section {
    position: relative;
}

.aiwave-dashboard-body .small-search.search-section input {
    width: 100%;
    padding: 10px 15px 10px 30px;
    border: 2px solid var(--color-border);
    border-radius: 5px;
    background: transparent;
    color: var(--color-body);
    font-size: var(--font-size-b3);
}

.aiwave-dashboard-body .small-search.search-section input::placeholder {
    color: var(--color-body);
    font-size: var(--font-size-b3);
}

.aiwave-dashboard-body .small-search.search-section input:focus,
.aiwave-dashboard-body .small-search.search-section input:focus-visible {
    border-color: var(--color-primary) !important;
    outline: none;
}

.aiwave-dashboard-body .small-search.search-section i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.aiwave-dashboard-body .dropdown-toggle::after,
.aiwave-dashboard-body .dropup .dropdown-toggle::after {
    display: none;
}

.aiwave-dashboard-body .dropdown-menu {
    border-radius: var(--radius);
    padding: 16px;
    background-color: var(--color-blackest);
    box-shadow: 2px 6px 20px 10px rgb(0 0 0 / 50%);
    z-index: 3;
    min-width: 205px;
}

.aiwave-dashboard-body .dropdown-menu li {
    margin: 0;
}

.aiwave-dashboard-body .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--color-body);
    font-size: var(--font-size-b3);
    font-weight: 500;
    line-height: var(--line-height-b3);
    transition: all 0.3s ease-in;
}

.aiwave-dashboard-body .dropdown-menu .dropdown-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: var(--radius-small);
    background: var(--color-dark);
    font-size: var(--line-height-b3);
    line-height: var(--line-height-b3);
    transition: all 0.3s ease-in;
}

.aiwave-dashboard-body .dropdown-menu .dropdown-item:hover,
.aiwave-dashboard-body .dropdown-menu .dropdown-item:active,
.aiwave-dashboard-body .dropdown-menu .dropdown-item:focus {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.aiwave-dashboard-body .dropdown-menu .dropdown-item:hover i,
.aiwave-dashboard-body .dropdown-menu .dropdown-item:active i,
.aiwave-dashboard-body .dropdown-menu .dropdown-item:focus i {
    background: var(--color-primary);
    color: var(--color-white);
}

.aiwave-dashboard-body .dropdown-menu .dropdown-item.delete-item:hover,
.aiwave-dashboard-body .dropdown-menu .dropdown-item.delete-item:active,
.aiwave-dashboard-body .dropdown-menu .dropdown-item.delete-item:focus {
    color: var(--color-danger);
}

.aiwave-dashboard-body .dropdown-menu .dropdown-item.delete-item:hover i,
.aiwave-dashboard-body .dropdown-menu .dropdown-item.delete-item:active i,
.aiwave-dashboard-body .dropdown-menu .dropdown-item.delete-item:focus i {
    background: var(--color-danger);
}

/* Light mode bridge */
html[data-theme="light"] {
    --openBlue: var(--color-primary);
    --textColor: #181818;
}

body.active-light-mode.aiwave-dashboard-body {
    background: var(--color-white) !important;
    color: #65676b;
}

body.active-light-mode.aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header,
body.active-light-mode.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section,
body.active-light-mode.aiwave-dashboard-body .rbt-right-side-panel,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar,
body.active-light-mode.aiwave-dashboard-body .chat-box-section,
body.active-light-mode.aiwave-dashboard-body .chat-box,
body.active-light-mode.aiwave-dashboard-body .row.main-row .bg-white-shadow,
body.active-light-mode.aiwave-dashboard-body .row.main-row .dash-mainDivs,
body.active-light-mode.aiwave-dashboard-body .row.main-row .templates-all,
body.active-light-mode.aiwave-dashboard-body .row.main-row .all-my-documents,
body.active-light-mode.aiwave-dashboard-body .row.main-row .all-my-images,
body.active-light-mode.aiwave-dashboard-body .row.main-row .workbook-table,
body.active-light-mode.aiwave-dashboard-body .row.main-row .history-table,
body.active-light-mode.aiwave-dashboard-body .row.main-row .support,
body.active-light-mode.aiwave-dashboard-body .row.main-row .all-system-noti {
    background: #f5f8fa !important;
    color: #65676b;
}

body.active-light-mode.aiwave-dashboard-body .chat-top-bar,
body.active-light-mode.aiwave-dashboard-body .subscription-box,
body.active-light-mode.aiwave-dashboard-body .rbt-user-menu-list-wrapper,
body.active-light-mode.aiwave-dashboard-body .rbt-notification-dropdown,
body.active-light-mode.aiwave-dashboard-body .dropdown-menu,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form.border-gradient,
body.active-light-mode.aiwave-dashboard-body .rbt-default-sidebar-list li a:hover,
body.active-light-mode.aiwave-dashboard-body .rbt-default-sidebar-list li a.active,
body.active-light-mode.aiwave-dashboard-body .chat-history-list .history-box:hover,
body.active-light-mode.aiwave-dashboard-body .chat-history-list .history-box.active {
    background: #ffffff !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header,
body.active-light-mode.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section,
body.active-light-mode.aiwave-dashboard-body .rbt-right-side-panel,
body.active-light-mode.aiwave-dashboard-body .chat-box,
body.active-light-mode.aiwave-dashboard-body .chat-history-section,
body.active-light-mode.aiwave-dashboard-body .row.main-row .bg-white-shadow,
body.active-light-mode.aiwave-dashboard-body .row.main-row .dash-mainDivs,
body.active-light-mode.aiwave-dashboard-body .row.main-row .templates-all,
body.active-light-mode.aiwave-dashboard-body .row.main-row .all-my-documents,
body.active-light-mode.aiwave-dashboard-body .row.main-row .all-my-images,
body.active-light-mode.aiwave-dashboard-body .row.main-row .workbook-table,
body.active-light-mode.aiwave-dashboard-body .row.main-row .history-table,
body.active-light-mode.aiwave-dashboard-body .row.main-row .support,
body.active-light-mode.aiwave-dashboard-body .row.main-row .all-system-noti {
    border-color: rgba(0, 0, 0, 0.1411764706) !important;
}

body.active-light-mode.aiwave-dashboard-body h1,
body.active-light-mode.aiwave-dashboard-body h2,
body.active-light-mode.aiwave-dashboard-body h3,
body.active-light-mode.aiwave-dashboard-body h4,
body.active-light-mode.aiwave-dashboard-body h5,
body.active-light-mode.aiwave-dashboard-body h6,
body.active-light-mode.aiwave-dashboard-body .title,
body.active-light-mode.aiwave-dashboard-body .rbt-admin-card.grid-style .content .title,
body.active-light-mode.aiwave-dashboard-body .subscription-box .author-desc h6 {
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body p,
body.active-light-mode.aiwave-dashboard-body .message-txt,
body.active-light-mode.aiwave-dashboard-body .rbt-default-sidebar-list li a,
body.active-light-mode.aiwave-dashboard-body .chat-history-list .history-box,
body.active-light-mode.aiwave-dashboard-body .aipair-history-title,
body.active-light-mode.aiwave-dashboard-body .subscription-box .author-desc p,
body.active-light-mode.aiwave-dashboard-body .rbt-admin-card.grid-style .content p,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea::placeholder,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form .form-icon {
    color: #65676b !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar {
    box-shadow: 0 -40px 55px -20px rgb(224 229 235);
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea {
    background: transparent !important;
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea::placeholder {
    color: #65676b !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar .new-chat-form.border-gradient {
    border: 1px solid rgba(0, 0, 0, 0.1411764706);
    box-shadow: 0 0 0 1px rgba(217, 79, 213, 0.08);
}

body.active-light-mode.aiwave-dashboard-body .small-search.search-section input {
    border-color: rgba(0, 0, 0, 0.1411764706);
    color: #65676b;
}

/* Public pages keep Hexai surface while Aiwave assets are loaded. */
body.aiwave-public-body {
    min-height: 100vh;
}

body.aiwave-public-body .aiwave-home-header {
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

body.aiwave-public-body .aipair-auth-shell,
body.aiwave-public-body .aipair-tool-main {
    width: min(760px, calc(100% - 32px)) !important;
    margin: 64px auto !important;
}

@media (max-width: 1599px) {
    .aiwave-dashboard-body #container_content > .row.main-row {
        width: 100%;
        max-width: none;
        margin: var(--aipair-header-height) 0 80px 0 !important;
        padding: 24px 32px 0 !important;
    }

    .aiwave-dashboard-body .rbt-main-content,
    .aiwave-dashboard-body .rbt-static-bar {
        width: calc(100% - 120px);
        max-width: 805px;
    }

    .aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section,
    .aiwave-dashboard-body .rbt-right-side-panel {
        z-index: 1001;
    }
}

@media (max-width: 1199px) {
    .aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header {
        padding: 0 14px !important;
    }

    .aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li > a {
        padding: 0 10px;
    }

    .aiwave-dashboard-body #container_content > .row.main-row {
        padding: 20px 24px 0 !important;
    }
}

@media (max-width: 767px) {
    :root {
        --sidebar-width: 280px;
    }

    .aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header {
        padding: 0 10px !important;
    }

    .aiwave-dashboard-body .rbt-dashboard-header .logo {
        margin-left: 8px;
    }

    .aiwave-dashboard-body .rbt-dashboard-header .logo img,
    .aiwave-dashboard-body .rbt-dashboard-header #logo {
        max-width: 126px;
    }

    .aiwave-dashboard-body .popup-dashboardleft-btn,
    .aiwave-dashboard-body .popup-dashboardright-btn,
    .aiwave-dashboard-body .hamberger-button,
    .aiwave-dashboard-body .rbt-round-btn {
        width: 35px;
        height: 35px;
    }

    .aiwave-dashboard-body .rbt-admin-card.grid-style .img-box {
        width: 35px;
        height: 35px;
        max-width: 35px;
        margin-right: 0;
    }

    .aiwave-dashboard-body .rbt-dashboard-header .rbt-admin-card.grid-style .content,
    .aiwave-dashboard-body .rbt-dashboard-header .rbt-admin-card.grid-style .icon {
        display: none !important;
    }

    .aiwave-dashboard-body .rbt-notification-dropdown,
    .aiwave-dashboard-body .rbt-user-menu-list-wrapper {
        position: fixed !important;
        top: calc(var(--aipair-header-height) + 8px) !important;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        min-width: 0 !important;
        transform: none !important;
    }

    .aiwave-dashboard-body .rbt-main-content,
    .aiwave-dashboard-body .rbt-static-bar {
        width: calc(100% - 30px);
        max-width: 805px;
    }

    .aiwave-dashboard-body #container_content > .row.main-row {
        padding: 18px 15px 0 !important;
    }

    .aiwave-dashboard-body .chat-top-bar {
        align-items: flex-start;
        padding: 16px;
    }

    .aiwave-dashboard-body .chat-top-bar .section-title {
        align-items: flex-start;
    }

    .aiwave-dashboard-body .chat-top-bar .section-title .title {
        max-width: calc(100vw - 120px);
        white-space: normal;
    }

    .aiwave-dashboard-body .chat-box-list {
        padding: 16px;
    }

    .aiwave-dashboard-body .chat-box {
        padding: 20px 0;
    }

    .aiwave-dashboard-body .chat-box .inner .chat-section .author {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    .aiwave-dashboard-body .chat-content {
        max-width: calc(100% - 40px);
    }

    .aiwave-dashboard-body .chat-content .title {
        flex-wrap: wrap;
        align-items: flex-start;
        line-height: 1.35;
    }

    .aiwave-dashboard-body .message-txt {
        overflow-wrap: anywhere;
        font-size: 15px;
    }

    .aiwave-dashboard-body .rbt-static-bar {
        padding: 10px;
    }

    .aiwave-dashboard-body .rbt-static-bar .new-chat-form textarea {
        min-height: 64px;
        padding: 12px 100px 35px 40px;
    }

    .aiwave-dashboard-body .rbt-static-bar .new-chat-form .left-icons {
        left: 10px;
    }

    .aiwave-dashboard-body .rbt-static-bar .new-chat-form .right-icons {
        right: 10px;
    }

    .aiwave-dashboard-body .rbt-static-bar .new-chat-form .form-icon {
        width: 20px;
        height: 20px;
    }
}

/* Final ai-studio cascade lock. Keep this at the end so older source-parity
   compatibility rules above cannot pull the chat shell back to 805px. */
:root {
    --aipair-header-height: 65px;
    --sidebar-width: 320px;
}

.aiwave-dashboard-body .rbt-dashboard-header.aipair-dashboard-header {
    min-height: 65px !important;
    height: 65px !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .rbt-dashboard-header .container-fluid,
.aiwave-dashboard-body .rbt-dashboard-header .row,
.aiwave-dashboard-body .rbt-dashboard-header .header-left,
.aiwave-dashboard-body .rbt-dashboard-header .header-right,
.aiwave-dashboard-body .rbt-dashboard-header .mainmenu > li {
    min-height: 65px !important;
    height: 65px !important;
}

.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section,
.aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
    top: 65px !important;
    width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    height: calc(100vh - 65px) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
    width: auto !important;
    max-width: none !important;
    margin: 65px var(--sidebar-width) 70px var(--sidebar-width) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
    padding: 0 190px !important;
}

.aiwave-dashboard-body .aipair-chat-section {
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
    margin: 0 -190px !important;
    padding: 14px 190px !important;
    background: var(--color-dark) !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
    height: calc(100vh - 139px) !important;
    max-height: calc(100vh - 139px) !important;
    overflow-y: auto !important;
    padding: 30px 0 88px !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box,
.aiwave-dashboard-body .aipair-chat-main .chat-message {
    margin: 0 0 30px !important;
    padding: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--radius) !important;
    background: var(--color-dark) !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section .author,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin-right: 20px !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-content {
    max-width: calc(100% - 60px) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    right: var(--sidebar-width) !important;
    left: var(--sidebar-width) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 70px !important;
    padding: 15px 0 !important;
    background: var(--color-blackest) !important;
    transform: none !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
    margin: 0 190px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp {
    min-height: 56px !important;
    padding: 16px 130px 16px 60px !important;
    border: 2px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 0 50px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin: 0 -50px !important;
        padding-right: 50px !important;
        padding-left: 50px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
        margin: 0 50px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 0 50px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin: 0 -50px !important;
        padding-right: 50px !important;
        padding-left: 50px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        right: 0 !important;
        left: 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
        margin: 0 50px !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 0 12px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin: 0 -12px !important;
        padding: 12px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
        height: calc(100vh - 131px) !important;
        max-height: calc(100vh - 131px) !important;
        padding: 16px 0 76px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box,
    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        margin-bottom: 16px !important;
        padding: 18px 12px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section .author,
    .aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
        flex-basis: 28px !important;
        width: 28px !important;
        height: 28px !important;
        margin-right: 10px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-content {
        max-width: calc(100% - 38px) !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        min-height: 66px !important;
        padding: 10px 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form {
        margin: 0 12px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form textarea#message-inp {
        min-height: 48px !important;
        padding: 12px 96px 12px 42px !important;
        font-size: 14px !important;
    }
}

/* AI Studio live target lock: video-generator.php shell, with Hexai routes preserved. */
:root {
    --aipair-header-height: 65px;
    --sidebar-width: 320px;
}

body.aiwave-dashboard-body {
    background: #121212 !important;
}

.aiwave-dashboard-body #main-header,
.aiwave-dashboard-body #container_content,
.aiwave-dashboard-body #main-footer,
.aiwave-dashboard-body.aipair-left-collapsed #main-header,
.aiwave-dashboard-body.aipair-left-collapsed #container_content,
.aiwave-dashboard-body.aipair-left-collapsed #main-footer {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.aiwave-dashboard-body #container_content.wrapper {
    min-height: 100vh !important;
    padding-bottom: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header {
    height: 65px !important;
    min-height: 65px !important;
    padding: 0 20px !important;
    background: #121212 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .aipair-ai-studio-header-row {
    min-height: 65px !important;
    height: 65px !important;
    margin-top: -10px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .header-left,
.aiwave-dashboard-body .aipair-ai-studio-header .header-right {
    min-height: 65px !important;
    height: 65px !important;
}

.aiwave-dashboard-body .aipair-header-title-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.aiwave-dashboard-body .aipair-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
}

.aiwave-dashboard-body .aipair-ai-studio-title {
    overflow: hidden;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aiwave-dashboard-body .aipair-ai-studio-header .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    min-height: 65px;
}

.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu > li {
    height: 65px !important;
    min-height: 65px !important;
    margin: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu > li > a {
    height: 65px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 65px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .aipair-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 121px;
    height: 40px;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 100px;
    font-size: 14px;
    line-height: 40px !important;
    white-space: nowrap;
}

.aiwave-dashboard-body .aipair-ai-studio-header .aipair-grid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

.aiwave-dashboard-body .aipair-header-avatar-toggle .popup-dashboardright-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-header-avatar-toggle .popup-dashboardright-btn img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section {
    top: 65px !important;
    width: 320px !important;
    max-width: 320px !important;
    height: calc(100vh - 65px) !important;
    padding: 10px 20px 0 !important;
    background: #1f1f1f !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.aiwave-dashboard-body .aipair-sidebar-credits {
    display: none !important;
}

.aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
    top: 65px !important;
    right: 0 !important;
    width: 320px !important;
    max-width: 320px !important;
    height: calc(100vh - 65px) !important;
    padding: 0 !important;
    background: #121212 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
    width: auto !important;
    max-width: none !important;
    min-height: calc(100vh - 125px) !important;
    margin: 65px 320px 60px !important;
    padding: 0 !important;
    background: #121212 !important;
}

.aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 30px 190px 110px !important;
}

.aiwave-dashboard-body .aipair-chat-section {
    min-height: calc(100vh - 125px) !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
    margin: -30px -190px 0 !important;
    padding: 20px 190px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
    height: calc(100vh - 185px) !important;
    max-height: calc(100vh - 185px) !important;
    overflow-y: auto !important;
    padding: 30px 0 96px !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box,
.aiwave-dashboard-body .aipair-chat-main .chat-message,
.aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech,
.aiwave-dashboard-body .aipair-chat-main .chat-box.ai-speech,
.aiwave-dashboard-body .aipair-chat-main .my-message,
.aiwave-dashboard-body .aipair-chat-main .response-message {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 30px !important;
    padding: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    background: #1f1f1f !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner,
.aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech .inner,
.aiwave-dashboard-body .aipair-chat-main .chat-box .chat-section {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 20px !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section .author,
.aiwave-dashboard-body .aipair-chat-main .chat-box .author,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-content,
.aiwave-dashboard-body .aipair-chat-main .message-txt,
.aiwave-dashboard-body .aipair-chat-main .my-message .message-txt,
.aiwave-dashboard-body .aipair-chat-main .response-message .message-txt {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    right: 320px !important;
    bottom: 0 !important;
    left: 320px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 15px 0 !important;
    background: #1f1f1f !important;
    border-top: 1px solid rgba(135, 135, 135, 0.15) !important;
    box-shadow: 0 0 0 0 rgba(183, 183, 183, 0.21) !important;
    transform: none !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .small-text {
    display: none !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    width: auto !important;
    margin: 58px 190px 0 !important;
    padding: 0 8px !important;
    border-radius: var(--radius) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #hr {
    width: 50px;
    height: 0;
    margin: 0 0 -10px;
    border: 0;
    border-radius: 200px;
    background: transparent;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 {
    display: none;
    justify-content: flex-start;
    gap: 20px;
    margin: 0 0 -20px 5px;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 h6 {
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
    display: block !important;
    box-sizing: border-box !important;
    width: 85% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 200px !important;
    padding: 10px 20px 0 160px !important;
    overflow: hidden !important;
    border: 1px solid rgba(134, 134, 134, 0.27) !important;
    border-radius: 6rem !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--color-body) !important;
    font-size: 14px !important;
    line-height: 22px !important;
    resize: none !important;
    transition: height 0.3s ease !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea::placeholder {
    color: var(--color-body) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .aipair-a2-action-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    margin-top: 25px;
    margin-bottom: 30px;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons,
.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
    position: absolute !important;
    top: 50% !important;
    display: flex !important;
    align-items: center !important;
    transform: translateY(-50%) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons {
    left: 20px !important;
    gap: 20px !important;
    height: 40px !important;
    margin-top: -60px !important;
    margin-left: -15px !important;
    padding: 10px !important;
    border-radius: 30px !important;
    background: rgba(163, 163, 163, 0.15) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    margin-top: -60px !important;
    margin-right: -10px !important;
    padding: 10px !important;
    border-radius: 30px !important;
    background: rgba(163, 163, 163, 0.15) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--color-body) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon i {
    font-size: 18px !important;
    line-height: 18px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon.icon-plus {
    position: relative !important;
    pointer-events: all;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon.icon-plus .input-file {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    opacity: 0 !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #message-send-btn img {
    max-width: 18px !important;
    max-height: 18px !important;
}

.aiwave-dashboard-body #container_content > .row.main-row {
    width: calc(100% - 320px) !important;
    max-width: none !important;
    min-height: calc(100vh - 65px) !important;
    margin: 65px 0 80px 320px !important;
    padding: 24px 32px 0 !important;
}

.aiwave-dashboard-body #container_content > .row.main-row > .main-div {
    width: 100% !important;
    max-width: 1220px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.active-light-mode.aiwave-dashboard-body {
    background: var(--color-white) !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-header,
body.active-light-mode.aiwave-dashboard-body .rbt-left-panel.popup-dashboardleft-section,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main,
body.active-light-mode.aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
    background: #f5f8fa !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .chat-box,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .chat-message {
    background: #ffffff !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-title,
body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu > li > a {
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
    border-color: rgba(0, 0, 0, 0.14) !important;
    background: transparent !important;
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea::placeholder,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon {
    color: #65676b !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding-right: 45px !important;
        padding-left: 45px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin-right: -45px !important;
        margin-left: -45px !important;
        padding-right: 45px !important;
        padding-left: 45px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 45px !important;
        margin-left: 45px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body .aipair-ai-studio-header .mainmenu-nav,
    .aiwave-dashboard-body .aipair-ai-studio-header .aipair-upgrade-btn,
    .aiwave-dashboard-body .aipair-ai-studio-header .aipair-grid-btn {
        display: none !important;
    }

    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
        transform: translateX(100%);
    }

    .aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section:not(.collapsed) {
        transform: translateX(0);
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        right: 0 !important;
        left: 0 !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding-right: 45px !important;
        padding-left: 45px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin-right: -45px !important;
        margin-left: -45px !important;
        padding-right: 45px !important;
        padding-left: 45px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 45px !important;
        margin-left: 45px !important;
    }

    .aiwave-dashboard-body #container_content > .row.main-row {
        width: 100% !important;
        margin-left: 0 !important;
        padding-right: 24px !important;
        padding-left: 24px !important;
    }
}

@media only screen and (max-width: 767px) {
    :root {
        --sidebar-width: 280px;
    }

    .aiwave-dashboard-body .aipair-ai-studio-header {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-title {
        max-width: 180px;
        font-size: 16px;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 16px 12px 92px !important;
    }

    .aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
        margin: -16px -12px 0 !important;
        padding: 12px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
        height: calc(100vh - 153px) !important;
        max-height: calc(100vh - 153px) !important;
        padding: 18px 0 84px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box,
    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        margin-bottom: 16px !important;
        padding: 18px 12px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box .inner,
    .aiwave-dashboard-body .aipair-chat-main .chat-box.author-speech .inner,
    .aiwave-dashboard-body .aipair-chat-main .chat-box .chat-section {
        gap: 10px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box .inner .chat-section .author,
    .aiwave-dashboard-body .aipair-chat-main .chat-box .author,
    .aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
        flex-basis: 28px !important;
        width: 28px !important;
        height: 28px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 12px !important;
        margin-left: 12px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
        width: 100% !important;
        padding-right: 58px !important;
        padding-left: 116px !important;
        font-size: 13px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons {
        gap: 12px !important;
        margin-left: -8px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
        margin-right: -8px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Final ai-studio parity lock: scoped to aiwave_aipair and kept after all imported Aiwave/Hexai rules. */
.aiwave-dashboard-body {
    --aipair-header-height: 65px;
    --sidebar-width: 320px;
}

.aiwave-dashboard-body #container_content,
.aiwave-dashboard-body #container_content.wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aiwave-dashboard-body #container_content > .row.main-row {
    display: block !important;
    box-sizing: border-box !important;
    width: calc(100% - var(--sidebar-width)) !important;
    max-width: none !important;
    min-height: calc(100vh - var(--aipair-header-height)) !important;
    margin: var(--aipair-header-height) 0 80px var(--sidebar-width) !important;
    padding: 24px 32px 0 !important;
    transform: none !important;
}

.aiwave-dashboard-body #container_content > .row.main-row > .main-div {
    display: block !important;
    float: none !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: min(1220px, 100%) !important;
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
}

.aiwave-dashboard-body #container_content > .row.main-row > .main-div > .row {
    margin-right: -12px !important;
    margin-left: -12px !important;
}

.aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    min-height: calc(100vh - 125px) !important;
    margin: var(--aipair-header-height) var(--sidebar-width) 60px var(--sidebar-width) !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #121212 !important;
}

.aiwave-dashboard-body .aipair-chat-main .rbt-daynamic-page-content,
.aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 190px 115px !important;
    overflow: visible !important;
}

.aiwave-dashboard-body .aipair-chat-section .chat-top-bar {
    display: none !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 125px) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 18px !important;
    overflow: visible !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed {
    width: 100% !important;
    margin: 0 auto !important;
}

.aiwave-dashboard-body .aipair-generator-menu,
.aiwave-dashboard-body .aipair-generator-menu.rainbow-megamenu {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

.aiwave-dashboard-body .aipair-generator-menu .wrapper,
.aiwave-dashboard-body .aipair-generator-menu .single-mega-item,
.aiwave-dashboard-body .aipair-generator-menu .genarator-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card-group.full-width-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card-group.full-width-list > li {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    list-style: none !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align {
    display: block !important;
    min-height: 94px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: var(--radius) !important;
    color: var(--color-heading) !important;
    background: #1f1f1f !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 94px !important;
    padding: 15px 10px 25px !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .left-align {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .img-bar {
    width: auto !important;
    height: auto !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #808080 !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .img-bar i {
    font-size: 28px !important;
    line-height: 28px !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .title {
    margin: 0 !important;
    text-align: center !important;
    font-size: var(--font-size-b3) !important;
    line-height: 1.3 !important;
    color: var(--color-heading) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-helper {
    margin: 10px 0 24px !important;
    color: grey !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed .chat-box,
.aiwave-dashboard-body .aipair-ai-studio-seed .chat-box.author-speech,
.aiwave-dashboard-body .aipair-ai-studio-seed .chat-box.ai-speech {
    width: 100% !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed .chat-box > .inner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed .chat-section,
.aiwave-dashboard-body .aipair-chat-main .chat-message .chat-section {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed .chat-content,
.aiwave-dashboard-body .aipair-chat-main .chat-message .chat-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-intro .author {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-intro .chat-content p {
    margin: 0 0 20px !important;
    color: var(--color-body) !important;
    font-size: var(--font-size-b2) !important;
    line-height: 1.55 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-first-image {
    display: block !important;
    width: 50% !important;
    max-width: 384px !important;
    min-width: 240px !important;
    height: auto !important;
    border-radius: var(--radius) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .inner {
    padding: 28px 0 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .generate-section {
    align-items: center !important;
    margin-top: 10px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .generate-section:first-child {
    margin-top: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .author,
.aiwave-dashboard-body .aipair-chat-main .chat-message .author,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .author img,
.aiwave-dashboard-body .aipair-chat-main .chat-message .author img,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .generate-details-section {
    margin-top: 20px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .chat-content .title,
.aiwave-dashboard-body .aipair-chat-main .chat-message .chat-content .title {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 0 !important;
    line-height: 1.35 !important;
    word-break: normal !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .image-caption {
    padding: 15px 30px !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .caption-title {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .video-popup {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .video-popup > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: var(--radius) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .video-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .download-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .reaction-section .btn-grp {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-message {
    width: 100% !important;
    margin: 0 0 24px !important;
    padding: 20px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-message .inner {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-chat-main .message-txt {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    position: fixed !important;
    right: var(--sidebar-width) !important;
    bottom: 0 !important;
    left: var(--sidebar-width) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-top: 1px solid rgba(135, 135, 135, 0.15) !important;
    background: #1f1f1f !important;
    box-shadow: none !important;
    text-align: center !important;
    transition: height 0.3s ease !important;
    z-index: 60 !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 58px 190px 0 !important;
    padding: 0 8px !important;
    border-radius: var(--radius) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .aipair-a2-action-row {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 25px 0 30px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
    display: block !important;
    box-sizing: border-box !important;
    width: 85% !important;
    height: 50px !important;
    max-height: 200px !important;
    margin: 0 auto !important;
    padding: 10px 20px 0 160px !important;
    overflow: hidden !important;
    resize: none !important;
    border: 1px solid rgba(134, 134, 134, 0.27) !important;
    border-radius: 6rem !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--color-heading) !important;
    font-size: 14px !important;
    line-height: 24px !important;
    transition: height 0.3s ease !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 {
    display: none;
    justify-content: flex-start !important;
    gap: 20px !important;
    margin: 0 0 -20px 5px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 h6 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons {
    left: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    height: 40px !important;
    margin-top: -60px !important;
    margin-left: -15px !important;
    padding: 10px !important;
    border-radius: 30px !important;
    background: rgba(163, 163, 163, 0.15) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
    right: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin-top: -60px !important;
    margin-right: -10px !important;
    padding: 10px !important;
    border-radius: 30px !important;
    background: rgba(163, 163, 163, 0.15) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .small-text {
    display: none !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-main-content.aipair-chat-main,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar,
body.active-light-mode.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align {
    background: #f5f8fa !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-intro .chat-content p,
body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-result .chat-content .title,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .chat-message .chat-content .title,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .message-txt,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 h6 {
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea::placeholder {
    color: #65676b !important;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding-right: 45px !important;
        padding-left: 45px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 45px !important;
        margin-left: 45px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body #container_content > .row.main-row {
        width: 100% !important;
        margin-left: 0 !important;
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        margin: var(--aipair-header-height) 0 60px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding-right: 45px !important;
        padding-left: 45px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        right: 0 !important;
        left: 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 45px !important;
        margin-left: 45px !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body {
        --sidebar-width: 280px;
    }

    .aiwave-dashboard-body #container_content > .row.main-row {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .aiwave-dashboard-body #container_content > .row.main-row > .main-div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 14px 12px 94px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
        min-height: calc(100vh - 125px) !important;
        padding-bottom: 10px !important;
    }

    .aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align,
    .aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .inner {
        min-height: 86px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-helper {
        margin-bottom: 18px !important;
        padding: 0 6px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-seed .chat-section,
    .aiwave-dashboard-body .aipair-chat-main .chat-message .chat-section {
        gap: 10px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .author,
    .aiwave-dashboard-body .aipair-chat-main .chat-message .author,
    .aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
        flex-basis: 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-intro .chat-content p,
    .aiwave-dashboard-body .aipair-chat-main .message-txt {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-first-image {
        width: 188px !important;
        min-width: 0 !important;
        max-width: 72vw !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .caption-title {
        font-size: 16px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .image-caption {
        padding: 8px 0 !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .reaction-section .btn-grp,
    .aiwave-dashboard-body .aipair-ai-studio-result .reaction-section .left-side-btn {
        gap: 8px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 12px !important;
        margin-left: 12px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
        width: 100% !important;
        padding-right: 58px !important;
        padding-left: 116px !important;
        font-size: 13px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons {
        gap: 12px !important;
        margin-left: -8px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
        margin-right: -8px !important;
    }
}

/* Screenshot parity correction: prevent old menu/button CSS from squeezing ai-studio content. */
.aiwave-dashboard-body .aipair-generator-menu .row,
.aiwave-dashboard-body .aipair-generator-menu .row--0 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aiwave-dashboard-body .aipair-generator-menu .wrapper {
    min-width: 0 !important;
    max-width: none !important;
}

.aiwave-dashboard-body .aipair-generator-menu .single-mega-item {
    display: block !important;
    float: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .left-align {
    width: 100% !important;
    min-width: 0 !important;
}

.aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .title {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed .chat-box > .inner,
.aiwave-dashboard-body .aipair-ai-studio-result .inner,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .inner {
    display: block !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .inner,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .inner {
    border-radius: var(--radius) !important;
    background: linear-gradient(90deg, rgba(104, 89, 255, 0.20) 0%, rgba(18, 18, 18, 0.92) 58%, rgba(18, 18, 18, 0) 100%) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .chat-section,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-section {
    display: flex !important;
    width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .generate-details-section .chat-content,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-content {
    min-width: 0 !important;
    max-width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-result .generate-details-section .title {
    display: block !important;
    max-width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-live-loading {
    padding: 0 !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-ai-studio-live-loading .inner {
    padding: 22px 28px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section + .generate-section {
    margin-top: 18px !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .right-side-top {
    padding: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #121212 !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .right-side-bottom {
    padding: 20px !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .small-search.search-section input {
    width: 100% !important;
    height: 42px !important;
    padding: 10px 15px 10px 30px !important;
    border: 2px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    color: var(--color-body) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .small-search.search-section input::placeholder {
    color: var(--color-body) !important;
    opacity: 1 !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-list .history-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 5px 5px 5px 10px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-list .history-box:hover,
.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-list .history-box.active {
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .aipair-history-title {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--color-body) !important;
    text-align: left !important;
    font: inherit !important;
    line-height: var(--line-height-b3) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .aipair-history-title span {
    display: block !important;
    max-width: 210px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .more-info-icon {
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--color-heading) !important;
}

@media only screen and (min-width: 1200px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        display: block !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-seed,
    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        max-width: 884px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body .aipair-ai-studio-header .aipair-header-avatar-toggle {
        margin-left: auto !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-header .aipair-header-avatar-toggle button {
        width: 38px !important;
        height: 38px !important;
    }

    .aiwave-dashboard-body .aipair-generator-menu .genarator-card.center-align .title {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .inner,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .inner {
        padding: 18px 16px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .generate-details-section {
        align-items: flex-start !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .generate-details-section .title {
        font-size: 16px !important;
        line-height: 1.28 !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .video-popup {
        margin-top: 18px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-result .download-btn {
        top: 10px !important;
        right: 10px !important;
        height: 40px !important;
        padding: 0 18px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
        padding-left: 178px !important;
    }
}

/* Final repair pass: real chat cards, normal tool pages, profile/right-panel mobile behavior. */
.aiwave-dashboard-body .aipair-ai-studio-header .container-fluid,
.aiwave-dashboard-body .aipair-ai-studio-header-row {
    min-height: 65px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header-row,
.aiwave-dashboard-body .aipair-ai-studio-header .header-right,
.aiwave-dashboard-body .aipair-ai-studio-header .header-left {
    align-items: center !important;
}

.aiwave-dashboard-body .aipair-header-avatar-toggle,
.aiwave-dashboard-body .aipair-header-avatar-toggle button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.aiwave-dashboard-body .aipair-header-avatar-toggle button,
.aiwave-dashboard-body .aipair-header-avatar-toggle img,
.aiwave-dashboard-body .author-img,
.aiwave-dashboard-body .author-img img,
.aiwave-dashboard-body .message_chat_bot_image,
.aiwave-dashboard-body .message_chat_bot_image img {
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-header-avatar-toggle img,
.aiwave-dashboard-body .author-img img,
.aiwave-dashboard-body .message_chat_bot_image img,
.aiwave-dashboard-body .chat-message .author img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.aiwave-dashboard-body .message_bot_response img,
.aiwave-dashboard-body .aipair-ai-studio-answer .message_bot_response img {
    object-fit: contain !important;
}

.aiwave-dashboard-body .rbt-main-content.aipair-tool-main {
    position: relative !important;
    width: calc(100% - var(--sidebar-width)) !important;
    max-width: none !important;
    min-height: calc(100vh - var(--aipair-header-height)) !important;
    margin: var(--aipair-header-height) 0 80px var(--sidebar-width) !important;
    padding: 0 !important;
    background: #121212 !important;
}

.aiwave-dashboard-body .aipair-tool-main .rbt-daynamic-page-content,
.aiwave-dashboard-body .aipair-tool-main .rbt-dashboard-content,
.aiwave-dashboard-body .aipair-tool-main .content-page,
.aiwave-dashboard-body .aipair-tool-main .chat-box-list {
    width: 100% !important;
    max-width: none !important;
}

.aiwave-dashboard-body .aipair-tool-main .content-page {
    padding: 24px 32px !important;
}

.aiwave-dashboard-body .aipair-tool-main .aipair-editor-layout {
    display: flex !important;
    flex-wrap: wrap !important;
    width: min(1220px, 100%) !important;
    max-width: 1220px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.aiwave-dashboard-body .aipair-tool-main .aipair-editor-layout > [class*="col-"] {
    min-width: 0 !important;
}

.aiwave-dashboard-body .aipair-tool-main .aipair-generator-card,
.aiwave-dashboard-body .aipair-tool-main .aipair-result-card {
    width: 100% !important;
    min-height: 100% !important;
}

.aiwave-dashboard-body .aipair-tool-main .tox-tinymce,
.aiwave-dashboard-body .aipair-tool-main textarea[id^="genereted_speech_editor_"] {
    min-height: 500px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer,
.aiwave-dashboard-body .aipair-ai-studio-live-loading {
    width: 100% !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
    display: block !important;
    width: 100% !important;
    padding: 28px 32px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius) !important;
    background: linear-gradient(90deg, rgba(104, 89, 255, 0.22) 0%, rgba(18, 18, 18, 0.96) 54%, rgba(18, 18, 18, 0.82) 100%) !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .chat-section,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-section,
.aiwave-dashboard-body .aipair-user-message .chat-section {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-section,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section {
    align-items: center !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-section + .generate-section,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section + .generate-section {
    margin-top: 18px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section {
    margin-top: 22px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .chat-content,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-content,
.aiwave-dashboard-body .aipair-user-message .chat-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .title,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .title,
.aiwave-dashboard-body .aipair-user-message .title {
    display: block !important;
    margin: 0 0 10px !important;
    color: var(--color-heading) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-section .title,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section .title {
    margin-bottom: 0 !important;
    color: var(--color-body) !important;
}

.aiwave-dashboard-body .aipair-message-body,
.aiwave-dashboard-body .aipair-chat-main .message-txt {
    margin-top: 8px !important;
    color: var(--color-body) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    unicode-bidi: plaintext !important;
    text-align: start !important;
}

.aiwave-dashboard-body .aipair-message-body strong,
.aiwave-dashboard-body .aipair-chat-main .message-txt strong {
    color: var(--color-heading) !important;
    font-weight: 700 !important;
}

.aiwave-dashboard-body .aipair-user-message {
    width: 100% !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-user-message > .inner {
    padding: 24px 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius) !important;
    background: rgba(255, 255, 255, 0.025) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .author,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .author,
.aiwave-dashboard-body .aipair-user-message .author {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .aipair-status-icon,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .author:first-child {
    color: var(--color-primary) !important;
    background: transparent !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar,
.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form,
.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .form-icon,
.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar button,
.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar input {
    pointer-events: auto !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    z-index: 999 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-main-content.aipair-tool-main,
body.active-light-mode.aiwave-dashboard-body .aipair-tool-main .aipair-generator-card,
body.active-light-mode.aiwave-dashboard-body .aipair-tool-main .aipair-result-card {
    background: #f5f8fa !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner,
body.active-light-mode.aiwave-dashboard-body .aipair-user-message > .inner {
    border-color: rgba(0, 0, 0, 0.10) !important;
    background: #ffffff !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-message-body,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .message-txt {
    color: #303236 !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-message-body strong,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-main .message-txt strong,
body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-answer .title,
body.active-light-mode.aiwave-dashboard-body .aipair-user-message .title {
    color: #181818 !important;
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body .rbt-main-content.aipair-tool-main {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
        top: 65px !important;
        right: 0 !important;
        left: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 65px) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 998 !important;
    }

    .aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section:not(.collapsed) {
        transform: translateX(0) !important;
    }

    .aiwave-dashboard-body .aipair-tool-main .content-page {
        padding: 16px 12px !important;
    }

    .aiwave-dashboard-body .aipair-tool-main .aipair-editor-layout {
        display: block !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner,
    .aiwave-dashboard-body .aipair-user-message > .inner {
        padding: 18px 16px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .chat-section,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-section,
    .aiwave-dashboard-body .aipair-user-message .chat-section {
        gap: 12px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .author,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .author,
    .aiwave-dashboard-body .aipair-user-message .author {
        flex-basis: 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
    }

    .aiwave-dashboard-body .aipair-message-body,
    .aiwave-dashboard-body .aipair-chat-main .message-txt {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

/* Ai-studio parity repair: loader, desktop balance, category panels, and mobile overlays. */
.aiwave-dashboard-body {
    --aipair-right-panel-width: var(--sidebar-width);
}

.ajax_loader.aipair-preloader-overlay,
.loader.aipair-page-preloader {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #121212, #121212) !important;
    z-index: 9999 !important;
}

.ajax_loader.aipair-preloader-overlay {
    display: none;
}

.loader.aipair-page-preloader {
    display: flex;
}

.aipair-preloader-overlay .preloader_preloader_A2,
.aipair-page-preloader .preloader_preloader_A2 {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mainSVG_preloader_A2 {
    display: block !important;
    width: min(440px, 82vw) !important;
    height: min(330px, 62vh) !important;
}

.ell_preloader_A2,
.aipair-preloader-logo {
    fill: none !important;
}

.ell_preloader_A2 {
    stroke: #7130c3 !important;
    stroke-width: 2 !important;
    transform-box: fill-box;
    transform-origin: center;
    animation: aipairPreloaderOrbit 3.6s ease-in-out infinite;
}

.ell_preloader_A2:nth-child(2) { animation-delay: 0.12s; stroke: #dd00ac !important; }
.ell_preloader_A2:nth-child(3) { animation-delay: 0.24s; stroke: #410093 !important; }
.ell_preloader_A2:nth-child(4) { animation-delay: 0.36s; stroke: #7130c3 !important; }
.ell_preloader_A2:nth-child(5) { animation-delay: 0.48s; stroke: #dd00ac !important; }
.ell_preloader_A2:nth-child(6) { animation-delay: 0.60s; stroke: #410093 !important; }
.ell_preloader_A2:nth-child(7) { animation-delay: 0.72s; stroke: #7130c3 !important; }
.ell_preloader_A2:nth-child(8) { animation-delay: 0.84s; stroke: #dd00ac !important; }

.aipair-preloader-logo {
    fill: #ffffff !important;
    animation: aipairPreloaderLogo 1.8s ease-in-out infinite;
}

body.active-light-mode .ajax_loader.aipair-preloader-overlay,
body.active-light-mode .loader.aipair-page-preloader {
    background: linear-gradient(180deg, #f0f2f5, #f0f2f5) !important;
}

body.active-light-mode .aipair-preloader-logo {
    fill: #000000 !important;
}

@keyframes aipairPreloaderOrbit {
    0%, 100% {
        opacity: 0.25;
        transform: rotate(0deg) scale(0.86, 1.08);
    }
    50% {
        opacity: 0.9;
        transform: rotate(180deg) scale(1.22, 0.78);
    }
}

@keyframes aipairPreloaderLogo {
    0%, 100% {
        transform: scale(1);
        opacity: 0.82;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.aiwave-dashboard-body .aipair-ai-studio-header,
.aiwave-dashboard-body .aipair-ai-studio-header .container-fluid,
.aiwave-dashboard-body .aipair-ai-studio-header-row {
    height: 65px !important;
    min-height: 65px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header-row {
    margin-top: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .header-right,
.aiwave-dashboard-body .aipair-ai-studio-header .header-left,
.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu,
.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu > li,
.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu > li > a,
.aiwave-dashboard-body .aipair-ai-studio-header .btn-default {
    display: flex !important;
    align-items: center !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu {
    height: 65px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .mainmenu > li > a {
    height: 65px !important;
    line-height: 65px !important;
}

.aiwave-dashboard-body .aipair-header-avatar-toggle button {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.aiwave-dashboard-body .subscription-box .autor-info {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
}

.aiwave-dashboard-body .subscription-box .author-img {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    overflow: hidden !important;
}

.aiwave-dashboard-body .subscription-box .author-desc {
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.aiwave-dashboard-body .subscription-box .author-desc h6,
.aiwave-dashboard-body .subscription-box .author-desc p {
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.aiwave-dashboard-body .subscription-box .author-badge {
    display: none !important;
}

.aiwave-dashboard-body .aipair-global-right-panel .right-side-top a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 5px !important;
    text-transform: uppercase !important;
}

.aiwave-dashboard-body .aipair-global-user-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 22px !important;
    padding: 0 12px 20px !important;
    border-bottom: 1px solid var(--color-border) !important;
}

.aiwave-dashboard-body .aipair-global-user-card .author-img {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-global-user-card .author-desc {
    min-width: 0 !important;
}

.aiwave-dashboard-body .aipair-global-user-card .author-desc h6,
.aiwave-dashboard-body .aipair-global-user-card .author-desc p {
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.aiwave-dashboard-body .aipair-global-panel-section .history-box a,
.aiwave-dashboard-body .aipair-global-panel-section .history-box span,
.aiwave-dashboard-body .aipair-global-panel-section .history-box strong {
    display: block !important;
    color: var(--color-body) !important;
}

.aiwave-dashboard-body:has(.aipair-chat-main) .aipair-global-right-panel {
    display: none !important;
}

.aiwave-dashboard-body .aipair-category-panels {
    display: none;
    width: 100% !important;
    margin: -10px 0 24px !important;
}

.aiwave-dashboard-body .aipair-category-panels .aipair-category-source {
    display: none !important;
}

.aiwave-dashboard-body .aipair-category-panels .aipair-category-results {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 7px 0 !important;
}

.aiwave-dashboard-body .aipair-category-panels .ai-video-first-card,
.aiwave-dashboard-body .aipair-category-panels .skeleton-placeholder_a2 {
    width: 100% !important;
    min-height: 74px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    background: #1a1a1a !important;
}

.aiwave-dashboard-body .aipair-category-panels .ai-video-first-card {
    cursor: pointer !important;
    overflow: hidden !important;
}

.aiwave-dashboard-body .aipair-provider-row {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 16px !important;
    color: #737373 !important;
    font-size: 14px !important;
}

.aiwave-dashboard-body .aipair-provider-main {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

.aiwave-dashboard-body .aipair-provider-copy {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    margin-left: 8px !important;
    line-height: 1.25 !important;
}

.aiwave-dashboard-body .aipair-provider-kind {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #737373 !important;
    font-size: 12px !important;
}

.aiwave-dashboard-body .explore_company_ai {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.aiwave-dashboard-body .explore_company_ai .aiviu_span_a2 {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.aiwave-dashboard-body .ai_providers_bg_img_icons {
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    padding: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 20% !important;
    background: #121212 !important;
    object-fit: contain !important;
}

.aiwave-dashboard-body .elevenlabs-logomark {
    content: url("https://aipair.io/img/elevenlabs_white.svg");
}

.aiwave-dashboard-body .luma_logo_icon {
    content: url("https://aipair.io/img/luma_white.svg");
}

.aiwave-dashboard-body .runway_logo_icon {
    content: url("https://aipair.io/img/runway-ai-icon_white.png");
}

.aiwave-dashboard-body .openai-black-logomark {
    content: url("https://aipair.io/img/openai-white-logomark.png");
}

.aiwave-dashboard-body .aiviu_span_a2 {
    color: #ffffff !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
    display: block !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-section,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section,
.aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section,
.aiwave-dashboard-body .aipair-user-message .chat-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-section {
    margin-bottom: 18px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section {
    margin-top: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .message_bot_response img {
    padding: 6px !important;
    object-fit: contain !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .icon-mic.active {
    color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(128, 92, 255, 0.16) !important;
}

@media only screen and (min-width: 1600px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 30px 190px 115px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 190px !important;
        margin-left: 190px !important;
    }
}

@media only screen and (min-width: 1200px) {
    .aiwave-dashboard-body #container_content > .row.main-row {
        width: calc(100% - var(--sidebar-width) - var(--sidebar-width)) !important;
        margin: var(--aipair-header-height) var(--sidebar-width) 80px var(--sidebar-width) !important;
        padding: 24px 32px 0 !important;
    }

    .aiwave-dashboard-body .rbt-main-content.aipair-tool-main {
        width: auto !important;
        margin: var(--aipair-header-height) var(--sidebar-width) 80px var(--sidebar-width) !important;
    }

    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        width: auto !important;
        max-width: none !important;
        margin: var(--aipair-header-height) var(--sidebar-width) 60px var(--sidebar-width) !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .aipair-ai-studio-seed,
    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        width: 100% !important;
        max-width: none !important;
    }

    .aiwave-dashboard-body .aipair-generator-menu,
    .aiwave-dashboard-body .aipair-generator-menu.rainbow-megamenu,
    .aiwave-dashboard-body .aipair-generator-menu .genarator-card-group.full-width-list {
        width: 100% !important;
        max-width: none !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        right: var(--sidebar-width) !important;
        left: var(--sidebar-width) !important;
        width: auto !important;
        transform: none !important;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 30px 50px 115px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 50px !important;
        margin-left: 50px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body #container_content > .row.main-row,
    .aiwave-dashboard-body .rbt-main-content.aipair-tool-main,
    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
        z-index: 1305 !important;
        background: var(--color-blackest) !important;
    }

    .aiwave-dashboard-body.aipair-right-panel-open .rbt-static-bar.aipair-chat-input-bar {
        pointer-events: none !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .chat-section,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-section,
    .aiwave-dashboard-body .aipair-user-message .chat-section {
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .title,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .title,
    .aiwave-dashboard-body .aipair-user-message .title {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .aiwave-dashboard-body .aipair-provider-row {
        padding: 0 12px !important;
    }

    .aiwave-dashboard-body .ai_providers_bg_img_icons {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    .aiwave-dashboard-body .explore_company_ai {
        padding: 9px 12px !important;
    }
}

body.active-light-mode.aiwave-dashboard-body .aipair-category-panels .ai-video-first-card,
body.active-light-mode.aiwave-dashboard-body .aipair-category-panels .skeleton-placeholder_a2 {
    border-color: rgba(0, 0, 0, 0.10) !important;
    background: #ffffff !important;
}

body.active-light-mode.aiwave-dashboard-body .ai_providers_bg_img_icons {
    background: #ffffff !important;
}

body.active-light-mode.aiwave-dashboard-body .elevenlabs-logomark {
    content: url("https://aipair.io/img/elevenlabs.svg");
}

body.active-light-mode.aiwave-dashboard-body .luma_logo_icon {
    content: url("https://aipair.io/img/luma_black.svg");
}

body.active-light-mode.aiwave-dashboard-body .runway_logo_icon {
    content: url("https://aipair.io/img/runway-ai-icon_black.png");
}

body.active-light-mode.aiwave-dashboard-body .openai-black-logomark {
    content: url("https://aipair.io/img/openai-black-logomark.png");
}

body.active-light-mode.aiwave-dashboard-body .aiviu_span_a2 {
    color: #000000 !important;
}

body.active-light-mode.aiwave-dashboard-body .explore_company_ai {
    background: rgba(0, 0, 0, 0.06) !important;
}

/* Precision follow-up: match ai-studio proportions and remove split answer layout. */
.aiwave-dashboard-body .aipair-ai-studio-header,
.aiwave-dashboard-body .aipair-ai-studio-header .container-fluid,
.aiwave-dashboard-body .aipair-ai-studio-header .row,
.aiwave-dashboard-body .aipair-ai-studio-header .header-left,
.aiwave-dashboard-body .aipair-ai-studio-header .header-right {
    height: 65px !important;
    min-height: 65px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .header-right {
    justify-content: flex-end !important;
    gap: 18px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .btn-default,
.aiwave-dashboard-body .aipair-ai-studio-header .aipair-grid-btn,
.aiwave-dashboard-body .aipair-ai-studio-header .popup-dashboardright-btn,
.aiwave-dashboard-body .aipair-back-btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .aipair-ai-studio-title {
    display: flex !important;
    align-items: center !important;
    height: 42px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
    display: block !important;
    width: 100% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-seed,
.aiwave-dashboard-body .aipair-chat-main .chat-message {
    width: 100% !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-message {
    max-width: 884px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer,
.aiwave-dashboard-body .aipair-user-message {
    margin-right: auto !important;
    margin-left: auto !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
.aiwave-dashboard-body .aipair-user-message > .inner {
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer > .inner {
    padding: 30px !important;
    border: 1px solid var(--color-border) !important;
    background-image: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
    padding: 30px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section,
.aiwave-dashboard-body .aipair-user-message .chat-section {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-section {
    display: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .author,
.aiwave-dashboard-body .aipair-user-message .author,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
    grid-column: 1 !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex-basis: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .author img,
.aiwave-dashboard-body .aipair-user-message .author img,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-user-message .author img {
    object-fit: cover !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .message_bot_response img {
    padding: 7px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    object-fit: contain !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .chat-content,
.aiwave-dashboard-body .aipair-user-message .chat-content {
    grid-column: 2 !important;
    min-width: 0 !important;
    text-align: left !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .chat-content .title,
.aiwave-dashboard-body .aipair-user-message .chat-content .title {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: var(--color-heading) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .message-txt,
.aiwave-dashboard-body .aipair-user-message .message-txt,
.aiwave-dashboard-body .aipair-message-body {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--color-body) !important;
    text-align: start !important;
    white-space: pre-wrap !important;
    line-height: 1.7 !important;
}

.aiwave-dashboard-body .aipair-user-message > .inner {
    padding: 26px 30px !important;
    border: 1px solid var(--color-border) !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .reaction-section {
    margin-top: 18px !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel,
.aiwave-dashboard-body .aipair-global-right-panel {
    top: 65px !important;
    width: var(--sidebar-width) !important;
    height: calc(100vh - 65px) !important;
    border-left: 1px solid var(--color-border) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .right-side-top,
.aiwave-dashboard-body .aipair-global-right-panel .right-side-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 3 !important;
    padding: 20px !important;
    border-bottom: 1px solid var(--color-border) !important;
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .right-side-bottom,
.aiwave-dashboard-body .aipair-global-right-panel .right-side-bottom {
    padding: 20px !important;
}

.aiwave-dashboard-body .aipair-global-right-panel .chat-history-section {
    padding: 0 0 20px !important;
    border-bottom: 1px solid var(--color-border) !important;
}

.aiwave-dashboard-body .aipair-global-right-panel .chat-history-section + .chat-history-section {
    padding-top: 20px !important;
}

.aiwave-dashboard-body .aipair-global-right-panel .history-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 36px !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    color: var(--color-body) !important;
}

.aiwave-dashboard-body .aipair-global-right-panel .history-box:hover {
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .small-search.search-section input {
    height: 42px !important;
    border: 2px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
}

.aiwave-dashboard-body .aipair-category-panels[style*="block"] {
    display: block !important;
}

.aiwave-dashboard-body .aipair-category-panels .skeleton-wrapper_a2 {
    width: 100% !important;
    margin: 0 0 12px !important;
}

.aiwave-dashboard-body .aipair-category-panels .skeleton-placeholder_a2 {
    position: relative !important;
    overflow: hidden !important;
}

.aiwave-dashboard-body .aipair-category-panels .skeleton-placeholder_a2::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    transform: translateX(-100%) !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent) !important;
    animation: aipairCategoryShimmer 1.2s infinite !important;
}

@keyframes aipairCategoryShimmer {
    100% {
        transform: translateX(100%);
    }
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 h6.active {
    color: var(--color-heading) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #tabs_A2 h6:not(.active) {
    color: #8787877a !important;
}

@media only screen and (min-width: 1600px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 30px 190px 115px !important;
    }

    .aiwave-dashboard-body #container_content > .row.main-row > .main-div {
        max-width: 1220px !important;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 30px 50px 115px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        max-width: 884px !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 24px 18px 104px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .chat-message {
        max-width: 100% !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
    .aiwave-dashboard-body .aipair-user-message > .inner,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
        padding: 20px 18px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section,
    .aiwave-dashboard-body .aipair-user-message .chat-section {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .author,
    .aiwave-dashboard-body .aipair-user-message .author,
    .aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        flex-basis: 34px !important;
    }
}

body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
body.active-light-mode.aiwave-dashboard-body .aipair-user-message > .inner,
body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: #ffffff !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-chat-history-panel,
body.active-light-mode.aiwave-dashboard-body .aipair-global-right-panel,
body.active-light-mode.aiwave-dashboard-body .aipair-chat-history-panel .right-side-top,
body.active-light-mode.aiwave-dashboard-body .aipair-global-right-panel .right-side-top {
    background: #f5f8fa !important;
}

.ajax_loader.aipair-preloader-overlay .preloader_preloader_A2,
.loader.aipair-page-preloader .preloader_preloader_A2 {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ajax_loader.aipair-preloader-overlay .mainSVG_preloader_A2,
.loader.aipair-page-preloader .mainSVG_preloader_A2 {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* 2026-05 ai-studio repair pass: keep the source shell, then correct the regressed center/input/history details. */
.aiwave-dashboard-body .aipair-ai-studio-header .container-fluid,
.aiwave-dashboard-body .aipair-ai-studio-header .row,
.aiwave-dashboard-body .aipair-ai-studio-header .header-left,
.aiwave-dashboard-body .aipair-ai-studio-header .header-right,
.aiwave-dashboard-body .aipair-ai-studio-header .aipair-header-title-group,
.aiwave-dashboard-body .aipair-ai-studio-header .aipair-header-avatar-toggle {
    display: flex !important;
    align-items: center !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .header-right {
    height: 65px !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .popup-dashboardright-btn,
.aiwave-dashboard-body .aipair-ai-studio-header .popup-dashboardright-btn img,
.aiwave-dashboard-body .subscription-box .author-img,
.aiwave-dashboard-body .subscription-box .author-img img,
.aiwave-dashboard-body .avatar_image,
.aiwave-dashboard-body .userInfo-left img,
.aiwave-dashboard-body .profile_user_data img,
.aiwave-dashboard-body .userData-info img,
.aiwave-dashboard-body .header-avatar img,
.aiwave-dashboard-body .admin-thumbnail img {
    border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .popup-dashboardright-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-header .popup-dashboardright-btn img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

@media only screen and (min-width: 1200px) {
    .aiwave-dashboard-body #container_content > .row.main-row {
        width: calc(100vw - (var(--sidebar-width) * 2)) !important;
        max-width: calc(100vw - (var(--sidebar-width) * 2)) !important;
        margin: var(--aipair-header-height) var(--sidebar-width) 80px var(--sidebar-width) !important;
        padding: 24px 32px 0 !important;
    }

    .aiwave-dashboard-body #container_content > .row.main-row > .main-div {
        width: min(1220px, 100%) !important;
        max-width: 1220px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        width: 805px !important;
        max-width: 805px !important;
        min-height: calc(100vh - 125px) !important;
        margin: var(--aipair-header-height) auto 120px !important;
        padding: 0 !important;
        background: #121212 !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        width: 100% !important;
        max-width: 805px !important;
        margin: 0 auto !important;
        padding: 30px 0 115px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        left: 50% !important;
        right: auto !important;
        width: 805px !important;
        max-width: 805px !important;
        transform: translateX(-50%) !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }
}

.aiwave-dashboard-body .aipair-chat-main .chat-box-list.chat-inner {
    padding-bottom: 96px !important;
}

.aiwave-dashboard-body .aipair-chat-main .chat-message {
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer,
.aiwave-dashboard-body .aipair-user-message,
.aiwave-dashboard-body .aipair-ai-studio-live-loading {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
.aiwave-dashboard-body .aipair-user-message > .inner,
.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section,
.aiwave-dashboard-body .aipair-user-message .chat-section,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

.aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section {
    align-items: center !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .author,
.aiwave-dashboard-body .aipair-user-message .author,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .author,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background-color: transparent !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .author img,
.aiwave-dashboard-body .aipair-user-message .author img,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .author img,
.aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .message_bot_response img,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .author img {
    padding: 7px !important;
    object-fit: contain !important;
}

.aiwave-dashboard-body .aipair-user-message .author img {
    object-fit: cover !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .chat-content,
.aiwave-dashboard-body .aipair-user-message .chat-content,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    text-align: left !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .chat-content .title,
.aiwave-dashboard-body .aipair-user-message .chat-content .title,
.aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-content .title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    color: var(--color-heading) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

.aiwave-dashboard-body .aipair-message-body,
.aiwave-dashboard-body .aipair-ai-studio-answer .message-txt,
.aiwave-dashboard-body .aipair-user-message .message-txt {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--color-body) !important;
    font-size: 15px !important;
    line-height: 1.68 !important;
    text-align: start !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
}

.aiwave-dashboard-body .aipair-ai-studio-answer .reaction-section {
    margin-top: 16px !important;
}

.aiwave-dashboard-body .aipair-category-panels.aipair-category-open {
    display: block !important;
}

.aiwave-dashboard-body .aipair-category-panels .aipair-category-results {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.aiwave-dashboard-body .aipair-category-panels .skeleton-wrapper_a2,
.aiwave-dashboard-body .aipair-category-panels .ai-video-first-card {
    width: 100% !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .right-side-top .btn-default,
.aiwave-dashboard-body .aipair-global-right-panel .right-side-top .btn-default {
    width: 100% !important;
    min-height: 50px !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-section {
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--color-border) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-section .title {
    padding: 0 12px !important;
    margin: 0 0 10px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    color: var(--color-heading) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .chat-history-list {
    padding-left: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .history-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 36px !important;
    padding: 5px 5px 5px 10px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: var(--color-body) !important;
    font-size: var(--font-size-b3) !important;
    line-height: var(--line-height-b3) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .history-box:hover,
.aiwave-dashboard-body .aipair-chat-history-panel .history-box.active {
    background: var(--color-blackest) !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .aipair-history-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    text-align: left !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .aipair-history-title span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .more-info-icon {
    width: 25px !important;
    height: 25px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--color-heading) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .history-box:hover .more-info-icon,
.aiwave-dashboard-body .aipair-chat-history-panel .history-box.active .more-info-icon {
    opacity: 0.8 !important;
    visibility: visible !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel .aipair-history-extra {
    display: none !important;
}

.aiwave-dashboard-body .aipair-chat-history-panel.aipair-history-expanded .aipair-history-extra {
    display: flex !important;
}

.aiwave-dashboard-body .aipair-history-show-more.rbt-show-more-btn {
    width: 100% !important;
    margin-top: 5px !important;
    padding: 5px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--color-primary) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.aiwave-dashboard-body .aipair-history-show-more.rbt-show-more-btn::before {
    background: linear-gradient(rgb(7 7 16 / 0%) 0%, rgb(0 0 0) 100%) !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
    bottom: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    border-top: 1px solid #87878726 !important;
    box-shadow: rgba(183, 183, 183, 0.21) 0 0 0 !important;
    overflow: visible !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-height: 60px !important;
    margin-top: -12px !important;
    padding: 0 8px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
    width: 85% !important;
    height: 50px !important;
    padding: 10px 20px 0 160px !important;
    border: 1px solid #86868645 !important;
    border-radius: 6rem !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons {
    height: 40px !important;
    margin-top: -60px !important;
    margin-left: -5px !important;
    padding: 10px 15px !important;
    gap: 25px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
    width: 40px !important;
    height: 40px !important;
    margin-top: -60px !important;
    margin-right: -10px !important;
    padding: 10px !important;
}

.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #message-send-btn img {
    max-width: 18px !important;
    max-height: 18px !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-answer > .inner,
body.active-light-mode.aiwave-dashboard-body .aipair-user-message > .inner,
body.active-light-mode.aiwave-dashboard-body .aipair-ai-studio-live-loading > .inner {
    background: transparent !important;
    border-color: transparent !important;
}

body.active-light-mode.aiwave-dashboard-body .aipair-history-show-more.rbt-show-more-btn::before {
    background: linear-gradient(rgb(245 248 250 / 0%) 0%, rgb(245 248 250) 100%) !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
    border-color: rgba(0, 0, 0, 0.14) !important;
    background: transparent !important;
    color: #181818 !important;
}

body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons,
body.active-light-mode.aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
    background: rgba(0, 0, 0, 0.06) !important;
}

@media only screen and (max-width: 1199px) {
    .aiwave-dashboard-body #container_content > .row.main-row,
    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        max-width: none !important;
    }
}

@media only screen and (max-width: 767px) {
    .aiwave-dashboard-body .aipair-ai-studio-header .aipair-upgrade-btn,
    .aiwave-dashboard-body .aipair-ai-studio-header .aipair-grid-btn,
    .aiwave-dashboard-body .aipair-ai-studio-header .mobile-menu-bar {
        display: none !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-header .header-right {
        gap: 0 !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-header .col-7 {
        width: calc(100% - 62px) !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-header .col-5 {
        width: 62px !important;
    }

    .aiwave-dashboard-body .rbt-right-side-panel.popup-dashboardright-section {
        top: 65px !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 65px) !important;
        z-index: 1305 !important;
    }

    .aiwave-dashboard-body .rbt-main-content.aipair-chat-main {
        margin-top: 65px !important;
        margin-bottom: 96px !important;
    }

    .aiwave-dashboard-body .aipair-chat-main .rbt-dashboard-content .content-page {
        padding: 24px 18px 96px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .generate-details-section,
    .aiwave-dashboard-body .aipair-user-message .chat-section,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .generate-section {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .author,
    .aiwave-dashboard-body .aipair-user-message .author,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .author,
    .aiwave-dashboard-body .aipair-chat-main .message_chat_bot_image {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }

    .aiwave-dashboard-body .aipair-ai-studio-answer .chat-content .title,
    .aiwave-dashboard-body .aipair-user-message .chat-content .title,
    .aiwave-dashboard-body .aipair-ai-studio-live-loading .chat-content .title {
        font-size: 14px !important;
    }

    .aiwave-dashboard-body .aipair-message-body,
    .aiwave-dashboard-body .aipair-ai-studio-answer .message-txt,
    .aiwave-dashboard-body .aipair-user-message .message-txt {
        font-size: 14px !important;
        line-height: 1.62 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar {
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        bottom: 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar .new-chat-form.aipair-a2-form {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar textarea#message-inp.aipair-a2-textarea {
        width: 100% !important;
        padding-right: 58px !important;
        padding-left: 146px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #leftIcons {
        margin-left: 0 !important;
        gap: 17px !important;
    }

    .aiwave-dashboard-body .rbt-static-bar.aipair-chat-input-bar #rightIcons {
        margin-right: 0 !important;
    }
}

.ajax_loader.aipair-preloader-overlay,
.loader.aipair-page-preloader {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    background: #050505 !important;
}

.ajax_loader.aipair-preloader-overlay[style*="display: block"],
.loader.aipair-page-preloader[style*="display: block"] {
    display: flex !important;
}
