.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-launch {
    width: max-content;
}
.chat-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
}
.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    width: min(390px, calc(100vw - 32px));
    height: 540px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px #20231f22;
    display: flex;
    flex-direction: column;
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.chat-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 14px;
    border-bottom: 1px solid var(--line);
}
.chat-header .eyebrow {
    margin: 0 0 6px;
}
.chat-header h2 {
    font:
        700 26px "Playfair Display",
        serif;
    margin: 0;
}
.chat-close {
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.chat-status {
    font-size: 12px;
    color: #315f38;
    background: #e3eee1;
    margin: 0;
    padding: 10px 22px;
}
.chat-status.offline {
    background: #f6dfda;
    color: #8d382b;
}
.chat-messages {
    flex: 1;
    overflow: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.chat-empty {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    margin: auto;
}
.chat-bubble {
    background: var(--cream);
    padding: 10px 13px;
    margin: 0;
    max-width: 82%;
    font-size: 13px;
    line-height: 1.45;
    align-self: flex-start;
    overflow-wrap: anywhere;
}
.chat-bubble.mine {
    background: var(--ink);
    color: #fff;
    align-self: flex-end;
}
.chat-form {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--line);
}
.chat-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    padding: 12px;
    font: inherit;
}
.chat-form .button {
    padding: 10px 14px;
}
@media (max-width: 760px) {
    .chat-panel {
        right: 16px;
        bottom: 16px;
    }
    .contact-actions .form-card {
        margin-top: 5px;
    }
}
.chat-admin {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 520px;
    background: #ebe9e0;
    border: 1px solid var(--line);
    margin-top: 34px;
}
.chat-list {
    border-right: 1px solid var(--line);
    padding: 12px;
    overflow: auto;
}
.chat-list-item {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 15px 12px;
    text-align: left;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
}
.chat-list-item:hover,
.chat-list-item.selected {
    background: var(--cream);
}
.chat-admin-thread {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.chat-admin-thread .chat-status {
    border-bottom: 1px solid var(--line);
}
.chat-admin-login {
    max-width: 520px;
}
.chat-admin-login .chat-status {
    margin: 25px 0 12px;
    padding: 12px;
}
.chat-admin-page h1 {
    margin-bottom: 30px;
}
@media (max-width: 760px) {
    .chat-admin {
        display: block;
    }
    .chat-list {
        max-height: 170px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .chat-admin-thread {
        min-height: 420px;
    }
}
