.disha-assistant-launcher {
    align-items: center;
    background: #1465df;
    border: 1px solid #1465df;
    border-radius: 999px;
    bottom: 24px;
    box-shadow: 0 10px 26px rgba(20, 101, 223, .25);
    color: #fff;
    display: inline-flex;
    gap: 9px;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    position: fixed;
    right: 24px;
    z-index: 1050;
    font: inherit;
    font-weight: 700;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.disha-assistant-launcher:hover {
    background: #0c56c7;
    box-shadow: 0 13px 30px rgba(20, 101, 223, .31);
    transform: translateY(-2px);
}

.disha-assistant-launcher:focus-visible,
.disha-assistant-close:focus-visible,
.disha-assistant-compose button:focus-visible,
.disha-assistant-shortcuts a:focus-visible,
.disha-result-card:focus-visible,
.disha-browse-more:focus-visible {
    outline: 3px solid rgba(20, 101, 223, .35);
    outline-offset: 2px;
}

.disha-assistant-launcher svg {
    height: 20px;
    width: 20px;
}

.disha-assistant-panel {
    background: #fff;
    border: 1px solid #d8e3f1;
    border-radius: 16px;
    inset: auto 24px 88px auto;
    box-shadow: 0 20px 60px rgba(21, 40, 70, .2);
    color: #18263c;
    height: min(620px, calc(100dvh - 128px));
    margin: 0;
    max-height: calc(100dvh - 40px);
    max-width: none;
    overflow: hidden;
    padding: 0;
    position: fixed;
    width: min(420px, calc(100vw - 48px));
}

.disha-assistant-panel::backdrop {
    background: transparent;
}

.disha-assistant-panel[open] {
    display: flex;
    flex-direction: column;
}

.disha-assistant-header {
    align-items: center;
    border-bottom: 1px solid #e1e9f3;
    display: flex;
    flex: 0 0 auto;
    gap: 11px;
    min-height: 76px;
    padding: 13px 16px;
}

.disha-assistant-brand-icon {
    align-items: center;
    background: #edf4ff;
    border-radius: 12px;
    color: #1465df;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.disha-assistant-brand-icon svg {
    height: 20px;
    width: 20px;
}

.disha-assistant-heading {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.disha-assistant-heading strong {
    color: #17243a;
    font-size: 1rem;
    line-height: 1.25;
}

.disha-assistant-heading span {
    color: #687c99;
    font-size: .8rem;
    line-height: 1.35;
}

.disha-assistant-close {
    align-items: center;
    background: #f6f9fd;
    border: 1px solid #d8e3f1;
    border-radius: 9px;
    color: #49617f;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    width: 38px;
}

.disha-assistant-close svg {
    height: 19px;
    width: 19px;
}

.disha-assistant-messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px;
    scroll-behavior: smooth;
}

.disha-message {
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 13px 14px;
}

.disha-message p {
    margin: 0;
}

.disha-message--assistant {
    align-self: flex-start;
    background: #f3f7fc;
    border: 1px solid #e2eaf4;
    color: #30445f;
    width: 100%;
}

.disha-message--user {
    align-self: flex-end;
    background: #1465df;
    color: #fff;
    max-width: 88%;
}

.disha-assistant-shortcuts {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.disha-assistant-shortcuts a {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e3f1;
    border-radius: 9px;
    color: #28517f;
    display: flex;
    font-size: .84rem;
    font-weight: 650;
    gap: 9px;
    min-height: 40px;
    padding: 8px 10px;
    text-decoration: none;
}

.disha-assistant-shortcuts a:hover {
    background: #f8fbff;
    border-color: #b8d1f5;
}

.disha-assistant-shortcuts svg {
    color: #1465df;
    flex: 0 0 17px;
    height: 17px;
    width: 17px;
}

.disha-result-list {
    display: grid;
    gap: 8px;
    margin-top: 11px;
}

.disha-result-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dce6f2;
    border-radius: 10px;
    color: #1e2f47;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    min-width: 0;
    padding: 10px;
    text-decoration: none;
}

.disha-result-card:hover {
    background: #f8fbff;
    border-color: #b9d1f4;
}

.disha-result-icon {
    align-items: center;
    background: #edf4ff;
    border-radius: 9px;
    color: #1465df;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.disha-result-icon svg {
    height: 17px;
    width: 17px;
}

.disha-result-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.disha-result-copy strong,
.disha-result-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.disha-result-copy strong {
    color: #20334d;
    font-size: .84rem;
    line-height: 1.35;
}

.disha-result-copy small {
    color: #70819a;
    font-size: .74rem;
    line-height: 1.35;
}

.disha-result-type {
    color: #607998;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.disha-result-arrow {
    color: #7a8da8;
    height: 16px;
    width: 16px;
}

.disha-browse-more {
    align-items: center;
    color: #1465df;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 700;
    gap: 6px;
    margin-top: 10px;
    text-decoration: none;
}

.disha-browse-more svg {
    height: 16px;
    width: 16px;
}

.disha-assistant-compose-wrap {
    background: #fff;
    border-top: 1px solid #e1e9f3;
    flex: 0 0 auto;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}

.disha-assistant-compose {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #d7e2f0;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    min-height: 48px;
    padding: 4px 5px 4px 13px;
}

.disha-assistant-compose:focus-within {
    border-color: #8cb8f2;
    box-shadow: 0 0 0 3px rgba(20, 101, 223, .1);
}

.disha-assistant-compose input {
    background: transparent;
    border: 0;
    color: #20334d;
    flex: 1 1 auto;
    font: inherit;
    font-size: .86rem;
    min-width: 0;
    outline: 0;
}

.disha-assistant-compose input::placeholder {
    color: #7c8da5;
}

.disha-assistant-compose button {
    align-items: center;
    background: #1465df;
    border: 0;
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.disha-assistant-compose button:disabled {
    cursor: wait;
    opacity: .62;
}

.disha-assistant-compose button svg {
    height: 19px;
    width: 19px;
}

.disha-assistant-disclaimer {
    color: #71819a;
    font-size: .69rem;
    line-height: 1.4;
    margin: 8px 2px 0;
}

.disha-message--loading {
    color: #647994;
}

@media (max-width: 767.98px) {
    .disha-assistant-launcher {
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
        min-height: 48px;
        padding: 0 15px;
        right: 12px;
    }

    .disha-assistant-panel {
        inset: auto 10px calc(5rem + env(safe-area-inset-bottom, 0px)) 10px;
        height: min(660px, calc(100dvh - 8rem - env(safe-area-inset-bottom, 0px)));
        max-height: calc(100dvh - 8rem - env(safe-area-inset-bottom, 0px));
        width: auto;
    }

    .disha-assistant-panel::backdrop {
        background: rgba(17, 33, 56, .28);
    }
}

@media (max-width: 380px) {
    .disha-assistant-panel {
        inset-inline: 7px;
    }

    .disha-assistant-messages {
        padding: 14px 12px;
    }

    .disha-assistant-compose-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) and (any-hover: hover) and (any-pointer: fine) {
    .disha-assistant-launcher {
        bottom: 20px;
    }

    .disha-assistant-panel {
        inset: auto 20px 82px auto;
        width: min(400px, calc(100vw - 40px));
    }
}

html.pwa-standalone .disha-assistant-launcher {
    bottom: 88px;
}

@media (max-width: 767.98px) {
    html.pwa-standalone .disha-assistant-launcher {
        bottom: calc(10.75rem + env(safe-area-inset-bottom, 0px));
    }

    html.pwa-standalone .disha-assistant-panel {
        inset: auto 10px calc(5rem + env(safe-area-inset-bottom, 0px)) 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .disha-assistant-launcher {
        transition: none;
    }

    .disha-assistant-messages {
        scroll-behavior: auto;
    }
}
