.askaqa-ai-wrap {
    padding: 8px 0 56px;
}

.askaqa-ai {
    --askaqa-ai-ink: #12263a;
    --askaqa-ai-muted: #587085;
    --askaqa-ai-line: #dbe6ee;
    --askaqa-ai-focus: #22b6c7;
    --askaqa-ai-error: #9b1c1c;
    color: var(--askaqa-ai-ink);
}

.askaqa-ai-panel {
    background: #ffffff;
    border: 1px solid var(--askaqa-ai-line);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(8, 39, 65, 0.12);
    padding: 24px 26px 22px;
}

.askaqa-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.askaqa-ai-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.askaqa-ai-indicator {
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border-radius: 50%;
    background: #22b6c7;
    box-shadow: 0 0 0 6px rgba(34, 182, 199, 0.14);
    flex: 0 0 auto;
}

.askaqa-ai-kicker {
    margin: 0 0 2px;
    color: #1478ad;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.askaqa-ai-header h2 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.askaqa-ai-section-label {
    margin: 4px 0 0;
    color: var(--askaqa-ai-muted);
    font-size: 0.92rem;
}

.askaqa-ai-new {
    border: 1px solid var(--askaqa-ai-line);
    background: #ffffff;
    color: #12304d;
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.askaqa-ai-new:hover,
.askaqa-ai-new:focus-visible,
.askaqa-ai-send:focus-visible,
.askaqa-ai-suggestion:focus-visible,
.askaqa-ai-input:focus-visible {
    outline: 3px solid rgba(34, 182, 199, 0.45);
    outline-offset: 2px;
}

.askaqa-ai-welcome {
    margin: 0 0 14px;
    color: #345066;
    max-width: 72ch;
}

.askaqa-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.askaqa-ai-suggestion {
    border: 1px solid var(--askaqa-ai-line);
    background: #f5f8fb;
    color: #12304d;
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
}

.askaqa-ai-suggestion:hover {
    background: #eaf6fb;
    border-color: #c5e4ef;
}

.askaqa-ai-thread {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.askaqa-ai-thread:empty {
    display: none;
}

.askaqa-ai-message {
    border-radius: 16px;
    padding: 12px 14px;
    max-width: 100%;
}

.askaqa-ai-message--user {
    background: #12304d;
    color: #edf6fb;
    justify-self: end;
    width: min(100%, 640px);
}

.askaqa-ai-message--assistant,
.askaqa-ai-message--thinking {
    background: #f5f8fb;
    border: 1px solid var(--askaqa-ai-line);
    color: var(--askaqa-ai-ink);
}

.askaqa-ai-message-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.askaqa-ai-message--user .askaqa-ai-message-label {
    color: #76dfe8;
}

.askaqa-ai-message--assistant .askaqa-ai-message-label,
.askaqa-ai-message--thinking .askaqa-ai-message-label {
    color: #1478ad;
}

.askaqa-ai-message-body {
    overflow-wrap: anywhere;
    max-width: 100%;
}

.askaqa-ai-message-body > :first-child {
    margin-top: 0;
}

.askaqa-ai-message-body > :last-child {
    margin-bottom: 0;
}

.askaqa-ai-message-body h3,
.askaqa-ai-message-body h4 {
    margin: 14px 0 8px;
    letter-spacing: -0.03em;
}

.askaqa-ai-message-body p,
.askaqa-ai-message-body ul,
.askaqa-ai-message-body ol {
    margin: 0 0 10px;
}

.askaqa-ai-message-body ul,
.askaqa-ai-message-body ol {
    padding-left: 1.2rem;
}

.askaqa-ai-message-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(18, 48, 77, 0.06);
    border-radius: 6px;
    padding: 0.1em 0.35em;
}

.askaqa-ai-code {
    margin: 10px 0;
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 12px;
    background: #0b1d31;
    color: #d7e7ef;
}

.askaqa-ai-code code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.askaqa-ai-table-wrap {
    overflow-x: auto;
    margin: 10px 0;
}

.askaqa-ai-message-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.askaqa-ai-message-body th,
.askaqa-ai-message-body td {
    border: 1px solid var(--askaqa-ai-line);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.askaqa-ai-message-body th {
    background: #eaf6fb;
}

.askaqa-ai-status {
    min-height: 1.2em;
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--askaqa-ai-muted);
}

.askaqa-ai-status[data-tone="error"] {
    color: var(--askaqa-ai-error);
}

.askaqa-ai-status[data-tone="busy"] {
    color: #1478ad;
    font-weight: 700;
}

.askaqa-ai-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 700;
}

.askaqa-ai-input {
    display: block;
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border: 1px solid var(--askaqa-ai-line);
    border-radius: 16px;
    padding: 12px 14px;
    font: inherit;
    color: var(--askaqa-ai-ink);
    background: #ffffff;
}

.askaqa-ai-input::placeholder {
    color: #7b93a6;
}

.askaqa-ai-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.askaqa-ai-privacy,
.askaqa-ai-noscript {
    margin: 0;
    color: var(--askaqa-ai-muted);
    font-size: 0.82rem;
}

.askaqa-ai-send[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

@media (max-width: 820px) {
    .askaqa-ai-wrap {
        padding-bottom: 36px;
    }

    .askaqa-ai-panel {
        padding: 18px 16px 16px;
        border-radius: 22px;
    }

    .askaqa-ai-header,
    .askaqa-ai-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .askaqa-ai-new,
    .askaqa-ai-send {
        width: 100%;
    }

    .askaqa-ai-suggestion {
        width: 100%;
    }
}
