.ask-mindx {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ask-mindx-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px 10px 12px;
    color: #ffffff;
    background: #123b66;
    box-shadow: 0 18px 42px rgba(18, 59, 102, 0.24);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.ask-mindx-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #7cc4c7;
    color: #0d2f52;
}

.ask-mindx-icon i {
    font-size: 18px;
}

.ask-mindx-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(380px, calc(100vw - 36px));
    overflow: hidden;
    border: 1px solid #d9e3ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(18, 59, 102, 0.22);
}

.ask-mindx-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #d9e3ec;
    background: #f8fbfd;
}

.ask-mindx-head strong {
    display: block;
    color: #123b66;
    font-size: 15px;
}

.ask-mindx-head span,
.ask-mindx-answer span,
.ask-mindx-answer li {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.ask-mindx-head button {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#askMindxForm {
    display: grid;
    gap: 10px;
    padding: 14px;
}

#askMindxInput {
    width: 100%;
    resize: vertical;
    min-height: 82px;
    border: 1px solid #d9e3ec;
    border-radius: 8px;
    padding: 10px 11px;
    color: #17202a;
    font: 14px/1.45 inherit;
}

#askMindxForm button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #123b66;
    font-weight: 900;
    cursor: pointer;
}

.ask-mindx-answer {
    max-height: min(340px, 48vh);
    overflow: auto;
    margin: 0 14px 14px;
    padding: 12px;
    border: 1px solid #d9e3ec;
    border-radius: 8px;
    background: #fbfcfe;
}

.ask-mindx-question,
.ask-mindx-response {
    display: grid;
    gap: 5px;
}

.ask-mindx-question {
    margin-bottom: 11px;
    border-bottom: 1px solid #d9e3ec;
    padding-bottom: 10px;
}

.ask-mindx-question span,
.ask-mindx-response span,
.ask-mindx-related-title {
    display: block;
    color: #0e7490;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ask-mindx-question strong {
    color: #123b66;
    font-size: 13px;
    line-height: 1.35;
}

.ask-mindx-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ask-mindx-source-row span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    color: #0f5132;
    background: #e9f8ef;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ask-mindx-source-row em {
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.ask-mindx-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    border: 0;
    border-radius: 7px;
    padding: 6px 8px;
    background: #f2f8fa;
}

.ask-mindx-progress span {
    display: grid;
    gap: 1px;
}

.ask-mindx-progress strong {
    color: #123b66;
    font-size: 11.5px;
    font-weight: 900;
}

.ask-mindx-progress small {
    color: #667085;
    font-size: 10px;
    line-height: 1.3;
}

.ask-mindx-progress b {
    width: 28px;
    height: 8px;
    background:
        radial-gradient(circle closest-side, #0e7490 90%, transparent) 0 50% / 8px 8px no-repeat,
        radial-gradient(circle closest-side, #7cc4c7 90%, transparent) 13px 50% / 8px 8px no-repeat,
        radial-gradient(circle closest-side, #d9e3ec 90%, transparent) 26px 50% / 8px 8px no-repeat;
    animation: askMindxTyping 900ms infinite steps(3);
}

.ask-mindx-guest-followup {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 11px;
    border: 1px solid #d4e8e9;
    border-radius: 9px;
    background: #f6fbfb;
}

.ask-mindx-guest-followup > strong {
    color: #123b66;
    font-size: 12px;
}

.ask-mindx-guest-followup > span,
.ask-mindx-guest-followup small {
    color: #667085;
    font-size: 10.5px;
    line-height: 1.4;
}

.ask-mindx-guest-followup > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ask-mindx-guest-followup input {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #c9d9e7;
    border-radius: 7px;
    font: 11px/1.3 inherit;
}

.ask-mindx-guest-followup button {
    width: fit-content;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #123b66;
    font-size: 10.5px;
    font-weight: 900;
    cursor: pointer;
}

.ask-mindx-followup-success {
    color: #067647 !important;
    font-weight: 800;
}

@keyframes askMindxTyping {
    0% { opacity: 0.45; }
    50% { opacity: 1; }
    100% { opacity: 0.45; }
}

.ask-mindx-stream-text {
    color: #17202a;
    font-size: 13px;
    line-height: 1.58;
}

.ask-mindx-answer p {
    margin: 0 0 9px;
    color: #17202a;
    font-size: 13px;
    line-height: 1.58;
}

.ask-mindx-answer p:last-child {
    margin-bottom: 0;
}

.ask-mindx-related-title {
    margin-top: 12px;
}

.ask-mindx-answer ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.ask-mindx-answer .ask-mindx-smart-list {
    display: grid;
    gap: 6px;
    margin: 7px 0 10px;
    padding: 0;
    list-style: none;
}

.ask-mindx-answer .ask-mindx-smart-list li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #17202a;
    font-size: 12.5px;
    line-height: 1.48;
}

.ask-mindx-answer .ask-mindx-smart-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.ask-mindx-answer li {
    margin-bottom: 6px;
}

.ask-mindx-answer li button {
    border: 0;
    padding: 0;
    color: #0e7490;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.ask-mindx-answer li button:hover {
    color: #123b66;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ask-mindx-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 12px;
}

.ask-mindx-suggestions[hidden] {
    display: none;
}

.ask-mindx-suggestions button,
.ask-mindx-feedback button {
    border: 1px solid #c9d9e7;
    border-radius: 999px;
    padding: 7px 10px;
    color: #123b66;
    background: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.ask-mindx-suggestions button:hover,
.ask-mindx-feedback button:hover {
    border-color: #0e7490;
    color: #0e7490;
}

.ask-mindx-feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    border-top: 1px solid #d9e3ec;
    padding-top: 10px;
}

.ask-mindx-feedback span {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
}

.ask-mindx-faq-link {
    display: block;
    padding: 0 14px 14px;
    color: #0e7490;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ask-mindx-doc-references {
    margin-top: 12px;
}

.ask-mindx-doc-references a {
    display: grid;
    grid-template-columns: 18px 1fr 16px;
    gap: 7px;
    align-items: center;
    margin-top: 7px;
    padding: 9px 10px;
    color: #123b66;
    background: #eef8f8;
    border: 1px solid #d4e8e9;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
}

.ask-mindx-doc-references a:hover {
    border-color: #0e7490;
    color: #0e7490;
}

.ask-mindx-footer-links {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px 14px;
    color: #98a2b3;
    font-size: 10px;
}

.ask-mindx-footer-links .ask-mindx-faq-link {
    padding: 0;
    color: #667085;
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
}

.ask-mindx-footer-links .ask-mindx-faq-link:hover {
    color: #0e7490;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 520px) {
    .ask-mindx {
        right: 12px;
        bottom: 12px;
    }

    .ask-mindx-button {
        min-height: 44px;
    }
}
