*{box-sizing:border-box}body{margin:0;font-family: var(--site-font-family);color:#10233d;background:#f3faff}.top{display:flex;align-items:center;justify-content:space-between;padding:16px max(20px,calc((100% - 1160px)/2));color:#fff;background:linear-gradient(135deg,#063a73,#0869c9)}.top a{color:#fff;text-decoration:none;font-size:.8rem}.layout{width:min(1160px,calc(100% - 30px));margin:26px auto;display:grid;grid-template-columns:330px 1fr;gap:20px}.panel{border:1px solid #d8eaf5;border-radius:18px;background:#fff;box-shadow:0 13px 35px rgba(8,65,120,.08);overflow:hidden}.head{padding:18px;border-bottom:1px solid #e5f0f7}.head h2{margin:0;font-size:1rem;color:#063a73}.list{padding:10px}.ticket{display:block;padding:12px;margin-bottom:7px;border-radius:11px;color:inherit;text-decoration:none;background:#f2f9fd}.ticket.on,.support-admin .conversation-head{background:#dff2ff}.ticket strong,.ticket small{display:block}.ticket strong{font-size:.77rem}.ticket small{margin-top:4px;color:#6a7c91;font-size:.64rem}.form{padding:18px}label{display:block;margin:12px 0 6px;font-size:.73rem;font-weight:700}input,textarea{width:100%;padding:11px;border:1px solid #cfe2f2;border-radius:10px;font:inherit;font-size:.78rem}textarea{min-height:110px;resize:vertical}.btn{padding:11px 16px;margin-top:12px;border:0;border-radius:10px;color:#fff;background:#0869c9;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer}.chat{height:500px;padding:18px;overflow:auto;background:#f7fbfe}.msg{max-width:78%;margin:0 0 12px;padding:11px 13px;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(8,65,120,.08);white-space:pre-wrap;font-size:.78rem}.msg.user{margin-left:auto;color:#fff;background:#0878d7}.msg small{display:block;margin-top:6px;opacity:.65;font-size:.6rem}.reply{padding:14px;border-top:1px solid #e5f0f7}.reply textarea{min-height:74px}.empty{padding:50px 20px;text-align:center;color:#6a7c91}.alert{margin:14px;padding:10px;color:#a32626;border-radius:9px;background:#fff0f0;font-size:.75rem}.badge{float:right;color:#08734c;font-size:.62rem}@media(max-width:780px){.layout{grid-template-columns:1fr}.chat{height:420px}}
.layout {
    width: min(1720px, calc(100% - clamp(24px, 5vw, 96px)));
    grid-template-columns: clamp(265px, 23vw, 380px) minmax(0, 1fr);
}
.top { padding-inline: max(clamp(12px, 2.5vw, 48px), calc((100% - 1720px) / 2)); }
.top a, .badge, .ticket small, .msg small, .receipt { font-size: .875rem; }
.head h2, .form h2 { font-size: 1.25rem; line-height: 1.3; }
.ticket strong, input, textarea, select { font-size: 1rem; }
label, .btn, .alert { font-size: .9375rem; }
select {
    padding: .6rem .75rem;
    border: 1px solid #cfe2f2;
    border-radius: 10px;
    color: inherit;
    font-family: inherit;
    background: #fff;
}
.ticket, .msg, .head { overflow-wrap: anywhere; }
.ticket.unread { background: #e5f3ff; box-shadow: inset 4px 0 #0878d7; }
.unread-count {
    display: inline-block;
    margin-top: .45rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #0869c9;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
}
.msg {
    width: fit-content;
    min-width: min(100%, 12rem);
    font-size: 1.0625rem;
    line-height: 1.5;
}
.msg.user { margin-left: 0; color: inherit; background: #fff; }
.msg.outgoing { margin-left: auto; color: #fff; background: #0869c9; }
.msg.system { margin-inline: auto; font-size: .9375rem; background: #edf4fa; }
.msg small { opacity: .88; }
.receipt {
    display: block;
    margin-top: .3rem;
    text-align: right;
}
.receipt.unseen { color: #deebf8; }
.receipt.seen { color: #e2ffd4; font-weight: 700; }
@media (max-width: 780px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .top { flex-wrap: wrap; gap: .5rem 1rem; }
    .msg { max-width: 92%; }
}
.support-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; }
.top .support-home { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border: 1px solid #ffffff80; border-radius: 8px; font-weight: 700; }
.top .support-home:hover, .top .support-home:focus-visible { background: #ffffff26; }
/* Apply line breaks to message text only, not to the template's indentation. */
.msg { white-space: normal; }
.msg-text { white-space: pre-wrap; }
.msg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin-top: .2rem; }
.msg-meta small, .msg-meta .receipt { margin: 0; line-height: 1.35; }
.msg-meta .receipt { margin-inline-start: auto; white-space: nowrap; }

.support-admin .head { padding: 10px 14px; }
.support-admin .head h2 { font-size: 1.1rem; }
.support-admin .conversation-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.support-admin .conversation-contact { min-width: 0; }
.support-admin .conversation-contact p { margin: .25rem 0 0; font-size: .875rem; }
.support-admin .reply .btn { margin: 0; }
.support-admin .btn { padding: .45rem .65rem; font-size: .875rem; }
.support-admin .list { padding: 8px; }
.support-admin .ticket { padding: 8px 10px; margin-bottom: 5px; }
.support-admin .ticket :is(small, .badge, .unread-count) { font-size: .8125rem; }
.support-admin .chat { padding: 10px 14px; }
.support-admin .msg {
    min-width: 0;
    max-width: min(90%, 70ch);
    margin-bottom: 6px;
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: none;
}
.support-admin .msg-meta :is(small, .receipt) { font-size: .8125rem; }
.support-admin .msg.system { font-size: .875rem; }
.reply { display: flex; align-items: end; gap: 8px; padding: 8px 12px; }
.reply textarea { flex: 1; min-width: 0; min-height: 144px; height: 144px; }
.reply .btn { min-height: 40px; padding: .45rem .65rem; font-size: .875rem; }

@media (min-width: 781px) and (min-height: 540px) {
    body.support-admin { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
    .support-admin .layout { min-height: 0; margin-block: 12px; }
    .support-admin .layout > .panel { display: flex; flex-direction: column; min-height: 0; }
    .support-admin :is(.list, .chat) { flex: 1; min-height: 0; overflow-y: auto; }
    .support-admin :is(.head, .reply) { flex: none; }
}

.badge.needs-reply { color: #9b460b; font-weight: 700; }
.support-admin .ticket-summary { font-size: .875rem; line-height: 1.45; }
.support-admin .ticket-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reply-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.reply-actions .reply-send {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
}
.reply-actions summary {
    display: grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    padding: 4px;
    border: 1px solid #cfe2f2;
    border-radius: 10px;
    color: #064e91;
    background: #f0f7ff;
    font-size: 1.35rem;
    cursor: pointer;
    list-style: none;
}
.reply-actions summary:hover, .reply-actions summary:focus-visible { background: #e5f1ff; }
.reply-actions summary::-webkit-details-marker { display: none; }
.reply-picker {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 1;
    width: min(260px, calc(100vw - 64px));
    max-height: min(370px, 45vh);
    overflow: auto;
    padding: 10px;
    border: 1px solid #cfe2f2;
    border-radius: 12px;
    color: #10233d;
    background: #fff;
    box-shadow: 0 6px 20px #10233d22;
}
.reply-picker-group + .reply-picker-group { margin-top: 8px; }
.reply-picker-group > span { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 700; }
.reply-symbol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: 4px; }
.reply-actions .reply-tools { position: absolute; right: 0; bottom: 0; }
.reply-actions .reply-tools summary[hidden] { display: none; }
.reply-tools .reply-picker-group > button {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    color: inherit;
    background: #edf6fc;
    font: inherit;
    font-size: .875rem;
    text-align: left;
    cursor: pointer;
}
.reply-tools .reply-picker-group > button:is(:hover, :focus-visible) { background: #d6ebff; }
.msg-text code {
    padding: .1em .25em;
    border-radius: 4px;
    background: #10233d12;
    color: inherit;
}
.msg.outgoing .msg-text code { background: #001b3c40; }
.reply-symbol-grid button {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: #edf6fc;
    color: #10233d;
    font: 1.125rem "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    cursor: pointer;
}
.reply-symbol-grid button:hover, .reply-symbol-grid button:focus-visible { background: #d6ebff; }
.reply textarea, .msg-text { font-family: var(--site-font-family), "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }

.support-admin .ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .5rem; align-items: start; }
.support-admin .ticket-summary { grid-column: 1; grid-row: 1; }
.support-admin .ticket-preview { grid-column: 1 / -1; grid-row: 2; }
.ticket-reply-state {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .4rem;
    border-radius: 6px;
    white-space: nowrap;
    font-size: .8125rem;
    font-weight: 700;
}
.ticket-reply-state.replied { color: #137333; background: #e9f7ec; }
.ticket-reply-state.needs-reply { color: #b42318; background: #fff0ee; }

.chat-waiting {
    width: fit-content;
    max-width: 100%;
    margin: .6rem auto;
    padding: .35rem .65rem;
    border-radius: 10px;
    color: #36516d;
    background: #edf4fa;
    font-size: .875rem;
}
.chat-waiting strong { font-variant-numeric: tabular-nums; }
.chat-waiting-dots {
    display: inline-block;
    font-family: monospace;
    animation: chat-waiting-dots 1.5s steps(1, end) infinite;
}
@keyframes chat-waiting-dots {
    0% { clip-path: inset(0 66.67% 0 0); }
    33.33% { clip-path: inset(0 33.33% 0 0); }
    66.67%, 100% { clip-path: inset(0); }
}
@media (prefers-reduced-motion: reduce) {
    .chat-waiting-dots { animation: none; }
}
.reply-symbols .reply-picker { width: min(310px, calc(100vw - 64px)); max-height: min(420px, 50vh); }
.reply-symbols .reply-picker-group + .reply-picker-group {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #dceaf4;
}
.reply-symbols .reply-symbol-grid button { font-size: 1.3rem; }
.inbox-title-icon {
    position: relative;
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    margin-inline-end: .25rem;
    border-radius: 8px;
    background: #e5f3ff;
    color: #0869c9;
    vertical-align: middle;
}
.inbox-title-icon::before {
    content: "";
    position: absolute;
    inset: 8px 6px 7px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
}
.inbox-title-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 4px;
    border: 1.5px solid currentColor;
    border-top: 0;
    border-radius: 0 0 3px 3px;
    background: #e5f3ff;
    transform: translateX(-50%);
}
.support-brand { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.support-brand img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 7px; }
.support-admin .ticket-subject { color: #46627f; font-weight: 400; }
.support-admin .ticket-preview { color: #111; font-weight: 600; }
body:not(.support-admin) .msg-meta small { font-size: .75rem; }
body:not(.support-admin) .msg-meta { margin-top: .3rem; }
body:not(.support-admin) .msg.outgoing {
    padding: 0;
    color: #10233d;
    background: transparent;
    box-shadow: none;
}
body:not(.support-admin) .msg.outgoing .msg-text {
    width: fit-content;
    margin-inline-start: auto;
    padding: 9px 12px;
    border-radius: 14px;
    color: #fff;
    background: #0869c9;
}
body:not(.support-admin) .msg.admin {
    padding: 0;
    background: transparent;
    box-shadow: none;
}
body:not(.support-admin) .msg.admin .msg-text {
    width: fit-content;
    padding: 9px 12px;
    border-radius: 14px;
    background: #fff;
}
body:not(.support-admin) .msg.admin .msg-meta { color: #46627f; }

#support-register[aria-disabled="true"] {
    background: #e2e8f0;
    color: #475569;
    cursor: not-allowed;
}

#support-auth-form h2 {
    text-align: center;
}
.support-pin {
    min-width: 0;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
}
.support-pin legend {
    margin-bottom: 6px;
    padding: 0;
    font-size: .9375rem;
    font-weight: 700;
}
.support-auth-icon {
    object-fit: contain;
    vertical-align: middle;
    margin-inline-end: 4px;
}
.support-pin-digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
}
.support-pin-digits input {
    min-width: 0;
    padding-inline: 0;
    text-align: center;
}
.support-auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.support-auth-actions .btn {
    padding: 9px 13px;
    font-size: .875rem;
}
.support-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.support-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0869c9;
}
.support-signin-panel {
    border-color: #cfe4fa;
    background: #eff7ff;
}
.support-saved-accounts {
    display: grid;
    gap: 8px;
    margin: 0 12px 12px;
    padding: 12px;
    border: 1px solid #e3d8fa;
    border-radius: 12px;
    background: #f6f0ff;
}
.support-saved-accounts h3 {
    margin: 0;
    font-size: .9375rem;
    text-align: center;
}
.support-saved-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 8px 12px;
    border: 1px solid #e3d8fa;
    border-radius: 8px;
    color: #063a73;
    background: #fdfbff;
}
.support-saved-account button {
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #0869c9;
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}
.support-saved-identity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.support-saved-identity img {
    border-radius: 5px;
    object-fit: cover;
}
#support-phone-status { text-align: center; }
.support-phone-status-icon { font-weight: 700; }
#support-phone-status[data-state="valid"] .support-phone-status-icon { color: #08734c; }
#support-phone-status[data-state="exists"] .support-phone-status-icon { color: #b42318; }
.support-registration-success {
    color: #08734c;
    text-align: center;
}
.support-registration-success span {
    font-weight: 700;
}
.support-intro-panel {
    border-color: #cceadd;
    background: #effbf5;
}
.customer-ticket-list {
    border-color: #ddcff1;
    background: #f6f0ff;
}
.customer-ticket-list .head { border-bottom-color: #e5d9f5; }
.customer-ticket-list .head h2 { color: #4d3673; }
.customer-ticket-list .ticket { background: #fcf9ff; }
.customer-ticket-list .ticket:hover { background: #f0e7fa; }
.customer-ticket-list .ticket.on { background: #eadcfb; }
.customer-ticket-chat {
    border-color: #cceadd;
    background: #f5fdf9;
}
.customer-ticket-chat .head,
.customer-ticket-chat .reply { border-color: #d7eee3; }
.customer-ticket-chat .chat { background: #edf9f3; }
.ticket-create-footer {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 340px);
}
.ticket-create-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 1px solid #ddccf5;
    border-radius: 12px;
    color: #49336c;
    background: #f6f0ff;
    font-size: 1.25rem;
    text-align: center;
}
.ticket-new-link {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d4bdef;
    border-radius: 8px;
    color: #663da0;
    background: #eee2fc;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}
.ticket-new-link:hover, .ticket-new-link:focus-visible { background: #e4d1f9; }
.ticket-create-form h2 { margin: 0 0 12px; }
.ticket-contact-switch {
    display: inline-grid;
    place-items: center;
    padding: 3px;
    border: 1px solid #ffffff80;
    border-radius: 8px;
    background: #ffffff1a;
    cursor: pointer;
}
.ticket-contact-switch:hover, .ticket-contact-switch:focus-visible { background: #ffffff26; }
.ticket-contact-switch img {
    display: block;
    border-radius: 5px;
    object-fit: cover;
}
.ticket-account { position: relative; }
.ticket-account-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 0;
    width: 198px;
    padding: 7px;
    border: 1px solid #a7c6e3;
    border-radius: 10px;
    background: #e5f0fc;
    box-shadow: 0 10px 28px #081b2f26;
}
.ticket-account-menu:not([hidden]) { display: grid; gap: 5px; }
.ticket-account-menu a, .ticket-account-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #b6cfe8;
    border-radius: 8px;
    color: #10233d;
    background: #fff;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.ticket-account-icon {
    display: inline-grid;
    flex: 0 0 26px;
    height: 26px;
    place-items: center;
    border-radius: 6px;
    color: #0869c9;
    background: #d9ebff;
    font-size: 1.1rem;
    line-height: 1;
}
.ticket-account-menu :is(a, button):is(:hover, :focus-visible) { background: #edf5ff; }
.ticket-account-menu :is(a, button):focus-visible {
    outline: 2px solid #0869c9;
    outline-offset: -2px;
}
.ticket-switch-dialog {
    width: min(400px, calc(100% - 32px));
    padding: 10px;
    border: 1px solid #c3def4;
    border-radius: 22px;
    color: #10233d;
    background: #e5f3ff;
    box-shadow: 0 18px 52px #081b2f33;
    text-align: center;
}
.ticket-switch-dialog::backdrop { background: rgb(8 27 47 / 55%); }
.ticket-switch-card {
    padding: 22px;
    border: 1px solid #d8eaf5;
    border-radius: 14px;
    background: #fff;
}
.ticket-switch-symbol {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 50%;
    color: #0869c9;
    background: #e5f3ff;
    font-size: 1.5rem;
    line-height: 1;
}
.ticket-switch-dialog h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.45;
    text-wrap: balance;
}
.ticket-switch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.ticket-switch-actions .btn {
    min-height: 42px;
    margin: 0;
    padding: 8px;
    border: 1px solid transparent;
}
.ticket-switch-actions .ticket-switch-cancel {
    border-color: #cfe2f2;
    color: #234260;
    background: #f3f8fd;
}
.ticket-switch-actions .btn:hover { filter: brightness(.96); }
.ticket-switch-actions .btn:focus-visible {
    outline: 2px solid #0869c9;
    outline-offset: 2px;
}
.ticket-password-dialog {
    border-color: #95b9e0;
    background: #d8eaff;
}
.ticket-password-dialog .ticket-switch-card {
    padding: clamp(12px, 4vw, 22px);
    border-color: #a9c7e6;
}
.ticket-password-form {
    margin-top: 14px;
    text-align: left;
}
.ticket-password-form .support-pin {
    margin-top: 10px;
    padding: 4px 8px 8px;
    border: 1px solid #b3cce7;
    border-radius: 10px;
    background: #edf5ff;
}
.ticket-password-form .support-pin legend {
    margin: 0;
    padding-inline: 4px;
    color: #234260;
    font-size: .875rem;
}
.ticket-password-form .support-pin-digits input {
    border-color: #9fbedf;
    background: #fff;
}
.ticket-password-form .support-pin-digits input:focus {
    outline: 2px solid #0869c9;
    outline-offset: -1px;
}
.ticket-password-success {
    margin: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #08734c;
    background: #effbf5;
}
.support-auth-message {
    color: #4b6078;
}
.support-auth-message .petDojo {
    position: relative;
    inset: auto;
    z-index: auto;
    height: 150px;
    margin: 12px auto 0;
}
@media (max-width: 480px) {
    .support-auth-message {
        padding-top: 36px;
    }
    .support-auth-message .petDojo {
        height: 126px;
    }
    .support-auth-message .petImpact {
        top: 50px;
    }
}
.support-verification-status {
    margin: 0 0 12px;
    padding: 9px 13px;
    border-radius: 10px;
    color: #063a73;
    background: #e5f3ff;
    font-size: .875rem;
    font-weight: 700;
}
.support-verification {
    padding: 18px;
    text-align: center;
}
#support-verification-dots {
    display: inline-block;
    width: 1.1em;
    text-align: left;
}
#support-login-video {
    display: block;
    width: 100%;
    max-height: 65vh;
    border-radius: 12px;
    background: #081b2f;
}
