.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.note a {
    color: var(--wine);
}

.chat {
    margin-top: 28px;
    background: white;
    border: 3px solid var(--dark-border);
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--dark-border);
    overflow: hidden;
}

.chat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--slate);
    color: white;
    border-bottom: 3px solid var(--dark-border);
}

.chat__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--yellow);
    border: 2px solid var(--dark-border);
    border-radius: 50%;
    color: var(--brown);
}

.chat__avatar svg {
    width: 22px;
    height: 22px;
}

.chat__name {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    color: white;
}

.chat__status {
    font-size: .85rem;
    font-weight: 600;
}

.chat__badge {
    margin-left: auto;
    padding: 4px 10px;
    background: var(--yellow);
    color: var(--brown);
    border: 2px solid var(--dark-border);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.chat__log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: clamp(340px, 55vh, 520px);
    padding: 18px;
    overflow-y: auto;
    background: var(--paper);
    overscroll-behavior: contain;
}

.msg {
    max-width: min(85%, 52ch);
    padding: 12px 16px;
    border: 2px solid var(--dark-border);
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.msg--bot {
    align-self: flex-start;
    background: white;
    border-radius: 18px 18px 18px 4px;
}

.msg--user {
    align-self: flex-end;
    background: var(--slate);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.msg a {
    color: var(--wine);
    font-weight: 800;
}

.msg strong {
    color: var(--red);
}

.msg--penting {
    background: var(--yellow-soft);
    border-width: 3px;
}

.typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    background: white;
    border: 2px solid var(--dark-border);
    border-radius: 18px 18px 18px 4px;
}

.typing span {
    width: 8px;
    height: 8px;
    background: var(--brown);
    border-radius: 50%;
    animation: titik 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: .15s; }

.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes titik {
    0%, 60%, 100% { opacity: .3; transform: none; }
    30% { opacity: 1; transform: translateY(-3px); }
}

.chat__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px 4px;
    border-top: 3px solid var(--dark-border);
}

.chat__choices:empty {
    display: none;
}

.chat__choices .pill {
    min-height: 44px;
    padding: 8px 16px;
    font-size: .95rem;
    box-shadow: 3px 3px 0 var(--dark-border);
}

.chat__form {
    display: flex;
    gap: 10px;
    padding: 14px 18px 18px;
}

.chat__form input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 10px 16px;
    background: white;
    color: var(--brown);
    border: 2px solid var(--dark-border);
    border-radius: 999px;
    font: 600 1rem 'Plus Jakarta Sans', sans-serif;
}

.chat__form .pill {
    flex-shrink: 0;
    padding: 10px 20px;
}

.chat__hint {
    padding: 0 18px 16px;
    font-size: .85rem;
    font-weight: 600;
    opacity: .8;
}

@media (max-width: 520px) {
    .card {
        box-shadow: 6px 6px 0 var(--dark-border);
    }

    .card {
        padding-inline: 16px;
    }

    .chat__log,
    .chat__choices,
    .chat__form {
        padding-inline: 12px;
    }

    .chat__hint {
        padding-inline: 12px;
    }

    .msg {
        max-width: 92%;
    }

    .chat__badge {
        display: none;
    }
}
