.ltscc-launcher-wrap[hidden],
.ltscc-panel[hidden],
.ltscc-backdrop[hidden],
.ltscc-invite[hidden],
.ltscc-report-modal[hidden],
.ltscc-profile-modal[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% + 18px);
    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; }
}
