.ask-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d5ffae;
    background: var(--green);
    color: var(--bg);
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 32px #0005;
    cursor: pointer
}

.ask-symbol {
    font-size: 22px;
    line-height: 1
}

.ask-dialog {
    position: fixed;
    inset: auto 24px 88px auto;
    margin: 0;
    width: min(420px, calc(100vw - 32px));
    height: min(610px, calc(100dvh - 120px));
    padding: 0;
    border: 1px solid #48533f;
    border-radius: 18px;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 24px 90px #0008;
    overflow: hidden
}

.ask-dialog::backdrop {
    background: #090c0980
}

.ask-shell {
    height: 100%;
    display: flex;
    flex-direction: column
}

.ask-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--line)
}

.ask-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--green);
    background: #b5ed8010;
    border: 1px solid #b5ed8030;
    font-size: 28px
}

.ask-heading {
    flex: 1
}

.ask-heading h2 {
    font-size: 18px;
    letter-spacing: -.5px;
    margin: 0 0 5px
}

.ask-heading p {
    font: 9px monospace;
    letter-spacing: 1px;
    color: var(--muted);
    margin: 0
}

.ask-icon-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 9px;
    cursor: pointer;
    font-size: 18px
}

.ask-icon-button:hover {
    color: var(--green)
}

.ask-transcript {
    flex: 1;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 20px;
    scroll-behavior: smooth
}

.ask-message {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface);
    margin: 0 0 14px;
    line-height: 1.65;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.ask-message[data-role=user] {
    background: #b5ed8015;
    border: 1px solid #b5ed8025;
    margin-left: 32px
}

.ask-message-label {
    display: block;
    color: var(--green);
    font: 9px monospace;
    letter-spacing: 1px;
    margin-bottom: 7px
}

.ask-message[data-role=user] .ask-message-label {
    color: var(--muted)
}

.ask-suggestions {
    display: grid;
    gap: 8px;
    margin-bottom: 18px
}

.ask-suggestion {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    cursor: pointer
}

.ask-suggestion:hover {
    border-color: var(--green);
    color: var(--green)
}

.ask-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px
}

.ask-links a {
    font-size: 11px;
    padding: 7px 10px;
    border: 1px solid #48533f;
    border-radius: 20px;
    color: var(--green)
}

.ask-status {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    min-height: 17px;
    margin: 0 20px 8px
}

.ask-form {
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 12px 16px 8px;
    border-top: 1px solid var(--line)
}

.ask-input {
    width: 100%;
    min-height: 44px;
    max-height: 100px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    font: 13px/1.4 Arial, sans-serif
}

.ask-input:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px
}

.ask-send {
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: var(--bg);
    font-size: 20px;
    cursor: pointer
}

.ask-send:disabled {
    opacity: .4;
    cursor: wait
}

.ask-notice {
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    padding: 0 16px 14px
}

.ask-dialog button:focus-visible,
.ask-dialog a:focus-visible {
    outline-offset: 2px
}

.ask-dialog [hidden] {
    display: none !important
}

@media(max-width:700px) {
    .ask-launcher {
        right: 16px;
        bottom: 16px;
        padding: 12px 17px
    }

    .ask-dialog {
        inset: auto 8px 8px;
        width: calc(100vw - 16px);
        height: min(650px, calc(100dvh - 16px));
        border-radius: 16px
    }

    .ask-header {
        padding: 16px
    }

    .ask-transcript {
        padding: 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    .ask-transcript {
        scroll-behavior: auto
    }
}