.single-panel-layout {
    width: min(100%, 980px);
    margin: 0 auto;
}

.ask-assistant-shell,
.single-panel-layout .contact-form-shell {
    width: 100%;
}

.ask-assistant-card {
    display: grid;
    gap: 16px;
}

.form-card-header {
    display: grid;
    gap: 10px;
}

.form-card-header h2,
.form-card-header .contact-copy {
    margin: 0;
}

.ask-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ask-assistant-counter {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.08);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ask-assistant-log {
    min-height: 320px;
    max-height: 420px;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(24, 52, 132, 0.08);
}

.ask-message {
    max-width: min(100%, 38rem);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 52, 132, 0.08);
}

.ask-message p {
    margin: 0;
}

.ask-message-assistant {
    justify-self: start;
    background: rgba(255, 255, 255, 0.86);
}

.ask-message-user {
    justify-self: end;
    background: rgba(47, 107, 255, 0.08);
}

.ask-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ask-chip {
    appearance: none;
    border: 1px solid rgba(24, 52, 132, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ask-chip:hover,
.ask-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(47, 107, 255, 0.26);
    background: rgba(47, 107, 255, 0.06);
}

.ask-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.ask-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(24, 52, 132, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-strong);
    padding: 14px 16px;
    font: inherit;
}

.ask-input:focus-visible {
    outline: 2px solid rgba(47, 107, 255, 0.24);
    outline-offset: 2px;
}

.ask-submit {
    align-self: stretch;
}

.ask-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .single-panel-layout {
        width: 100%;
    }

    .ask-input-row {
        grid-template-columns: 1fr;
    }

    .ask-assistant-log {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .ask-assistant-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
