.t911-consultant,
.t911-consultant * {
    box-sizing: border-box;
}

.t911-consultant {
    --t911-consultant-ink: #17213f;
    --t911-consultant-muted: #687087;
    --t911-consultant-brand: #8c1452;
    --t911-consultant-brand-dark: #6f0d40;
    --t911-consultant-blue: #1268e8;
    --t911-consultant-line: #e5e8f0;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147482000;
    color: var(--t911-consultant-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.t911-consultant button,
.t911-consultant textarea {
    font: inherit;
}

.t911-consultant-launcher {
    min-width: 196px;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px 7px 7px;
    border: 1px solid #e5dce2;
    border-radius: 999px;
    background: #fff;
    color: #4e2639;
    box-shadow: 0 12px 36px rgba(39, 20, 31, .2);
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}

.t911-consultant-launcher[hidden] {
    display: none;
}

.t911-consultant-launcher:hover,
.t911-consultant-launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(39, 20, 31, .25);
    outline: none;
}

.t911-consultant-launcher-photo {
    width: 44px;
    height: 44px;
    position: relative;
    flex: 0 0 44px;
}

.t911-consultant-launcher-photo img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.t911-consultant-launcher-photo i,
.t911-consultant-header small i {
    width: 9px;
    height: 9px;
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #19b777;
}

.t911-consultant-launcher-photo i {
    position: absolute;
    right: -1px;
    bottom: 2px;
    width: 11px;
    height: 11px;
}

.t911-consultant-launcher strong,
.t911-consultant-launcher small {
    display: block;
}

.t911-consultant-launcher strong {
    font-size: 12px;
    letter-spacing: .15em;
    line-height: 1.2;
    text-transform: uppercase;
}

.t911-consultant-launcher small {
    margin-top: 2px;
    color: #8b7280;
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.t911-consultant-panel {
    width: min(376px, calc(100vw - 24px));
    height: min(720px, calc(100vh - 30px));
    display: none;
    grid-template-rows: auto 190px minmax(120px, 1fr) auto auto auto;
    overflow: hidden;
    border: 1px solid var(--t911-consultant-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 26, 52, .28);
    transform-origin: right bottom;
}

.t911-consultant-panel.is-open {
    display: grid;
    animation: t911-consultant-enter .22s ease-out both;
}

@keyframes t911-consultant-enter {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.t911-consultant-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px 12px 17px;
    border-bottom: 1px solid #eeeaf0;
    background: #fff;
}

.t911-consultant-header strong,
.t911-consultant-header span,
.t911-consultant-header small {
    display: block;
}

.t911-consultant-header strong {
    font-size: 16px;
    line-height: 1.1;
}

.t911-consultant-header span {
    margin-top: 2px;
    color: var(--t911-consultant-brand);
    font-size: 11px;
    font-weight: 700;
}

.t911-consultant-header small {
    margin-top: 4px;
    color: var(--t911-consultant-muted);
    font-size: 10px;
}

.t911-consultant-header small i {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-width: 0;
}

.t911-consultant-header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.t911-consultant-header-actions button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5e667b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.t911-consultant-header-actions button:last-child {
    min-width: 34px;
    padding: 0;
    font-size: 25px;
    font-weight: 400;
}

.t911-consultant-header-actions button:hover,
.t911-consultant-header-actions button:focus-visible {
    background: #f5f1f4;
    color: var(--t911-consultant-brand);
    outline: none;
}

.t911-consultant-portrait {
    position: relative;
    overflow: hidden;
    background: #dceafa;
}

.t911-consultant-portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(14, 23, 47, .45));
}

.t911-consultant-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 28%;
    transition: transform .32s ease, filter .32s ease;
}

.t911-consultant-portrait.is-speaking img {
    transform: scale(1.018);
    filter: saturate(1.06) brightness(1.02);
}

.t911-consultant-portrait.is-speaking::before {
    content: "";
    position: absolute;
    inset: 9px;
    z-index: 2;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 13px;
    animation: t911-consultant-pulse 1.1s ease-in-out infinite;
}

@keyframes t911-consultant-pulse {
    50% { opacity: .25; transform: scale(.985); }
}

.t911-consultant-call-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 7px 22px rgba(24, 32, 57, .32);
    backdrop-filter: blur(8px);
}

.t911-consultant-call-controls button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #24304d;
    cursor: pointer;
    font-size: 14px;
}

.t911-consultant-call-controls button:hover,
.t911-consultant-call-controls button:focus-visible {
    background: #eef1f6;
    outline: none;
}

.t911-consultant-call-controls button[aria-pressed="false"] {
    color: #9a234f;
    background: #fff0f5;
}

.t911-consultant-call-controls .is-end {
    width: auto;
    min-width: 49px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff0f1;
    color: #d51f42;
    font-size: 11px;
    font-weight: 800;
}

.t911-consultant.is-listening .t911-consultant-call-controls [data-consultant-talk] {
    background: #d72e69;
    color: #fff;
    animation: t911-consultant-listening 1s ease-in-out infinite;
}

@keyframes t911-consultant-listening {
    50% { box-shadow: 0 0 0 8px rgba(215, 46, 105, .22); }
}

.t911-consultant-chat {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 14px 8px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #cad0dc transparent;
}

.t911-consultant-message {
    width: fit-content;
    max-width: 88%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 13px;
    color: #26304c;
    font-size: 12.5px;
}

.t911-consultant-message p {
    margin: 0;
    white-space: pre-wrap;
}

.t911-consultant-message small {
    display: block;
    margin-top: 6px;
    color: #7d8496;
    font-size: 9px;
}

.t911-consultant-message .t911-consultant-listen {
    min-height: 0;
    margin: 7px 0 0;
    padding: 4px 8px;
    border: 1px solid #d9deea;
    border-radius: 999px;
    background: #fff;
    color: #47536e;
    cursor: pointer;
    font-size: 9px;
    font-weight: 750;
}

.t911-consultant-message .t911-consultant-listen:hover,
.t911-consultant-message .t911-consultant-listen:focus-visible {
    border-color: var(--t911-consultant-blue);
    color: var(--t911-consultant-blue);
    outline: none;
}

.t911-consultant-message.is-assistant {
    margin-right: auto;
    border: 1px solid #e1e4eb;
    border-bottom-left-radius: 4px;
    background: #f7f8fa;
}

.t911-consultant-message.is-user {
    margin-left: auto;
    border-bottom-right-radius: 4px;
    background: #eaf3ff;
    color: #164983;
}

.t911-consultant-message.is-typing {
    color: #757d90;
    animation: t911-consultant-thinking 1s ease-in-out infinite alternate;
}

@keyframes t911-consultant-thinking {
    to { opacity: .5; }
}

.t911-consultant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 14px 10px;
    border-top: 1px solid #f3f0f2;
    background: #fff;
}

.t911-consultant-suggestions button {
    padding: 6px 9px;
    border: 0;
    border-radius: 6px;
    background: var(--t911-consultant-brand);
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.t911-consultant-suggestions button:hover,
.t911-consultant-suggestions button:focus-visible {
    background: var(--t911-consultant-brand-dark);
    outline: 2px solid rgba(140, 20, 82, .2);
    outline-offset: 2px;
}

.t911-consultant-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px 38px;
    align-items: end;
    gap: 4px;
    margin: 0 12px;
    padding: 5px;
    border: 1px solid #cfd4df;
    border-radius: 10px;
    background: #fff;
}

.t911-consultant-composer:focus-within {
    border-color: var(--t911-consultant-blue);
    box-shadow: 0 0 0 3px rgba(18, 104, 232, .1);
}

.t911-consultant-composer textarea {
    min-height: 38px;
    max-height: 96px;
    resize: none;
    padding: 9px 7px;
    border: 0;
    background: transparent;
    color: var(--t911-consultant-ink);
    font-size: 12px;
    line-height: 1.35;
    outline: none;
}

.t911-consultant-composer button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.t911-consultant-mic {
    background: #f0f3f8;
    color: #26304c;
}

.t911-consultant-send {
    background: var(--t911-consultant-blue);
    color: #fff;
    font-size: 19px !important;
}

.t911-consultant.is-listening .t911-consultant-mic {
    background: #ffe7ef;
    color: #c71e5c;
}

.t911-consultant-composer button:disabled {
    opacity: .45;
    cursor: wait;
}

.t911-consultant-footer {
    padding: 7px 14px 11px;
    color: #777f92;
    text-align: center;
}

.t911-consultant-footer span,
.t911-consultant-footer small {
    display: block;
}

.t911-consultant-footer span {
    color: var(--t911-consultant-brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.t911-consultant-footer small {
    margin-top: 3px;
    font-size: 8px;
}

@media (max-width: 520px) {
    .t911-consultant {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .t911-consultant-panel {
        width: calc(100vw - 20px);
        height: min(690px, calc(100dvh - 20px));
        grid-template-rows: auto 166px minmax(110px, 1fr) auto auto auto;
        border-radius: 17px;
    }

    .t911-consultant-launcher {
        min-width: 190px;
    }
}

@media (max-width: 1024px) {
    body.t911-rwd-has-bottom-nav .t911-consultant:not(.is-open) {
        bottom: calc(var(--t911-rwd-nav-h, 68px) + 15px + env(safe-area-inset-bottom, 0px));
    }

    body.t911-rwd-has-bottom-nav .t911-consultant.is-open {
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 700px) {
    .t911-consultant.is-expanded .t911-consultant-panel {
        width: min(680px, calc(100vw - 44px));
        height: min(820px, calc(100vh - 44px));
        grid-template-rows: auto 300px minmax(150px, 1fr) auto auto auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t911-consultant-panel.is-open,
    .t911-consultant-portrait.is-speaking::before,
    .t911-consultant.is-listening .t911-consultant-call-controls [data-consultant-talk],
    .t911-consultant-message.is-typing {
        animation: none;
    }
}
