.rlc {
    --rlc-ink: #172f2b;
    --rlc-muted: #526761;
    --rlc-accent: #105649;
    --rlc-accent-hover: #083e34;
    --rlc-mint: #e1f4ec;
    --rlc-line: #d7e4df;
    --rlc-paper: #fff;
    --rlc-floor: #f3f8f6;
    color: var(--rlc-ink);
    font: 400 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rlc *, .rlc *::before, .rlc *::after { box-sizing: border-box; }
.rlc [hidden] { display: none !important; }
.rlc :where(h1, h2, p) { margin: 0; color: inherit; }
.rlc :where(button, input, textarea) { font: inherit; }
.rlc :where(button, input, textarea, a, [tabindex]):focus-visible {
    outline: 3px solid #229b85;
    outline-offset: 3px;
}
.rlc :where(button) { cursor: pointer; }
.rlc :where(button:disabled, input:disabled) { opacity: .58; cursor: default; }
.rlc :where(a, .rlc-link) { color: var(--rlc-accent); text-underline-offset: .2em; }
.rlc :where(input:not([type="checkbox"]), textarea) {
    width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 10px 12px;
    border: 1px solid #bccfc8; border-radius: 10px; background: var(--rlc-paper); color: var(--rlc-ink);
    box-shadow: none; line-height: 1.45;
}
.rlc textarea { resize: vertical; }
.rlc :where(input, textarea)::placeholder { color: #647a73; opacity: 1; }
.rlc .rlc-primary, .rlc .rlc-secondary {
    display: inline-flex; gap: 9px; align-items: center; justify-content: center;
    min-height: 42px; margin: 0; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px;
    background: var(--rlc-accent); color: white; font-weight: 650; line-height: 1.35; text-decoration: none;
    text-align: center; box-shadow: none;
}
.rlc .rlc-primary:hover { background: var(--rlc-accent-hover); color: white; }
.rlc .rlc-secondary { background: var(--rlc-paper); color: var(--rlc-accent); border-color: var(--rlc-line); }
.rlc .rlc-secondary:hover { background: var(--rlc-mint); color: var(--rlc-accent-hover); }
.rlc .rlc-link {
    background: transparent; padding: 4px 0; margin: 0; border: 0; border-radius: 3px;
    color: var(--rlc-accent); font-weight: 650; font-size: .88em; text-decoration: underline; box-shadow: none;
}
.rlc .rlc-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.rlc .rlc-alert, .rlc .rlc-feedback {
    padding: 10px 14px; border: 1px solid #edcdab; border-radius: 10px;
    background: #fff4e8; color: #713e1d; overflow-wrap: anywhere;
}
.rlc .rlc-feedback { border-color: var(--rlc-line); background: var(--rlc-mint); color: var(--rlc-accent); }
.rlc .rlc-empty { padding: 25px 16px; color: var(--rlc-muted); text-align: center; }
.rlc .rlc-mark {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
    width: 22px; height: 17px; border: 1.7px solid currentColor; border-radius: 7px; color: inherit;
}
.rlc .rlc-mark::after {
    content: ""; position: absolute; inset-block-end: -4px; inset-inline-start: 4px;
    width: 5px; height: 5px; border-block-end: 1.7px solid currentColor; border-inline-start: 1.7px solid currentColor;
    background: inherit; transform: skewY(-32deg);
}
.rlc .rlc-mark i { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.rlc .rlc-brand {
    display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px;
    border-radius: 14px; background: var(--rlc-mint); color: var(--rlc-accent);
}
.rlc .rlc-brand .rlc-mark { background: var(--rlc-mint); }

body.rlc-page-body { margin: 0; padding: 0; background: #eaf3ef; }
.rlc .rlc-panel {
    display: flex; flex-direction: column; min-height: 0;
    overflow: auto; overscroll-behavior: contain; border: 1px solid var(--rlc-line); border-radius: 20px;
    background: var(--rlc-paper); box-shadow: 0 18px 56px #153d3029;
}
.rlc .rlc-banner {
    display: flex; align-items: center; gap: 11px; flex: 0 0 auto; padding: 17px 18px;
    background: linear-gradient(122deg, #123d36, #126354); color: white;
}
.rlc .rlc-banner-text { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rlc .rlc-banner-text strong { font-size: 16px; }
.rlc-panel > .rlc-alert { margin: 10px 14px 0; }
.rlc .rlc-onboard { width: min(100%, 450px); margin-inline: auto; padding: clamp(20px, 4vw, 42px); }
.rlc .rlc-onboard h2 { font-size: 19px; line-height: 1.3; font-weight: 720; margin-block-end: 6px; }
.rlc .rlc-onboard p { color: var(--rlc-muted); font-size: 13px; }
.rlc .rlc-form { display: grid; gap: 12px; margin-block-start: 15px; }
.rlc :where(.rlc-form, .rlc-settings-card) label:not(.rlc-switch) { display: grid; gap: 5px; font-weight: 650; }
.rlc .rlc-privacy { display: grid; justify-items: start; gap: 4px; margin-block-start: 15px; color: var(--rlc-muted); font-size: 12px; }
.rlc .rlc-offline { padding-block: 34px; color: var(--rlc-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.rlc .rlc-chat { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.rlc .rlc-scroll {
    flex: 1; min-height: 110px; overflow: auto; overscroll-behavior: contain; padding: 16px;
    background-color: var(--rlc-floor);
    background-image: radial-gradient(circle, #97b6aa45 1px, transparent 1px);
    background-size: 20px 20px;
}
.rlc .rlc-messages { display: flex; flex-direction: column; gap: 9px; }
.rlc .rlc-message {
    align-self: flex-start; width: fit-content; max-width: min(88%, 580px); padding: 8px 12px;
    background: var(--rlc-paper); border: 1px solid var(--rlc-line); border-radius: 14px; border-start-start-radius: 6px;
    box-shadow: 0 2px 6px #163c3110; overflow-wrap: anywhere;
}
.rlc .rlc-outgoing {
    align-self: flex-end; background: var(--rlc-mint); border-color: #c4e3d6;
    border-start-start-radius: 14px; border-start-end-radius: 6px;
}
.rlc .rlc-message-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--rlc-muted); font-size: 11px; }
.rlc .rlc-message-body { margin-block-start: 3px; white-space: pre-wrap; text-align: start; }
.rlc .rlc-message-link {
    display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; max-inline-size: 100%;
    padding: 2px 7px; color: var(--rlc-accent); background: var(--rlc-floor);
    border: 1px solid var(--rlc-line); border-radius: 7px; white-space: normal; font-size: .9em;
    text-decoration: none; vertical-align: baseline; overflow-wrap: anywhere;
}
.rlc .rlc-message-link:hover, .rlc .rlc-link-action { text-decoration: underline; }
.rlc .rlc-link-site { min-inline-size: 0; font-weight: 650; }
.rlc .rlc-message-link .rlc-bi { align-self: center; }
.rlc .rlc-older { display: block; margin: 0 auto 13px; }
.rlc .rlc-compose {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 11px 12px;
    border-top: 1px solid var(--ssac-line);
    background: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    position: static;
    flex-shrink: 0;
}
 .rlc .rlc-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 44px; resize: vertical; padding: 10px 12px; border: 1px solid #d7e2db; border-radius: 10px; background: #f8faf8; color: var(--ssac-ink); font: inherit; font-size: 14px; line-height: 1.5; direction: rtl; } }

.rlc-admin { max-width: 1450px; }
.rlc-admin[data-rlc-inbox] { container: relay-inbox / inline-size; }
.rlc .rlc-admin-title {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 12px; margin-block: 20px 16px;
}
.rlc .rlc-admin-title h1 { font-size: clamp(24px, 3vw, 35px); font-weight: 740; line-height: 1.2; letter-spacing: -.025em; padding: 0; }
.rlc .rlc-admin-title p { color: var(--rlc-muted); margin-block-start: 3px; }
.rlc-admin > :is(.rlc-alert, .rlc-feedback) { margin-block-end: 12px; }
.rlc .rlc-inbox-toolbar { justify-content: flex-end; margin-block: 0 8px; }
.rlc-has-thread > .rlc-inbox-toolbar { display: none; }
.rlc .rlc-inbox {
    display: grid; grid-template-columns: minmax(270px, 34%) minmax(0, 1fr);
    height: calc(100vh - 118px); height: calc(100dvh - 118px); min-height: 300px; max-height: 990px;
    overflow: hidden; border: 1px solid var(--rlc-line); border-radius: 14px;
    background: var(--rlc-paper); box-shadow: 0 10px 35px #153d3010;
}
.rlc-has-thread .rlc-inbox { height: calc(100vh - 70px); height: calc(100dvh - 70px); }
.rlc .rlc-list-pane { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--rlc-line); }
.rlc .rlc-list-head { padding: 17px 15px 13px; border-block-end: 1px solid var(--rlc-line); }
.rlc .rlc-list-head h2, .rlc .rlc-thread-head h2 { font-size: 16px; line-height: 1.35; font-weight: 710; overflow-wrap: anywhere; }
.rlc .rlc-list-head input { margin-block-start: 9px; background: var(--rlc-floor); }
.rlc .rlc-inbox-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 5px; }
.rlc .rlc-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
    padding: 10px 12px;
    width: 100%;
    min-height: 58px;
    text-align: start;
    color: var(--rlc-ink);
    border: 1px solid transparent;
    border-radius: 10px;
    background: #e3f5fc;
    box-shadow: none;
}
.rlc .rlc-contact-visitor { background: #f9ceeb5c; }
.rlc .rlc-contact:hover { border-color: var(--rlc-line); }
.rlc .rlc-contact[aria-pressed="true"] { border-color: var(--rlc-accent); }
.rlc .rlc-contact:focus-visible { outline-offset: -2px; }
.rlc .rlc-contact-text { display: grid; gap: 3px; min-width: 0; }
.rlc .rlc-contact-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.rlc .rlc-contact-time { white-space: nowrap; font-size: 11px; color: var(--rlc-muted);  }
.rlc .rlc-contact-email { color: var(--rlc-muted); font-size: 11px; }
.rlc .rlc-contact-name { font-weight: 600; }
.rlc .rlc-contact.is-unread .rlc-contact-text { font-weight: 750; }
.rlc .rlc-contact.is-unread .rlc-contact-name { font-weight: inherit; }
.rlc .rlc-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-block-start: 1px solid var(--rlc-line); }
.rlc .rlc-inbox-placeholder {
    display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
    padding: 20px; background: radial-gradient(ellipse at center, #e3f3ec, var(--rlc-floor) 65%);
}
.rlc .rlc-inbox-placeholder h2 { font-size: 24px; font-weight: 700; }
.rlc .rlc-inbox-placeholder p { color: var(--rlc-muted); }
.rlc .rlc-inbox-placeholder .rlc-brand { width: 58px; height: 58px; border-radius: 18px; border: 1px solid #bfded1; }
.rlc .rlc-admin-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.rlc .rlc-thread-head {
    position: sticky; inset-block-start: 0; z-index: 2; flex: 0 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
    padding: 6px 12px; border-block-end: 1px solid var(--rlc-line); background: var(--rlc-paper);
}
.rlc .rlc-thread-person, .rlc .rlc-thread-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rlc .rlc-thread-actions { justify-content: flex-end; flex-wrap: wrap; }
.rlc .rlc-thread-identity { min-width: 0; }
.rlc .rlc-thread-identity h2 { font-size: 14px; }
.rlc .rlc-thread-details { display: flex; align-items: baseline; gap: 2px 8px; min-width: 0; }
.rlc .rlc-thread-details p { color: var(--rlc-muted); font-size: 11px; }
.rlc .rlc-thread-identity :is(h2, p) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.rlc .rlc-thread-head .rlc-secondary { min-height: 38px; padding: 5px 10px; font-size: 12px; }
.rlc .rlc-thread-head .rlc-switch { min-height: 38px; padding-inline: 5px; font-size: 12px; }
.rlc .rlc-thread-head .rlc-switch input:focus-visible { outline: 3px solid #229b85; outline-offset: 3px; }
.rlc .rlc-admin-chat .rlc-scroll { min-height: 0; padding: 12px; }
.rlc .rlc-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.rlc .rlc-switch input {
    appearance: none; width: 36px; height: 21px; min-width: 36px; min-height: 21px; display: grid; align-items: center;
    margin: 0; border: 0; border-radius: 30px; background: #697f77; box-shadow: none; cursor: pointer;
}
.rlc .rlc-switch input::before {
    content: ""; display: block; width: 15px; height: 15px; margin: 0 3px; border-radius: 50%; background: white;
}
.rlc .rlc-switch input:checked { background: var(--rlc-accent); }
.rlc .rlc-switch input:checked::before { content: ""; justify-self: end; }
.rlc .rlc-admin-compose {
    flex: 0 0 auto; display: grid; gap: 6px; min-width: 0;
    padding: 8px 12px; border-block-start: 1px solid var(--rlc-line); background: var(--rlc-paper);
}
.rlc .rlc-admin-compose textarea { min-height: 43px; max-height: min(135px, 20dvh); padding: 7px 10px; }
.rlc .rlc-admin-compose .rlc-actions { gap: 6px; }
.rlc .rlc-admin-compose .rlc-actions :is(.rlc-primary, .rlc-secondary) { min-height: 40px; padding: 6px 10px; font-size: 13px; }
.rlc .rlc-ai-status, .rlc .rlc-draft-state { padding: 7px 13px; background: var(--rlc-mint); color: var(--rlc-accent); font-size: 12px; }
.rlc .rlc-draft-result { max-height: min(128px, 18dvh); overflow: auto; padding: 8px 12px; background: var(--rlc-floor); border-radius: 8px; }
.rlc .rlc-draft-result p { white-space: pre-wrap; overflow-wrap: anywhere; }
.rlc .rlc-mobile-back { display: none; }
.rlc .rlc-settings { display: grid; gap: 15px; max-width: 780px; }
.rlc .rlc-settings-card {
    display: grid; justify-items: start; gap: 13px; width: 100%; padding: 19px;
    border: 1px solid var(--rlc-line); border-radius: 14px; background: var(--rlc-paper);
}
.rlc .rlc-settings-card h2 { font-size: 18px; font-weight: 710; }
.rlc .rlc-settings-card p { color: var(--rlc-muted); }
.rlc .rlc-settings-card label:not(.rlc-switch) { width: 100%; }
.rlc-operator-shell {
    min-height: 100vh; display: flow-root; padding: 18px clamp(14px, 4vw, 52px) 25px;
    background: radial-gradient(ellipse at 2% 20%, #d2eae0 0, transparent 56%), #edf5f1;
}
.rlc-operator-shell .rlc-admin { margin-inline: auto; }
.rlc-operator-shell .rlc-admin-title { margin-block-start: 4px; }
body.rlc-staff-active { overflow: hidden; }
.rlc-operator-active {
    --rlc-wp-bar: 0px;
    display: flex; flex-direction: column; box-sizing: border-box; min-height: 0;
    height: calc(100vh - var(--rlc-wp-bar));
    height: calc(var(--rlc-viewport-height, 100dvh) - var(--rlc-wp-bar));
    padding: clamp(6px, 2vw, 22px); overflow: hidden;
}
.admin-bar .rlc-operator-active { --rlc-wp-bar: 32px; }
.rlc-operator-active .rlc-admin {
    display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; margin-block: 0;
}
.rlc-operator-active .rlc-inbox { flex: 1; min-height: 0; max-height: none; height: auto; }
.rlc-operator-shell .rlc-operator-login {
    width: min(100%, 440px); margin: clamp(24px, 12vh, 118px) auto 0;
    overflow: hidden; border: 1px solid var(--rlc-line); border-radius: 20px;
    background: var(--rlc-paper); box-shadow: 0 18px 56px #153d3029;
}
.rlc-operator-shell .rlc-operator-login h1 { font-size: 24px; font-weight: 720; line-height: 1.2; margin-block-end: 8px; }
.rlc-operator-login .rlc-alert { margin-block-start: 10px; }

@media (max-width: 782px) {
    .admin-bar .rlc-support { --rlc-wp-bar: 46px; }
    .admin-bar .rlc-operator-active { --rlc-wp-bar: 46px; }
    .rlc-admin:not(.rlc-operator-active .rlc-admin) .rlc-inbox { height: calc(100dvh - 115px); }
    .rlc-has-thread:not(.rlc-operator-active .rlc-has-thread) .rlc-inbox { height: calc(100dvh - 67px); }
}

.rlc .rlc-bi { display: block; flex: 0 0 auto; width: 1.05em; height: 1.05em; fill: #fff; }
[dir="rtl"] .rlc :is(.rlc-mobile-back, .rlc-visitor-logout) .rlc-bi { transform: scaleX(-1); }
.rlc .rlc-icon-button:not(.rlc-mobile-back), .rlc .rlc-mobile-back.rlc-icon-button {
    place-items: center; flex: 0 0 auto; min-width: 42px; min-height: 42px;
    padding: 0; font-size: 17px; line-height: 1; border-radius: 11px;
}
.rlc .rlc-icon-button:not(.rlc-mobile-back) { display: inline-grid; }
.rlc .rlc-thread-head .rlc-icon-button { padding: 0; font-size: 17px; }
.rlc :where(button)[aria-busy="true"]::after, .rlc .rlc-spinner {
    content: ""; flex: 0 0 auto; width: 1em; height: 1em; border: 2px solid currentColor;
    border-inline-end-color: transparent; border-radius: 50%; animation: rlc-spin .7s linear infinite;
}
.rlc .rlc-icon-button[aria-busy="true"] .rlc-bi { display: none; }
@keyframes rlc-spin { to { transform: rotate(360deg); } }
@keyframes rlc-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

body.rlc-visitor-active { overflow: hidden; }
.rlc-support {
    --rlc-wp-bar: 0px;
    --rlc-accent: #1c6659;
    --rlc-accent-hover: #144a41;
    inline-size: 100%; max-inline-size: none; margin: 0;
    box-sizing: border-box; height: calc(100vh - var(--rlc-wp-bar));
    height: calc(min(100dvh, var(--rlc-viewport-height, 100dvh)) - var(--rlc-wp-bar));
    overflow: hidden; background: #f1f8f5;
}
.admin-bar .rlc-support { --rlc-wp-bar: 32px; }
@media (max-width: 782px) {
    .admin-bar .rlc-support { --rlc-wp-bar: 46px; }
}
.rlc-support .rlc-widget { display: flex; height: 100%; min-height: 0; }
.rlc-support .rlc-widget .rlc-panel {
    flex: 1; min-height: 0; overflow: hidden; border: 0; border-radius: 0; box-shadow: none;
    background: radial-gradient(ellipse at top, #deeee7, #f8fbf9 68%);
}
.rlc-support .rlc-banner {
    padding: 11px max(16px, calc((100% - 960px) / 2)); gap: 12px;
    background: linear-gradient(110deg, #123f37, #1d6458); box-shadow: 0 2px 10px #19483a2b; z-index: 1;
}
.rlc-support .rlc-banner h1 {
    font: 700 clamp(16px, 3vw, 21px)/1.2 system-ui, sans-serif; color: white; overflow-wrap: anywhere;
}
.rlc-support .rlc-banner-text > span { color: #d3ebe4; font-size: 12px; }
.rlc-support .rlc-brand .rlc-bi { width: 22px; height: 22px; }
.rlc .rlc-visitor-logout { color: white; border: 1px solid #ffffff55; background: #ffffff10; }
.rlc .rlc-visitor-logout:hover { background: #ffffff25; }
.rlc-support .rlc-public-notice {
    flex: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 9px;
    padding: 10px 14px; text-align: center; background: #e7f4ed; color: #1c6659; overflow-wrap: anywhere;
}
.rlc .rlc-public-loading {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 24px 14px;
    color: var(--rlc-accent);
}
.rlc-public-loading .rlc-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
}
.rlc-public-loading .rlc-loading-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.rlc-support .rlc-onboard {
    width: min(calc(100% - 24px), 445px); margin: auto; min-height: 0; overflow: auto;
    padding: clamp(16px, 4vw, 32px); animation: rlc-rise .22s ease-out;
}
.rlc-support .rlc-onboard[data-rlc="access"] { background: white; border: 1px solid var(--rlc-line); border-radius: 22px; }
.rlc-support .rlc-auth-icon {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    margin-block-end: 10px; background: var(--rlc-mint); color: var(--rlc-accent); font-size: 24px;
}
.rlc-support .rlc-form .rlc-primary { min-height: 45px; }
.rlc-support .rlc-chat { overflow: hidden; }
.rlc-support .rlc-chat .rlc-scroll {
    min-height: 0; padding: 18px max(12px, calc((100% - 960px) / 2));
    background-color: #f1f8f5; background-image: radial-gradient(circle, #72a39438 1px, transparent 1px);
}
.rlc-support .rlc-messages .rlc-message { animation: rlc-rise .18s ease-out; }
.rlc-support .rlc-compose {
    flex: 0 0 auto; align-items: end; padding: 9px max(12px, calc((100% - 960px) / 2));
    padding-block-end: max(9px, env(safe-area-inset-bottom)); border-block-start: 1px solid var(--rlc-line);
    background: white;align-items: center;
}
.rlc-support .rlc-compose textarea { flex: 1; max-height: 22dvh; min-height: 44px; padding: 8px 11px; }
.rlc-support .rlc-send-button { min-width: 46px; min-height: 46px; }
.rlc .rlc-typing {
    flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 4px 12px;
    color: var(--rlc-accent); background: var(--rlc-floor); font-size: 12px;
}
.rlc-support .rlc-typing { padding-inline: max(12px, calc((100% - 960px) / 2)); }
.rlc .rlc-typing-dots { display: inline-flex; gap: 3px; }
.rlc .rlc-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: rlc-bounce 1s ease-in-out infinite; }
.rlc .rlc-typing-dots i:nth-child(2) { animation-delay: .12s; }
.rlc .rlc-typing-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes rlc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-3px); opacity: 1; } }

.rlc .rlc-thread-head .rlc-switch { margin-inline-end: auto; }
.rlc .rlc-visitor-dialog {
    width: min(460px, calc(100% - 24px)); max-height: min(670px, calc(100dvh - 24px));
    padding: 0; overflow: auto; color: var(--rlc-ink); background: var(--rlc-paper);
    border: 1px solid var(--rlc-line); border-radius: 16px; box-shadow: 0 18px 62px #193c34aa;
}
.rlc .rlc-visitor-dialog[open] { animation: rlc-rise .18s ease-out; }
.rlc .rlc-visitor-dialog::backdrop { background: #15362d80; }
.rlc .rlc-dialog-head {
    position: sticky; inset-block-start: 0; display: flex; align-items: center; justify-content: space-between;
    padding: 8px 13px; background: var(--rlc-paper); border-block-end: 1px solid var(--rlc-line);
}
.rlc .rlc-dialog-head h2 { font-size: 17px; font-weight: 700; }
.rlc .rlc-dialog-status { padding: 16px; }
.rlc .rlc-visitor-fields { margin: 0; padding: 5px 13px 10px; }
.rlc .rlc-visitor-fields > div {
    display: grid; grid-template-columns: minmax(105px, 43%) minmax(0,1fr); gap: 8px; align-items: baseline;
    padding: 8px 0; border-block-end: 1px solid var(--rlc-line);
}
.rlc .rlc-visitor-fields > div:last-child { border-block-end: 0; }
.rlc .rlc-visitor-fields dt { display: flex; align-items: center; gap: 6px; color: var(--rlc-muted); }
.rlc .rlc-visitor-fields dd { margin: 0; overflow-wrap: anywhere; }
.rlc .rlc-dialog-footer, .rlc .rlc-delete-confirm { padding: 12px 13px; }
.rlc .rlc-dialog-footer { display: flex; justify-content: flex-end; border-block-start: 1px solid var(--rlc-line); }
.rlc .rlc-delete-confirm { display: grid; gap: 12px; }
.rlc .rlc-delete-confirm .rlc-actions { justify-content: flex-end; }
.rlc .rlc-danger-link { color: #982c2c; }
.rlc .rlc-danger, .rlc .rlc-danger:hover { background: #982c2c; color: white; }
.rlc .rlc-danger:hover { background: #742020; }
@media (prefers-reduced-motion: reduce) {
    .rlc .rlc-typing-dots i, .rlc .rlc-spinner, .rlc button[aria-busy="true"]::after,
    .rlc-support .rlc-onboard, .rlc-support .rlc-messages .rlc-message, .rlc .rlc-visitor-dialog[open] { animation: none; }
}
@container relay-inbox (max-width: 700px) {
    .rlc .rlc-inbox { grid-template-columns: minmax(0, 1fr); }
    .rlc .rlc-list-pane { border-inline-end: 0; }
    .rlc .rlc-inbox-placeholder, .rlc-has-thread .rlc-list-pane { display: none; }
    .rlc .rlc-thread-head .rlc-mobile-back { display: inline-flex; flex: 0 0 auto; }
}
@container relay-inbox (max-width: 510px) {
    .rlc .rlc-thread-head { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 4px 8px; }
    .rlc .rlc-thread-actions { justify-content: space-between; }
    .rlc .rlc-thread-head :is(.rlc-secondary, .rlc-switch) { min-height: 42px; }
    .rlc .rlc-admin-compose { padding: 6px 8px; }
    .rlc .rlc-admin-compose textarea { font-size: 16px; }
    .rlc .rlc-admin-compose .rlc-actions :is(.rlc-primary, .rlc-secondary) { min-height: 44px; }
    .rlc .rlc-list-head input { font-size: 16px; }
}
@media (max-width: 480px) {
    .rlc-widget :where(input, textarea) { font-size: 16px; }
}
@media (forced-colors: active) {
    .rlc .rlc-switch input { appearance: auto; width: 18px; min-width: 18px; }
    .rlc .rlc-switch input::before { display: none; }
}
