.ltscc-launcher-wrap[hidden],
.ltscc-panel[hidden],
.ltscc-backdrop[hidden],
.ltscc-invite[hidden],
.ltscc-report-modal[hidden],
.ltscc-profile-modal[hidden],
.ltscc-notification-prompt[hidden],
.ltscc-notification-modal[hidden],
.ltscc-notification-button[hidden],
.ltscc-unread-summary[hidden],
.ltscc-roster-popover[hidden],
.ltscc-online-scrim[hidden],
.ltscc-online-toggle[hidden],
.ltscc-unread-badge[hidden],
.ltscc-profile-status[hidden] { display: none !important; }

#ltscc-root,
#ltscc-root * { box-sizing: border-box; }

.ltscc-launcher-wrap {
    position: fixed;
    left: var(--ltscc-left, 50px);
    bottom: var(--ltscc-bottom, 50px);
    z-index: 999960;
    width: var(--ltscc-size, 112px);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ltscc-launcher {
    position: relative;
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: var(--ltscc-size, 112px);
    height: var(--ltscc-size, 112px);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 7px 12px rgba(0,0,0,.24));
    transition: transform .16s ease, filter .16s ease;
}
.ltscc-launcher:hover { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 9px 15px rgba(0,0,0,.28)); }
.ltscc-launcher:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--ltscc-primary, #0f66b3); }
.ltscc-launcher img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 50%; }
.ltscc-launcher-wrap.is-joined .ltscc-launcher::after {
    content: "";
    position: absolute;
    right: 7%;
    bottom: 8%;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 2px 6px rgba(0,0,0,.24);
}
.ltscc-unread-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 9px rgba(0,0,0,.3);
}

.ltscc-count-label {
    appearance: none;
    margin-top: 4px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #16263a;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    font-family: inherit;
    cursor: pointer;
}
.ltscc-count-label:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: 2px; }

.ltscc-roster-popover {
    position: absolute;
    left: calc(100% + 12px);
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(310px, calc(100vw - 28px));
    max-height: min(360px, calc(100vh - 170px));
    max-height: min(360px, calc(100dvh - 170px));
    overflow: hidden;
    border: 1px solid rgba(20,45,69,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.99);
    color: #172b43;
    box-shadow: 0 18px 48px rgba(0,0,0,.3);
    text-align: left;
}
.ltscc-roster-popover::after {
    content: "";
    position: absolute;
    left: -8px;
    bottom: 17px;
    width: 16px;
    height: 16px;
    border-left: 1px solid rgba(20,45,69,.14);
    border-bottom: 1px solid rgba(20,45,69,.14);
    background: #fff;
    transform: rotate(45deg);
}
.ltscc-roster-popover-header,
.ltscc-online-panel-header {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    padding: 12px 13px;
    border-bottom: 1px solid #dde6ee;
    background: #f5f9fc;
}
.ltscc-roster-popover-header strong,
.ltscc-online-panel-header strong { min-width: 0; color: #203851; font-size: 13px; font-weight: 800; }
.ltscc-roster-popover-count,
.ltscc-online-panel-count {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: #e1ebf4;
    color: #29455f;
    font-size: 11px;
    font-weight: 850;
}
.ltscc-online-pulse {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border: 2px solid #e7f7eb;
    border-radius: 50%;
    background: #27a844;
    box-shadow: 0 0 0 1px rgba(21,116,46,.2);
}
.ltscc-roster-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 7px;
}
.ltscc-roster-list:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: -3px; }
.ltscc-online-user {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 11px;
}
.ltscc-online-user:hover { background: #eef5fa; }
.ltscc-online-avatar-wrap { position: relative; display: block; width: 36px; height: 36px; }
#ltscc-root .ltscc-online-avatar,
#ltscc-root img.ltscc-online-avatar {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 6px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #e2eaf2 !important;
    color: #60758a !important;
    object-fit: cover !important;
    clip-path: circle(50% at 50% 50%);
}
#ltscc-root img.ltscc-online-avatar { padding: 0 !important; }
.ltscc-online-avatar svg { width: 100%; height: 100%; fill: currentColor; }
.ltscc-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ltscc-online-user-copy { display: grid; min-width: 0; gap: 1px; }
.ltscc-online-user-copy strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #253b51;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ltscc-online-user-copy small { color: #78899a; font-size: 10px; line-height: 1.2; }
.ltscc-roster-empty { margin: 0; padding: 22px 12px; color: #6b7d8f; font-size: 12px; line-height: 1.45; text-align: center; }

.ltscc-invite {
    position: absolute;
    left: 0;
    bottom: calc(100% + 18px);
    width: min(288px, calc(100vw - 28px));
    min-height: 0;
    padding: 12px 42px 12px 12px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
    color: #18283d;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
    isolation: isolate;
    text-align: left;
}
.ltscc-invite::after {
    content: "";
    position: absolute;
    left: 40px;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: #fff;
    transform: rotate(45deg);
    border-right: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Compatibility presentation for a stale pre-1.1 invitation renderer. The
   current renderer adds .ltscc-invite--consent and receives the full card
   below. This prevents a legacy two-button DOM from becoming a large blank
   white panel if an optimizer briefly mixes asset generations. */
#ltscc-root .ltscc-invite > .ltscc-invite-open {
    appearance: none;
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--ltscc-primary, #0f66b3);
    border-radius: 10px;
    background: var(--ltscc-primary, #0f66b3);
    color: #fff;
    box-shadow: 0 5px 14px rgba(15,102,179,.24);
    font: 750 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}

.ltscc-invite--consent {
    width: min(360px, calc(100vw - 28px));
    min-height: 160px;
    padding: 18px 18px 16px;
    border-radius: 20px;
}
.ltscc-invite-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0 0 10px;
    border-radius: 12px;
    background: #e8f1f9;
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 12%, white);
    color: var(--ltscc-primary, #0f66b3);
    font-size: 20px;
    line-height: 1;
}
.ltscc-invite-copy { display: grid; gap: 5px; min-width: 0; padding-right: 22px; }
#ltscc-root .ltscc-invite-copy strong {
    display: block;
    margin: 0;
    padding: 0;
    color: #172b43;
    font: 750 18px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}
#ltscc-root .ltscc-invite-copy span {
    display: block;
    margin: 0;
    padding: 0;
    color: #53677c;
    font: 400 13px/1.48 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}
.ltscc-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
#ltscc-root .ltscc-invite-actions button {
    appearance: none;
    min-height: 38px;
    margin: 0;
    border-radius: 10px;
    padding: 8px 13px;
    font: 750 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}
#ltscc-root .ltscc-invite-actions .ltscc-invite-open {
    border: 1px solid var(--ltscc-primary, #0f66b3);
    background: var(--ltscc-primary, #0f66b3);
    color: #fff;
    box-shadow: 0 5px 14px rgba(15,102,179,.24);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--ltscc-primary, #0f66b3) 24%, transparent);
}
#ltscc-root .ltscc-invite-actions .ltscc-invite-later { border: 1px solid #c9d4df; background: #fff; color: #41566c; }
#ltscc-root .ltscc-invite-actions button:hover { transform: translateY(-1px); }
#ltscc-root .ltscc-invite-close {
    appearance: none;
    position: absolute;
    top: 7px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf1f5;
    color: #30445b;
    font: 400 20px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
}

.ltscc-preview-stack {
    position: absolute;
    left: 0;
    bottom: calc(100% + 58px);
    display: grid;
    gap: 9px;
    width: min(340px, calc(100vw - 28px));
    pointer-events: none;
}
.ltscc-message-preview {
    appearance: none;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    color: #1a2c42;
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    animation: ltscc-preview-in .2s ease-out;
}
.ltscc-message-preview:hover { transform: translateY(-1px); box-shadow: 0 15px 36px rgba(0,0,0,.28); }
.ltscc-message-preview > img,
.ltscc-message-preview > .ltscc-preview-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ltscc-message-preview > span { display: grid; min-width: 0; gap: 2px; }
.ltscc-message-preview strong { overflow: hidden; color: var(--ltscc-primary, #0f66b3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ltscc-message-preview span span { overflow: hidden; color: #4d6074; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
@keyframes ltscc-preview-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.ltscc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999970;
    background: rgba(7,15,27,.55);
    backdrop-filter: blur(2px);
}

.ltscc-panel {
    position: fixed;
    z-index: 999980;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    width: var(--ltscc-panel-width, 430px);
    height: var(--ltscc-panel-height, 620px);
    min-width: 320px;
    min-height: 360px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    color: #17263a;
    box-shadow: 0 20px 55px rgba(0,0,0,.34);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.ltscc-panel.mode-floating { resize: none; }
.ltscc-panel.mode-side-panel { left: 0; top: 0; bottom: 0; width: min(460px, 95vw); height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh; border-radius: 0 16px 16px 0; resize: none; }
.ltscc-panel.mode-modal { left: 50%; top: 50%; width: min(760px, calc(100vw - 32px)); height: min(780px, calc(100vh - 32px)); transform: translate(-50%, -50%); resize: none; }
.ltscc-panel.mode-fullscreen { inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border-radius: 0; resize: none; }
.ltscc-panel > * { min-width: 0; }

.ltscc-resize-handle {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 8;
    display: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px 0 12px 0;
    background: transparent;
    color: #52677d;
    cursor: nwse-resize;
    touch-action: none;
}
.ltscc-resize-handle::before,
.ltscc-resize-handle::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}
.ltscc-resize-handle::before { width: 13px; height: 13px; }
.ltscc-resize-handle::after { width: 7px; height: 7px; }
.ltscc-panel.mode-floating:not(.is-minimized) .ltscc-resize-handle { display: block; }
.ltscc-resize-handle:hover { background: rgba(15,102,179,.1); color: var(--ltscc-primary, #0f66b3); }
.ltscc-resize-handle:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: -2px; }
.ltscc-panel.is-dragging,
.ltscc-panel.is-resizing { user-select: none; }

.ltscc-header {
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--ltscc-primary, #0f66b3), #084b86);
    user-select: none;
    touch-action: none;
    cursor: default;
}
.mode-floating .ltscc-header { cursor: move; }
.ltscc-heading { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.ltscc-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ltscc-connection { font-size: 11px; opacity: .85; }
.ltscc-connection[data-state="reconnecting"] { color: #ffe2a8; }
.ltscc-header-actions { display: flex; flex: 0 0 auto; min-width: 0; gap: 6px; }
.ltscc-header-actions button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.ltscc-header-actions button:hover { background: rgba(255,255,255,.28); }
.ltscc-header-actions .ltscc-leave { width: auto; min-width: 48px; padding: 0 9px; font-size: 11px; font-weight: 750; }
.ltscc-header-actions .ltscc-profile-button { overflow: hidden; padding: 2px; }
.ltscc-header-actions .ltscc-profile-button img { display: block; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }

.ltscc-conduct {
    grid-row: 2;
    padding: 9px 14px;
    background: #f1f7fd;
    border-bottom: 1px solid #d8e5f2;
    color: #29435d;
    font-size: 12px;
    line-height: 1.38;
}
.ltscc-notice {
    grid-row: 3;
    padding: 9px 14px;
    border-bottom: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
}
.ltscc-notice[data-type="error"] { background: #fff0f0; color: #8a1f1f; border-color: #f0c4c4; }
.ltscc-notice[data-type="warning"] { background: #fff8e6; color: #74520a; border-color: #ecd99b; }
.ltscc-notice[data-type="success"] { background: #edf9ef; color: #215d2d; border-color: #bfe1c5; }

.ltscc-chat-body {
    position: relative;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
}
.ltscc-conversation {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.ltscc-online-toggle {
    appearance: none;
    grid-row: 1;
    display: none;
    align-items: center;
    gap: 8px;
    width: calc(100% - 20px);
    min-height: 38px;
    margin: 9px 10px 0;
    padding: 7px 10px;
    border: 1px solid #d2dee9;
    border-radius: 10px;
    background: #fff;
    color: #294157;
    font: 750 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}
.ltscc-online-toggle:hover { border-color: #b8c9d8; background: #f7fafc; }
.ltscc-online-toggle:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: 1px; }
.ltscc-online-toggle-count {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: #e6eef5;
    font-size: 10px;
    font-weight: 850;
}
.ltscc-online-toggle-chevron { font-size: 18px; line-height: 1; transform: rotate(0); transition: transform .16s ease; }
.ltscc-panel.is-roster-open .ltscc-online-toggle-chevron { transform: rotate(180deg); }
.ltscc-online-panel {
    grid-column: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-left: 1px solid #dce4ec;
    background: #fff;
}
.ltscc-online-panel-header { min-height: 48px; padding: 10px 11px; }
.ltscc-online-panel-header > div { display: flex; align-items: center; min-width: 0; gap: 7px; }
.ltscc-online-panel-close {
    appearance: none;
    display: none;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #e8eef4;
    color: #334b61;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.ltscc-online-list { padding: 6px; }
.ltscc-online-scrim {
    appearance: none;
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(10,24,39,.42);
    cursor: pointer;
}
.ltscc-panel.is-roster-compact .ltscc-chat-body { grid-template-columns: minmax(0, 1fr); }
.ltscc-panel.is-roster-compact .ltscc-online-toggle { display: flex; }
.ltscc-panel.is-roster-compact .ltscc-online-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    grid-column: auto;
    width: min(300px, 90%);
    border-left: 1px solid #cfdbe6;
    box-shadow: -14px 0 34px rgba(0,0,0,.2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .18s ease, visibility 0s linear .18s;
}
.ltscc-panel.is-roster-compact.is-roster-open .ltscc-online-panel {
    transform: translateX(0);
    visibility: visible;
    transition: transform .18s ease;
}
.ltscc-panel.is-roster-compact .ltscc-online-panel-close { display: grid; place-items: center; }

.ltscc-messages {
    grid-row: 2;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
    scroll-behavior: smooth;
}
.ltscc-empty { margin: 30px 10px; text-align: center; color: #6b7b8c; font-size: 14px; }
#ltscc-root .ltscc-messages > article.ltscc-message {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    color: inherit !important;
}
#ltscc-root .ltscc-messages > article.ltscc-message::before,
#ltscc-root .ltscc-messages > article.ltscc-message::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}
.ltscc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #dfe8f1;
    flex: 0 0 auto;
}
#ltscc-root img.ltscc-avatar {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    background: transparent !important;
    object-fit: cover !important;
    clip-path: circle(50% at 50% 50%);
}
.ltscc-avatar-generic { display: grid; place-items: center; padding: 7px; color: #5c7085; }
.ltscc-avatar-generic svg { width: 100%; height: 100%; fill: currentColor; }
.ltscc-message-body {
    position: relative;
    min-width: 0;
    padding: 9px 11px 8px;
    border: 1px solid #dce4ec;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ltscc-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ltscc-message-meta strong { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #1d344e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ltscc-message-meta time { flex: 0 0 auto; color: #7b8997; font-size: 10px; white-space: nowrap; }
.ltscc-message-body p { margin: 0; color: #25384c; font-size: 14px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.ltscc-flag {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 0 0;
    color: #6e7f90;
    font-size: 10px;
    text-decoration: underline;
    cursor: pointer;
}
.ltscc-flag:hover { color: #9a2d2d; }

#ltscc-root .ltscc-messages > .ltscc-system-message {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 5px 0 13px !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: 0 !important;
    background: #eaf2f9 !important;
    background-color: #eaf2f9 !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    color: #41576d !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    isolation: isolate;
}
#ltscc-root .ltscc-messages > .ltscc-system-message::before,
#ltscc-root .ltscc-messages > .ltscc-system-message::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}
#ltscc-root .ltscc-system-message > span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}
#ltscc-root .ltscc-system-message time {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #728396 !important;
    box-shadow: none !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

.ltscc-new-messages {
    position: absolute;
    left: 50%;
    bottom: 94px;
    transform: translateX(-50%);
    z-index: 2;
    border: 0;
    border-radius: 999px;
    padding: 7px 13px;
    background: var(--ltscc-primary, #0f66b3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.22);
    cursor: pointer;
}

.ltscc-composer {
    grid-row: 3;
    padding: 10px;
    border-top: 1px solid #dce4ec;
    background: #fff;
}
.ltscc-composer textarea {
    width: 100%;
    min-height: 58px;
    max-height: 150px;
    resize: vertical;
    border: 1px solid #bfcbd7;
    border-radius: 10px;
    padding: 9px 10px;
    color: #17263a;
    font: inherit;
    font-size: 14px;
}
.ltscc-composer textarea:focus { outline: 2px solid color-mix(in srgb, var(--ltscc-primary, #0f66b3) 45%, white); border-color: var(--ltscc-primary, #0f66b3); }
.ltscc-compose-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 7px; }
.ltscc-char-count { color: #758595; font-size: 11px; }
.ltscc-send {
    min-width: 78px;
    border: 0;
    border-radius: 9px;
    padding: 8px 14px;
    background: var(--ltscc-primary, #0f66b3);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.ltscc-send:disabled, .ltscc-composer textarea:disabled { opacity: .55; cursor: not-allowed; }

.ltscc-panel.is-minimized {
    width: min(380px, calc(100vw - 24px)) !important;
    height: 58px !important;
    min-height: 58px !important;
    resize: none !important;
}
.ltscc-panel.is-minimized > :not(.ltscc-header) { display: none !important; }

.ltscc-report-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(7,15,27,.62);
}
.ltscc-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(7,15,27,.65);
    backdrop-filter: blur(3px);
}
.ltscc-profile-card {
    position: relative;
    width: min(480px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 24px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 20px;
    background: #fff;
    color: #17263a;
    box-shadow: 0 24px 70px rgba(0,0,0,.42);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.ltscc-profile-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf2f6; color: #334a61; font-size: 22px; cursor: pointer; }
.ltscc-profile-heading { padding-right: 38px; }
.ltscc-profile-heading h3 { margin: 0 0 7px; font-size: 21px; }
.ltscc-profile-heading p { margin: 0; color: #627487; font-size: 13px; line-height: 1.5; }
.ltscc-profile-preview-wrap { display: grid; place-items: center; margin: 22px 0; }
.ltscc-profile-preview { display: block; width: 144px; height: 144px; border: 5px solid #fff; border-radius: 50%; background: #e7eef5; object-fit: cover; box-shadow: 0 0 0 1px #d6e0e9, 0 14px 34px rgba(0,0,0,.18); }
.ltscc-profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ltscc-profile-actions button { min-height: 40px; border: 1px solid #bac8d5; border-radius: 10px; padding: 8px 13px; background: #fff; color: #294157; font-weight: 750; cursor: pointer; }
.ltscc-profile-actions .ltscc-profile-save { border-color: var(--ltscc-primary, #0f66b3); background: var(--ltscc-primary, #0f66b3); color: #fff; }
.ltscc-profile-actions .ltscc-profile-remove { border-color: #dfb8b5; color: #9c2f28; }
.ltscc-profile-actions button:disabled { opacity: .5; cursor: not-allowed; }
.ltscc-profile-status { margin-top: 15px; padding: 9px 11px; border-radius: 9px; background: #eef4fa; color: #355573; font-size: 12px; font-weight: 650; text-align: center; }
.ltscc-profile-status[data-type="success"] { background: #edf9ef; color: #215d2d; }
.ltscc-profile-status[data-type="error"] { background: #fff0f0; color: #8a1f1f; }
.ltscc-report-card {
    width: min(440px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 20px;
    overflow-y: auto;
    border-radius: 14px;
    background: #fff;
    color: #17263a;
    box-shadow: 0 20px 50px rgba(0,0,0,.38);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.ltscc-report-card h3 { margin: 0 0 7px; }
.ltscc-report-card p { margin: 0 0 14px; color: #5d6e80; }
.ltscc-report-card label { display: block; margin: 12px 0; font-weight: 650; font-size: 13px; }
.ltscc-report-card select, .ltscc-report-card textarea { width: 100%; margin-top: 5px; padding: 8px; border: 1px solid #bfcbd7; border-radius: 8px; font: inherit; }
.ltscc-report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.ltscc-report-actions button { border: 1px solid #aebdcb; border-radius: 8px; padding: 8px 12px; background: #fff; cursor: pointer; }
.ltscc-report-submit { background: var(--ltscc-primary, #0f66b3) !important; border-color: var(--ltscc-primary, #0f66b3) !important; color: #fff; }

.screen-reader-text {
    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;
}

@media (max-width: 640px) {
    .ltscc-launcher-wrap { width: var(--ltscc-mobile-size, 82px); left: max(14px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); }
    .ltscc-launcher { width: var(--ltscc-mobile-size, 82px); height: var(--ltscc-mobile-size, 82px); }
    .ltscc-count-label { font-size: 12px; padding: 3px 8px; }
    .ltscc-roster-popover { left: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 28px)); max-height: min(330px, calc(100dvh - 135px)); }
    .ltscc-roster-popover::after { content: none; }
    .ltscc-invite { width: min(340px, calc(100vw - 28px)); left: 0; }
    .ltscc-preview-stack { width: min(320px, calc(100vw - 28px)); }
    .ltscc-panel { min-width: 0; min-height: 0; }
    .ltscc-panel.mode-modal { width: calc(100vw - 16px); height: calc(100vh - 16px); }
    .ltscc-header { padding-top: max(10px, env(safe-area-inset-top)); }
    .ltscc-composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .ltscc-header-actions .ltscc-leave { min-width: 44px; padding: 0 7px; }
    .ltscc-profile-card { padding: 21px 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .ltscc-launcher, .ltscc-messages, .ltscc-message-preview, .ltscc-online-panel { transition: none; animation: none; scroll-behavior: auto; }
}

@media (max-height: 520px) {
    .ltscc-invite {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        left: max(14px, env(safe-area-inset-left));
        bottom: auto;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }
    .ltscc-invite::after { content: none; }
    .ltscc-invite:not([hidden]) ~ .ltscc-launcher,
    .ltscc-invite:not([hidden]) ~ .ltscc-count-label { visibility: hidden; }
    .ltscc-profile-card { padding: 18px 16px; }
    .ltscc-profile-preview-wrap { margin: 12px 0; }
    .ltscc-profile-preview { width: 96px; height: 96px; }
}

@media (max-height: 420px) {
    .ltscc-panel.mode-floating { min-height: 0; }
}

/* 1.1.7: registered-user avatar action and guest sign-in safeguard. */
.ltscc-auth-modal[hidden],
.ltscc-avatar-tooltip[hidden] { display: none !important; }

#ltscc-root .ltscc-header-actions .ltscc-profile-button {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 2px;
}
#ltscc-root .ltscc-header-actions .ltscc-profile-button img,
#ltscc-root .ltscc-profile-avatar-generic {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
#ltscc-root .ltscc-header-actions .ltscc-profile-button img {
    background: rgba(255,255,255,.15);
    object-fit: cover;
}
#ltscc-root .ltscc-profile-avatar-generic {
    background: rgba(255,255,255,.18);
    color: #fff;
}
#ltscc-root .ltscc-profile-avatar-generic svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
#ltscc-root .ltscc-profile-button:hover,
#ltscc-root .ltscc-profile-button:focus-visible {
    background: rgba(255,255,255,.3);
}
#ltscc-root .ltscc-profile-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#ltscc-root .ltscc-avatar-tooltip {
    position: fixed;
    z-index: 1000004;
    width: max-content;
    max-width: min(300px, calc(100vw - 16px));
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 9px;
    background: #14263a;
    color: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.28);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
}
#ltscc-root .ltscc-avatar-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgba(255,255,255,.15);
    border-top: 1px solid rgba(255,255,255,.15);
    background: #14263a;
}

#ltscc-root .ltscc-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000003;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(7,15,27,.66);
    backdrop-filter: blur(3px);
}
#ltscc-root .ltscc-auth-card {
    position: relative;
    width: min(430px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 27px 24px 23px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 20px;
    background: #fff;
    color: #17263a;
    box-shadow: 0 24px 70px rgba(0,0,0,.42);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}
#ltscc-root .ltscc-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f6;
    color: #334a61;
    font: 400 22px/1 Arial, sans-serif;
    cursor: pointer;
}
#ltscc-root .ltscc-auth-close:hover,
#ltscc-root .ltscc-auth-close:focus-visible { background: #dfe8ef; }
#ltscc-root .ltscc-auth-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 2px auto 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 12%, white);
    color: var(--ltscc-primary, #0f66b3);
}
#ltscc-root .ltscc-auth-icon svg { width: 48px; height: 48px; fill: currentColor; }
#ltscc-root .ltscc-auth-card h3 { margin: 0 38px 8px; color: #17263a; font-size: 21px; line-height: 1.25; }
#ltscc-root .ltscc-auth-card p { margin: 0 auto 21px; max-width: 330px; color: #5d7184; font-size: 14px; line-height: 1.5; }
#ltscc-root .ltscc-auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
#ltscc-root .ltscc-auth-actions a,
#ltscc-root .ltscc-auth-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    margin: 0;
    padding: 9px 15px;
    border: 1px solid #b9c7d3;
    border-radius: 10px;
    background: #fff;
    color: #294157;
    box-shadow: none;
    font: 750 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
#ltscc-root .ltscc-auth-actions .ltscc-auth-primary {
    border-color: var(--ltscc-primary, #0f66b3);
    background: var(--ltscc-primary, #0f66b3);
    color: #fff;
}
#ltscc-root .ltscc-auth-actions a:hover,
#ltscc-root .ltscc-auth-actions a:focus-visible,
#ltscc-root .ltscc-auth-actions button:hover,
#ltscc-root .ltscc-auth-actions button:focus-visible {
    filter: brightness(.96);
    outline: 2px solid color-mix(in srgb, var(--ltscc-primary, #0f66b3) 38%, white);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    #ltscc-root .ltscc-auth-modal { padding: 10px; }
    #ltscc-root .ltscc-auth-card { max-height: calc(100dvh - 20px); padding: 24px 16px 18px; border-radius: 16px; }
    #ltscc-root .ltscc-auth-actions { flex-direction: column; }
    #ltscc-root .ltscc-auth-actions a,
    #ltscc-root .ltscc-auth-actions button { width: 100%; }
}

@media (max-height: 430px) and (orientation: landscape) {
    #ltscc-root .ltscc-auth-modal { align-items: start; padding: 8px; }
    #ltscc-root .ltscc-auth-card { width: min(560px, 100%); max-height: calc(100dvh - 16px); padding: 16px 56px 14px 18px; text-align: left; }
    #ltscc-root .ltscc-auth-icon { float: left; width: 54px; height: 54px; margin: 0 14px 8px 0; }
    #ltscc-root .ltscc-auth-icon svg { width: 34px; height: 34px; }
    #ltscc-root .ltscc-auth-card h3 { margin: 0 0 4px; font-size: 18px; }
    #ltscc-root .ltscc-auth-card p { max-width: none; margin: 0 0 10px; font-size: 12px; }
    #ltscc-root .ltscc-auth-actions { justify-content: flex-start; }
    #ltscc-root .ltscc-auth-actions a,
    #ltscc-root .ltscc-auth-actions button { min-height: 36px; padding: 7px 11px; }
}

/* 1.1.8: desktop browser notifications and cross-tab unread state. */
html.ltscc-modal-open { overflow: hidden !important; }

#ltscc-root .ltscc-unread-summary {
    appearance: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 13px);
    z-index: 5;
    max-width: min(255px, calc(100vw - 28px));
    min-height: 34px;
    margin: 0;
    padding: 7px 12px;
    overflow: hidden;
    border: 1px solid rgba(15,102,179,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.99);
    color: #173a5d;
    box-shadow: 0 9px 26px rgba(0,0,0,.22);
    font: 800 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
#ltscc-root .ltscc-unread-summary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
#ltscc-root .ltscc-unread-summary:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--ltscc-primary, #0f66b3), 0 12px 30px rgba(0,0,0,.25); }

#ltscc-root .ltscc-header-actions .ltscc-notification-button {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 6px;
}
#ltscc-root .ltscc-notification-button svg { display: block; width: 21px; height: 21px; fill: currentColor; }
#ltscc-root .ltscc-notification-status-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 8px;
    height: 8px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #aebdca;
}
#ltscc-root .ltscc-notification-button.is-enabled .ltscc-notification-status-dot { background: #32c451; }
#ltscc-root .ltscc-notification-button.is-muted .ltscc-notification-status-dot { background: #f0b429; }
#ltscc-root .ltscc-notification-button.is-blocked .ltscc-notification-status-dot { background: #d64545; }
#ltscc-root .ltscc-notification-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#ltscc-root .ltscc-notification-prompt,
#ltscc-root .ltscc-notification-modal {
    position: fixed;
    inset: 0;
    z-index: 1000005;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(7,15,27,.67);
    backdrop-filter: blur(3px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#ltscc-root .ltscc-notification-prompt-card,
#ltscc-root .ltscc-notification-card {
    position: relative;
    width: min(455px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 26px 24px 23px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 21px;
    background: #fff;
    color: #172b43;
    box-shadow: 0 26px 76px rgba(0,0,0,.44);
}
#ltscc-root .ltscc-notification-prompt-card { text-align: center; }
#ltscc-root .ltscc-notification-prompt-close,
#ltscc-root .ltscc-notification-close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f6;
    color: #334a61;
    font: 400 22px/1 Arial, sans-serif;
    cursor: pointer;
}
#ltscc-root .ltscc-notification-prompt-close:hover,
#ltscc-root .ltscc-notification-close:hover,
#ltscc-root .ltscc-notification-prompt-close:focus-visible,
#ltscc-root .ltscc-notification-close:focus-visible { background: #dfe8ef; }
#ltscc-root .ltscc-notification-prompt-icon,
#ltscc-root .ltscc-notification-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 12%, white);
    color: var(--ltscc-primary, #0f66b3);
}
#ltscc-root .ltscc-notification-prompt-icon { margin: 2px auto 15px; }
#ltscc-root .ltscc-notification-prompt-icon svg,
#ltscc-root .ltscc-notification-heading-icon svg { width: 32px; height: 32px; fill: currentColor; }
#ltscc-root .ltscc-notification-prompt-card h3 { margin: 0 38px 8px; color: #172b43; font-size: 22px; line-height: 1.25; }
#ltscc-root .ltscc-notification-prompt-card > p { margin: 0 auto 8px; max-width: 360px; color: #4d647a; font-size: 14px; line-height: 1.55; }
#ltscc-root .ltscc-notification-prompt-card > small { display: block; margin: 0 auto 20px; max-width: 340px; color: #76889a; font-size: 12px; line-height: 1.45; }
#ltscc-root .ltscc-notification-prompt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
#ltscc-root .ltscc-notification-prompt-actions button,
#ltscc-root .ltscc-notification-toggle {
    appearance: none;
    min-height: 42px;
    margin: 0;
    padding: 9px 15px;
    border: 1px solid #b9c7d3;
    border-radius: 11px;
    background: #fff;
    color: #2f465d;
    font: 800 13px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
}
#ltscc-root .ltscc-notification-prompt-actions .ltscc-notification-enable,
#ltscc-root .ltscc-notification-toggle {
    border-color: var(--ltscc-primary, #0f66b3);
    background: var(--ltscc-primary, #0f66b3);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--ltscc-primary, #0f66b3) 30%, transparent);
}
#ltscc-root .ltscc-notification-prompt-actions button:hover,
#ltscc-root .ltscc-notification-toggle:hover { transform: translateY(-1px); }
#ltscc-root .ltscc-notification-prompt-actions button:focus-visible,
#ltscc-root .ltscc-notification-toggle:focus-visible,
#ltscc-root .ltscc-notification-controls input:focus-visible,
#ltscc-root .ltscc-notification-controls select:focus-visible { outline: 3px solid color-mix(in srgb, var(--ltscc-primary, #0f66b3) 34%, white); outline-offset: 2px; }

#ltscc-root .ltscc-notification-heading { display: flex; align-items: center; min-width: 0; gap: 14px; padding-right: 38px; }
#ltscc-root .ltscc-notification-heading > div:last-child { min-width: 0; }
#ltscc-root .ltscc-notification-heading h3 { margin: 0 0 5px; color: #172b43; font-size: 21px; line-height: 1.25; }
#ltscc-root .ltscc-notification-status { margin: 0; color: #5c7185; font-size: 13px; line-height: 1.45; }
#ltscc-root .ltscc-notification-controls { display: grid; gap: 15px; margin-top: 22px; }
#ltscc-root .ltscc-notification-toggle { width: 100%; }
#ltscc-root .ltscc-notification-toggle[aria-pressed="true"] { border-color: #b9c7d3; background: #fff; color: #2f465d; box-shadow: none; }
#ltscc-root .ltscc-notification-toggle:disabled { opacity: .55; cursor: not-allowed; transform: none; }
#ltscc-root .ltscc-notification-preview-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 0;
    padding: 13px;
    border: 1px solid #d8e2eb;
    border-radius: 12px;
    background: #f8fbfd;
    cursor: pointer;
}
#ltscc-root .ltscc-notification-preview-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ltscc-primary, #0f66b3); }
#ltscc-root .ltscc-notification-preview-row span { display: grid; min-width: 0; gap: 3px; }
#ltscc-root .ltscc-notification-preview-row strong { color: #263e55; font-size: 13px; line-height: 1.35; }
#ltscc-root .ltscc-notification-preview-row small { color: #697d90; font-size: 11px; line-height: 1.45; }
#ltscc-root .ltscc-notification-mute-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 12px; margin: 0; color: #2d465d; font-size: 13px; font-weight: 800; }
#ltscc-root .ltscc-notification-mute-row select { width: 100%; min-height: 40px; padding: 7px 34px 7px 10px; border: 1px solid #b8c7d4; border-radius: 9px; background: #fff; color: #253d54; font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3; }
#ltscc-root .ltscc-notification-permission { margin: 0; padding: 10px 12px; border-radius: 10px; background: #eef4f8; color: #526a80; font-size: 12px; line-height: 1.45; }

@media (max-width: 640px) {
    #ltscc-root .ltscc-unread-summary { max-width: min(230px, calc(100vw - 28px)); }
    #ltscc-root .ltscc-notification-prompt,
    #ltscc-root .ltscc-notification-modal { padding: 12px; }
    #ltscc-root .ltscc-notification-prompt-card,
    #ltscc-root .ltscc-notification-card { max-height: calc(100dvh - 24px); padding: 22px 17px 18px; border-radius: 18px; }
    #ltscc-root .ltscc-notification-heading { gap: 10px; }
    #ltscc-root .ltscc-notification-heading-icon { width: 50px; height: 50px; border-radius: 14px; }
    #ltscc-root .ltscc-notification-mute-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-height: 520px) {
    #ltscc-root .ltscc-notification-prompt,
    #ltscc-root .ltscc-notification-modal { place-items: start center; }
    #ltscc-root .ltscc-notification-prompt-card,
    #ltscc-root .ltscc-notification-card { max-height: calc(100dvh - 24px); padding-top: 18px; }
    #ltscc-root .ltscc-notification-prompt-icon { width: 45px; height: 45px; margin-bottom: 8px; }
    #ltscc-root .ltscc-notification-prompt-card h3 { font-size: 18px; }
    #ltscc-root .ltscc-notification-prompt-card > p { line-height: 1.4; }
    #ltscc-root .ltscc-notification-controls { gap: 10px; margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    #ltscc-root .ltscc-unread-summary,
    #ltscc-root .ltscc-notification-prompt-actions button,
    #ltscc-root .ltscc-notification-toggle { transition: none; }
}


/* 1.2.0: participant-only one-to-one private conversations. */
.ltscc-view-tabs[hidden],
.ltscc-community-view[hidden],
.ltscc-private-view[hidden],
.ltscc-private-tab-badge[hidden],
.ltscc-private-sidebar-badge[hidden],
.ltscc-private-select-state[hidden],
.ltscc-private-active[hidden] { display: none !important; }

#ltscc-root .ltscc-panel.has-private {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
}
#ltscc-root .ltscc-panel.has-private .ltscc-view-tabs { grid-row: 3; }
#ltscc-root .ltscc-panel.has-private .ltscc-notice { grid-row: 4; }
#ltscc-root .ltscc-panel.has-private .ltscc-community-view,
#ltscc-root .ltscc-panel.has-private .ltscc-private-view { grid-row: 5; }

#ltscc-root .ltscc-view-tabs {
    display: flex;
    align-items: stretch;
    min-width: 0;
    padding: 0 10px;
    border-bottom: 1px solid #d9e3ec;
    background: #fff;
}
#ltscc-root .ltscc-view-tab {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 15px 7px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5b6e80;
    font: 800 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
}
#ltscc-root .ltscc-view-tab:hover { color: #253e56; background: #f6f9fb; }
#ltscc-root .ltscc-view-tab.is-active {
    border-bottom-color: var(--ltscc-primary, #0f66b3);
    color: var(--ltscc-primary, #0f66b3);
}
#ltscc-root .ltscc-view-tab:focus-visible {
    z-index: 1;
    outline: 2px solid var(--ltscc-primary, #0f66b3);
    outline-offset: -3px;
}
#ltscc-root .ltscc-private-tab-badge,
#ltscc-root .ltscc-private-sidebar-badge,
#ltscc-root .ltscc-private-thread-unread {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
}

#ltscc-root .ltscc-online-user {
    grid-template-columns: 36px minmax(0, 1fr) auto;
}
#ltscc-root .ltscc-private-start {
    appearance: none;
    min-height: 29px;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--ltscc-primary, #0f66b3) 30%, #c5d1dc);
    border-radius: 8px;
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 7%, white);
    color: var(--ltscc-primary, #0f66b3);
    font: 800 10px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
}
#ltscc-root .ltscc-private-start:hover { background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 13%, white); }
#ltscc-root .ltscc-private-start:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: 2px; }
#ltscc-root .ltscc-private-start:disabled { opacity: .5; cursor: wait; }

#ltscc-root .ltscc-private-view {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f7f9fb;
}
#ltscc-root .ltscc-private-sidebar {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid #dce4ec;
    background: #fff;
}
#ltscc-root .ltscc-private-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 49px;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e7ed;
    background: #f5f8fb;
}
#ltscc-root .ltscc-private-sidebar-header strong {
    min-width: 0;
    overflow: hidden;
    color: #263f57;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#ltscc-root .ltscc-private-sidebar-badge { margin-left: auto; }
#ltscc-root .ltscc-private-thread-list {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 6px;
}
#ltscc-root .ltscc-private-thread-list:focus-visible {
    outline: 2px solid var(--ltscc-primary, #0f66b3);
    outline-offset: -3px;
}
#ltscc-root .ltscc-private-empty {
    margin: 0;
    padding: 24px 10px;
    color: #6c7e90;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
#ltscc-root .ltscc-private-thread-wrap { min-width: 0; }
#ltscc-root .ltscc-private-thread {
    appearance: none;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0 0 3px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #263f57;
    text-align: left;
    cursor: pointer;
}
#ltscc-root .ltscc-private-thread:hover { background: #edf4f9; }
#ltscc-root .ltscc-private-thread.is-active {
    border-color: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 24%, #d4dee7);
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 9%, white);
}
#ltscc-root .ltscc-private-thread.has-unread .ltscc-private-thread-copy strong { color: #152f48; font-weight: 900; }
#ltscc-root .ltscc-private-thread:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: -2px; }
#ltscc-root .ltscc-private-thread-avatar-wrap {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
}
#ltscc-root .ltscc-private-thread-avatar,
#ltscc-root img.ltscc-private-thread-avatar,
#ltscc-root .ltscc-private-header-avatar-image,
#ltscc-root img.ltscc-private-header-avatar-image,
#ltscc-root .ltscc-private-message-avatar,
#ltscc-root img.ltscc-private-message-avatar {
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 6px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #e2eaf2 !important;
    color: #60758a !important;
    object-fit: cover !important;
    clip-path: circle(50% at 50% 50%);
}
#ltscc-root .ltscc-private-thread-avatar,
#ltscc-root img.ltscc-private-thread-avatar { width: 38px !important; height: 38px !important; }
#ltscc-root .ltscc-private-header-avatar-image,
#ltscc-root img.ltscc-private-header-avatar-image { width: 36px !important; height: 36px !important; }
#ltscc-root .ltscc-private-message-avatar,
#ltscc-root img.ltscc-private-message-avatar { width: 34px !important; height: 34px !important; }
#ltscc-root img.ltscc-private-thread-avatar,
#ltscc-root img.ltscc-private-header-avatar-image,
#ltscc-root img.ltscc-private-message-avatar { padding: 0 !important; }
#ltscc-root .ltscc-private-thread-avatar svg,
#ltscc-root .ltscc-private-header-avatar-image svg,
#ltscc-root .ltscc-private-message-avatar svg { width: 100%; height: 100%; fill: currentColor; }
#ltscc-root .ltscc-private-thread-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #98a7b5;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
#ltscc-root .ltscc-private-thread-status.is-online { background: #28a745; }
#ltscc-root .ltscc-private-thread-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}
#ltscc-root .ltscc-private-thread-copy strong,
#ltscc-root .ltscc-private-thread-copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#ltscc-root .ltscc-private-thread-copy strong { color: #2a4259; font-size: 12px; line-height: 1.25; }
#ltscc-root .ltscc-private-thread-copy small { color: #728396; font-size: 10px; line-height: 1.3; }
#ltscc-root .ltscc-private-thread-meta {
    display: grid;
    justify-items: end;
    align-self: stretch;
    gap: 4px;
    min-width: 25px;
}
#ltscc-root .ltscc-private-thread-meta time { color: #82909d; font-size: 9px; line-height: 1.2; white-space: nowrap; }
#ltscc-root .ltscc-private-thread-unread { min-width: 18px; height: 18px; padding: 0 5px; }

#ltscc-root .ltscc-private-conversation {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
}
#ltscc-root .ltscc-private-select-state {
    align-self: center;
    justify-self: center;
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 280px;
    padding: 24px;
    color: #64778a;
    text-align: center;
}
#ltscc-root .ltscc-private-select-state p { margin: 0; font-size: 13px; line-height: 1.5; }
#ltscc-root .ltscc-private-select-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 10%, white);
    color: var(--ltscc-primary, #0f66b3);
}
#ltscc-root .ltscc-private-select-icon svg { width: 30px; height: 30px; fill: currentColor; }
#ltscc-root .ltscc-private-active {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
#ltscc-root .ltscc-private-conversation-header {
    display: grid;
    grid-template-columns: auto 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 49px;
    padding: 7px 12px;
    border-bottom: 1px solid #dfe7ee;
    background: #fff;
}
#ltscc-root .ltscc-private-back {
    appearance: none;
    display: none;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eaf0f5;
    color: #324c64;
    font: 500 26px/1 Arial, sans-serif;
    cursor: pointer;
}
#ltscc-root .ltscc-private-back:hover { background: #dfe8ef; }
#ltscc-root .ltscc-private-back:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: 2px; }
#ltscc-root .ltscc-private-header-avatar { display: block; width: 36px; height: 36px; }
#ltscc-root .ltscc-private-header-copy { display: grid; min-width: 0; gap: 1px; }
#ltscc-root .ltscc-private-header-copy strong {
    overflow: hidden;
    color: #253f57;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#ltscc-root .ltscc-private-header-copy small { color: #7a8896; font-size: 10px; }
#ltscc-root .ltscc-private-header-copy small.is-online { color: #24833a; font-weight: 750; }
#ltscc-root .ltscc-private-privacy {
    margin: 0;
    padding: 7px 12px;
    border-bottom: 1px solid #dfe8ef;
    background: #eef5fa;
    color: #516b82;
    font-size: 10px;
    line-height: 1.4;
}
#ltscc-root .ltscc-private-messages {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 13px;
    background: #f8fafc;
    scroll-behavior: smooth;
}
#ltscc-root .ltscc-private-messages:focus-visible { outline: 2px solid var(--ltscc-primary, #0f66b3); outline-offset: -3px; }
#ltscc-root .ltscc-private-conversation-empty {
    max-width: 310px;
    margin: 28px auto;
    color: #6b7d8f;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
#ltscc-root .ltscc-private-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    min-width: 0;
    margin: 0 0 12px;
}
#ltscc-root .ltscc-private-message.is-own { grid-template-columns: minmax(0, 1fr) 34px; }
#ltscc-root .ltscc-private-message.is-own > .ltscc-private-message-avatar { grid-column: 2; grid-row: 1; }
#ltscc-root .ltscc-private-message.is-own > .ltscc-private-message-body { grid-column: 1; grid-row: 1; justify-self: end; }
#ltscc-root .ltscc-private-message-body {
    position: relative;
    width: fit-content;
    max-width: min(86%, 520px);
    min-width: 80px;
    padding: 8px 10px;
    border: 1px solid #d4dee7;
    border-radius: 13px 13px 13px 4px;
    background: #fff;
    color: #243b51;
    box-shadow: 0 2px 7px rgba(21,44,65,.07);
}
#ltscc-root .ltscc-private-message.is-own .ltscc-private-message-body {
    border-color: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 25%, #cfdbe5);
    border-radius: 13px 13px 4px 13px;
    background: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 10%, white);
}
#ltscc-root .ltscc-private-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#ltscc-root .ltscc-private-message-meta strong { color: var(--ltscc-primary, #0f66b3); font-size: 10px; line-height: 1.25; }
#ltscc-root .ltscc-private-message-meta time { color: #8090a0; font-size: 9px; white-space: nowrap; }
#ltscc-root .ltscc-private-message-body p {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 13px;
    line-height: 1.42;
    white-space: pre-wrap;
}
#ltscc-root .ltscc-private-flag { margin-top: 6px; }
#ltscc-root .ltscc-private-composer {
    padding: 9px 10px 10px;
    border-top: 1px solid #dce4ec;
    background: #fff;
}
#ltscc-root .ltscc-private-composer textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    max-height: 140px;
    margin: 0;
    padding: 8px 10px;
    resize: vertical;
    border: 1px solid #bfcbd7;
    border-radius: 10px;
    background: #fff;
    color: #17263a;
    font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#ltscc-root .ltscc-private-composer textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--ltscc-primary, #0f66b3) 45%, white);
    border-color: var(--ltscc-primary, #0f66b3);
}
#ltscc-root .ltscc-private-char-count { color: #758595; font-size: 11px; }
#ltscc-root .ltscc-private-composer textarea:disabled { opacity: .55; cursor: not-allowed; }
#ltscc-root .ltscc-message-preview.is-private { border-color: color-mix(in srgb, var(--ltscc-primary, #0f66b3) 32%, #d6e0e8); }

#ltscc-root .ltscc-panel.is-private-compact .ltscc-private-view { grid-template-columns: minmax(0, 1fr); }
#ltscc-root .ltscc-panel.is-private-compact .ltscc-private-sidebar { grid-column: 1; border-right: 0; }
#ltscc-root .ltscc-panel.is-private-compact .ltscc-private-conversation { display: none; grid-column: 1; }
#ltscc-root .ltscc-panel.is-private-compact.is-private-conversation-open .ltscc-private-sidebar { display: none; }
#ltscc-root .ltscc-panel.is-private-compact.is-private-conversation-open .ltscc-private-conversation { display: grid; }
#ltscc-root .ltscc-panel.is-private-compact .ltscc-private-back { display: grid; }

@media (max-width: 640px) {
    #ltscc-root .ltscc-view-tabs { padding: 0 6px; }
    #ltscc-root .ltscc-view-tab { flex: 1 1 50%; min-height: 42px; padding-right: 9px; padding-left: 9px; }
    #ltscc-root .ltscc-private-composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    #ltscc-root .ltscc-private-message-body { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
    #ltscc-root .ltscc-private-messages { scroll-behavior: auto; }
}
