.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.privacy-state {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #126b59;
    background: var(--mint-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.consent-button:is(a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.support-widget {
    position: fixed;
    z-index: 1180;
    right: 22px;
    bottom: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.support-launch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 9px 18px 9px 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--navy-deep, #0d1e34);
    box-shadow: 0 16px 45px rgba(13, 30, 52, .25);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.support-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(13, 30, 52, .3);
}

.support-launch-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy-deep, #0d1e34);
    background: var(--yellow, #ffc94a);
    font-size: 18px;
    font-weight: 900;
}

.support-launch i {
    position: absolute;
    top: 1px;
    right: 2px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--coral, #ff765f);
}

.support-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    display: grid;
    grid-template-rows: auto minmax(150px, 1fr) auto auto auto;
    width: min(390px, calc(100vw - 28px));
    height: min(650px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid rgba(19, 34, 56, .14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(13, 30, 52, .25);
}

.support-panel[hidden],
.support-quick[hidden],
.support-message-form[hidden],
.support-contact-form[hidden],
.support-form-error[hidden] {
    display: none !important;
}

.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 14px 16px 14px 18px;
    color: #fff;
    background: var(--navy-deep, #0d1e34);
}

.support-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-header strong,
.support-header small {
    display: block;
}

.support-header strong {
    font-size: 15px;
    line-height: 1.25;
}

.support-header small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.support-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mint, #58cdb3);
    box-shadow: 0 0 0 5px rgba(88, 205, 179, .14);
}

.support-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.support-messages {
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f8f6f1;
    scrollbar-width: thin;
}

.support-message {
    display: flex;
    margin: 0 0 11px;
}

.support-message > div {
    max-width: 86%;
    padding: 10px 13px;
    border-radius: 16px 16px 16px 4px;
    color: var(--ink, #132238);
    background: #fff;
    box-shadow: 0 4px 16px rgba(13, 30, 52, .06);
    font-size: 13px;
    line-height: 1.48;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-message.is-user {
    justify-content: flex-end;
}

.support-message.is-user > div {
    border-radius: 16px 16px 4px;
    background: var(--yellow-soft, #fff0ba);
}

.support-message.is-admin > div {
    color: #fff;
    background: var(--navy, #142a46);
}

.support-message.is-system > div {
    max-width: 100%;
    color: var(--ink-soft, #4d5c6f);
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    text-align: center;
}

.support-typing > div::after {
    content: "•••";
    letter-spacing: .15em;
    animation: support-pulse 1.1s infinite;
}

@keyframes support-pulse {
    50% { opacity: .35; }
}

.support-quick {
    display: flex;
    gap: 7px;
    padding: 10px 12px;
    overflow-x: auto;
    border-top: 1px solid rgba(19, 34, 56, .08);
    background: #fff;
    scrollbar-width: none;
}

.support-quick::-webkit-scrollbar { display: none; }

.support-quick button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(19, 34, 56, .16);
    border-radius: 999px;
    color: var(--navy, #142a46);
    background: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.support-quick button:hover {
    border-color: var(--coral, #ff765f);
    background: var(--coral-soft, #ffe0da);
}

.support-message-form {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    padding: 10px 12px 8px;
    border-top: 1px solid rgba(19, 34, 56, .08);
    background: #fff;
}

.support-message-form input {
    min-width: 0;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(19, 34, 56, .17);
    border-radius: 12px;
    outline: none;
    color: var(--ink, #132238);
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.support-message-form input:focus {
    border-color: var(--coral, #ff765f);
    box-shadow: 0 0 0 3px rgba(255, 118, 95, .13);
}

.support-message-form button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--navy, #142a46);
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.support-disclosure {
    margin: 0;
    padding: 0 12px 8px;
    color: #7a8492;
    background: #fff;
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

.support-contact-form {
    position: absolute;
    z-index: 3;
    inset: 74px 0 0;
    padding: 20px;
    overflow-y: auto;
    color: var(--ink, #132238);
    background: #fff;
}

.support-contact-heading { margin-bottom: 16px; }
.support-contact-heading strong { font-size: 17px; }
.support-contact-heading p { margin: 3px 0 0; color: var(--ink-soft, #4d5c6f); font-size: 12px; }

.support-contact-form > label:not(.support-privacy) {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
}

.support-contact-form input[type="text"],
.support-contact-form input[type="email"],
.support-contact-form textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(19, 34, 56, .18);
    border-radius: 10px;
    color: var(--ink, #132238);
    background: #fff;
    font: inherit;
    font-size: 13px;
    resize: vertical;
}

.support-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0;
    color: var(--ink-soft, #4d5c6f);
    font-size: 10px;
    line-height: 1.45;
}

.support-privacy input { margin-top: 2px; }
.support-privacy a { color: inherit; }

.support-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8px;
}

.support-contact-actions button {
    min-height: 42px;
    border: 1px solid rgba(19, 34, 56, .16);
    border-radius: 10px;
    color: var(--ink, #132238);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.support-contact-actions button[type="submit"] {
    border-color: var(--coral, #ff765f);
    background: var(--coral, #ff765f);
}

.support-form-error {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    color: #8d251a;
    background: #ffe4df;
    font-size: 11px;
}

@media (max-width: 600px) {
    .support-widget { right: 12px; bottom: 12px; }
    .support-launch { min-height: 50px; padding-right: 14px; }
    .support-panel {
        position: fixed;
        right: 10px;
        bottom: 72px;
        left: 10px;
        width: auto;
        height: min(630px, calc(100dvh - 88px));
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-launch { transition: none; }
    .support-typing > div::after { animation: none; }
}
