.chat-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px 0 20px;
    position: relative;
    overflow: visible;
    min-height: 0;
}

    .chat-layout::before {
        display: none;
    }

.chat-window,
.quick-replies,
.answer-deck,
.interview-progress-strip {
    position: relative;
    z-index: 1;
}

.interview-progress-strip {
    width: 100%;
    margin-top: 88px;
}

.interview-progress {
    position: relative;
    overflow: hidden;
    background: rgba(185, 28, 28, 0.08);
}

.interview-progress--header {
    height: 18px;
    border-radius: 0;
    background: rgba(185, 28, 28, 0.04);
}

.interview-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.interview-progress__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--color-text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

.chat-window {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-top: 36px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .chat-window::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

.message-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.message-group__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bbb;
    margin-bottom: 5px;
    margin-left: 5px;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.message {
    max-width: 85%;
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform-origin: left bottom;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    animation: messagePopIn 0.5s var(--transition-bounce) forwards;
}

.message--ai {
    align-self: flex-start;
    color: var(--color-text-main);
    border-bottom-left-radius: 4px;
    background: var(--color-bubble-ai);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.message--user {
    align-self: flex-end;
    color: var(--color-bubble-text-user);
    border-bottom-right-radius: 4px;
    transform-origin: right bottom;
    font-weight: 500;
    margin-top: 8px;
    background: var(--color-bubble-user);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.typing-wrapper {
    align-self: flex-start;
    margin-bottom: 10px;
    margin-left: 5px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.typing-indicator {
    background-color: var(--color-bubble-ai);
    padding: 12px 18px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 5px;
    width: fit-content;
    animation: messagePopIn 0.3s forwards;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

    .typing-dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: -0.16s;
    }

.quick-replies {
    display: flex;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px) scale(0.985);
    transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), margin 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s;
    flex-shrink: 0;
    will-change: opacity, transform, max-height;
}

    .quick-replies.is-visible {
        opacity: 1;
        visibility: visible;
        max-height: 180px;
        margin-top: 6px;
        margin-bottom: 18px;
        transform: translateY(0) scale(1);
        transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), margin 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
    }

    .quick-replies.is-hidden {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        transform: translateY(12px) scale(0.985);
        pointer-events: none;
    }

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-family-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.15);
    touch-action: manipulation;
}

    .chip:hover {
        transform: translateY(-2px);
    }

.chip--primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 8px 16px rgba(185, 28, 28, 0.25);
    position: relative;
    overflow: hidden;
}

.chip--secondary {
    background: white;
    color: var(--color-text-main);
    border: 1px solid #eee;
}

.answer-deck {
    --answer-deck-padding-top: 14px;
    --answer-deck-padding-bottom: 10px;
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    padding: 0 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 50px -30px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: translateY(16px) scale(0.985);
    filter: blur(10px);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease, visibility 0s linear 0.32s;
    z-index: 5;
    pointer-events: none;
    will-change: opacity, transform, max-height, filter;
}

    .answer-deck.is-visible {
        opacity: 1;
        visibility: visible;
        max-height: var(--answer-deck-height, 640px);
        margin-top: 8px;
        padding-top: var(--answer-deck-padding-top);
        padding-bottom: var(--answer-deck-padding-bottom);
        transform: translateY(0) scale(1);
        filter: blur(0);
        pointer-events: auto;
        overflow: hidden;
        transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease, visibility 0s linear 0s;
    }


        .answer-deck.is-visible.is-locked {
            pointer-events: none;
        }

        .answer-deck.is-visible::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

    .answer-deck.is-hiding {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(12px) scale(0.985);
        filter: blur(10px);
        pointer-events: none;
    }

.answer-deck__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.answer-deck__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--color-primary);
}

    .answer-deck__eyebrow::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--color-primary);
        box-shadow: 0 0 0 6px rgba(185, 28, 28, 0.1);
    }

.answer-deck__counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: #666;
    background: rgba(255, 255, 255, 0.88);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.25);
}

.answer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 0;
}

.answer-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 22px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 11px 13px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, filter 0.26s ease;
    animation: answerCardIn 0.55s var(--transition-bounce) both;
    animation-delay: calc(var(--card-index, 0) * 70ms);
    touch-action: manipulation;
}

    .answer-card.is-selected {
        border-color: transparent;
        background: var(--color-primary);
        box-shadow: 0 12px 32px rgba(185, 28, 28, 0.3);
        transform: translateY(-1px) scale(0.992);
    }

    .answer-card.is-disabled {
        opacity: 0.36;
        filter: saturate(0.75);
        pointer-events: none;
        transform: scale(0.985);
    }

    .answer-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        border-color: rgba(185, 28, 28, 0.16);
    }

    .answer-card:active {
        transform: scale(0.99);
    }

    .answer-card:focus-visible {
        outline: none;
        border-color: rgba(185, 28, 28, 0.28);
        box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12), 0 12px 32px rgba(185, 28, 28, 0.15);
    }

.answer-card__glow {
    display: none;
}

.answer-card__index,
.answer-card__text,
.answer-card__arrow {
    position: relative;
    z-index: 1;
}

.answer-card__index {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.08);
}

.answer-card__text {
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--color-text-main);
    font-weight: 600;
}

.answer-card__arrow {
    color: #b3b3b3;
    font-size: 0.9rem;
    justify-self: end;
}

.answer-card.is-selected .answer-card__index {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.answer-card.is-selected .answer-card__text,
.answer-card.is-selected .answer-card__arrow {
    color: #fff;
}

.answer-compose {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: answerCardIn 0.45s var(--transition-bounce) both;
}

.answer-compose__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.answer-compose__actions {
    position: sticky;
    bottom: -14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94) 28%, rgba(255, 255, 255, 0.98));
}

.answer-input-card,
.answer-slider-card,
.answer-range-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.90));
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.16);
}

.answer-input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0 16px;
    font-family: var(--font-family-sans);
    font-size: 1rem;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .answer-input:focus {
        border-color: rgba(185, 28, 28, 0.32);
        box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.10);
    }

.answer-input--code {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 800;
    text-transform: uppercase;
}

.answer-submit {
    min-height: 54px;
    border: none;
    border-radius: 16px;
    padding: 0 18px;
    font-family: var(--font-family-sans);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c, #e11d48);
    cursor: pointer;
    box-shadow: 0 18px 34px -18px rgba(185, 28, 28, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
}

    .answer-submit:active {
        transform: scale(0.99);
    }

.answer-inline-error {
    display: none;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0 4px;
}

    .answer-inline-error.is-visible {
        display: block;
        animation: fadeIn 0.22s ease;
    }

.answer-value-pill {
    align-self: center;
    min-width: 82px;
    padding: 10px 18px;
    border-radius: 999px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(185, 28, 28, 0.08);
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.08);
}

.answer-slider {
    width: 100%;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.answer-slider-footer,
.answer-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #7b7b7b;
    font-size: 0.85rem;
    font-weight: 700;
}

.answer-stepper {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.answer-stepper__btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease;
    touch-action: manipulation;
}

    .answer-stepper__btn:active {
        transform: scale(0.97);
    }

.answer-range-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.answer-range-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.answer-range-stepper .answer-value-pill {
    min-width: 72px;
}

.answer-empty-state {
    text-align: center;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.12);
}

.answer-empty-state__title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.answer-empty-state__text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #666;
}

.answer-option-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 0;
}


.answer-option-pill {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
    color: var(--color-text-main);
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.16);
}

    .answer-option-pill:hover {
        transform: translateY(-1px);
        border-color: rgba(185, 28, 28, 0.18);
        box-shadow: 0 18px 36px -24px rgba(185, 28, 28, 0.18);
    }

    .answer-option-pill.is-selected {
        border-color: rgba(185, 28, 28, 0.22);
        background: linear-gradient(135deg, rgba(185, 28, 28, 0.10), rgba(225, 29, 72, 0.08));
        box-shadow: 0 20px 38px -24px rgba(185, 28, 28, 0.24);
    }

.answer-option-pill__check {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 28, 28, 0.08);
    color: transparent;
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.12);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.answer-option-pill__label {
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
}

.answer-option-pill.is-selected .answer-option-pill__check {
    background: linear-gradient(135deg, #b91c1c, #e11d48);
    color: #fff;
    transform: scale(1.04);
}

.answer-map-shell {
    gap: 14px;
}

.answer-map {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(185, 28, 28, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 244, 244, 1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 34px -24px rgba(0, 0, 0, 0.18);
}

    .answer-map::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(185, 28, 28, 0.04));
        z-index: 401;
    }

.answer-map__summary {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(185, 28, 28, 0.06);
    color: #6f6f6f;
    font-size: 0.94rem;
    font-weight: 700;
}

.answer-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.2) !important;
}

    .answer-map .leaflet-control-zoom a {
        width: 38px;
        height: 38px;
        line-height: 38px;
        border: none !important;
        background: rgba(255, 255, 255, 0.92);
        color: var(--color-primary);
        backdrop-filter: blur(14px);
    }

.answer-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.84);
    border-radius: 10px 0 0 0;
    padding: 2px 6px;
}

.answer-map .leaflet-tile-pane {
    filter: saturate(0.88) contrast(1.02) brightness(1.02);
}

.interview-map-marker {
    background: transparent;
    border: none;
}

.interview-map-marker__pulse,
.interview-map-marker__dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.interview-map-marker__pulse {
    background: rgba(225, 29, 72, 0.22);
    animation: interviewMapPulse 1.8s infinite;
}

.interview-map-marker__dot {
    inset: 6px;
    background: linear-gradient(135deg, #b91c1c, #e11d48);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.3);
}

.answer-dual-range {
    position: relative;
    padding: 16px 0;
}

.answer-dual-range__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(185, 28, 28, 0.10);
    overflow: hidden;
}

.answer-dual-range__fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b91c1c, #e11d48);
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.25);
}

.answer-dual-range__inputs {
    position: absolute;
    inset: 0;
}

.answer-slider--dual {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

    .answer-slider--dual::-webkit-slider-runnable-track {
        height: 8px;
        background: transparent;
    }

    .answer-slider--dual::-moz-range-track {
        height: 8px;
        background: transparent;
    }

    .answer-slider--dual::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -8px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: linear-gradient(135deg, #b91c1c, #e11d48);
        box-shadow: 0 10px 20px -10px rgba(185, 28, 28, 0.5);
        cursor: pointer;
        pointer-events: auto;
        -webkit-appearance: none;
    }

    .answer-slider--dual::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: linear-gradient(135deg, #b91c1c, #e11d48);
        box-shadow: 0 10px 20px -10px rgba(185, 28, 28, 0.5);
        cursor: pointer;
        pointer-events: auto;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    10% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes messagePopIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes answerCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes interviewMapPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.55);
        opacity: 0;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .chat-window {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .chat-layout {
        padding-top: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .interview-progress-strip {
        width: 100%;
        margin: 76px 0 0 0;
    }

    .interview-progress--header {
        height: 16px;
    }

    .interview-progress__text {
        min-width: 66px;
        padding: 3px 10px;
        font-size: 0.72rem;
    }

    .message {
        max-width: 94%;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .quick-replies {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .chip {
        width: 100%;
        text-align: center;
        min-height: 50px;
    }

    .answer-deck {
        --answer-deck-padding-bottom: 8px;
        position: relative;
        bottom: auto;
        margin-top: 12px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        gap: 12px;
    }

    .answer-deck__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .answer-card {
        grid-template-columns: 36px 1fr 14px;
        min-height: 58px;
        padding: 10px 11px;
        gap: 9px;
        border-radius: 14px;
    }

    .answer-card__index {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .answer-card__text {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .answer-option-pill {
        min-height: 42px;
        padding: 9px 11px;
        border-radius: 12px;
    }

    .answer-input-card,
    .answer-slider-card,
    .answer-range-card {
        padding: 14px;
        border-radius: 18px;
    }

    .answer-input,
    .answer-submit {
        min-height: 52px;
        border-radius: 14px;
    }

    .answer-compose__actions {
        bottom: 0;
        padding-bottom: 2px;
    }

    .answer-map {
        height: 280px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .chat-layout {
        padding-left: 10px;
        padding-right: 10px;
    }

    .answer-card__text {
        font-size: 0.9rem;
    }

    .answer-deck__counter {
        font-size: 0.78rem;
        padding: 7px 12px;
    }

    .interview-progress__text {
        min-width: 60px;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
