.tlc-fullscreen-app {
    --tlc-ink: #e7e9f5;
    --tlc-muted: #9a9db2;
    --tlc-line: #282c40;
    --tlc-primary: #9a8cff;
    --tlc-primary-dark: #b3a8ff;
    --tlc-accent: #c1adff;
    color: var(--tlc-ink);
    background: #11131d;
}

.tlc-fullscreen-app .tlc-sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 7px;
    color: #e6b85c;
    font-size: 10px;
    font-weight: 600;
}

.tlc-fullscreen-app .tlc-sync-indicator::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    animation: tlc-sync-pulse 1.4s ease-in-out infinite;
}

.tlc-fullscreen-app .tlc-message.is-pending .tlc-bubble {
    opacity: .88;
}

.tlc-fullscreen-app .tlc-message-delivery-status {
    direction: rtl;
    color: rgba(255, 255, 255, .8);
    font-size: 10px;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-pending-retry {
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 7px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-delivery-status {
    color: rgba(255, 255, 255, .88);
}

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

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-sync-indicator::before {
        animation: none;
    }
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-sidebar {
    background: #171a26;
    border-left-color: #292d40;
    box-shadow: -10px 0 36px rgba(0, 0, 0, .2);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-brand,
.tlc-fullscreen-app[data-theme="dark"] .tlc-name,
.tlc-fullscreen-app[data-theme="dark"] .tlc-header-info h3,
.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-empty strong {
    color: #f0f1fa;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-brand-subtitle,
.tlc-fullscreen-app[data-theme="dark"] .tlc-last-msg,
.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-status,
.tlc-fullscreen-app[data-theme="dark"] .tlc-sidebar-footer,
.tlc-fullscreen-app[data-theme="dark"] .tlc-list-section-title,
.tlc-fullscreen-app[data-theme="dark"] .tlc-small-note {
    color: #9297ad;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-search-input,
.tlc-fullscreen-app[data-theme="dark"] .tlc-filter-tabs {
    color: #e6e8f3;
    background: #202436;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-search-input::placeholder {
    color: #858ba3;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-search-input:focus {
    border-color: #5e568b;
    background: #22263a;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-filter-tab {
    color: #a2a6bb;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-filter-tab.active {
    color: #eeeaff;
    background: #34304e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .19);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-contact-item {
    color: #e8eaf5;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-contact-item:hover,
.tlc-fullscreen-app[data-theme="dark"] .tlc-contact-item.active {
    border-color: #34324f;
    background: linear-gradient(110deg, #24263a, #282541);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-contact-item.active::before {
    background: #9c8fff;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-sidebar-footer {
    border-top-color: #292d40;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-area {
    background: #090a11;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-area::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../images/chat-doodles.svg");
    background-size: 280px 300px;
    opacity: .72;
    pointer-events: none;
    content: "";
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-header {
    flex: 0 0 68px;
    margin: 8px 9px 0;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 26px;
    background: rgba(24, 24, 34, .82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    direction: ltr;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-menu,
.tlc-fullscreen-app[data-theme="dark"] .tlc-settings-button {
    color: #c0c3d5;
    border-color: #34384c;
    background: #222638;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-back-btn {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    color: #f8f8fb;
    background: rgba(5, 6, 10, .62);
    font-size: 20px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-header-info {
    direction: rtl;
    text-align: right;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-status.is-online {
    color: #81d9a6;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-status.is-online::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 5px;
    border-radius: 50%;
    background: #64d394;
    content: "";
    vertical-align: middle;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-empty,
.tlc-fullscreen-app[data-theme="dark"] .tlc-empty-state {
    color: #a0a4ba;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-empty-orb,
.tlc-fullscreen-app[data-theme="dark"] .tlc-empty-state-mark {
    color: #b3a7ff;
    border-color: #383350;
    background: linear-gradient(145deg, #25263a, #302b4b);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-bubble {
    color: #f0f0f5;
    border-color: rgba(255, 255, 255, .04);
    border-radius: 20px 20px 20px 6px;
    background: rgba(35, 37, 47, .96);
    box-shadow: 0 3px 11px rgba(0, 0, 0, .16);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message.sent .tlc-bubble {
    color: #fff;
    border-radius: 20px 20px 6px 20px;
    background: linear-gradient(135deg, #a432d0 0%, #8138d1 55%, #277cdb 100%);
    box-shadow: 0 4px 13px rgba(63, 37, 130, .3);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message.received .tlc-reply-box {
    color: #c4c7d7;
    background: #2a2e43;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-input-wrapper,
.tlc-fullscreen-app[data-theme="dark"] .tlc-reply-preview {
    color: #e9eaf5;
    border-color: #34384c;
    border-radius: 28px;
    background: rgba(24, 25, 32, .94);
    box-shadow: 0 9px 30px rgba(0, 0, 0, .25);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-input {
    color: #f0f1fa;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-send-btn {
    flex-basis: 45px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    background: #239bd3;
    box-shadow: 0 4px 14px rgba(35, 155, 211, .25);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-send-btn:disabled {
    color: #9da2b3;
    background: #323540;
    opacity: .72;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-input::placeholder,
.tlc-fullscreen-app[data-theme="dark"] .tlc-reply-preview-text {
    color: #9398ad;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-group-dialog,
.tlc-fullscreen-app[data-theme="dark"] .tlc-manage-dialog {
    color: #e9eaf5;
    border-color: #3a3e53;
    background: #1b1e2b;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-group-dialog h2,
.tlc-fullscreen-app[data-theme="dark"] .tlc-manage-dialog h2 {
    color: #f0f1fa;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-group-dialog p,
.tlc-fullscreen-app[data-theme="dark"] .tlc-group-dialog label,
.tlc-fullscreen-app[data-theme="dark"] .tlc-manage-content label {
    color: #a9aec2;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-group-name,
.tlc-fullscreen-app[data-theme="dark"] .tlc-entity-type,
.tlc-fullscreen-app[data-theme="dark"] .tlc-visibility,
.tlc-fullscreen-app[data-theme="dark"] .tlc-manage-name,
.tlc-fullscreen-app[data-theme="dark"] .tlc-manage-visibility,
.tlc-fullscreen-app[data-theme="dark"] .tlc-invite-url {
    color: #eceefa;
    border-color: #3a3e53;
    background: #25293a;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-theme-setting,
.tlc-fullscreen-app[data-theme="dark"] .tlc-person-card,
.tlc-fullscreen-app[data-theme="dark"] .tlc-member-row {
    color: #e8eaf5;
    border-color: #2c3043;
    background: #1e2231;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-action-btn {
    color: #d0d2e1;
    border-color: #40445a;
    background: #292d40;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-action-btn.is-primary {
    color: #fff;
    border-color: #7265d1;
    background: #6255bd;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-action-btn.is-danger {
    color: #ffc2ca;
    border-color: #633b4a;
    background: #3d2933;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-bio {
    color: #9298af;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-pending-label {
    color: #cfcaef;
    background: #34304c;
}

.tlc-fullscreen-app[data-theme="light"] {
    --tlc-ink: #20233a;
    --tlc-muted: #85899f;
    --tlc-line: #eceef5;
    --tlc-primary: #7062e9;
    --tlc-primary-dark: #5948d5;
    --tlc-accent: #a987ff;
    color: var(--tlc-ink);
    background: #f6f7fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-settings-button {
    color: #777b90;
    border: 1px solid #eeebff;
    background: #f7f5ff;
}

.tlc-fullscreen-app .tlc-sidebar-footer {
    position: relative;
    padding-right: 20px;
}

.tlc-fullscreen-app .tlc-brand-row {
    position: relative;
    padding-left: 46px;
}

.tlc-fullscreen-app .tlc-settings-button {
    position: absolute;
    top: 50%;
    left: 0;
    right: auto;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(137, 128, 208, .22);
    border-radius: 14px;
    color: #8275df;
    background: linear-gradient(145deg, #f8f7ff, #efedff);
    box-shadow: 0 5px 14px rgba(79, 65, 163, .12);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tlc-fullscreen-app .tlc-settings-button:hover {
    transform: translateY(-50%) rotate(18deg);
    box-shadow: 0 7px 18px rgba(79, 65, 163, .18);
}

.tlc-fullscreen-app .tlc-settings-button svg,
.tlc-fullscreen-app .tlc-admin-panel-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-admin-panel-button {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(52, 160, 234, .22);
    border-radius: 14px;
    color: #2496df;
    background: #eff8ff;
    text-decoration: none;
}

.tlc-fullscreen-app .tlc-admin-panel-button:hover {
    color: #0876c4;
    background: #e2f2ff;
}

.tlc-fullscreen-app .tlc-entity-type,
.tlc-fullscreen-app .tlc-visibility {
    width: 100%;
    min-height: 46px;
    margin: 0 0 12px;
    padding: 0 12px;
    border: 1px solid #e8e8f0;
    border-radius: 13px;
    color: #303248;
    background: #fafafe;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-settings-panel {
    padding: 6px 5px 16px;
}

.tlc-fullscreen-app .tlc-theme-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin: 12px 6px;
    padding: 0 14px;
    border: 1px solid #eceef5;
    border-radius: 14px;
    color: #37394e;
    background: #fff;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-theme-setting input {
    width: 18px;
    height: 18px;
    accent-color: #7062e9;
}

.tlc-fullscreen-app .tlc-profile-section {
    margin-top: 20px;
    padding-bottom: 20px;
}

.tlc-fullscreen-app .tlc-profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 7px;
}

.tlc-fullscreen-app .tlc-profile-avatar-field {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    padding: 16px 10px;
    border: 1px dashed #d8d5e9;
    border-radius: 16px;
    color: #6256ba;
    background: rgba(112, 98, 233, .035);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-profile-preview {
    width: 76px;
    height: 76px;
    border: 3px solid rgba(112, 98, 233, .2);
    border-radius: 50%;
    background: #e9e7f4;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-profile-avatar-field small {
    color: #999caf;
    font-size: 9px;
    font-weight: 400;
}

.tlc-fullscreen-app .tlc-profile-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    clip-path: inset(50%);
}

.tlc-fullscreen-app .tlc-profile-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #56596e;
    font-size: 10px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-profile-field input,
.tlc-fullscreen-app .tlc-profile-field textarea,
.tlc-fullscreen-app .tlc-profile-field select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e6e6ef;
    border-radius: 11px;
    outline: 0;
    color: #303248;
    background: #fafafe;
    font-size: 11px;
    font-weight: 400;
}

.tlc-fullscreen-app .tlc-profile-field textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.7;
}

.tlc-fullscreen-app .tlc-profile-field input:focus,
.tlc-fullscreen-app .tlc-profile-field textarea:focus,
.tlc-fullscreen-app .tlc-profile-field select:focus {
    border-color: #c9c1ff;
    box-shadow: 0 0 0 3px rgba(112, 98, 233, .08);
}

.tlc-fullscreen-app .tlc-profile-hint {
    margin: -5px 1px 2px;
    color: #9295a9;
    font-size: 9px;
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-identifier-status {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 17px;
    color: #747a91;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.6;
}

.tlc-fullscreen-app .tlc-identifier-status[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-identifier-status.is-checking {
    color: #7568d9;
}

.tlc-fullscreen-app .tlc-identifier-status.is-available {
    color: #188b69;
}

.tlc-fullscreen-app .tlc-identifier-status.is-unavailable,
.tlc-fullscreen-app .tlc-identifier-status.is-invalid {
    color: #c34e63;
}

.tlc-fullscreen-app .tlc-mini-spinner,
.tlc-fullscreen-app .tlc-inline-upload-spinner {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(117, 104, 217, .2);
    border-top-color: #7568d9;
    border-radius: 50%;
    animation: tlc-mini-spin .72s linear infinite;
}

.tlc-fullscreen-app .tlc-inline-upload-progress {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin: 1px 0 5px;
    padding: 8px 10px;
    border: 1px solid rgba(112, 98, 233, .16);
    border-radius: 12px;
    color: #596078;
    background: linear-gradient(105deg, rgba(112, 98, 233, .055), rgba(82, 173, 225, .07));
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-inline-upload-progress[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-inline-upload-spinner {
    border-color: rgba(117, 104, 217, .18);
    border-top-color: #7568d9;
}

.tlc-fullscreen-app .tlc-inline-upload-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-inline-upload-percent {
    color: #7062d5;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-inline-upload-track {
    grid-column: 1 / -1;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(107, 112, 143, .13);
}

.tlc-fullscreen-app .tlc-inline-upload-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #45c9dd, #7f79f2, #b48af2);
    transition: width .16s ease;
}

.tlc-fullscreen-app .tlc-inline-upload-progress.is-complete .tlc-inline-upload-spinner {
    border-color: #3eb887;
    border-top-color: #3eb887;
    animation: none;
}

.tlc-fullscreen-app .tlc-inline-upload-progress.is-complete .tlc-inline-upload-bar {
    background: linear-gradient(90deg, #45c58e, #45bad0);
}

.tlc-fullscreen-app .tlc-inline-upload-progress.is-error .tlc-inline-upload-label,
.tlc-fullscreen-app .tlc-inline-upload-progress.is-error .tlc-inline-upload-percent {
    color: #c34e63;
}

.tlc-fullscreen-app .tlc-inline-upload-progress.is-indeterminate .tlc-inline-upload-bar {
    width: 36% !important;
    animation: tlc-inline-progress 1s ease-in-out infinite alternate;
}

@keyframes tlc-mini-spin {
    to { transform: rotate(360deg); }
}

@keyframes tlc-inline-progress {
    from { transform: translateX(-120%); }
    to { transform: translateX(280%); }
}

.tlc-fullscreen-app .tlc-profile-save {
    min-height: 40px;
    margin-top: 3px;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-profile-loading {
    padding: 8px 12px;
    color: #9295a9;
    font-size: 10px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-avatar-field {
    color: #c6bfff;
    border-color: #494461;
    background: rgba(154, 140, 255, .06);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-preview {
    border-color: #514b7a;
    background: #292c40;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-avatar-field small,
.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-hint,
.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-loading {
    color: #959ab0;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-field {
    color: #b7bbce;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-field input,
.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-field textarea,
.tlc-fullscreen-app[data-theme="dark"] .tlc-profile-field select {
    color: #eceefa;
    border-color: #3a3e53;
    background: #25293a;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-identifier-status {
    color: #a7abc0;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-identifier-status.is-checking {
    color: #b4a9ff;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-identifier-status.is-available {
    color: #70d6ad;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-identifier-status.is-unavailable,
.tlc-fullscreen-app[data-theme="dark"] .tlc-identifier-status.is-invalid {
    color: #ff91a1;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-inline-upload-progress {
    color: #d5d9e9;
    border-color: rgba(159, 147, 255, .18);
    background: linear-gradient(105deg, rgba(112, 98, 233, .13), rgba(82, 173, 225, .08));
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-inline-upload-percent {
    color: #b9adff;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-inline-upload-track {
    background: rgba(221, 226, 248, .14);
}

.tlc-fullscreen-app .tlc-person-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 3px;
    padding: 9px;
    border: 1px solid #eceef5;
    border-radius: 15px;
    background: #fff;
}

.tlc-fullscreen-app .tlc-person-card .tlc-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
}

.tlc-fullscreen-app .tlc-person-id {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #7f8497;
    direction: ltr;
    font-size: 10px;
    line-height: 1.45;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-person-id {
    color: #a6abc0;
}

.tlc-fullscreen-app .tlc-bio {
    display: -webkit-box;
    overflow: hidden;
    color: #9a9dae;
    font-size: 9px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tlc-fullscreen-app .tlc-card-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.tlc-fullscreen-app .tlc-action-btn {
    min-height: 31px;
    padding: 5px 9px;
    border: 1px solid #e5e3f1;
    border-radius: 9px;
    color: #62657a;
    background: #f8f8fc;
    cursor: pointer;
    font-size: 10px;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-action-btn.is-primary {
    color: #fff;
    border-color: #7062e9;
    background: #7062e9;
}

.tlc-fullscreen-app .tlc-action-btn.is-danger {
    color: #b73951;
    border-color: #f2d4da;
    background: #fff5f6;
}

.tlc-fullscreen-app .tlc-pending-label {
    padding: 5px 8px;
    border-radius: 8px;
    color: #685db6;
    background: #f0edff;
    font-size: 10px;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-pending-label.is-friend {
    color: #268b64;
    background: #eaf8f1;
}

.tlc-fullscreen-app .tlc-small-note {
    margin: 4px 12px 13px;
    color: #9296a9;
    font-size: 11px;
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-avatar.is-channel,
.tlc-fullscreen-app .tlc-conversation-avatar.is-channel {
    color: #fff;
    background: linear-gradient(145deg, #4aa9c7, #5479d5);
}

.tlc-fullscreen-app .tlc-manage-modal[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-manage-modal {
    position: absolute;
    inset: 0;
    z-index: 21;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tlc-fullscreen-app .tlc-manage-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: min(88vh, 760px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 22px;
    color: #272940;
    background: #fff;
    box-shadow: 0 24px 80px rgba(27, 25, 63, .24);
}

.tlc-fullscreen-app .tlc-manage-dialog h2 {
    margin: 0 0 18px;
    color: #272940;
    font-size: 19px;
}

.tlc-fullscreen-app .tlc-manage-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tlc-fullscreen-app .tlc-manage-content label,
.tlc-fullscreen-app .tlc-manage-section-title {
    margin-top: 8px;
    color: #5d6075;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-manage-name,
.tlc-fullscreen-app .tlc-manage-visibility,
.tlc-fullscreen-app .tlc-invite-url {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #e8e8f0;
    border-radius: 11px;
    color: #303248;
    background: #fafafe;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-invite-box {
    display: flex;
    gap: 6px;
}

.tlc-fullscreen-app .tlc-invite-url {
    flex: 1;
    min-width: 0;
    direction: ltr;
    text-align: left;
}

.tlc-fullscreen-app .tlc-member-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 240px;
    overflow: auto;
}

.tlc-fullscreen-app .tlc-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 6px 8px;
    border: 1px solid #eceef5;
    border-radius: 10px;
    background: #fafafe;
}

.tlc-fullscreen-app .tlc-member-identity {
    overflow: hidden;
    color: #45485e;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-chat-status.has-new-message::after {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #63d6a1;
    content: "";
}

.tlc-fullscreen-app .tlc-conversation-avatar.is-online {
    position: relative;
    overflow: visible;
}

.tlc-fullscreen-app .tlc-conversation-avatar.is-online img {
    overflow: hidden;
    border-radius: 50%;
}

.tlc-fullscreen-app .tlc-conversation-avatar.is-online::after {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border: 2px solid #171923;
    border-radius: 50%;
    background: #62d392;
    content: "";
}

.tlc-fullscreen-app .tlc-chat-menu {
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-message-footer {
    direction: ltr;
    justify-content: flex-end;
    gap: 4px;
}

.tlc-fullscreen-app .tlc-read-receipt {
    color: #a4adbd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-read-receipt.is-read {
    color: #68c8f1;
}

.tlc-fullscreen-app .tlc-message-reply {
    margin-right: auto;
    opacity: .25;
}

.tlc-fullscreen-app .tlc-message:hover .tlc-message-reply,
.tlc-fullscreen-app .tlc-message-reply:focus-visible {
    opacity: .85;
}

.tlc-fullscreen-app .tlc-back-btn {
    transform: rotate(180deg);
}

.tlc-fullscreen-app .tlc-unread-badge {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #7062e9;
    font-size: 9px;
    font-weight: 700;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-mobile-topbar {
    color: #bfc3d5;
    border-bottom-color: #292d40;
    background: rgba(23, 26, 38, .94);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-mobile-back {
    color: #c3baff;
    background: #2b2a43;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-modal-close {
    color: #c1c4d5;
    background: #292d40;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-sidebar {
        flex-basis: 100%;
    }

    .tlc-fullscreen-app .tlc-mobile-topbar {
        display: none !important;
    }

    .tlc-fullscreen-app .tlc-chat-header {
        flex-basis: 62px;
        min-height: 62px;
        margin: max(7px, env(safe-area-inset-top)) 8px 0;
        padding: 0 10px;
        gap: 9px;
    }

    .tlc-fullscreen-app .tlc-back-btn {
        display: grid;
    }

    .tlc-fullscreen-app .tlc-conversation-avatar {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }

    .tlc-fullscreen-app .tlc-header-info h3 {
        font-size: 14px;
    }

    .tlc-fullscreen-app .tlc-chat-status {
        font-size: 10px;
    }

    .tlc-fullscreen-app .tlc-chat-menu {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .tlc-fullscreen-app .tlc-messages-container {
        padding-top: 15px;
        background: transparent;
    }

    .tlc-fullscreen-app .tlc-bubble {
        max-width: 86%;
        min-width: 82px;
        padding: 9px 12px 7px;
        font-size: 14px;
    }

    .tlc-fullscreen-app .tlc-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .tlc-fullscreen-app .tlc-sidebar-footer {
        min-height: 58px;
    }

    .tlc-fullscreen-app .tlc-manage-dialog {
        max-height: 92vh;
        padding: 24px 17px;
    }

    .tlc-fullscreen-app .tlc-person-card {
        gap: 7px;
        padding: 7px;
    }

    .tlc-fullscreen-app .tlc-card-actions {
        gap: 3px;
    }
}

.tlc-fullscreen-app .tlc-date-divider {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 13px 0 9px;
    color: #777b92;
    font-size: 10px;
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-date-divider span {
    padding: 4px 11px;
    border: 1px solid rgba(130, 132, 157, .18);
    border-radius: 20px;
    background: rgba(115, 119, 143, .1);
}

.tlc-fullscreen-app .tlc-forwarded-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0 0 6px;
    color: #7a6fd1;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-forwarded-header button {
    padding: 0;
    border: 0;
    color: #7567d5;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-forwarded-header button:hover {
    text-decoration: underline;
}

.tlc-fullscreen-app .tlc-member-identity {
    min-width: 0;
    padding: 2px;
    border: 0;
    color: #45485e;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-member-identity:hover {
    color: #7062e9;
    text-decoration: underline;
}

.tlc-fullscreen-app .tlc-join-public {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #7062e9;
    border-radius: 10px;
    color: #fff;
    background: #7062e9;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-join-public:disabled {
    opacity: .6;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-forward-modal,
.tlc-fullscreen-app .tlc-delete-choice {
    position: absolute;
    inset: 0;
    z-index: 10030;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tlc-fullscreen-app .tlc-forward-backdrop,
.tlc-fullscreen-app .tlc-delete-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4, 5, 10, .72);
    backdrop-filter: blur(5px);
}

.tlc-fullscreen-app .tlc-forward-dialog,
.tlc-fullscreen-app .tlc-delete-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    max-height: min(86vh, 650px);
    overflow: auto;
    padding: 24px;
    border: 1px solid #e6e5ef;
    border-radius: 20px;
    color: #272940;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.tlc-fullscreen-app .tlc-forward-dialog h2,
.tlc-fullscreen-app .tlc-delete-dialog h2 {
    margin: 0 36px 12px 0;
    color: #272940;
    font-size: 17px;
}

.tlc-fullscreen-app .tlc-forward-preview,
.tlc-fullscreen-app .tlc-delete-dialog p {
    color: #777a90;
    font-size: 11px;
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-forward-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: min(42vh, 310px);
    overflow: auto;
    margin: 12px 0;
}

.tlc-fullscreen-app .tlc-forward-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #ececf3;
    border-radius: 10px;
    color: #393b52;
    cursor: pointer;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-forward-option input {
    margin: 0;
    accent-color: #7062e9;
}

.tlc-fullscreen-app .tlc-forward-option small {
    color: #8f92a4;
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-forward-controls,
.tlc-fullscreen-app .tlc-delete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tlc-fullscreen-app .tlc-forward-close {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    color: #74778b;
    background: #f0f0f6;
    cursor: pointer;
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-forward-empty {
    padding: 15px 0;
    color: #8d90a3;
    font-size: 11px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-date-divider {
    color: #9da1b4;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-date-divider span {
    border-color: rgba(160, 164, 188, .16);
    background: rgba(115, 119, 143, .16);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-member-identity {
    color: #d7d9e8;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-forward-dialog,
.tlc-fullscreen-app[data-theme="dark"] .tlc-delete-dialog {
    border-color: #3a3e53;
    color: #e9eaf5;
    background: #1b1e2b;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-forward-dialog h2,
.tlc-fullscreen-app[data-theme="dark"] .tlc-delete-dialog h2 {
    color: #f0f1fa;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-forward-option {
    border-color: #363a4f;
    color: #e0e2ef;
    background: #232738;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-forward-close {
    color: #d3d5e4;
    background: #303448;
}

.tlc-fullscreen-app [hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-input-wrapper {
    position: relative;
    gap: 5px;
    min-height: 60px;
    padding: 6px 8px;
}

.tlc-fullscreen-app .tlc-send-btn,
.tlc-fullscreen-app .tlc-attach-btn,
.tlc-fullscreen-app .tlc-emoji-btn {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, transform .16s ease, opacity .16s ease;
}

.tlc-fullscreen-app .tlc-send-btn {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: #229ed9;
    box-shadow: 0 4px 14px rgba(34, 158, 217, .22);
}

.tlc-fullscreen-app .tlc-send-btn svg {
    width: 21px;
    height: 21px;
}

.tlc-fullscreen-app .tlc-send-btn[data-mode="send"] svg {
    fill: currentColor;
    transform: none;
}

.tlc-fullscreen-app .tlc-record-mode-toggle {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.tlc-fullscreen-app .tlc-record-mode-toggle.is-recording {
    color: #fff;
    border-color: #ed526a;
    background: #ed526a;
    animation: tlc-recording-pulse 1.2s ease-in-out infinite;
}

.tlc-fullscreen-app .tlc-send-btn:disabled,
.tlc-fullscreen-app .tlc-attach-btn:disabled,
.tlc-fullscreen-app .tlc-emoji-btn:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.tlc-fullscreen-app .tlc-attach-btn,
.tlc-fullscreen-app .tlc-emoji-btn {
    color: #aeb4c8;
    background: transparent;
}

.tlc-fullscreen-app .tlc-attach-btn:hover:not(:disabled),
.tlc-fullscreen-app .tlc-emoji-btn:hover:not(:disabled) {
    color: #62c6f4;
    background: rgba(111, 123, 164, .17);
}

.tlc-fullscreen-app .tlc-attach-btn svg,
.tlc-fullscreen-app .tlc-emoji-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tlc-fullscreen-app .tlc-message-input {
    min-width: 0;
    min-height: 42px;
}

.tlc-fullscreen-app .tlc-selected-attachment,
.tlc-fullscreen-app .tlc-recording-status {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    margin: 0 5px 7px;
    padding: 6px 11px;
    border: 1px solid rgba(128, 138, 171, .22);
    border-radius: 13px;
    color: #d8dcf0;
    background: rgba(25, 28, 41, .94);
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-selected-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-selected-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    color: #9edfff;
    background: rgba(35, 158, 217, .17);
    font-size: 16px;
}

.tlc-fullscreen-app .tlc-selected-attachment.is-image .tlc-selected-icon {
    color: #8be0bf;
}

.tlc-fullscreen-app .tlc-selected-attachment.is-video .tlc-selected-icon {
    color: #d2a9ff;
}

.tlc-fullscreen-app .tlc-remove-attachment,
.tlc-fullscreen-app .tlc-emoji-close {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #aeb4c8;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6076;
    box-shadow: 0 0 0 4px rgba(255, 96, 118, .13);
    animation: tlc-recording-pulse 1.2s ease-in-out infinite;
}

.tlc-fullscreen-app .tlc-recording-timer {
    margin-right: auto;
    color: #ff91a1;
    font-variant-numeric: tabular-nums;
}

.tlc-fullscreen-app .tlc-cancel-recording {
    border: 0;
    color: #adb3c7;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.tlc-fullscreen-app .tlc-emoji-picker {
    position: absolute;
    right: 5px;
    bottom: calc(100% + 13px);
    z-index: 25;
    width: min(355px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(151, 159, 190, .2);
    border-radius: 19px;
    color: #eff1fb;
    background: #171a26;
    box-shadow: 0 20px 65px rgba(0, 0, 0, .46);
}

.tlc-fullscreen-app .tlc-emoji-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-emoji-search {
    width: 100%;
    height: 36px;
    padding: 0 11px;
    border: 1px solid #2b3042;
    border-radius: 12px;
    outline: 0;
    color: #edf0fb;
    background: #222638;
    font: inherit;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-emoji-categories {
    display: flex;
    gap: 4px;
    margin: 9px 0 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(151, 159, 190, .12);
}

.tlc-fullscreen-app .tlc-emoji-categories button {
    display: grid;
    flex: 1;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #9ca3b9;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
}

.tlc-fullscreen-app .tlc-emoji-categories button.active,
.tlc-fullscreen-app .tlc-emoji-categories button:hover {
    color: #e4e1ff;
    background: #302d48;
}

.tlc-fullscreen-app .tlc-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    max-height: 220px;
    overflow-y: auto;
}

.tlc-fullscreen-app .tlc-emoji-option {
    display: grid;
    min-width: 0;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-emoji-option:hover {
    background: #2a2e43;
    transform: scale(1.08);
}

.tlc-fullscreen-app .tlc-emoji-empty {
    grid-column: 1 / -1;
    padding: 18px;
    color: #9ca3b9;
    font-size: 11px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tlc-fullscreen-app .tlc-profile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 10, .76);
    backdrop-filter: blur(7px);
}

.tlc-fullscreen-app .tlc-profile-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 25px;
    color: #f2f3fa;
    background: #171a25;
    box-shadow: 0 25px 100px rgba(0, 0, 0, .48);
}

.tlc-fullscreen-app .tlc-profile-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 9, 15, .48);
    cursor: pointer;
    font-size: 22px;
}

.tlc-fullscreen-app .tlc-profile-cover {
    height: 140px;
    background:
        radial-gradient(circle at 75% 22%, rgba(255, 255, 255, .17), transparent 29%),
        linear-gradient(135deg, #543caa, #176d9c 54%, #152539);
}

.tlc-fullscreen-app .tlc-profile-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 24px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-public-avatar {
    display: grid;
    width: 104px;
    height: 104px;
    overflow: hidden;
    place-items: center;
    margin-top: -52px;
    border: 5px solid #171a25;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #9584ff, #3189be);
    box-shadow: 0 7px 25px rgba(0, 0, 0, .28);
    font-size: 37px;
}

.tlc-fullscreen-app .tlc-public-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-public-name {
    margin-top: 11px;
    color: #f5f6fb;
    font-size: 20px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-public-username {
    margin-top: 4px;
    color: #78b8e6;
    direction: ltr;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-public-bio {
    width: 100%;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    color: #d1d5e4;
    background: #202332;
    font-size: 13px;
    line-height: 1.9;
    text-align: right;
    white-space: pre-wrap;
}

.tlc-fullscreen-app .tlc-public-bio.is-empty {
    color: #858ca3;
}

.tlc-fullscreen-app .tlc-profile-message {
    width: 100%;
    min-height: 44px;
    margin-top: 17px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(110deg, #229ed9, #3786d6);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-profile-message:disabled {
    color: #aeb4c8;
    background: #292d3b;
    cursor: default;
}

.tlc-fullscreen-app .tlc-profile-report {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 1px solid rgba(248, 113, 113, .42);
    border-radius: 13px;
    color: #fca5a5;
    background: rgba(127, 29, 29, .16);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-profile-report:disabled {
    opacity: .65;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-conversation-avatar[role="button"],
.tlc-fullscreen-app .tlc-header-info h3[role="button"] {
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-conversation-avatar[role="button"]:hover,
.tlc-fullscreen-app .tlc-header-info h3[role="button"]:hover {
    filter: brightness(1.13);
}

.tlc-fullscreen-app .tlc-contact-item [role="button"] {
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-contact-item [role="button"]:hover {
    color: #79cbf1;
}

.tlc-fullscreen-app .tlc-sender-name {
    padding: 0;
    border: 0;
    color: #cfbdff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-media-content {
    max-width: min(360px, 70vw);
    margin-top: 3px;
}

.tlc-fullscreen-app .tlc-media-image-button {
    display: block;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: rgba(0, 0, 0, .12);
    cursor: zoom-in;
}

.tlc-fullscreen-app .tlc-media-image-button img {
    display: block;
    width: auto;
    max-width: min(360px, 70vw);
    max-height: 360px;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-media-video {
    display: block;
    width: min(360px, 70vw);
    max-height: 360px;
    border-radius: 13px;
    background: #050608;
}

.tlc-fullscreen-app .tlc-audio-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: min(290px, 66vw);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    background: rgba(9, 12, 21, .23);
}

.tlc-fullscreen-app .tlc-audio-symbol {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #d9d0ff;
    background: rgba(195, 173, 255, .2);
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-audio-details {
    flex: 1;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-audio-title {
    display: block;
    overflow: hidden;
    margin-bottom: 6px;
    color: #f0f1f8;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-audio-details audio {
    display: block;
    width: 100%;
    height: 34px;
}

.tlc-fullscreen-app .tlc-media-caption {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.tlc-fullscreen-app .tlc-message-views {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-start;
    align-items: center;
    gap: 3px;
    width: max-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 4px 7px;
    border: 1px solid rgba(128, 138, 171, .18);
    border-radius: 999px;
    color: #858ba2;
    background: rgba(128, 138, 171, .08);
    backdrop-filter: blur(7px);
    direction: ltr;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    opacity: .82;
}

.tlc-fullscreen-app .tlc-message-views img {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: .84;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-message-views {
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .84);
    background: rgba(255, 255, 255, .1);
}

.tlc-fullscreen-app .tlc-message.sent .tlc-message-views img,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message.received .tlc-message-views img,
.tlc-fullscreen-app .tlc-message .tlc-bubble.is-media-message .tlc-message-views img {
    filter: brightness(0) invert(1);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message.received .tlc-message-views {
    border-color: rgba(255, 255, 255, .12);
    color: #aeb3c8;
    background: rgba(255, 255, 255, .055);
}

.tlc-fullscreen-app .tlc-message .tlc-bubble.is-media-message .tlc-message-views {
    padding: 5px 8px;
    border: 0;
    border-radius: 999px;
    color: #f7f7fc;
    background: rgba(25, 28, 40, .84);
}

.tlc-fullscreen-app .tlc-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .92);
    cursor: zoom-out;
}

.tlc-fullscreen-app .tlc-image-viewer.is-open {
    display: flex;
}

.tlc-fullscreen-app .tlc-image-viewer-full {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tlc-fullscreen-app .tlc-image-viewer-close {
    position: absolute;
    top: max(15px, env(safe-area-inset-top));
    left: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(28, 30, 40, .76);
    cursor: pointer;
    font-size: 27px;
}

@keyframes tlc-recording-pulse {
    50% { opacity: .68; transform: scale(.96); }
}

.tlc-fullscreen-app[data-theme="light"] .tlc-selected-attachment,
.tlc-fullscreen-app[data-theme="light"] .tlc-recording-status {
    color: #3e4459;
    border-color: #e6e6ef;
    background: rgba(255, 255, 255, .96);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-attach-btn,
.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-btn {
    color: #7d8296;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-picker {
    color: #37394c;
    border-color: #e3e2ed;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-search {
    color: #33364a;
    border-color: #e6e6ef;
    background: #f7f7fb;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-option:hover,
.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-categories button.active,
.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-categories button:hover {
    background: #f0eff9;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-dialog {
    color: #33364a;
    border-color: #e8e8f0;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-public-avatar {
    border-color: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-public-name,
.tlc-fullscreen-app[data-theme="light"] .tlc-audio-title {
    color: #272b3e;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-public-bio {
    color: #50546a;
    border-color: #ececf2;
    background: #f6f7fb;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-audio-card {
    border-color: #e5e5ef;
    background: rgba(255, 255, 255, .55);
}

.tlc-fullscreen-app .tlc-user-actions-modal {
    position: fixed;
    inset: 0;
    z-index: 10015;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tlc-fullscreen-app .tlc-user-actions-modal[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-user-actions-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 10, .76);
    backdrop-filter: blur(7px);
}

.tlc-fullscreen-app .tlc-user-actions-dialog {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    max-height: min(86vh, 700px);
    overflow-y: auto;
    padding: 25px 22px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    color: #eff1fa;
    background: #171a25;
    box-shadow: 0 25px 100px rgba(0, 0, 0, .48);
}

.tlc-fullscreen-app .tlc-user-actions-close {
    position: absolute;
    top: 11px;
    left: 12px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #b9bfd1;
    background: #292d3c;
    cursor: pointer;
    font-size: 21px;
}

.tlc-fullscreen-app .tlc-user-actions-dialog h2 {
    margin: 0 36px 16px 0;
    color: #f4f5fb;
    font-size: 17px;
}

.tlc-fullscreen-app .tlc-user-actions-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tlc-fullscreen-app .tlc-user-actions-note {
    margin: 0 0 8px;
    color: #aab0c4;
    font-size: 12px;
    line-height: 1.9;
}

.tlc-fullscreen-app .tlc-user-action-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    color: #e8eaf5;
    background: #222635;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-align: right;
    transition: background .15s ease, border-color .15s ease;
}

.tlc-fullscreen-app .tlc-user-action-item:hover {
    border-color: rgba(123, 142, 196, .3);
    background: #292e40;
}

.tlc-fullscreen-app .tlc-user-action-item.is-danger {
    color: #ff9aa7;
}

.tlc-fullscreen-app .tlc-user-actions-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.tlc-fullscreen-app .tlc-user-actions-buttons .tlc-action-btn {
    min-height: 38px;
}

.tlc-fullscreen-app .tlc-action-btn.is-danger {
    color: #fff;
    background: #c9465c;
}

.tlc-fullscreen-app .tlc-action-btn.is-danger:hover:not(:disabled) {
    background: #b63a4f;
}

.tlc-fullscreen-app .tlc-report-target {
    margin: 0 0 7px;
    color: #e5e7f1;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-report-label {
    color: #c2c7d7;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-report-reason {
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid #34394e;
    border-radius: 12px;
    outline: 0;
    color: #f1f2f8;
    background: #202433;
    font: inherit;
    font-size: 12px;
    line-height: 1.8;
    resize: vertical;
}

.tlc-fullscreen-app .tlc-report-reason:focus {
    border-color: #8275d8;
    box-shadow: 0 0 0 3px rgba(130, 117, 216, .13);
}

.tlc-fullscreen-app .tlc-blocked-section {
    margin-top: 24px;
    padding-top: 15px;
    border-top: 1px solid rgba(140, 147, 176, .16);
}

.tlc-fullscreen-app .tlc-blocked-user-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0;
    padding: 7px 8px;
    border: 1px solid rgba(140, 147, 176, .13);
    border-radius: 12px;
    background: rgba(26, 29, 42, .62);
}

.tlc-fullscreen-app .tlc-blocked-user-row .tlc-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.tlc-fullscreen-app .tlc-blocked-user-name {
    flex: 1;
    overflow: hidden;
    color: #dfe2ed;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-unblock-user {
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 10px;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-dialog {
    color: #34384c;
    border-color: #e5e5ef;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-dialog h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-report-target {
    color: #303449;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-note,
.tlc-fullscreen-app[data-theme="light"] .tlc-report-label {
    color: #656a7e;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-action-item {
    color: #383c50;
    border-color: #e7e7ef;
    background: #f7f7fb;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-action-item:hover {
    background: #efeff8;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-report-reason {
    color: #34384c;
    border-color: #e1e1eb;
    background: #fafafe;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-blocked-user-row {
    border-color: #e7e7ef;
    background: #f9f9fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-blocked-user-name {
    color: #41465a;
}

.tlc-fullscreen-app .tlc-name-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-verification-badge {
    display: inline-grid;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2598ed;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.tlc-fullscreen-app .tlc-verification-label {
    display: inline-block;
    max-width: 90px;
    overflow: hidden;
    color: #3a9bdd;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-user-title {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    color: #8a65cf;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-service-message {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 12px auto;
    clear: both;
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-service-pill {
    display: inline-flex;
    justify-content: center;
    max-width: min(86%, 560px);
    padding: 7px 14px;
    border: 1px solid rgba(225, 231, 255, .14);
    border-radius: 999px;
    color: #e2e5f1;
    background: rgba(80, 88, 116, .43);
    box-shadow: 0 5px 22px rgba(5, 8, 20, .14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-service-pill {
    border-color: rgba(91, 101, 142, .15);
    color: #596078;
    background: rgba(243, 245, 252, .76);
    box-shadow: 0 5px 22px rgba(42, 49, 79, .08);
}

.tlc-fullscreen-app .tlc-media-card {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(560px, 75vw);
    padding: 10px 12px;
    border: 1px solid rgba(145, 155, 190, .2);
    border-radius: 14px;
    background: rgba(124, 135, 174, .08);
}

.tlc-fullscreen-app .tlc-media-file-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #8877ef;
    background: rgba(137, 121, 238, .13);
    font-size: 19px;
}

.tlc-fullscreen-app .tlc-media-file-info {
    display: flex;
    flex: 1 1 80px;
    flex-direction: column;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-media-title {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-media-subtitle {
    overflow: hidden;
    color: var(--tlc-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-media-open,
.tlc-fullscreen-app .tlc-media-download,
.tlc-fullscreen-app .tlc-media-save {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid rgba(143, 131, 218, .25);
    border-radius: 9px;
    color: #9182ed;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    text-decoration: none;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-media-open:hover,
.tlc-fullscreen-app .tlc-media-download:hover,
.tlc-fullscreen-app .tlc-media-save:hover {
    background: rgba(143, 131, 218, .12);
}

.tlc-fullscreen-app .tlc-media-preview:not([hidden]) {
    margin-top: 8px;
}

.tlc-fullscreen-app .tlc-media-preview audio,
.tlc-fullscreen-app .tlc-media-preview video {
    display: block;
    max-width: min(440px, 72vw);
}

.tlc-fullscreen-app .tlc-message-footer {
    gap: 6px;
}

.tlc-fullscreen-app .tlc-message-action {
    padding: 3px 5px;
    border: 0;
    border-radius: 6px;
    color: #9298ae;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-message-action:hover {
    color: #a798ff;
    background: rgba(148, 134, 239, .12);
}

.tlc-fullscreen-app .tlc-bubble.has-message-actions {
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-messages-container {
    overflow-x: hidden;
}

.tlc-fullscreen-app .tlc-message-actions-popover[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-message-actions-popover {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid #e2e3ed;
    border-radius: 11px;
    background: #f6f7fb;
    box-shadow: 0 3px 9px rgba(22, 25, 44, .08);
    cursor: default;
}

.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-action {
    min-height: 30px;
    min-width: 0;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #e3e4ed;
    border-radius: 8px;
    color: #53566d;
    background: #fff;
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-action:hover {
    color: #6558c7;
    border-color: #c8c2f5;
    background: #efedff;
}

.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-delete:hover,
.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-report:hover {
    color: #a22f45;
    border-color: #ecc5cc;
    background: #fff0f2;
}

.tlc-fullscreen-app .tlc-message-delete:hover,
.tlc-fullscreen-app .tlc-message-report:hover {
    color: #f28491;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover {
    border-color: #3d4258;
    background: #202437;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-action {
    color: #d5d8e8;
    border-color: #444960;
    background: #2a2f44;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-action:hover {
    color: #f1edff;
    border-color: #69618f;
    background: #3a3656;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-delete:hover,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-report:hover {
    color: #ffd8dd;
    border-color: #744451;
    background: #472d38;
}

.tlc-fullscreen-app .tlc-edited-label {
    color: #9298ae;
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-sender-name .tlc-verification-badge {
    margin-inline: 4px;
}

.tlc-fullscreen-app .tlc-sender-name .tlc-verification-label {
    margin-inline-end: 4px;
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-composer-dock {
        padding-right: 9px;
        padding-left: 9px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .tlc-fullscreen-app.has-emoji-picker {
        --tlc-emoji-picker-height: min(52dvh, 440px);
    }

    .tlc-fullscreen-app.has-emoji-picker .tlc-composer-dock {
        position: absolute;
        right: 0;
        bottom: var(--tlc-emoji-picker-height);
        left: 0;
        z-index: 10021;
        padding-bottom: 0;
    }

    .tlc-fullscreen-app .tlc-input-wrapper {
        gap: 2px;
        min-height: 54px;
        padding: 5px 6px;
    }

    .tlc-fullscreen-app .tlc-send-btn {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .tlc-fullscreen-app .tlc-attach-btn,
    .tlc-fullscreen-app .tlc-emoji-btn {
        flex-basis: 34px;
        width: 34px;
        height: 38px;
    }

    .tlc-fullscreen-app .tlc-message-input {
        font-size: 14px;
    }

    .tlc-fullscreen-app .tlc-emoji-picker {
        position: fixed;
        z-index: 10020;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: var(--tlc-emoji-picker-height, min(52dvh, 440px));
        max-height: calc(100dvh - 150px);
        padding: 14px 14px max(14px, env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -18px 60px rgba(0, 0, 0, .4);
    }

    .tlc-fullscreen-app .tlc-emoji-picker[hidden] {
        display: none !important;
    }

    .tlc-fullscreen-app .tlc-emoji-grid {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tlc-fullscreen-app .tlc-profile-dialog {
        border-radius: 22px;
    }

    .tlc-fullscreen-app .tlc-profile-cover {
        height: 118px;
    }

    .tlc-fullscreen-app .tlc-media-image-button img,
    .tlc-fullscreen-app .tlc-media-video {
        max-width: 78vw;
        max-height: 52vh;
    }

    .tlc-fullscreen-app .tlc-media-card {
        max-width: 82vw;
        flex-wrap: wrap;
    }

    .tlc-fullscreen-app .tlc-message-action {
        font-size: 8px;
    }
}

/* External invite sharing from Explorer. */
.tlc-fullscreen-app .tlc-explorer-invite-button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(151, 111, 226, .32);
    border-radius: 12px;
    color: #ded5ff;
    background: linear-gradient(110deg, rgba(112, 89, 218, .22), rgba(194, 74, 161, .16));
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-explorer-invite-button[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-explorer-invite-button span {
    font-size: 16px;
}

.tlc-fullscreen-app .tlc-invite-modal {
    position: absolute;
    inset: 0;
    z-index: 10035;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tlc-fullscreen-app .tlc-invite-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4, 5, 10, .76);
    backdrop-filter: blur(7px);
}

.tlc-fullscreen-app .tlc-invite-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    max-height: min(88vh, 680px);
    overflow: auto;
    padding: 22px;
    border: 1px solid #3b3d52;
    border-radius: 22px;
    color: #f1f0fa;
    background: linear-gradient(155deg, #222438, #171a27 76%);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .42);
}

.tlc-fullscreen-app .tlc-invite-close {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 50%;
    color: #e9e7f3;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    font: inherit;
    font-size: 23px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-invite-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
}

.tlc-fullscreen-app .tlc-invite-mark {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #765bea, #d350a4);
    font-size: 23px;
}

.tlc-fullscreen-app .tlc-invite-heading h2 {
    margin: 0 38px 3px 0;
    color: inherit;
    font-size: 17px;
}

.tlc-fullscreen-app .tlc-invite-heading p {
    margin: 0;
    color: #aeb0c5;
    font-size: 10px;
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-invite-message {
    overflow-wrap: anywhere;
    margin: 0 0 14px;
    padding: 12px 13px;
    border: 1px solid rgba(172, 165, 214, .14);
    border-radius: 13px;
    color: #d5d5e5;
    background: rgba(255, 255, 255, .045);
    font-size: 11px;
    line-height: 1.9;
    direction: rtl;
    text-align: right;
}

.tlc-fullscreen-app .tlc-invite-native-share,
.tlc-fullscreen-app .tlc-invite-copy {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 9px 13px;
    border: 1px solid rgba(159, 133, 242, .3);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(115deg, #755de2, #bb4da7);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-invite-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tlc-fullscreen-app .tlc-invite-option {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 9px 11px;
    border: 1px solid rgba(177, 177, 205, .14);
    border-radius: 13px;
    color: #f0eef8;
    background: rgba(255, 255, 255, .055);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: transform .15s ease, background .15s ease;
}

.tlc-fullscreen-app .tlc-invite-option:hover,
.tlc-fullscreen-app .tlc-invite-option:focus-visible {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.tlc-fullscreen-app .tlc-invite-option small {
    color: #aeb0c5;
    font-size: 9px;
    font-weight: 500;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-explorer-invite-button {
    color: #6548b2;
    background: linear-gradient(110deg, rgba(122, 97, 222, .1), rgba(211, 85, 166, .09));
}

.tlc-fullscreen-app[data-theme="light"] .tlc-invite-dialog {
    border-color: #e5e2f0;
    color: #292b3d;
    background: linear-gradient(155deg, #fff, #f7f6fc 76%);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-invite-close {
    color: #55566a;
    background: rgba(45, 46, 68, .08);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-invite-heading p,
.tlc-fullscreen-app[data-theme="light"] .tlc-invite-option small {
    color: #77798a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-invite-message,
.tlc-fullscreen-app[data-theme="light"] .tlc-invite-option {
    border-color: rgba(75, 68, 110, .13);
    color: #38394c;
    background: rgba(73, 66, 109, .045);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-invite-option:hover,
.tlc-fullscreen-app[data-theme="light"] .tlc-invite-option:focus-visible {
    color: #292b3d;
    background: rgba(113, 89, 195, .1);
}

.tlc-fullscreen-app .tlc-invite-copy-buffer {
    position: fixed;
    top: -10000px;
    left: -10000px;
    opacity: 0;
}

@media (max-width: 420px) {
    .tlc-fullscreen-app .tlc-invite-dialog {
        padding: 18px 15px;
    }

    .tlc-fullscreen-app .tlc-invite-option {
        min-height: 54px;
        padding: 8px;
    }
}

/* Preserve natural RTL paragraphs while keeping Latin handles and punctuation in order. */
.tlc-fullscreen-app .tlc-message-input {
    text-align: start;
    unicode-bidi: plaintext;
}

.tlc-fullscreen-app .tlc-text {
    text-align: start;
    unicode-bidi: plaintext;
}

.tlc-fullscreen-app .tlc-mention-link {
    direction: ltr;
    unicode-bidi: isolate;
}

.tlc-fullscreen-app a {
    color: #1675d1 !important;
    text-decoration: underline;
    text-decoration-color: rgba(22, 117, 209, .45);
    text-underline-offset: 2px;
}

.tlc-fullscreen-app a:hover,
.tlc-fullscreen-app a:focus-visible {
    color: #0758a8 !important;
    text-decoration-color: currentColor;
}

.tlc-fullscreen-app .tlc-text a,
.tlc-fullscreen-app .tlc-mention-link {
    color: #1675d1;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-text a {
    color: #c7e3ff !important;
    text-decoration-color: rgba(199, 227, 255, .7);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-text a,
.tlc-fullscreen-app[data-theme="dark"] .tlc-mention-link {
    color: #82bcff;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message.sent .tlc-text a {
    color: #d6eaff !important;
}

.tlc-fullscreen-app .tlc-reply-preview.is-channel-hidden {
    display: none !important;
}

.tlc-fullscreen-app .tlc-composer-dock.is-channel-readonly {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.tlc-fullscreen-app .tlc-channel-notification-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin: 0 auto;
    padding: 11px;
    border: 1px solid #d8e3f2;
    border-radius: 50%;
    color: #3477bd;
    background: #f1f7ff;
    box-shadow: 0 6px 18px rgba(39, 91, 145, .12);
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.tlc-fullscreen-app .tlc-channel-notification-toggle:hover {
    transform: translateY(-2px);
    background: #e5f1ff;
}

.tlc-fullscreen-app .tlc-channel-notification-toggle.is-muted {
    color: #79869a;
    background: #f2f3f6;
    border-color: #dfe2e8;
}

.tlc-fullscreen-app .tlc-channel-notification-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tlc-fullscreen-app .tlc-channel-notification-toggle[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-add-member-panel {
    display: grid;
    gap: 11px;
    margin: 16px 0;
    padding: 15px;
    border: 1px solid #e2e9f2;
    border-radius: 18px;
    background: linear-gradient(145deg, #f9fbff, #f1f6fd);
}

.tlc-fullscreen-app .tlc-add-member-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tlc-fullscreen-app .tlc-add-member-heading > span:last-child,
.tlc-fullscreen-app .tlc-add-member-details {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.tlc-fullscreen-app .tlc-add-member-heading strong {
    color: #263750;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-add-member-heading small,
.tlc-fullscreen-app .tlc-add-member-details small {
    overflow: hidden;
    color: #7c899a;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-add-member-icon {
    display: grid;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(140deg, #62a8ee, #4775cf);
    font-size: 23px;
    font-weight: 500;
}

.tlc-fullscreen-app .tlc-add-member-search {
    width: 100%;
    min-height: 41px;
    padding: 9px 12px;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    outline: 0;
    color: #27374a;
    background: #fff;
}

.tlc-fullscreen-app .tlc-add-member-search:focus {
    border-color: #80b8ef;
    box-shadow: 0 0 0 3px rgba(69, 139, 214, .12);
}

.tlc-fullscreen-app .tlc-add-member-choices {
    display: grid;
    max-height: 220px;
    gap: 7px;
    overflow: auto;
}

.tlc-fullscreen-app .tlc-add-member-choice {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #edf1f6;
    border-radius: 13px;
    background: #fff;
}

.tlc-fullscreen-app .tlc-add-member-avatar {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    color: #536987;
    background: #e7eff9;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-add-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-add-member-details {
    flex: 1;
}

.tlc-fullscreen-app .tlc-add-member-details strong {
    overflow: hidden;
    color: #263750;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-add-member-button {
    flex: 0 0 auto;
    min-height: 33px;
    padding: 6px 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #477fd0;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-add-member-button:hover:not(:disabled) {
    background: #3269bb;
}

.tlc-fullscreen-app .tlc-add-member-button:disabled {
    opacity: .6;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-add-member-empty {
    margin: 4px 0;
    padding: 12px;
    color: #78879a;
    text-align: center;
    font-size: 12px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-add-member-panel {
    border-color: #3b4357;
    background: linear-gradient(145deg, #242b3b, #202635);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-add-member-heading strong,
.tlc-fullscreen-app[data-theme="dark"] .tlc-add-member-details strong {
    color: #edf2fb;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-add-member-choice,
.tlc-fullscreen-app[data-theme="dark"] .tlc-add-member-search {
    border-color: #3b4357;
    color: #eff3fb;
    background: #2b3243;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-notification-toggle {
    border-color: #39465a;
    color: #a9d2ff;
    background: #263448;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-notification-toggle.is-muted {
    color: #a3adbc;
    background: #2b303d;
}

.tlc-pwa-overlay {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    direction: rtl;
    background: rgba(9, 10, 18, .68);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    animation: tlc-pwa-fade-in .2s ease-out both;
}

.tlc-pwa-dialog {
    position: relative;
    width: min(100%, 420px);
    max-height: min(90dvh, 660px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    color: #f7f7ff;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(119, 101, 255, .28), transparent 58%),
        linear-gradient(155deg, #202235 0%, #151722 76%);
    box-shadow: 0 28px 100px rgba(0, 0, 0, .48), 0 0 0 1px rgba(116, 102, 242, .12) inset;
    font-family: inherit;
    -webkit-overflow-scrolling: touch;
    animation: tlc-pwa-pop-in .26s cubic-bezier(.2, .8, .2, 1) both;
}

.tlc-pwa-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 28px 28px;
    text-align: center;
}

.tlc-pwa-close {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 13px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: #c5c6d5;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.tlc-pwa-icon {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 0 18px;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(96, 82, 222, .35);
}

.tlc-pwa-eyebrow {
    margin-bottom: 9px;
    color: #a99eff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.tlc-pwa-dialog h2 {
    max-width: 320px;
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(21px, 5vw, 25px);
    font-weight: 800;
    line-height: 1.5;
}

.tlc-pwa-description {
    max-width: 340px;
    margin: 11px 0 24px;
    color: #bfc1d1;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.95;
}

.tlc-pwa-actions {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 9px;
}

.tlc-pwa-primary,
.tlc-pwa-secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, opacity .16s ease;
}

.tlc-pwa-primary {
    color: #fff;
    background: linear-gradient(105deg, #7165ee, #594bd2);
    box-shadow: 0 8px 22px rgba(93, 77, 222, .27);
    text-decoration: none;
}

.tlc-pwa-secondary {
    color: #c1c2d2;
    background: rgba(255, 255, 255, .055);
}

.tlc-pwa-primary:hover,
.tlc-pwa-secondary:hover {
    transform: translateY(-1px);
}

.tlc-pwa-primary:focus-visible,
.tlc-pwa-secondary:focus-visible,
.tlc-pwa-close:focus-visible {
    outline: 2px solid #b8b0ff;
    outline-offset: 3px;
}

.tlc-pwa-primary:disabled {
    opacity: .65;
    cursor: wait;
}

@keyframes tlc-pwa-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tlc-pwa-pop-in {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .tlc-pwa-dialog { border-radius: 24px; }
    .tlc-pwa-content { padding: 32px 22px 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .tlc-pwa-overlay,
    .tlc-pwa-dialog {
        animation: none;
    }

    .tlc-pwa-primary,
    .tlc-pwa-secondary {
        transition: none;
    }
}

/* Clearer, softer light theme and legible, device-aware message typography. */
.tlc-fullscreen-app {
    --tlc-message-font-size: clamp(15px, calc(.94rem + .12vw), 17px);
    --tlc-message-muted: #697386;
}

.tlc-fullscreen-app .tlc-bubble,
.tlc-fullscreen-app .tlc-text {
    font-size: var(--tlc-message-font-size);
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-message-input {
    font-size: clamp(15px, calc(.94rem + .1vw), 17px);
}

.tlc-fullscreen-app .tlc-name {
    font-size: clamp(14px, calc(.86rem + .08vw), 16px);
}

.tlc-fullscreen-app .tlc-last-msg,
.tlc-fullscreen-app .tlc-chat-status {
    font-size: clamp(12px, calc(.74rem + .08vw), 14px);
}

.tlc-fullscreen-app .tlc-reply-box {
    font-size: clamp(12px, calc(.74rem + .08vw), 14px);
}

.tlc-fullscreen-app .tlc-time {
    font-size: 10px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-bubble,
.tlc-fullscreen-app[data-theme="dark"] .tlc-text {
    color: #f4f5fb;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message.received .tlc-bubble {
    background: #252938;
    border-color: #34394d;
}

.tlc-fullscreen-app[data-theme="light"] {
    --tlc-ink: #1c2639;
    --tlc-muted: #566174;
    --tlc-line: #d6dde7;
    --tlc-primary: #5548b8;
    --tlc-primary-dark: #40358f;
    --tlc-accent: #715bb8;
    color: var(--tlc-ink);
    background: #e9edf3;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-sidebar {
    background: #f4f6f9;
    border-left-color: #d4dbe5;
    box-shadow: -8px 0 28px rgba(35, 45, 65, .07);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-header {
    background: #f4f6f9;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-brand,
.tlc-fullscreen-app[data-theme="light"] .tlc-name,
.tlc-fullscreen-app[data-theme="light"] .tlc-header-info h3,
.tlc-fullscreen-app[data-theme="light"] .tlc-chat-empty strong {
    color: #1c2639;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-brand-subtitle,
.tlc-fullscreen-app[data-theme="light"] .tlc-last-msg,
.tlc-fullscreen-app[data-theme="light"] .tlc-chat-status,
.tlc-fullscreen-app[data-theme="light"] .tlc-sidebar-footer,
.tlc-fullscreen-app[data-theme="light"] .tlc-list-section-title,
.tlc-fullscreen-app[data-theme="light"] .tlc-small-note,
.tlc-fullscreen-app[data-theme="light"] .tlc-chat-empty,
.tlc-fullscreen-app[data-theme="light"] .tlc-reply-preview-text {
    color: #566174;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-search-input {
    color: #1c2639;
    border-color: #d0d8e3;
    background: #e8edf3;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-search-input::placeholder {
    color: #626d80;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-search-input:focus {
    border-color: #9186cb;
    background: #f8f9fb;
    box-shadow: 0 0 0 3px rgba(85, 72, 184, .12);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-filter-tabs {
    background: #e5eaf1;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-filter-tab {
    color: #4d596d;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-filter-tab.active {
    color: #352b7f;
    background: #f8f9fb;
    box-shadow: 0 1px 4px rgba(34, 43, 61, .14);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-contact-item:hover {
    background: #e9edf3;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-contact-item.active {
    border-color: #cbd4e1;
    background: #e2e8f0;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-chat-area {
    background:
        radial-gradient(ellipse at 12% 8%, rgba(169, 176, 203, .16), transparent 28%),
        radial-gradient(ellipse at 90% 90%, rgba(194, 180, 161, .13), transparent 26%),
        #e9edf3;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-chat-header {
    border-bottom-color: #d4dbe5;
    background: rgba(242, 245, 249, .94);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-chat-status {
    color: #566174;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-chat-menu,
.tlc-fullscreen-app[data-theme="light"] .tlc-settings-button {
    color: #39455b;
    border-color: #d1d8e2;
    background: #e7ecf2;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-bubble {
    color: #1d273a;
    border-color: #cbd4df;
    background: #f7f9fb;
    box-shadow: 0 3px 10px rgba(36, 47, 66, .08);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message.sent .tlc-bubble {
    color: #fff;
    background: linear-gradient(135deg, #514695, #3f5c93);
    box-shadow: 0 4px 12px rgba(52, 59, 103, .18);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-sender-name {
    color: #3f358c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message.sent .tlc-sender-name,
.tlc-fullscreen-app[data-theme="light"] .tlc-message.sent .tlc-text {
    color: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message.received .tlc-reply-box {
    color: #39455b;
    background: #e8edf3;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-time {
    color: #596579;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message.sent .tlc-time {
    color: rgba(255, 255, 255, .88);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-input-wrapper,
.tlc-fullscreen-app[data-theme="light"] .tlc-reply-preview {
    color: #1c2639;
    border-color: #ccd5e1;
    background: #f3f6f9;
    box-shadow: 0 5px 18px rgba(35, 45, 65, .1);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-input {
    color: #1c2639;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-input::placeholder {
    color: #586579;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-send-btn {
    background: #514695;
    box-shadow: 0 4px 12px rgba(52, 59, 103, .2);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-sidebar-footer {
    border-top-color: #d4dbe5;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-group-dialog,
.tlc-fullscreen-app[data-theme="light"] .tlc-manage-dialog,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-dialog,
.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-dialog,
.tlc-fullscreen-app[data-theme="light"] .tlc-forward-dialog,
.tlc-fullscreen-app[data-theme="light"] .tlc-delete-dialog {
    color: #1c2639;
    border-color: #cbd4df;
    background: #f1f4f8;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-group-dialog h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-manage-dialog h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-dialog h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-forward-dialog h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-delete-dialog h2 {
    color: #1c2639;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-group-dialog p,
.tlc-fullscreen-app[data-theme="light"] .tlc-group-dialog label,
.tlc-fullscreen-app[data-theme="light"] .tlc-manage-content label,
.tlc-fullscreen-app[data-theme="light"] .tlc-manage-section-title,
.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-note,
.tlc-fullscreen-app[data-theme="light"] .tlc-report-label {
    color: #505d71;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-group-name,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-username,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-bio,
.tlc-fullscreen-app[data-theme="light"] .tlc-manage-name,
.tlc-fullscreen-app[data-theme="light"] .tlc-manage-visibility,
.tlc-fullscreen-app[data-theme="light"] .tlc-invite-url,
.tlc-fullscreen-app[data-theme="light"] .tlc-emoji-search {
    color: #1c2639;
    border-color: #cbd4df;
    background: #e7ecf2;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-theme-setting,
.tlc-fullscreen-app[data-theme="light"] .tlc-person-card,
.tlc-fullscreen-app[data-theme="light"] .tlc-member-row {
    color: #28344a;
    border-color: #d1d9e3;
    background: #e9eef4;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-action-btn {
    color: #36435b;
    border-color: #cbd4df;
    background: #e5eaf1;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-action-btn.is-primary {
    color: #fff;
    border-color: #514695;
    background: #514695;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-bubble,
    .tlc-fullscreen-app .tlc-text {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.75;
    }

    .tlc-fullscreen-app .tlc-message-input {
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .tlc-fullscreen-app .tlc-name {
        font-size: clamp(14px, 3.8vw, 15px);
    }

    .tlc-fullscreen-app .tlc-last-msg,
    .tlc-fullscreen-app .tlc-chat-status {
        font-size: 12px;
    }
}

.tlc-fullscreen-app .tlc-group-dialog .tlc-create-avatar,
.tlc-fullscreen-app .tlc-channel-username,
.tlc-fullscreen-app .tlc-channel-bio,
.tlc-fullscreen-app .tlc-manage-channel-bio {
    width: 100%;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    color: #303248;
    background: #fafafe;
    font: inherit;
    font-size: 11px;
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-create-avatar-preview {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-channel-bio,
.tlc-fullscreen-app .tlc-manage-channel-bio {
    min-height: 80px;
    resize: vertical;
}

.tlc-fullscreen-app .tlc-channel-profile-fields[hidden],
.tlc-fullscreen-app .tlc-create-avatar-preview[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-channel-profile-fields {
    display: flex;
    flex-direction: column;
}

.tlc-fullscreen-app .tlc-channel-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 16px;
    border: 1px solid #eceef5;
    border-radius: 16px;
    color: #37394e;
    background: #fafafe;
    text-align: center;
}

.tlc-fullscreen-app .tlc-channel-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-channel-profile-id {
    direction: ltr;
    color: #7062e9;
    font-size: 12px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-channel-profile-bio,
.tlc-fullscreen-app .tlc-channel-required-note {
    margin: 0;
    color: #777b90;
    font-size: 11px;
    line-height: 1.8;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-group-dialog .tlc-create-avatar,
.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-username,
.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-bio,
.tlc-fullscreen-app[data-theme="dark"] .tlc-manage-channel-bio {
    color: #eceefa;
    border-color: #3a3e53;
    background: #25293a;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-profile {
    color: #e8eaf5;
    border-color: #2c3043;
    background: #1e2231;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-profile-bio,
.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-required-note {
    color: #a9aec2;
}

/* Standalone settings screen */
.tlc-fullscreen-app .tlc-settings-page {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: var(--tlc-ink);
    background: #f6f7fc;
}

.tlc-fullscreen-app .tlc-settings-page[hidden] {
    display: none !important;
}

.tlc-fullscreen-app.is-settings-open > .tlc-sidebar,
.tlc-fullscreen-app.is-settings-open > .tlc-chat-area {
    display: none !important;
}

.tlc-fullscreen-app.is-settings-open > .tlc-settings-page:not([hidden]) {
    display: flex;
}

.tlc-fullscreen-app .tlc-settings-page-header {
    display: flex;
    flex: 0 0 76px;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    border-bottom: 1px solid #e5e7f1;
    background: rgba(255, 255, 255, .92);
}

.tlc-fullscreen-app .tlc-settings-page-header h2 {
    margin: 0;
    color: #282a40;
    font-size: 18px;
}

.tlc-fullscreen-app .tlc-settings-back {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #e5e3f3;
    border-radius: 14px;
    color: #6f61d8;
    background: #f4f2ff;
    cursor: pointer;
    font-size: 26px;
}

.tlc-fullscreen-app .tlc-settings-page-content {
    width: min(860px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding: 28px 24px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tlc-fullscreen-app .tlc-settings-page-content .tlc-settings-panel {
    padding: 8px 0 20px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-settings-page {
    color: #e7e9f5;
    background: #11131d;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-settings-page-header {
    border-bottom-color: #292d40;
    background: #171a26;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-settings-page-header h2 {
    color: #f0f1fa;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-settings-back {
    border-color: #34384c;
    color: #c7bcff;
    background: #222638;
}

/* Glass-style moderator controls in the system bot conversation */
.tlc-fullscreen-app .tlc-bot-admin-panel:not([hidden]) {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 16px 0;
    padding: 10px 12px;
    border: 1px solid rgba(190, 178, 255, .24);
    border-radius: 18px;
    background: rgba(38, 34, 65, .58);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tlc-fullscreen-app .tlc-bot-admin-panel[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-bot-admin-panel strong {
    flex: 0 0 100%;
    padding: 0 3px 2px;
    color: #ded9ff;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-bot-admin-panel button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(210, 202, 255, .28);
    border-radius: 12px;
    color: #f1efff;
    background: rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px rgba(255, 255, 255, .12);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.tlc-fullscreen-app .tlc-bot-admin-panel button:hover {
    transform: translateY(-1px);
    border-color: rgba(210, 202, 255, .5);
    background: rgba(163, 146, 255, .22);
}

.tlc-fullscreen-app .tlc-bot-admin-panel button span {
    color: #b5aaff;
    font-size: 15px;
}

.tlc-fullscreen-app .tlc-bot-support-panel:not([hidden]) {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 16px 0;
    padding: 10px 12px;
    border: 1px solid rgba(123, 211, 184, .25);
    border-radius: 18px;
    background: rgba(26, 67, 61, .38);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tlc-fullscreen-app .tlc-bot-support-panel[hidden],
.tlc-fullscreen-app .tlc-bot-support-result[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-bot-support-panel > strong {
    flex: 0 0 100%;
    padding: 0 3px 2px;
    color: #bcebdd;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-bot-support-panel button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid rgba(161, 233, 208, .3);
    border-radius: 12px;
    color: #ecfff8;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px rgba(255, 255, 255, .1);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease, border-color .16s ease;
}

.tlc-fullscreen-app .tlc-bot-support-panel button:hover {
    transform: translateY(-1px);
    border-color: rgba(161, 233, 208, .5);
    background: rgba(70, 185, 146, .2);
}

.tlc-fullscreen-app .tlc-bot-support-panel button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.tlc-fullscreen-app .tlc-bot-support-panel button span {
    color: #a1e9d0;
    font-size: 15px;
}

.tlc-fullscreen-app .tlc-bot-support-result:not([hidden]) {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-bot-support-note {
    flex: 1 1 220px;
    color: #d7e9e4;
    font-size: 11px;
    line-height: 1.7;
}

/* Download-first photo cards, inspired by the sample chat example */
.tlc-fullscreen-app .tlc-image-card,
.tlc-fullscreen-app .tlc-image-preview {
    position: relative;
    width: min(360px, 70vw);
    overflow: hidden;
    border-radius: 15px;
    background: #272936;
}

.tlc-fullscreen-app .tlc-media-image-button {
    display: block;
    width: 100%;
    height: min(360px, 70vh);
    min-height: 210px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #242632;
    cursor: zoom-in;
}

.tlc-fullscreen-app .tlc-media-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.06);
    transition: filter .2s ease;
}

.tlc-fullscreen-app .tlc-media-image-button:hover img,
.tlc-fullscreen-app .tlc-media-image-button:focus-visible img {
    filter: blur(5px);
}

.tlc-fullscreen-app .tlc-image-download-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: #fff;
    background: rgba(28, 31, 42, .62);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tlc-fullscreen-app .tlc-image-download-overlay svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Large play button, tactile waveform, and download control for voice/music */
.tlc-fullscreen-app .tlc-media-content audio {
    display: none;
}

.tlc-fullscreen-app .tlc-audio-card {
    display: flex;
    width: min(410px, 76vw);
    min-width: min(300px, 76vw);
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(78, 126, 213, .94), rgba(56, 103, 190, .95));
    box-shadow: 0 8px 24px rgba(18, 38, 78, .18);
}

.tlc-fullscreen-app .tlc-audio-play {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #3975ce;
    background: #fff;
    box-shadow: 0 3px 10px rgba(18, 38, 78, .2);
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-audio-play svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.tlc-fullscreen-app .tlc-audio-details {
    flex: 1;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-audio-title {
    display: block;
    overflow: hidden;
    margin: 0 0 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-audio-controls {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.tlc-fullscreen-app .tlc-audio-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 90px;
    height: 26px;
}

.tlc-fullscreen-app .tlc-audio-waveform {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    overflow: hidden;
}

.tlc-fullscreen-app .tlc-audio-waveform i {
    flex: 0 1 3px;
    min-width: 2px;
    border-radius: 4px;
    background: rgba(222, 235, 255, .66);
}

.tlc-fullscreen-app .tlc-audio-waveform i.is-played {
    background: #fff;
}

.tlc-fullscreen-app .tlc-audio-seek {
    position: absolute;
    inset: -5px 0;
    width: 100%;
    height: 36px;
    margin: 0;
    opacity: .015;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-media-download {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #fff;
    background: rgba(31, 78, 157, .46);
    text-decoration: none;
}

.tlc-fullscreen-app .tlc-media-download svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-media-download:hover {
    color: #fff;
    background: rgba(18, 58, 130, .78);
}

.tlc-fullscreen-app .tlc-audio-times {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    color: rgba(255, 255, 255, .93);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-action {
    min-height: 34px;
    color: #34364d;
    border-color: #cfd2e1;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-forward {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    border-color: #6357c8;
    background: #7062d8;
}

.tlc-fullscreen-app .tlc-message-forward svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-message-actions-popover .tlc-message-forward:hover {
    color: #fff;
    border-color: #5144b8;
    background: #5f50c6;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-action {
    color: #f0f1fa;
    border-color: #555b74;
    background: #30364d;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-forward {
    color: #fff;
    border-color: #8274ef;
    background: #695bdd;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-popover .tlc-message-forward:hover {
    background: #796bef;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-settings-page-header {
        flex-basis: 64px;
        padding: 0 16px;
    }

    .tlc-fullscreen-app .tlc-settings-page-content {
        padding: 20px 15px max(28px, env(safe-area-inset-bottom));
    }

    .tlc-fullscreen-app .tlc-bot-admin-panel:not([hidden]) {
        gap: 6px;
        margin: 6px 8px 0;
        padding: 8px;
    }

    .tlc-fullscreen-app .tlc-bot-admin-panel button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 9px;
    }

    .tlc-fullscreen-app .tlc-audio-card {
        width: min(360px, 80vw);
        min-width: min(280px, 80vw);
        gap: 9px;
        padding: 9px 10px;
    }

    .tlc-fullscreen-app .tlc-audio-play {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
}

/* Media messages use their own player surface instead of a chat bubble. */
.tlc-fullscreen-app .tlc-message .tlc-bubble.is-media-message,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message .tlc-bubble.is-media-message {
    width: fit-content;
    max-width: min(90%, 620px);
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.tlc-fullscreen-app .tlc-message .tlc-bubble.is-media-message .tlc-message-footer {
    margin-top: 5px;
}

.tlc-fullscreen-app .tlc-media-content {
    max-width: none;
}

.tlc-fullscreen-app .tlc-media-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    direction: rtl;
}

.tlc-fullscreen-app .tlc-media-download-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(164, 171, 198, .2);
    border-radius: 999px;
    color: #aeb4c9;
    background: rgba(30, 34, 49, .78);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-media-download-status svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-media-download-status.is-downloaded {
    color: #9ee5bc;
    border-color: rgba(94, 195, 135, .28);
    background: rgba(40, 121, 78, .18);
}

.tlc-fullscreen-app .tlc-media-overflow {
    position: relative;
    flex: 0 0 auto;
}

.tlc-fullscreen-app .tlc-media-more {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(155, 164, 194, .24);
    border-radius: 50%;
    color: #e5e7f2;
    background: rgba(35, 40, 57, .88);
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.tlc-fullscreen-app .tlc-media-more:hover,
.tlc-fullscreen-app .tlc-media-more[aria-expanded="true"] {
    background: #514b83;
    transform: translateY(-1px);
}

.tlc-fullscreen-app .tlc-media-more svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.tlc-fullscreen-app .tlc-media-overflow-menu[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-media-overflow-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100;
    display: flex;
    min-width: 146px;
    flex-direction: column;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(156, 164, 192, .2);
    border-radius: 12px;
    background: #202438;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
}

.tlc-fullscreen-app .tlc-media-menu-item {
    display: flex;
    width: 100%;
    min-height: 37px;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    color: #edf0fa;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-align: right;
    text-decoration: none;
}

.tlc-fullscreen-app .tlc-media-menu-item:hover {
    color: #fff;
    background: rgba(139, 125, 231, .2);
}

.tlc-fullscreen-app .tlc-media-menu-item svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-media-menu-item:first-child svg path {
    fill: currentColor;
    stroke: none;
}

.tlc-fullscreen-app .tlc-media-image-button img {
    transition: filter .22s ease, transform .22s ease;
}

.tlc-fullscreen-app .tlc-media-image-button img,
.tlc-fullscreen-app .tlc-media-image-button:hover img,
.tlc-fullscreen-app .tlc-media-image-button:focus-visible img {
    filter: blur(9px);
}

.tlc-fullscreen-app .tlc-media-content.is-downloaded .tlc-media-image-button img,
.tlc-fullscreen-app .tlc-media-content.is-downloaded .tlc-media-image-button:hover img,
.tlc-fullscreen-app .tlc-media-content.is-downloaded .tlc-media-image-button:focus-visible img {
    filter: none;
    transform: none;
}

.tlc-fullscreen-app .tlc-image-download-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    background: rgba(25, 29, 43, .72);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .32);
    pointer-events: none;
    backdrop-filter: blur(9px);
}

.tlc-fullscreen-app .tlc-image-download-indicator svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-audio-card {
    display: grid;
    width: min(410px, 78vw);
    min-width: min(290px, 78vw);
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
        "heading heading"
        "play details";
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 19px;
    background: linear-gradient(135deg, #367dcc 0%, #3d69c5 53%, #5654b4 100%);
    box-shadow: 0 9px 26px rgba(22, 42, 90, .24);
}

.tlc-fullscreen-app .tlc-audio-heading {
    display: flex;
    min-width: 0;
    grid-area: heading;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.tlc-fullscreen-app .tlc-audio-heading-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.tlc-fullscreen-app .tlc-audio-title {
    margin: 0;
    color: #fff;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-audio-kind {
    color: rgba(235, 240, 255, .78);
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-audio-heading .tlc-media-download-status {
    min-height: 24px;
    color: #f1f4ff;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(14, 41, 99, .22);
}

.tlc-fullscreen-app .tlc-audio-heading .tlc-media-download-status.is-downloaded {
    color: #e2ffec;
    background: rgba(23, 93, 58, .3);
}

.tlc-fullscreen-app .tlc-audio-heading .tlc-media-more {
    width: 30px;
    height: 30px;
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(20, 46, 102, .25);
}

.tlc-fullscreen-app .tlc-audio-heading .tlc-media-overflow-menu {
    background: #202438;
}

.tlc-fullscreen-app .tlc-audio-play {
    grid-area: play;
    width: 46px;
    height: 46px;
    color: #3c6fc5;
    background: #fff;
}

.tlc-fullscreen-app .tlc-audio-details {
    grid-area: details;
}

.tlc-fullscreen-app .tlc-audio-controls {
    gap: 0;
}

.tlc-fullscreen-app .tlc-audio-track {
    min-width: 0;
}

.tlc-fullscreen-app .tlc-audio-times {
    margin-top: 4px;
}

.tlc-fullscreen-app .tlc-media-music .tlc-audio-card {
    background: linear-gradient(135deg, #7959c6 0%, #6453bd 53%, #434fa9 100%);
}

.tlc-fullscreen-app .tlc-video-card {
    width: min(430px, 78vw);
    overflow: visible;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 17px;
    background: rgba(24, 28, 43, .94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}

.tlc-fullscreen-app .tlc-video-heading {
    display: flex;
    min-height: 35px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 7px;
    padding: 0 2px;
}

.tlc-fullscreen-app .tlc-video-title {
    overflow: hidden;
    color: #f1f2f8;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-media-video {
    width: 100%;
    max-height: min(360px, 55vh);
    border-radius: 11px;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-media-download-status {
    color: #697087;
    border-color: rgba(77, 86, 119, .17);
    background: rgba(255, 255, 255, .88);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-media-download-status.is-downloaded {
    color: #218451;
    border-color: rgba(55, 158, 103, .2);
    background: #eaf8f0;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-media-more {
    color: #555b72;
    border-color: rgba(77, 86, 119, .2);
    background: rgba(255, 255, 255, .92);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-media-overflow-menu {
    border-color: #e1e4ef;
    background: #fff;
    box-shadow: 0 12px 30px rgba(36, 42, 68, .16);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-media-menu-item {
    color: #3d435a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-media-menu-item:hover {
    color: #5448b8;
    background: #f1efff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-video-card {
    border-color: rgba(64, 75, 111, .16);
    background: #f5f6fa;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-video-title {
    color: #353a50;
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-message .tlc-bubble.is-media-message {
        max-width: 94%;
    }

    .tlc-fullscreen-app .tlc-audio-card {
        width: min(360px, 82vw);
        min-width: min(270px, 82vw);
        gap: 8px 9px;
        padding: 10px 11px;
    }

    .tlc-fullscreen-app .tlc-video-card {
        width: min(390px, 82vw);
    }
}

/* Tapping the photo veil reveals it; saving stays a separate menu action. */
.tlc-fullscreen-app .tlc-media-image-button img,
.tlc-fullscreen-app .tlc-media-image-button:hover img,
.tlc-fullscreen-app .tlc-media-image-button:focus-visible img,
.tlc-fullscreen-app .tlc-media-content.is-downloaded:not(.is-revealed) .tlc-media-image-button img {
    filter: blur(9px);
}

.tlc-fullscreen-app .tlc-media-content.is-revealed .tlc-media-image-button img,
.tlc-fullscreen-app .tlc-media-content.is-revealed .tlc-media-image-button:hover img,
.tlc-fullscreen-app .tlc-media-content.is-revealed .tlc-media-image-button:focus-visible img {
    filter: none;
    transform: none;
}

.tlc-fullscreen-app .tlc-image-reveal-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    color: #fff;
    background: rgba(21, 26, 40, .78);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .34);
    cursor: pointer;
    backdrop-filter: blur(9px);
    transition: transform .18s ease, background .18s ease;
}

.tlc-fullscreen-app .tlc-image-reveal-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(34, 158, 217, .92);
}

.tlc-fullscreen-app .tlc-image-reveal-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Unified switchable voice/video record control. */
.tlc-fullscreen-app .tlc-record-mode-toggle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(123, 133, 166, .22);
    border-radius: 50%;
    color: #6e77a0;
    background: rgba(120, 131, 170, .08);
    cursor: pointer;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.tlc-fullscreen-app .tlc-record-mode-toggle:hover:not(:disabled) {
    color: #fff;
    background: #6658ca;
    transform: rotate(-8deg);
}

.tlc-fullscreen-app .tlc-record-mode-toggle[data-mode="video"] {
    color: #8e68d8;
    background: rgba(142, 104, 216, .12);
}

.tlc-fullscreen-app .tlc-record-mode-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-record-mode-toggle:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.tlc-fullscreen-app .tlc-send-btn[data-mode="video"] svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: none;
}

/* Per-file upload progress, including recorded voice and video messages. */
.tlc-fullscreen-app .tlc-upload-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 5px 8px;
    padding: 9px 11px;
    border: 1px solid rgba(84, 159, 218, .24);
    border-radius: 15px;
    color: #dce8fb;
    background: linear-gradient(115deg, rgba(38, 75, 133, .4), rgba(40, 47, 73, .72));
    box-shadow: 0 5px 18px rgba(13, 30, 61, .16);
}

.tlc-fullscreen-app .tlc-upload-file-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #82d8ff;
    background: rgba(67, 170, 222, .16);
}

.tlc-fullscreen-app .tlc-upload-file-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-upload-progress-body {
    flex: 1;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.tlc-fullscreen-app .tlc-upload-file-name {
    overflow: hidden;
    color: #f0f4ff;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-upload-percent {
    flex: 0 0 auto;
    color: #8bdcff;
    font-size: 10px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.tlc-fullscreen-app .tlc-upload-progress-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(229, 238, 255, .14);
}

.tlc-fullscreen-app .tlc-upload-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #42d2f5, #7d8bff 58%, #bd81ff);
    box-shadow: 0 0 12px rgba(80, 192, 255, .5);
    transition: width .16s ease;
}

.tlc-fullscreen-app .tlc-upload-progress-size {
    display: block;
    margin-top: 4px;
    color: #aab9d5;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.tlc-fullscreen-app .tlc-upload-progress.is-indeterminate .tlc-upload-progress-bar {
    width: 35% !important;
    animation: tlc-upload-indeterminate 1s ease-in-out infinite alternate;
}

.tlc-fullscreen-app .tlc-upload-progress.is-complete .tlc-upload-progress-bar {
    background: linear-gradient(90deg, #54d69c, #51b7e8);
}

@keyframes tlc-upload-indeterminate {
    from { transform: translateX(-15%); }
    to { transform: translateX(200%); }
}

.tlc-fullscreen-app[data-theme="light"] .tlc-record-mode-toggle {
    color: #68718f;
    border-color: rgba(77, 86, 119, .18);
    background: #f2f4fa;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-record-mode-toggle[data-mode="video"] {
    color: #7052c9;
    background: #f0ebff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-upload-progress {
    color: #303b56;
    border-color: rgba(63, 136, 204, .2);
    background: linear-gradient(115deg, #edf6ff, #f4f2ff);
    box-shadow: 0 5px 17px rgba(40, 78, 129, .08);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-upload-file-name {
    color: #35415e;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-upload-progress-size {
    color: #78839e;
}

/* A focused camera view with a circular live preview and clear record controls. */
.tlc-fullscreen-app .tlc-video-recording-stage {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    color: #f6f6ff;
    background: radial-gradient(ellipse at 50% 38%, rgba(48, 50, 84, .98), rgba(10, 12, 21, .985) 72%);
    backdrop-filter: blur(18px);
}

.tlc-fullscreen-app .tlc-video-recording-panel {
    display: flex;
    width: min(100%, 390px);
    flex-direction: column;
    align-items: center;
    gap: 17px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-video-recording-circle {
    position: relative;
    width: min(66vw, 320px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid rgba(241, 239, 255, .88);
    border-radius: 50%;
    background: #11131d;
    box-shadow: 0 0 0 8px rgba(147, 118, 255, .12), 0 18px 64px rgba(0, 0, 0, .46);
}

.tlc-fullscreen-app .tlc-video-recording-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #11131d;
}

.tlc-fullscreen-app .tlc-video-recording-preview.is-selfie {
    transform: scaleX(-1);
}

.tlc-fullscreen-app .tlc-video-recording-ring {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 50%;
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-video-recording-badge {
    position: absolute;
    top: 13px;
    left: 50%;
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    background: rgba(18, 20, 31, .75);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
}

.tlc-fullscreen-app .tlc-video-recording-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4e66;
    box-shadow: 0 0 0 4px rgba(255, 78, 102, .2);
    animation: tlc-recording-pulse 1s ease-in-out infinite;
}

.tlc-fullscreen-app .tlc-video-recording-timer {
    color: #fff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.tlc-fullscreen-app .tlc-video-recording-panel > p {
    margin: 0;
    color: #e6e5f2;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-video-recording-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    direction: rtl;
}

.tlc-fullscreen-app .tlc-video-cancel-recording,
.tlc-fullscreen-app .tlc-video-switch-camera,
.tlc-fullscreen-app .tlc-video-send-recording {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    color: #f7f5ff;
    background: rgba(255, 255, 255, .09);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    transition: transform .16s ease, background .16s ease;
}

.tlc-fullscreen-app .tlc-video-cancel-recording:hover,
.tlc-fullscreen-app .tlc-video-switch-camera:hover,
.tlc-fullscreen-app .tlc-video-send-recording:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .17);
}

.tlc-fullscreen-app .tlc-video-switch-camera {
    width: 48px;
    height: 48px;
    padding: 0;
    border-color: rgba(163, 141, 255, .4);
    background: rgba(134, 113, 223, .2);
}

.tlc-fullscreen-app .tlc-video-switch-camera svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-video-switch-camera:disabled {
    cursor: wait;
    opacity: .55;
}

.tlc-fullscreen-app .tlc-video-send-recording {
    min-height: 48px;
    border-color: transparent;
    background: linear-gradient(135deg, #49bce8, #6f61df);
    box-shadow: 0 7px 20px rgba(67, 114, 221, .3);
}

.tlc-fullscreen-app .tlc-video-send-recording svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tlc-fullscreen-app .tlc-video-recording-stage[hidden] {
    display: none !important;
}

/* Sent video notes keep the same circular crop as the recording preview. */
.tlc-fullscreen-app .tlc-video-card.is-video-note {
    position: relative;
    width: min(258px, 62vw);
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tlc-fullscreen-app .tlc-video-note-actions {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 10;
}

.tlc-fullscreen-app .tlc-video-note-actions .tlc-media-download-status {
    display: none;
}

.tlc-fullscreen-app .tlc-video-card.is-video-note .tlc-video-heading {
    display: none;
}

.tlc-fullscreen-app .tlc-video-note-wrap {
    position: relative;
    width: min(258px, 62vw);
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: #090b11;
    box-shadow: 0 8px 23px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-media-video-note-player {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 50%;
    background: #090b11;
}

.tlc-fullscreen-app .tlc-video-note-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 20, 30, .72);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .34);
    cursor: pointer;
    backdrop-filter: blur(7px);
}

.tlc-fullscreen-app .tlc-video-note-toggle svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.tlc-fullscreen-app .tlc-video-note-wrap.is-playing .tlc-video-note-toggle {
    display: none;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-video-card.is-video-note {
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-input-wrapper {
        gap: 3px;
    }

    .tlc-fullscreen-app .tlc-record-mode-toggle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .tlc-fullscreen-app .tlc-video-recording-circle {
        width: min(74vw, 310px);
    }

    .tlc-fullscreen-app .tlc-video-recording-actions {
        gap: 8px;
    }

    .tlc-fullscreen-app .tlc-video-cancel-recording,
    .tlc-fullscreen-app .tlc-video-send-recording {
        padding: 0 12px;
        font-size: 10px;
    }

    .tlc-fullscreen-app .tlc-video-card.is-video-note {
        width: min(244px, 70vw);
    }

    .tlc-fullscreen-app .tlc-video-note-wrap {
        width: min(244px, 70vw);
    }
}

/* Recent search, carousel and group controls. */
.tlc-fullscreen-app .tlc-search-bar {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tlc-fullscreen-app .tlc-search-bar:focus-within {
    transform: translateY(-1px);
    border-color: rgba(112, 98, 233, .58);
    box-shadow: 0 7px 22px rgba(83, 74, 166, .14);
}

.tlc-fullscreen-app .tlc-search-input {
    transition: color .18s ease, background .18s ease;
}

.tlc-fullscreen-app .tlc-person-card {
    animation: tlc-person-enter .24s ease both;
}

.tlc-fullscreen-app .tlc-person-card:nth-child(2) { animation-delay: .025s; }
.tlc-fullscreen-app .tlc-person-card:nth-child(3) { animation-delay: .05s; }
.tlc-fullscreen-app .tlc-person-card:nth-child(4) { animation-delay: .075s; }
.tlc-fullscreen-app .tlc-person-card:nth-child(5) { animation-delay: .1s; }

@keyframes tlc-person-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.tlc-fullscreen-app .tlc-search-loading::before {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-inline-end: 7px;
    border: 2px solid rgba(112, 98, 233, .25);
    border-top-color: #7062e9;
    border-radius: 50%;
    animation: tlc-search-spin .7s linear infinite;
    content: "";
    vertical-align: -1px;
}

@keyframes tlc-search-spin {
    to { transform: rotate(360deg); }
}

.tlc-fullscreen-app .tlc-profile-photo-previews {
    display: flex;
    max-width: 100%;
    justify-content: center;
    gap: 7px;
}

.tlc-fullscreen-app .tlc-profile-photo-previews img {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(112, 98, 233, .24);
    border-radius: 11px;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tlc-fullscreen-app .tlc-profile-gallery {
    position: relative;
    width: 100%;
    margin-top: 16px;
}

.tlc-fullscreen-app .tlc-profile-gallery[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-gallery-viewport {
    width: 100%;
    height: 184px;
    overflow: hidden;
    border-radius: 15px;
    background: #11131d;
    touch-action: pan-y;
}

.tlc-fullscreen-app .tlc-profile-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    direction: ltr;
    transition: transform .28s ease;
    touch-action: pan-y;
    cursor: grab;
}

.tlc-fullscreen-app .tlc-profile-gallery-track:active {
    cursor: grabbing;
}

.tlc-fullscreen-app .tlc-profile-gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.tlc-fullscreen-app .tlc-profile-gallery-prev,
.tlc-fullscreen-app .tlc-profile-gallery-next {
    position: absolute;
    top: 75px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 15, 25, .62);
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-profile-gallery-prev { left: 8px; }
.tlc-fullscreen-app .tlc-profile-gallery-next { right: 8px; }

.tlc-fullscreen-app .tlc-profile-gallery-prev:disabled,
.tlc-fullscreen-app .tlc-profile-gallery-next:disabled {
    opacity: .38;
}

.tlc-fullscreen-app .tlc-profile-gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
}

.tlc-fullscreen-app .tlc-profile-gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #62677a;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-profile-gallery-dot.is-active {
    width: 19px;
    border-radius: 8px;
    background: #9a8cff;
}

.tlc-fullscreen-app .tlc-space-avatar-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-space-avatar-field.is-readonly {
    opacity: .55;
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-space-avatar-preview {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #282c40;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-space-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.tlc-fullscreen-app .tlc-invite-setting {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0;
    color: var(--tlc-ink);
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-invite-setting input {
    width: 18px;
    height: 18px;
    accent-color: #7062e9;
}

.tlc-fullscreen-app .tlc-add-friend-row {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.tlc-fullscreen-app .tlc-add-friend-select {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--tlc-line);
    border-radius: 10px;
    color: var(--tlc-ink);
    background: #202436;
    font: inherit;
}

.tlc-fullscreen-app .tlc-audio-card {
    direction: ltr;
}

.tlc-fullscreen-app .tlc-audio-heading,
.tlc-fullscreen-app .tlc-audio-details {
    direction: rtl;
}

.tlc-fullscreen-app .tlc-audio-heading .tlc-media-toolbar {
    direction: ltr;
}

.tlc-fullscreen-app .tlc-login-inline {
    max-width: 100%;
    margin: 12px 4px 18px;
    overflow: hidden;
    border-radius: 16px;
}

.tlc-fullscreen-app .tlc-login-inline .nagzar-auth-form-container,
.tlc-fullscreen-app .tlc-login-inline .nagzar-auth-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-person-card,
    .tlc-fullscreen-app .tlc-search-loading::before,
    .tlc-fullscreen-app .tlc-profile-gallery-track {
        animation: none !important;
        transition: none !important;
    }
}

.tlc-fullscreen-app .tlc-selection-toolbar[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-selection-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 8px clamp(12px, 3vw, 44px) 0;
    padding: 9px 12px;
    border: 1px solid #e3e1f2;
    border-radius: 14px;
    color: #37384e;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 14px rgba(30, 26, 66, .09);
}

.tlc-fullscreen-app .tlc-selection-count {
    flex: 1 1 auto;
    color: #686b80;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-selection-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid #e1e1ec;
    border-radius: 9px;
    color: #53566d;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-selection-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-selection-action.is-primary {
    border-color: #7567d6;
    color: #fff;
    background: #7567d6;
}

.tlc-fullscreen-app .tlc-selection-action.is-danger {
    color: #a23248;
}

.tlc-fullscreen-app .tlc-selection-action:hover {
    filter: brightness(.97);
}

.tlc-fullscreen-app .tlc-message.is-selected .tlc-bubble {
    outline: 2px solid #8273e9;
    outline-offset: 4px;
    border-radius: 12px;
}

.tlc-fullscreen-app .tlc-message.is-selected .tlc-bubble.is-media-message {
    outline-offset: 6px;
    border-radius: 8px;
}

.tlc-fullscreen-app .tlc-message-mark {
    color: #5d54bd !important;
}

.tlc-fullscreen-app .tlc-media-menu-item.tlc-media-delete {
    color: #aa3349;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-selection-toolbar {
    border-color: #3b3d55;
    color: #e7e8f4;
    background: rgba(30, 32, 47, .97);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-selection-count {
    color: #b6b8cb;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-selection-action {
    border-color: #44475f;
    color: #e0e1ed;
    background: #292c40;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-selection-action.is-primary {
    border-color: #7468d4;
    color: #fff;
    background: #6559c8;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-selection-action.is-danger,
.tlc-fullscreen-app[data-theme="dark"] .tlc-media-menu-item.tlc-media-delete {
    color: #ff9aa9;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-mark {
    color: #c0b6ff !important;
}

.tlc-fullscreen-app .tlc-navigation-loader {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(12, 14, 24, .24);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: tlc-navigation-fade-in .16s ease-out both;
}

.tlc-fullscreen-app .tlc-navigation-loader-card {
    display: grid;
    justify-items: center;
    gap: 11px;
    width: min(250px, 100%);
    padding: 24px 27px 20px;
    border: 1px solid rgba(112, 98, 233, .17);
    border-radius: 23px;
    color: #25283d;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 55px rgba(31, 35, 71, .16);
    text-align: center;
}

.tlc-fullscreen-app .tlc-navigation-loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(112, 98, 233, .16);
    border-top-color: #7969e8;
    border-left-color: #48b9df;
    border-radius: 50%;
    animation: tlc-navigation-spin .78s linear infinite;
}

.tlc-fullscreen-app .tlc-navigation-loader-title {
    font-size: 13px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-navigation-loader-hint {
    color: #85899f;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-navigation-loader-track {
    position: relative;
    width: 100%;
    height: 3px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(112, 98, 233, .1);
}

.tlc-fullscreen-app .tlc-navigation-loader-track > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #48b9df, #8a72ec, #c174dd);
    animation: tlc-navigation-progress 1.15s ease-in-out infinite;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-navigation-loader {
    background: rgba(3, 5, 12, .4);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-navigation-loader-card {
    border-color: rgba(185, 170, 255, .16);
    color: #f1efff;
    background: rgba(29, 30, 45, .96);
    box-shadow: 0 20px 64px rgba(0, 0, 0, .35);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-navigation-loader-hint {
    color: #a3a5b8;
}

@keyframes tlc-navigation-spin {
    to { transform: rotate(360deg); }
}

@keyframes tlc-navigation-progress {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(170%); }
    100% { transform: translateX(320%); }
}

@keyframes tlc-navigation-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-navigation-loader,
    .tlc-fullscreen-app .tlc-navigation-loader-spinner,
    .tlc-fullscreen-app .tlc-navigation-loader-track > span {
        animation: none;
    }
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-selection-toolbar {
        gap: 5px;
        margin-right: 9px;
        margin-left: 9px;
        padding: 7px;
    }

    .tlc-fullscreen-app .tlc-selection-count {
        font-size: 9px;
    }

    .tlc-fullscreen-app .tlc-selection-action {
        min-height: 31px;
        padding: 5px 7px;
        font-size: 9px;
    }
}

/* Shared media on a user's profile */
.tlc-fullscreen-app .tlc-profile-dialog {
    display: flex;
    flex-direction: column;
    width: min(790px, 100%);
    max-height: min(92vh, 920px);
    max-height: min(92dvh, 920px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 144, 255, .48) transparent;
    animation: tlc-profile-enter .22s ease-out both;
}

.tlc-fullscreen-app .tlc-profile-cover {
    flex: 0 0 auto;
    height: 126px;
    background:
        radial-gradient(circle at 18% 25%, rgba(255,255,255,.28), transparent 23%),
        radial-gradient(circle at 78% 15%, rgba(94, 220, 255, .3), transparent 26%),
        linear-gradient(125deg, #3d367d 0%, #327ba0 48%, #282d48 100%);
}

.tlc-fullscreen-app .tlc-profile-card-content {
    flex: 1 0 auto;
    align-items: center;
    padding: 0 clamp(14px, 4vw, 30px) 26px;
}

.tlc-fullscreen-app .tlc-public-avatar {
    width: 92px;
    height: 92px;
    margin-top: -46px;
}

.tlc-fullscreen-app .tlc-profile-gallery {
    max-width: 560px;
}

.tlc-fullscreen-app .tlc-profile-media {
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(160, 169, 199, .15);
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-media[hidden],
.tlc-fullscreen-app .tlc-profile-media-viewer[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-media-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.tlc-fullscreen-app .tlc-profile-media-heading h3 {
    margin: 0;
    color: #f2f3fb;
    font-size: 16px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-profile-media-heading p {
    margin: 5px 0 0;
    color: #9da5bc;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-profile-media-total {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid rgba(165, 151, 255, .18);
    border-radius: 20px;
    color: #c9c0ff;
    background: rgba(127, 105, 232, .1);
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-profile-media-tabs {
    display: flex;
    gap: 6px;
    margin: 0 -2px 12px;
    padding: 3px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tlc-fullscreen-app .tlc-profile-media-tabs::-webkit-scrollbar {
    display: none;
}

.tlc-fullscreen-app .tlc-profile-media-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(155, 165, 192, .14);
    border-radius: 12px;
    color: #aeb5c9;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.tlc-fullscreen-app .tlc-profile-media-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(164, 149, 255, .38);
    color: #e5e0ff;
}

.tlc-fullscreen-app .tlc-profile-media-tab.is-active {
    border-color: rgba(169, 153, 255, .55);
    color: #fff;
    background: linear-gradient(125deg, rgba(126, 105, 231, .35), rgba(50, 150, 193, .22));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 5px 18px rgba(75, 69, 156, .12);
}

.tlc-fullscreen-app .tlc-profile-media-tab-count {
    display: inline-grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding: 0 4px;
    border-radius: 7px;
    color: #c9c2ff;
    background: rgba(167, 152, 255, .14);
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-profile-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-height: 18px;
}

.tlc-fullscreen-app .tlc-profile-media-tile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(155, 165, 192, .13);
    border-radius: 15px;
    color: #edf0fa;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    text-align: right;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tlc-fullscreen-app .tlc-profile-media-tile:hover,
.tlc-fullscreen-app .tlc-profile-media-tile:focus-visible {
    transform: translateY(-3px);
    outline: none;
    border-color: rgba(167, 151, 255, .56);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.tlc-fullscreen-app .tlc-profile-media-thumb {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1 / .78;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #28243f, #1c3448);
}

.tlc-fullscreen-app .tlc-profile-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.tlc-fullscreen-app .tlc-profile-media-tile:hover .tlc-profile-media-thumb img {
    transform: scale(1.045);
}

.tlc-fullscreen-app .tlc-profile-media-thumb.is-video,
.tlc-fullscreen-app .tlc-profile-media-thumb.is-video_note {
    background: radial-gradient(circle at 25% 20%, #4a79a1, transparent 55%), linear-gradient(145deg, #27364d, #292343);
}

.tlc-fullscreen-app .tlc-profile-media-thumb.is-voice,
.tlc-fullscreen-app .tlc-profile-media-thumb.is-music {
    background: radial-gradient(circle at 75% 20%, #c17dde, transparent 48%), linear-gradient(145deg, #564895, #284c69);
}

.tlc-fullscreen-app .tlc-profile-media-thumb.is-file {
    background: linear-gradient(145deg, #365e71, #292b48);
}

.tlc-fullscreen-app .tlc-profile-media-thumb-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: rgba(7, 11, 22, .28);
    box-shadow: 0 5px 20px rgba(0,0,0,.17);
    font-size: 23px;
}

.tlc-fullscreen-app .tlc-profile-media-kind {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    color: #fff;
    background: rgba(9, 12, 22, .68);
    backdrop-filter: blur(8px);
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-profile-media-meta {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 9px 10px 10px;
}

.tlc-fullscreen-app .tlc-profile-media-meta strong,
.tlc-fullscreen-app .tlc-profile-media-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-profile-media-meta strong {
    color: #eef0fa;
    font-size: 10px;
    font-weight: 650;
}

.tlc-fullscreen-app .tlc-profile-media-meta small {
    color: #929bb2;
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-profile-media-status {
    min-height: 16px;
    margin-top: 13px;
    color: #9ca5bc;
    font-size: 10px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-profile-media-status.is-loading::before {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-inline-end: 7px;
    border: 2px solid rgba(169, 153, 255, .24);
    border-top-color: #aa9aff;
    border-radius: 50%;
    animation: tlc-profile-spin .7s linear infinite;
    content: "";
    vertical-align: -3px;
}

.tlc-fullscreen-app .tlc-profile-media-more,
.tlc-fullscreen-app .tlc-profile-media-retry {
    display: block;
    min-height: 39px;
    margin: 8px auto 0;
    padding: 0 18px;
    border: 1px solid rgba(161, 146, 255, .36);
    border-radius: 12px;
    color: #ded8ff;
    background: rgba(122, 102, 220, .13);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    transition: background .18s ease, transform .18s ease;
}

.tlc-fullscreen-app .tlc-profile-media-more:hover,
.tlc-fullscreen-app .tlc-profile-media-retry:hover {
    transform: translateY(-1px);
    background: rgba(122, 102, 220, .24);
}

.tlc-fullscreen-app .tlc-profile-media-more[hidden],
.tlc-fullscreen-app .tlc-profile-media-retry[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-media-viewer {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 40px);
    background: rgba(4, 6, 14, .94);
    backdrop-filter: blur(12px);
    animation: tlc-profile-enter .18s ease-out both;
}

.tlc-fullscreen-app .tlc-profile-media-viewer-close {
    position: absolute;
    top: max(15px, env(safe-area-inset-top));
    right: max(15px, env(safe-area-inset-right));
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.09);
    cursor: pointer;
    font-size: 26px;
}

.tlc-fullscreen-app .tlc-profile-media-viewer-content {
    display: grid;
    width: min(680px, 100%);
    max-height: 84dvh;
    place-items: center;
    overflow: auto;
}

.tlc-fullscreen-app .tlc-profile-media-viewer-content .tlc-media-content {
    width: min(100%, 600px);
    max-width: 100%;
    margin: 0;
    color: #f0f2fa;
}

.tlc-fullscreen-app .tlc-profile-media-viewer-content .tlc-video-card,
.tlc-fullscreen-app .tlc-profile-media-viewer-content .tlc-audio-card,
.tlc-fullscreen-app .tlc-profile-media-viewer-content .tlc-media-card {
    width: 100%;
    max-width: min(90vw, 600px);
}

.tlc-fullscreen-app .tlc-profile-media-viewer-content video {
    max-width: min(90vw, 600px);
    max-height: 75dvh;
}

.tlc-fullscreen-app .tlc-profile-media-viewer-content .tlc-audio-card {
    min-width: min(88vw, 340px);
}

@keyframes tlc-profile-enter {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tlc-profile-spin {
    to { transform: rotate(360deg); }
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media {
    border-top-color: rgba(80, 94, 123, .16);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-heading h3 {
    color: #202a3e;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-heading p,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-status {
    color: #68758c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-total {
    color: #5e4fb0;
    border-color: rgba(112, 98, 233, .2);
    background: rgba(112, 98, 233, .08);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-tab {
    border-color: #d9dfeb;
    color: #5a667c;
    background: #f6f8fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-tab.is-active {
    border-color: #9b8be8;
    color: #44368d;
    background: linear-gradient(125deg, #eeebff, #e8f6fb);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-tab-count {
    color: #5849a9;
    background: rgba(112, 98, 233, .11);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-tile {
    border-color: #e0e5ee;
    color: #202a3e;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-meta strong {
    color: #26334a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-meta small {
    color: #758198;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-more,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-media-retry {
    color: #55479e;
    background: #f1efff;
}

@media (max-width: 620px) {
    .tlc-fullscreen-app .tlc-profile-modal {
        place-items: stretch;
        padding: 0;
    }

    .tlc-fullscreen-app .tlc-profile-dialog {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .tlc-fullscreen-app .tlc-profile-cover {
        height: 98px;
    }

    .tlc-fullscreen-app .tlc-profile-card-content {
        padding: 0 13px max(22px, env(safe-area-inset-bottom));
    }

    .tlc-fullscreen-app .tlc-public-avatar {
        width: 82px;
        height: 82px;
        margin-top: -41px;
        border-width: 4px;
    }

    .tlc-fullscreen-app .tlc-public-name {
        margin-top: 8px;
        font-size: 18px;
    }

    .tlc-fullscreen-app .tlc-public-bio {
        margin-top: 12px;
        padding: 10px 12px;
    }

    .tlc-fullscreen-app .tlc-profile-gallery {
        margin-top: 12px;
    }

    .tlc-fullscreen-app .tlc-profile-gallery-viewport {
        height: clamp(150px, 38vw, 230px);
    }

    .tlc-fullscreen-app .tlc-profile-media {
        margin-top: 19px;
        padding-top: 16px;
    }

    .tlc-fullscreen-app .tlc-profile-media-heading h3 {
        font-size: 15px;
    }

    .tlc-fullscreen-app .tlc-profile-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .tlc-fullscreen-app .tlc-profile-media-tile {
        border-radius: 12px;
    }

    .tlc-fullscreen-app .tlc-profile-media-meta {
        gap: 4px;
        padding: 7px 7px 8px;
    }

    .tlc-fullscreen-app .tlc-profile-media-meta strong {
        font-size: 9px;
    }

    .tlc-fullscreen-app .tlc-profile-media-meta small {
        font-size: 8px;
    }

    .tlc-fullscreen-app .tlc-profile-media-thumb-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .tlc-fullscreen-app .tlc-profile-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-profile-dialog,
    .tlc-fullscreen-app .tlc-profile-media-viewer,
    .tlc-fullscreen-app .tlc-profile-media-status.is-loading::before {
        animation: none !important;
    }
}

/* Full-screen private user profiles */
.tlc-fullscreen-app .tlc-profile-modal.is-user-profile {
    display: block;
    padding: 0;
    background: #101522;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-backdrop {
    display: none;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-dialog {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #101522;
    box-shadow: none;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    left: auto;
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(10, 13, 22, .62);
    backdrop-filter: blur(12px);
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-cover {
    display: none;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    margin: 0;
    padding: 0 34px max(42px, env(safe-area-inset-bottom));
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-public-avatar {
    display: none;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-public-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 22px;
    font-size: clamp(23px, 3vw, 31px);
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-public-username {
    width: 100%;
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-public-bio {
    width: min(100%, 720px);
    margin: 16px auto 0;
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery {
    order: -1;
    width: calc(100% + 68px);
    max-width: none;
    margin: 0 -34px;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-public-bio[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-viewport {
    height: clamp(280px, 48vh, 560px);
    border: 0;
    border-radius: 0;
    background: #090c14;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-track img {
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-prev,
.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-next {
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-message,
.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-report {
    width: min(100%, 460px);
    align-self: flex-start;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-media {
    width: 100%;
    margin: 30px 0 0;
    padding-top: 24px;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile:not(.has-profile-photo) .tlc-profile-card-content {
    padding-top: max(72px, calc(env(safe-area-inset-top) + 58px));
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-controls {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    z-index: 4;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0 0 5px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 15, 25, .64);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font: 700 28px/1 sans-serif;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-menu {
    position: absolute;
    top: 52px;
    left: 0;
    min-width: 188px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(24, 27, 39, .96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-menu[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-save {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #f6f5ff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-save:hover {
    background: rgba(147, 132, 245, .2);
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-save svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-user-profile,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-user-profile .tlc-profile-dialog {
    color: #242743;
    background: #f6f7fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-user-profile .tlc-profile-gallery-menu {
    border-color: rgba(54, 61, 86, .12);
    background: rgba(255, 255, 255, .97);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-user-profile .tlc-profile-gallery-save {
    color: #242743;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-card-content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery {
        width: calc(100% + 40px);
        margin-right: -20px;
        margin-left: -20px;
    }

    .tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-gallery-viewport {
        height: clamp(280px, 46vh, 500px);
    }
}

/* Full-screen group and channel profiles */
.tlc-fullscreen-app .tlc-profile-modal.is-space-profile {
    display: block;
    padding: 0;
    background: #111521;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-backdrop {
    display: none;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-dialog {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #111521;
    box-shadow: none;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    left: auto;
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(10, 13, 22, .62);
    backdrop-filter: blur(12px);
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-cover {
    position: relative;
    height: clamp(230px, 34vh, 380px);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 30%, rgba(91, 224, 207, .34), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(167, 139, 250, .34), transparent 30%),
        linear-gradient(125deg, #182e49, #254b67 48%, #433476);
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-cover.has-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 20, .06) 35%, rgba(17, 21, 33, .2) 66%, #111521 100%);
    content: "";
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-card-content {
    width: min(100%, 1080px);
    align-items: stretch;
    margin: 0 auto;
    padding: 0 34px max(42px, env(safe-area-inset-bottom));
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-public-avatar {
    align-self: flex-start;
    margin-top: -54px;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-public-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    font-size: clamp(22px, 3vw, 30px);
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-public-username {
    width: 100%;
    text-align: right;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-public-bio {
    width: 100%;
    max-width: 760px;
    margin-top: 16px;
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-profile-space-count {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 13px;
    padding: 8px 13px;
    border: 1px solid rgba(129, 213, 222, .2);
    border-radius: 30px;
    color: #b4e6e8;
    background: rgba(32, 108, 127, .15);
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-profile-space-count[hidden],
.tlc-fullscreen-app .tlc-profile-space-actions[hidden],
.tlc-fullscreen-app .tlc-space-profile-tabs[hidden],
.tlc-fullscreen-app .tlc-space-members[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-space-actions {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    z-index: 8;
    display: flex;
    margin: 0;
}

.tlc-fullscreen-app .tlc-profile-space-manage {
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(143, 161, 216, .24);
    border-radius: 50%;
    color: #e9e8ff;
    background: rgba(12, 15, 25, .64);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease;
}

.tlc-fullscreen-app .tlc-profile-space-manage svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tlc-fullscreen-app .tlc-profile-space-manage:hover {
    transform: translateY(-1px);
    background: rgba(76, 68, 142, .82);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-space-manage {
    border-color: rgba(40, 50, 80, .16);
    color: #252743;
    background: rgba(255, 255, 255, .8);
}

.tlc-fullscreen-app .tlc-space-profile-tabs {
    display: flex;
    gap: 8px;
    margin-top: 26px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(160, 169, 199, .16);
}

.tlc-fullscreen-app .tlc-space-profile-tab {
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #a8b1c7;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.tlc-fullscreen-app .tlc-space-profile-tab:hover,
.tlc-fullscreen-app .tlc-space-profile-tab.is-active {
    border-color: rgba(151, 140, 236, .24);
    color: #eeeaff;
    background: rgba(116, 100, 218, .18);
}

.tlc-fullscreen-app .tlc-space-profile-tab[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-media,
.tlc-fullscreen-app .tlc-space-members {
    margin-top: 0;
    padding-top: 23px;
    border-top: 0;
}

.tlc-fullscreen-app .tlc-space-members {
    width: 100%;
    text-align: right;
}

.tlc-fullscreen-app .tlc-space-members-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 460px);
    margin: 17px 0;
    color: #b7bed0;
    font-size: 12px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-space-members-search-wrap[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-space-members-search {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(155, 165, 192, .2);
    border-radius: 14px;
    outline: none;
    color: #f2f3fa;
    background: #1a2030;
    font: inherit;
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-space-members-search:focus {
    border-color: #8d84eb;
    box-shadow: 0 0 0 3px rgba(141, 132, 235, .14);
}

.tlc-fullscreen-app .tlc-space-members-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.tlc-fullscreen-app .tlc-space-member-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid rgba(155, 165, 192, .13);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 38, 57, .94), rgba(24, 29, 44, .96));
}

.tlc-fullscreen-app .tlc-space-member-avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(162, 157, 238, .25);
    border-radius: 50%;
    color: #e3e0ff;
    background: linear-gradient(145deg, #6559b7, #287a91);
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-space-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-space-member-identity {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-space-member-identity strong {
    overflow: hidden;
    color: #eef0f8;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-space-member-identity small {
    overflow: hidden;
    color: #9ca6bd;
    direction: rtl;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-space-member-remove {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(245, 118, 143, .26);
    border-radius: 10px;
    color: #ffb1c0;
    background: rgba(145, 37, 67, .17);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-space-member-remove:hover:not(:disabled) {
    background: rgba(165, 42, 73, .3);
}

.tlc-fullscreen-app .tlc-space-member-remove:disabled {
    opacity: .55;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-space-members-status {
    min-height: 20px;
    margin-top: 10px;
    color: #9da5bc;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-space-members-status.is-loading::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border: 2px solid rgba(171, 163, 255, .3);
    border-top-color: #aaa0ff;
    border-radius: 50%;
    animation: tlc-space-spin .8s linear infinite;
    content: "";
    vertical-align: -2px;
}

@keyframes tlc-space-spin {
    to { transform: rotate(360deg); }
}

/* Branded membership confirmation and capacity notices */
.tlc-fullscreen-app .tlc-join-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: grid;
    place-items: center;
    padding: 18px;
}

.tlc-fullscreen-app .tlc-join-confirm-modal[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-join-confirm-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 8, 17, .76);
    backdrop-filter: blur(9px);
}

.tlc-fullscreen-app .tlc-join-confirm-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(440px, 100%);
    padding: 33px 28px 24px;
    border: 1px solid rgba(174, 164, 255, .24);
    border-radius: 25px;
    color: #f1f2fa;
    background:
        radial-gradient(circle at 50% 0, rgba(104, 103, 195, .26), transparent 45%),
        #171c2b;
    box-shadow: 0 28px 100px rgba(0, 0, 0, .52);
    text-align: center;
    animation: tlc-join-pop .22s ease-out both;
}

@keyframes tlc-join-pop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tlc-fullscreen-app .tlc-join-confirm-close {
    position: absolute;
    top: 11px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: #ccd2e2;
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-join-confirm-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(145, 212, 220, .24);
    border-radius: 21px;
    color: #d8faff;
    background: linear-gradient(145deg, rgba(63, 157, 170, .42), rgba(111, 92, 194, .48));
    box-shadow: 0 12px 30px rgba(44, 102, 138, .18);
    font-size: 26px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-join-confirm-eyebrow {
    margin-top: 19px;
    color: #a9a1f5;
    font-size: 11px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-join-confirm-title {
    margin: 8px 0 0;
    color: #fbfbff;
    font-size: 20px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-join-confirm-description {
    margin: 10px 0 0;
    color: #b6bfd1;
    font-size: 13px;
    line-height: 1.9;
}

.tlc-fullscreen-app .tlc-join-confirm-stats {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
}

.tlc-fullscreen-app .tlc-join-confirm-stat {
    padding: 8px 13px;
    border: 1px solid rgba(137, 207, 214, .18);
    border-radius: 30px;
    color: #b5e4e8;
    background: rgba(34, 104, 119, .17);
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-join-confirm-actions {
    display: flex;
    gap: 9px;
    width: 100%;
    margin-top: 22px;
}

.tlc-fullscreen-app .tlc-join-confirm-actions button {
    flex: 1;
    min-height: 44px;
    border: 1px solid rgba(169, 178, 200, .18);
    border-radius: 13px;
    color: #c5cbda;
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-join-confirm-accept {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(110deg, #566bd1, #4b9baf) !important;
    box-shadow: 0 8px 20px rgba(70, 115, 187, .2);
}

.tlc-fullscreen-app .tlc-join-confirm-accept[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-join-confirm-modal.is-notice .tlc-join-confirm-icon {
    color: #ffe2b0;
    border-color: rgba(248, 187, 101, .35);
    background: linear-gradient(145deg, rgba(182, 115, 43, .38), rgba(156, 63, 75, .38));
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-space-profile,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-space-profile .tlc-profile-dialog {
    color: #242743;
    background: #f6f7fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-space-profile .tlc-profile-cover {
    background:
        radial-gradient(circle at 18% 30%, rgba(82, 197, 183, .35), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(147, 124, 238, .32), transparent 30%),
        linear-gradient(125deg, #385d82, #4a83a4 48%, #7162b5);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-space-profile .tlc-profile-cover.has-image::after {
    background: linear-gradient(180deg, rgba(8, 11, 20, .02) 38%, rgba(246, 247, 252, .15) 68%, #f6f7fc 100%);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-space-profile .tlc-public-avatar {
    border-color: #f6f7fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-modal.is-space-profile .tlc-public-name,
.tlc-fullscreen-app[data-theme="light"] .tlc-space-member-identity strong {
    color: #252943;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-space-count {
    color: #28656c;
    background: #e6f5f5;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-profile-tabs {
    border-bottom-color: #e0e3ef;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-profile-tab {
    color: #666c82;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-profile-tab:hover,
.tlc-fullscreen-app[data-theme="light"] .tlc-space-profile-tab.is-active {
    color: #5147a0;
    background: #eeecff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-members-search {
    color: #292d48;
    border-color: #dfe2ed;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-member-row {
    border-color: #e5e7f0;
    background: #fff;
    box-shadow: 0 5px 16px rgba(35, 45, 80, .045);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-member-identity small,
.tlc-fullscreen-app[data-theme="light"] .tlc-space-members-status {
    color: #70768b;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-join-confirm-dialog {
    color: #2b2d48;
    border-color: rgba(103, 100, 183, .19);
    background:
        radial-gradient(circle at 50% 0, rgba(116, 130, 226, .15), transparent 48%),
        #fff;
    box-shadow: 0 28px 90px rgba(26, 35, 72, .22);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-join-confirm-title {
    color: #252943;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-join-confirm-description {
    color: #626982;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-join-confirm-actions button {
    color: #565d73;
    border-color: #e2e5ef;
    background: #f6f7fb;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-card-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-profile-cover {
        height: clamp(220px, 34vh, 330px);
    }

    .tlc-fullscreen-app .tlc-profile-modal.is-space-profile .tlc-public-avatar {
        width: 86px;
        height: 86px;
        margin-top: -44px;
        font-size: 30px;
    }

    .tlc-fullscreen-app .tlc-space-members-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .tlc-fullscreen-app .tlc-join-confirm-dialog {
        padding: 30px 20px 20px;
        border-radius: 22px;
    }
}

.tlc-fullscreen-app .tlc-last-seen-privacy {
    margin-top: 20px;
    padding-bottom: 20px;
}

.tlc-fullscreen-app .tlc-last-seen-privacy-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 7px;
}

.tlc-fullscreen-app .tlc-last-seen-privacy-options {
    display: grid;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-last-seen-privacy-option {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #e6e6ef;
    border-radius: 12px;
    color: #45485d;
    background: #fafafe;
    cursor: pointer;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-last-seen-privacy-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #7062e9;
}

.tlc-fullscreen-app .tlc-last-seen-exception {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
    border: 1px solid #e6e6ef;
    border-radius: 13px;
    background: rgba(112, 98, 233, .04);
}

.tlc-fullscreen-app .tlc-last-seen-friend-label {
    color: #56596e;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-last-seen-friend-select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e6e6ef;
    border-radius: 10px;
    color: #303248;
    background: #fafafe;
    font: inherit;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-last-seen-status {
    margin: 0;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-last-seen-privacy-option,
.tlc-fullscreen-app[data-theme="dark"] .tlc-last-seen-friend-select {
    color: #eceefa;
    border-color: #3a3e53;
    background: #25293a;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-last-seen-exception {
    border-color: #34384c;
    background: rgba(112, 98, 233, .08);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-last-seen-friend-label {
    color: #b7bbce;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-last-seen-privacy-option,
.tlc-fullscreen-app[data-theme="light"] .tlc-last-seen-friend-select {
    color: #28344a;
    border-color: #d1d9e3;
    background: #e9eef4;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-last-seen-exception {
    border-color: #d1d9e3;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-last-seen-friend-label {
    color: #505d71;
}

.tlc-fullscreen-app .tlc-profile-avatar-field {
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    text-align: center;
    cursor: default;
}

.tlc-fullscreen-app .tlc-profile-photo-heading {
    color: #d9d5ff;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-profile-photo-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.tlc-fullscreen-app .tlc-profile-photo-slot {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 9px 5px;
    border: 1px solid rgba(161, 151, 239, .2);
    border-radius: 13px;
    color: #e7e4ff;
    background: rgba(112, 98, 233, .08);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.tlc-fullscreen-app .tlc-profile-photo-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(161, 151, 239, .52);
    background: rgba(112, 98, 233, .15);
}

.tlc-fullscreen-app .tlc-profile-slot-preview,
.tlc-fullscreen-app .tlc-profile-slot-empty {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(161, 151, 239, .25);
    border-radius: 12px;
    color: #bdb5ff;
    background: rgba(13, 17, 31, .65);
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-profile-slot-empty {
    font-size: 25px;
    font-weight: 400;
}

.tlc-fullscreen-app .tlc-profile-photo-slot strong {
    font-size: 11px;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-profile-slot-pick {
    color: #bdb5ff;
    font-size: 9px;
    font-weight: 600;
}

.tlc-fullscreen-app .tlc-profile-photo-slot .tlc-profile-avatar-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: none;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-profile-photo-slot .tlc-profile-avatar-input:focus-visible {
    outline: 2px solid #a99cff;
    outline-offset: 2px;
}

.tlc-fullscreen-app .tlc-space-member-role {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(144, 130, 242, .34);
    border-radius: 10px;
    color: #d2ccff;
    background: rgba(103, 87, 218, .16);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-space-member-role:hover:not(:disabled) {
    background: rgba(103, 87, 218, .3);
}

.tlc-fullscreen-app .tlc-space-member-role:disabled {
    opacity: .55;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-profile-gallery-viewport {
    overscroll-behavior-x: contain;
    -webkit-user-select: none;
    user-select: none;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-photo-heading {
    color: #4f438b;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-photo-slot {
    border-color: #e1dcff;
    color: #393264;
    background: #faf9ff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-slot-preview,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-slot-empty {
    border-color: #ded8ff;
    color: #7163ce;
    background: #efedff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-slot-pick {
    color: #6254bb;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-space-member-role {
    border-color: #d9d2ff;
    color: #5145a0;
    background: #f2f0ff;
}

@media (max-width: 560px) {
    .tlc-fullscreen-app .tlc-profile-photo-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tlc-fullscreen-app .tlc-space-member-row {
        flex-wrap: wrap;
    }
}

/* Channel post cards: keep the channel label on the physical left and group
   views/time with a persistent forward action at the bottom of each card. */
.tlc-fullscreen-app .tlc-sender-name.is-channel-name {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
}

.tlc-fullscreen-app .tlc-message-footer.tlc-channel-post-footer {
    position: static;
    align-self: stretch;
    min-height: 22px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
    direction: ltr;
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-message .tlc-bubble.is-channel-post {
    position: relative;
    overflow: visible;
}

.tlc-fullscreen-app .tlc-message .tlc-bubble.is-channel-media-post .tlc-channel-post-footer {
    position: static;
    align-self: stretch;
    min-height: 22px;
    margin: 8px 0 0;
    padding: 0 0 2px;
    pointer-events: auto;
}

.tlc-fullscreen-app .tlc-channel-post-meta {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.tlc-fullscreen-app .tlc-channel-post-meta .tlc-message-views {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #d5d8e5;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
}

.tlc-fullscreen-app .tlc-channel-post-meta .tlc-message-views img {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-post-meta .tlc-message-views img {
    filter: none;
}

.tlc-fullscreen-app .tlc-channel-post-meta .tlc-message-views span {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.tlc-fullscreen-app .tlc-channel-post-meta .tlc-time {
    flex: 0 0 auto;
    color: #d5d8e5;
    font-size: 12px;
    white-space: nowrap;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-post-meta .tlc-message-views,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-post-meta .tlc-time {
    color: #596579;
}

.tlc-fullscreen-app .tlc-channel-share {
    position: absolute;
    right: -64px;
    bottom: 0;
    z-index: 5;
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(43, 47, 64, .92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
    cursor: pointer;
    pointer-events: auto;
    transition: background .16s ease, transform .16s ease;
}

.tlc-fullscreen-app .tlc-message .tlc-bubble.is-channel-media-post .tlc-channel-post-meta {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.tlc-fullscreen-app .tlc-channel-share:hover,
.tlc-fullscreen-app .tlc-channel-share:focus-visible {
    background: #383e55;
    transform: translateY(-1px);
    outline: none;
}

.tlc-fullscreen-app .tlc-channel-share svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-share {
    color: #fff;
    background: #46536e;
}

/* Channel post comment threads. */
.tlc-fullscreen-app .tlc-sender-name.is-channel-name {
    cursor: default;
}

.tlc-fullscreen-app .tlc-message-comments-row {
    align-self: stretch;
    width: auto;
    margin: 8px -15px -8px;
    border-top: 1px solid rgba(167, 175, 200, .17);
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-message.received .tlc-message-comments-row {
    border-radius: 0 0 5px 19px;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-message-comments-row {
    border-radius: 0 0 19px 5px;
}

.tlc-fullscreen-app .tlc-message-comments {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    color: #9bc7ff;
    background: transparent;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    direction: ltr;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.tlc-fullscreen-app .tlc-message-comments:hover,
.tlc-fullscreen-app .tlc-message-comments:focus-visible {
    color: #c5e1ff;
    background: rgba(255, 255, 255, .045);
    outline: none;
}

.tlc-fullscreen-app .tlc-message-comments svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-message-comments-label {
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.tlc-fullscreen-app .tlc-message-comments-state {
    color: #f1b86c;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-message-comments .tlc-message-comments-chevron {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: #aab1c1;
    stroke-width: 2;
}

.tlc-fullscreen-app .tlc-message-comments.is-closed {
    color: #a7acbb;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments:hover,
.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments:focus-visible {
    color: #355a91;
    background: rgba(45, 84, 137, .055);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments-row {
    border-top-color: #dfe4ec;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments {
    color: #4e79b5;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments.is-closed {
    color: #728095;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments-state {
    color: #a87336;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message-comments .tlc-message-comments-chevron {
    color: #718097;
}

.tlc-fullscreen-app .tlc-channel-comments-default {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 6px 0 0;
    padding: 8px 12px;
    border: 1px solid #44485c;
    border-radius: 11px;
    color: #f0f1fa;
    background: #242738;
    font: inherit;
}

.tlc-fullscreen-app .tlc-manage-content .tlc-channel-comments-default-note {
    margin: 5px 0 14px;
    color: #9da4b7;
    font-size: 12px;
    line-height: 1.7;
}

.tlc-fullscreen-app .tlc-channel-comments-modal[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-channel-comments-composer-slot[hidden],
.tlc-fullscreen-app .tlc-channel-comments-closed[hidden],
.tlc-fullscreen-app .tlc-channel-comments-more[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-channel-comments-modal {
    position: absolute;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    direction: rtl;
}

.tlc-fullscreen-app .tlc-channel-comments-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 9, 17, .68);
}

.tlc-fullscreen-app .tlc-channel-comments-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(580px, 100%);
    max-height: min(740px, 88vh);
    min-height: min(390px, 78vh);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #3d4256;
    border-radius: 20px;
    color: #eff0f8;
    background: #1b1e2b;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .46);
}

.tlc-fullscreen-app .tlc-channel-comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 13px;
    border-bottom: 1px solid rgba(167, 175, 200, .14);
}

.tlc-fullscreen-app .tlc-channel-comments-post {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(44vh, 460px);
    overflow: auto;
    padding: 8px 12px 10px;
    border-bottom: 1px solid rgba(167, 175, 200, .14);
    overscroll-behavior: contain;
}

.tlc-fullscreen-app .tlc-channel-post-preview {
    min-width: 0;
    margin: 0;
    animation: none;
}

.tlc-fullscreen-app .tlc-channel-comments-composer-slot {
    flex: 0 0 auto;
    border-top: 1px solid rgba(167, 175, 200, .14);
}

.tlc-fullscreen-app .tlc-composer-dock.is-comment-composer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
}

.tlc-fullscreen-app .tlc-composer-dock.is-comment-composer .tlc-reply-preview {
    display: none !important;
}

.tlc-fullscreen-app .tlc-channel-comments-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #9da6c0;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-channel-comments-title {
    margin: 0;
    color: #f2f3fa;
    font-size: 19px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-channel-comments-subtitle {
    max-width: min(72vw, 470px);
    margin: 4px 0 0;
    overflow: hidden;
    color: #a4abc0;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-channel-comments-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(176, 184, 208, .2);
    border-radius: 50%;
    color: #dce0ec;
    background: rgba(255, 255, 255, .04);
    font-size: 22px;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-channel-comments-list {
    display: flex;
    min-height: 90px;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
    padding: 16px 20px;
    background-color: #11141d;
    background-image: linear-gradient(rgba(17, 20, 29, .84), rgba(17, 20, 29, .84)), url("../images/chat-doodles.svg");
    background-repeat: repeat;
    background-size: auto, 280px 300px;
    overscroll-behavior: contain;
}

.tlc-fullscreen-app .tlc-channel-comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    direction: rtl;
}

.tlc-fullscreen-app .tlc-channel-comment-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-channel-comment-avatar.is-placeholder {
    display: grid;
    place-items: center;
    color: #dedaff;
    background: #514695;
    font-size: 14px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-channel-comment-content {
    min-width: 0;
    flex: 1 1 auto;
    padding: 9px 12px;
    border: 1px solid rgba(165, 174, 198, .12);
    border-radius: 13px 4px 13px 13px;
    background: rgba(31, 35, 47, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.tlc-fullscreen-app .tlc-channel-comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tlc-fullscreen-app .tlc-channel-comment-author {
    overflow: hidden;
    color: #cfdbff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-channel-comment-time {
    flex: 0 0 auto;
    color: #929aae;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-channel-comment-text {
    margin: 5px 0 0;
    color: #eceef7;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.tlc-fullscreen-app .tlc-channel-comments-status {
    padding: 0 22px 10px;
    color: #a4abc0;
    font-size: 12px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-channel-comments-more {
    align-self: center;
    margin: 0 0 10px;
    padding: 7px 12px;
    border: 1px solid rgba(174, 183, 211, .22);
    border-radius: 9px;
    color: #d6d2ff;
    background: transparent;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-channel-comments-closed {
    margin: 0 18px 12px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 171, 90, .2);
    border-radius: 10px;
    color: #e5bd83;
    background: rgba(226, 171, 90, .08);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-default {
    border-color: #cbd4df;
    color: #1c2639;
    background: #e7ecf2;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-manage-content .tlc-channel-comments-default-note {
    color: #59667a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-dialog {
    border-color: #cbd4df;
    color: #1c2639;
    background: #f1f4f8;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-header,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-post,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-composer-slot {
    border-color: #d9dfe8;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-title {
    color: #1c2639;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-eyebrow,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-subtitle,
.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-status {
    color: #59667a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comment-content {
    border-color: #dfe4ec;
    background: #e7ecf2;
    box-shadow: 0 2px 8px rgba(31, 46, 69, .05);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-list {
    background-color: #e7edf4;
    background-image: linear-gradient(rgba(231, 237, 244, .91), rgba(231, 237, 244, .91)), url("../images/chat-doodles.svg");
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comments-modal {
    background: #e7edf4;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comment-author {
    color: #514695;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comment-time {
    color: #69758a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comment-text {
    color: #27344a;
}

/* Align channel comments like private-chat bubbles: mine on the right, others on the left. */
.tlc-fullscreen-app .tlc-channel-comment {
    width: 100%;
    justify-content: flex-start;
}

.tlc-fullscreen-app .tlc-channel-comment.is-own {
    direction: rtl;
    align-self: flex-start;
}

.tlc-fullscreen-app .tlc-channel-comment.is-other {
    direction: ltr;
    align-self: flex-end;
}

.tlc-fullscreen-app .tlc-channel-comment-content {
    width: fit-content;
    max-width: min(78%, 560px);
    flex: 0 1 auto;
    direction: rtl;
    border-radius: 20px 20px 20px 6px;
}

.tlc-fullscreen-app .tlc-channel-comment-meta {
    direction: rtl;
}

.tlc-fullscreen-app .tlc-channel-comment.is-own .tlc-channel-comment-content {
    border-color: transparent;
    border-radius: 20px 20px 6px 20px;
    color: #fff;
    background: linear-gradient(135deg, #a432d0 0%, #8138d1 55%, #277cdb 100%);
    box-shadow: 0 4px 13px rgba(63, 37, 130, .3);
}

.tlc-fullscreen-app .tlc-channel-comment.is-own .tlc-channel-comment-author,
.tlc-fullscreen-app .tlc-channel-comment.is-own .tlc-channel-comment-time,
.tlc-fullscreen-app .tlc-channel-comment.is-own .tlc-channel-comment-text {
    color: rgba(255, 255, 255, .92);
}

.tlc-fullscreen-app .tlc-channel-comment.is-own .tlc-channel-comment-time {
    color: rgba(255, 255, 255, .72);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-channel-comment.is-other .tlc-channel-comment-content {
    border-color: #34394d;
    background: #252938;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comment.is-own .tlc-channel-comment-content {
    background: linear-gradient(135deg, #514695, #3f5c93);
    box-shadow: 0 4px 12px rgba(52, 59, 103, .18);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-channel-comment.is-other .tlc-channel-comment-content {
    border-color: #cbd4df;
    background: #f7f9fb;
}

@media (max-width: 560px) {
    .tlc-fullscreen-app .tlc-channel-comments-modal {
        inset: 0;
        padding: 0;
        background: #11141d;
    }

    .tlc-fullscreen-app .tlc-channel-comments-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
    }

    .tlc-fullscreen-app .tlc-channel-comments-header {
        padding: calc(12px + env(safe-area-inset-top)) 16px 11px;
    }

    .tlc-fullscreen-app .tlc-channel-comments-list {
        padding: 13px 13px;
    }

    .tlc-fullscreen-app .tlc-channel-comments-post {
        max-height: min(48dvh, 520px);
        padding: 6px 8px 8px;
    }
}

/* Keep media comments within their chat bubble and preserve the same controls
   and playback layout used by private conversations. */
.tlc-fullscreen-app .tlc-channel-comment-content .tlc-media-content {
    width: 100%;
    max-width: min(410px, 100%);
    margin-top: 5px;
}

.tlc-fullscreen-app .tlc-channel-comment-content .tlc-audio-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-channel-comment-content .tlc-audio-heading,
.tlc-fullscreen-app .tlc-channel-comment-content .tlc-audio-details {
    min-width: 0;
}

.tlc-fullscreen-app .tlc-channel-comment-content .tlc-video-card:not(.is-video-note) {
    width: min(430px, 100%);
    box-sizing: border-box;
}

.tlc-fullscreen-app .tlc-channel-comment-content .tlc-media-caption {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app .tlc-channel-comment-delete {
    display: inline-grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    padding: 4px;
    border: 0;
    border-radius: 50%;
    color: currentColor;
    background: transparent;
    opacity: .72;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-channel-comment-delete:hover,
.tlc-fullscreen-app .tlc-channel-comment-delete:focus-visible {
    color: #ff6c80;
    background: rgba(255, 255, 255, .1);
    opacity: 1;
    outline: none;
}

.tlc-fullscreen-app .tlc-channel-comment-delete svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-composer-dock.is-comment-composer .tlc-record-mode-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: visible;
}

.tlc-fullscreen-app .tlc-composer-dock.is-comment-composer .tlc-record-mode-toggle svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-composer-dock.is-comment-composer .tlc-record-mode-toggle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}

.tlc-fullscreen-app .tlc-message-actions-modal[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-message-actions-modal {
    position: absolute;
    inset: 0;
    z-index: 10030;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tlc-fullscreen-app .tlc-message-actions-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 9, 18, .58);
    backdrop-filter: blur(4px);
    cursor: default;
}

.tlc-fullscreen-app .tlc-message-actions-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 370px);
    max-height: min(78vh, 560px);
    max-height: min(78dvh, 560px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e4e6ef;
    border-radius: 20px;
    color: #262a3b;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
    animation: tlc-message-actions-enter .18s ease-out both;
}

.tlc-fullscreen-app .tlc-message-actions-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid #eceef4;
}

.tlc-fullscreen-app .tlc-message-actions-title {
    color: #303347;
    font-size: 14px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-message-actions-close {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    color: #71758a;
    background: #f1f2f7;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-message-actions-close:hover,
.tlc-fullscreen-app .tlc-message-actions-close:focus-visible {
    color: #4f46a5;
    background: #e9e7ff;
    outline: none;
}

.tlc-fullscreen-app .tlc-message-actions-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px 12px 12px;
    overscroll-behavior: contain;
}

.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover {
    position: static;
    z-index: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    max-width: 100%;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #eceef4;
    border-radius: 0;
    color: #383b4d;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action:last-child {
    border-bottom: 0;
}

.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action:hover,
.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action:focus-visible {
    color: #5548b8;
    background: #f5f4ff;
    outline: none;
}

.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-delete,
.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-report {
    color: #ad3e50;
}

.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-delete:hover,
.tlc-fullscreen-app .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-report:hover {
    color: #a22f45;
    background: #fff0f2;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-dialog {
    border-color: #3b4055;
    color: #eff0f7;
    background: #202437;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-header {
    border-bottom-color: #363b50;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-title {
    color: #f1f2fa;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-close {
    color: #c7cada;
    background: #30354a;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-close:hover,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-close:focus-visible {
    color: #fff;
    background: #484367;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action {
    color: #e5e7f0;
    border-bottom-color: #363b50;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action:hover,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-action:focus-visible {
    color: #d8d2ff;
    background: #2c3047;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-delete,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-report {
    color: #ffb8c1;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-delete:hover,
.tlc-fullscreen-app[data-theme="dark"] .tlc-message-actions-list .tlc-message-actions-popover .tlc-message-report:hover {
    color: #ffd8dd;
    background: #472d38;
}

@keyframes tlc-message-actions-enter {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-message-actions-dialog {
        animation: none;
    }
}

.tlc-fullscreen-app .tlc-inline-edit-composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-inline-edit-textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 86px;
    max-height: 220px;
    padding: 10px 12px;
    border: 1px solid rgba(125, 132, 158, .38);
    border-radius: 13px;
    outline: 0;
    color: #303449;
    background: #f8f9fc;
    font: inherit;
    font-size: inherit;
    line-height: 1.75;
    resize: vertical;
}

.tlc-fullscreen-app .tlc-inline-edit-textarea:focus {
    border-color: #8b7ef0;
    box-shadow: 0 0 0 3px rgba(130, 117, 216, .16);
}

.tlc-fullscreen-app .tlc-message.sent .tlc-inline-edit-textarea {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    background: rgba(18, 15, 60, .2);
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-message.received .tlc-inline-edit-textarea {
    color: #f1f2f8;
    border-color: #454b61;
    background: #1c2030;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-message.received .tlc-inline-edit-textarea {
    color: #303449;
    border-color: #d8dce7;
    background: #fff;
}

.tlc-fullscreen-app .tlc-inline-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-inline-edit-send {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #239bd3;
    box-shadow: 0 4px 12px rgba(35, 155, 211, .25);
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.tlc-fullscreen-app .tlc-inline-edit-send:hover:not(:disabled) {
    transform: translateY(-1px);
}

.tlc-fullscreen-app .tlc-inline-edit-send:disabled {
    opacity: .6;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-inline-edit-send svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.tlc-fullscreen-app .tlc-inline-edit-cancel {
    min-height: 38px;
    padding: 6px 13px;
    border: 1px solid rgba(137, 143, 166, .35);
    border-radius: 11px;
    color: inherit;
    background: rgba(130, 135, 155, .1);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-inline-edit-cancel:hover:not(:disabled) {
    background: rgba(130, 135, 155, .2);
}

.tlc-fullscreen-app .tlc-inline-edit-cancel:disabled {
    opacity: .55;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-dialog {
    width: min(440px, 100%);
    max-height: min(82vh, 650px);
    max-height: min(82dvh, 650px);
    padding: 27px 22px 22px;
    border-radius: 25px;
    animation: tlc-message-actions-enter .18s ease-out both;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-dialog h2 {
    margin-bottom: 12px;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-content {
    gap: 11px;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-report-target {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(143, 150, 175, .2);
    border-radius: 12px;
    background: rgba(130, 136, 160, .1);
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-report-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-note {
    margin: 0 0 2px;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-report-label {
    margin-top: 2px;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-report-reason {
    min-height: 142px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.8;
    resize: vertical;
}

.tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-buttons {
    margin-top: 5px;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-dialog {
    border-color: #e3e5ee;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-modal.is-reporting-message .tlc-report-target {
    color: #303449;
    border-color: #e5e7ef;
    background: #f5f6fa;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-user-actions-modal.is-reporting-message .tlc-report-reason {
    color: #303449;
    border-color: #dfe2eb;
    background: #fbfcfe;
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-user-actions-modal.is-reporting-message .tlc-user-actions-dialog {
        animation: none;
    }
}

/* Channel polls and their manager-only creation dialog. */
.tlc-fullscreen-app .tlc-poll-create-button {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #aeb4c8;
    background: transparent;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.tlc-fullscreen-app .tlc-poll-create-button:hover:not(:disabled) {
    color: #62c6f4;
    background: rgba(111, 123, 164, .17);
}

.tlc-fullscreen-app .tlc-poll-create-button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.tlc-fullscreen-app .tlc-poll-create-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tlc-fullscreen-app .tlc-poll-card {
    width: min(100%, 420px);
    min-width: min(260px, 100%);
    padding: 15px;
    border: 1px solid rgba(139, 153, 190, .2);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(82, 93, 138, .15), rgba(25, 32, 51, .25));
}

.tlc-fullscreen-app .tlc-poll-description {
    margin: 0 0 13px;
    color: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.8;
    text-align: right;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app .tlc-poll-results {
    display: grid;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-poll-option {
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 9px 10px 8px;
    border: 1px solid rgba(143, 158, 194, .24);
    border-radius: 12px;
    color: inherit;
    background: rgba(16, 23, 39, .27);
    text-align: right;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.tlc-fullscreen-app .tlc-poll-option:hover:not(:disabled),
.tlc-fullscreen-app .tlc-poll-option.is-selected {
    border-color: #6d9cf4;
    background: rgba(78, 115, 197, .15);
}

.tlc-fullscreen-app .tlc-poll-option:active:not(:disabled) {
    transform: scale(.99);
}

.tlc-fullscreen-app .tlc-poll-option:disabled {
    cursor: wait;
}

.tlc-fullscreen-app .tlc-poll-option-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    direction: ltr;
}

.tlc-fullscreen-app .tlc-poll-option-label {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.65;
    text-align: right;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app .tlc-poll-option-percent {
    flex: 0 0 auto;
    color: #aebdff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.65;
    text-align: left;
}

.tlc-fullscreen-app .tlc-poll-option-track {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 161, 195, .17);
    direction: rtl;
}

.tlc-fullscreen-app .tlc-poll-option-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60c3ed, #9186ff);
    transition: width .35s ease;
}

.tlc-fullscreen-app .tlc-poll-option-votes {
    color: #9ca6bd;
    font-size: 10px;
    line-height: 1.4;
}

.tlc-fullscreen-app .tlc-poll-total-votes {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    color: #a7b1c8;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-poll-total-votes > span:first-child {
    color: #7ca6f5;
    font-size: 14px;
}

.tlc-fullscreen-app .tlc-poll-modal[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-poll-modal {
    position: absolute;
    z-index: 10060;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    direction: rtl;
}

.tlc-fullscreen-app .tlc-poll-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 9, 17, .7);
    backdrop-filter: blur(5px);
}

.tlc-fullscreen-app .tlc-poll-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(540px, 100%);
    max-height: min(760px, 90dvh);
    flex-direction: column;
    overflow: auto;
    border: 1px solid #3c4258;
    border-radius: 21px;
    color: #eef1fa;
    background: linear-gradient(155deg, #23263a, #171a27 78%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    -webkit-overflow-scrolling: touch;
}

.tlc-fullscreen-app .tlc-poll-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 21px 13px;
    border-bottom: 1px solid rgba(167, 175, 200, .14);
}

.tlc-fullscreen-app .tlc-poll-dialog-eyebrow {
    color: #a99eff;
    font-size: 11px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-poll-dialog-header h2 {
    margin: 4px 0 0;
    color: #f5f6fc;
    font-size: 19px;
}

.tlc-fullscreen-app .tlc-poll-close,
.tlc-fullscreen-app .tlc-poll-remove-option {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: #c5c9d8;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: 22px;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-poll-form {
    display: grid;
    gap: 10px;
    padding: 17px 21px 21px;
}

.tlc-fullscreen-app .tlc-poll-field-label,
.tlc-fullscreen-app .tlc-poll-options-heading {
    color: #e7eaf5;
    font-size: 12px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-poll-description-input,
.tlc-fullscreen-app .tlc-poll-option-field textarea {
    width: 100%;
    min-height: 44px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid #3c435b;
    border-radius: 12px;
    outline: 0;
    color: #f0f2fa;
    background: #202437;
    font: inherit;
    font-size: 13px;
    line-height: 1.7;
}

.tlc-fullscreen-app .tlc-poll-description-input:focus,
.tlc-fullscreen-app .tlc-poll-option-field textarea:focus {
    border-color: #8d80ff;
    box-shadow: 0 0 0 3px rgba(141, 128, 255, .14);
}

.tlc-fullscreen-app .tlc-poll-options-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.tlc-fullscreen-app .tlc-poll-option-count {
    color: #9aa4bd;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-poll-option-fields {
    display: grid;
    gap: 8px;
    max-height: min(330px, 38dvh);
    overflow: auto;
    padding: 1px 1px 3px;
}

.tlc-fullscreen-app .tlc-poll-option-field {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tlc-fullscreen-app .tlc-poll-option-field textarea {
    min-height: 42px;
}

.tlc-fullscreen-app .tlc-poll-remove-option {
    border-radius: 11px;
    color: #eaa3b0;
    background: rgba(234, 91, 119, .08);
}

.tlc-fullscreen-app .tlc-poll-add-option {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 37px;
    padding: 7px 12px;
    border: 1px solid rgba(122, 150, 222, .32);
    border-radius: 11px;
    color: #b8c8ff;
    background: rgba(86, 112, 185, .12);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-poll-add-option:disabled,
.tlc-fullscreen-app .tlc-poll-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.tlc-fullscreen-app .tlc-poll-form-error {
    min-height: 0;
    margin: 0;
    color: #ff9dac;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-poll-form-error:empty {
    display: none;
}

.tlc-fullscreen-app .tlc-poll-form-actions {
    display: flex;
    gap: 9px;
    margin-top: 4px;
}

.tlc-fullscreen-app .tlc-poll-cancel,
.tlc-fullscreen-app .tlc-poll-submit {
    min-height: 43px;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-poll-cancel {
    color: #c5c9d8;
    background: rgba(255, 255, 255, .07);
}

.tlc-fullscreen-app .tlc-poll-submit {
    flex: 1;
    color: #fff;
    background: linear-gradient(105deg, #7165ee, #594bd2);
    box-shadow: 0 7px 18px rgba(93, 77, 222, .24);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-card {
    border-color: #e1e5ef;
    background: linear-gradient(145deg, #f7f8ff, #fff);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-option {
    border-color: #e0e5ef;
    color: #30374b;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-option:hover:not(:disabled),
.tlc-fullscreen-app[data-theme="light"] .tlc-poll-option.is-selected {
    border-color: #7d91e5;
    background: #f1f3ff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-option-percent {
    color: #586ec8;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-option-votes,
.tlc-fullscreen-app[data-theme="light"] .tlc-poll-total-votes {
    color: #69758c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-dialog {
    border-color: #e0e3ed;
    color: #303449;
    background: linear-gradient(155deg, #fff, #f6f7fc);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-dialog-header h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-poll-field-label,
.tlc-fullscreen-app[data-theme="light"] .tlc-poll-options-heading {
    color: #303449;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-poll-description-input,
.tlc-fullscreen-app[data-theme="light"] .tlc-poll-option-field textarea {
    border-color: #dfe3ed;
    color: #303449;
    background: #fbfcff;
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-poll-create-button {
        flex-basis: 34px;
        width: 34px;
        height: 38px;
    }

    .tlc-fullscreen-app .tlc-poll-card {
        min-width: 0;
        padding: 12px;
    }

    .tlc-fullscreen-app .tlc-poll-dialog {
        max-height: min(88dvh, 760px);
        border-radius: 18px;
    }

    .tlc-fullscreen-app .tlc-poll-form {
        padding: 15px 16px 17px;
    }

    .tlc-fullscreen-app .tlc-poll-dialog-header {
        padding: 17px 16px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app .tlc-poll-option,
    .tlc-fullscreen-app .tlc-poll-option-fill,
    .tlc-fullscreen-app .tlc-poll-create-button {
        transition: none;
    }
}

.tlc-fullscreen-app .tlc-profile-suspend {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 1px solid rgba(248, 113, 113, .38);
    border-radius: 13px;
    color: #fecaca;
    background: rgba(127, 29, 29, .2);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-profile-suspend.is-suspended {
    border-color: rgba(74, 222, 128, .4);
    color: #bbf7d0;
    background: rgba(21, 128, 61, .22);
}

.tlc-fullscreen-app .tlc-profile-suspend:disabled {
    opacity: .65;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-suspension-notice-actions {
    display: flex;
    margin-top: 10px;
}

.tlc-fullscreen-app .tlc-suspension-unblock {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid rgba(104, 226, 169, .42);
    border-radius: 12px;
    color: #e8fff3;
    background: linear-gradient(135deg, rgba(43, 179, 117, .24), rgba(87, 201, 149, .12));
    box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 5px 14px rgba(13, 74, 51, .13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tlc-fullscreen-app .tlc-suspension-unblock:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 244, 190, .65);
    background: linear-gradient(135deg, rgba(43, 179, 117, .38), rgba(87, 201, 149, .2));
    box-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 7px 18px rgba(13, 74, 51, .2);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-suspension-unblock {
    border-color: rgba(22, 143, 91, .26);
    color: #126b48;
    background: linear-gradient(135deg, rgba(86, 214, 157, .18), rgba(255, 255, 255, .42));
    box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 5px 14px rgba(24, 101, 71, .09);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-suspension-unblock:hover {
    border-color: rgba(22, 143, 91, .42);
    background: linear-gradient(135deg, rgba(86, 214, 157, .3), rgba(255, 255, 255, .58));
}

.tlc-fullscreen-app .tlc-profile-suspend.is-suspended:hover {
    background: rgba(21, 128, 61, .42);
}

.tlc-fullscreen-app .tlc-suspension-unblock.is-complete,
.tlc-fullscreen-app .tlc-suspension-unblock:disabled {
    opacity: .75;
    cursor: default;
}

.tlc-fullscreen-app .tlc-bot-admin-panel button[data-bot-action="space-delete"] {
    border-color: rgba(255, 145, 145, .32);
    color: #ffe9e9;
}

.tlc-fullscreen-app .tlc-bot-admin-panel button[data-bot-action="space-delete"] span {
    color: #ffaaaa;
}

.tlc-fullscreen-app.is-chat-suspended .tlc-settings-button,
.tlc-fullscreen-app.is-chat-suspended .tlc-admin-panel-button,
.tlc-fullscreen-app.is-chat-suspended .tlc-create-group,
.tlc-fullscreen-app.is-chat-suspended .tlc-search-bar,
.tlc-fullscreen-app.is-chat-suspended .tlc-main-nav,
.tlc-fullscreen-app.is-chat-suspended .tlc-composer-dock {
    display: none !important;
}

.tlc-fullscreen-app .tlc-suspended-user-panel[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-suspended-user-panel:not([hidden]) {
    display: grid;
    gap: 9px;
    margin: 12px 16px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 179, 104, .28);
    border-radius: 17px;
    color: #f6f0e8;
    background: linear-gradient(135deg, rgba(128, 74, 35, .2), rgba(63, 53, 56, .34));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 9px 24px rgba(0, 0, 0, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tlc-fullscreen-app .tlc-suspended-user-panel > strong {
    color: #ffd6a9;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-suspended-user-status {
    margin: 0;
    color: #e2d9d1;
    font-size: 12px;
    line-height: 1.9;
}

.tlc-fullscreen-app .tlc-suspended-user-panel [data-suspension-action="appeal"] {
    justify-self: start;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 206, 151, .4);
    border-radius: 12px;
    color: #fff6eb;
    background: linear-gradient(135deg, rgba(219, 132, 64, .28), rgba(227, 166, 103, .12));
    box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 5px 14px rgba(72, 43, 19, .13);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-suspended-user-panel [data-suspension-action="appeal"]:hover {
    border-color: rgba(255, 220, 179, .64);
    background: linear-gradient(135deg, rgba(219, 132, 64, .4), rgba(227, 166, 103, .2));
}

.tlc-fullscreen-app .tlc-suspended-user-panel [data-suspension-action="appeal"]:disabled {
    opacity: .7;
    cursor: wait;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-suspended-user-panel:not([hidden]) {
    border-color: rgba(182, 105, 43, .22);
    color: #402d20;
    background: linear-gradient(135deg, rgba(255, 222, 187, .64), rgba(255, 255, 255, .78));
}

.tlc-fullscreen-app[data-theme="light"] .tlc-suspended-user-panel > strong {
    color: #8a4c20;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-suspended-user-status {
    color: #624c3c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-suspended-user-panel [data-suspension-action="appeal"] {
    border-color: rgba(182, 105, 43, .28);
    color: #75421d;
    background: linear-gradient(135deg, rgba(238, 168, 104, .24), rgba(255, 255, 255, .62));
}

/* Instagram-inspired social discovery, without changing the chat relationships. */
.tlc-fullscreen-app .tlc-explorer-subnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
    padding: 5px;
    border: 1px solid rgba(131, 124, 173, .14);
    border-radius: 14px;
    background: rgba(120, 112, 160, .06);
}

.tlc-fullscreen-app .tlc-explorer-subnav[hidden],
.tlc-fullscreen-app .tlc-chat-request-gate[hidden],
.tlc-fullscreen-app .tlc-profile-social-stats[hidden],
.tlc-fullscreen-app .tlc-profile-private-notice[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-explorer-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    border: 0;
    border-radius: 10px;
    color: #8589a2;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-explorer-tab.is-active {
    color: #fff;
    background: linear-gradient(115deg, #735bea, #a44ed0 58%, #df5c9b);
    box-shadow: 0 5px 14px rgba(131, 79, 202, .22);
}

.tlc-fullscreen-app .tlc-explorer-tab-count {
    opacity: .78;
    font-size: 9px;
}

.tlc-fullscreen-app .tlc-social-list-self {
    display: block;
    margin: -4px 3px 10px auto;
    padding: 6px 10px;
    border: 1px solid rgba(132, 113, 204, .22);
    border-radius: 9px;
    color: #b9aff4;
    background: rgba(129, 111, 194, .08);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-person-card {
    min-width: 0;
    box-shadow: 0 4px 14px rgba(32, 30, 60, .035);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tlc-fullscreen-app .tlc-person-card:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 98, 222, .34);
    box-shadow: 0 8px 20px rgba(53, 39, 105, .09);
}

.tlc-fullscreen-app .tlc-person-card .tlc-info {
    min-width: 0;
}

.tlc-fullscreen-app .tlc-card-actions {
    max-width: 44%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tlc-fullscreen-app .tlc-card-actions .tlc-action-btn {
    min-height: 32px;
    border-radius: 10px;
    font-size: 9px;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-action-btn.is-follow {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(112deg, #735bea, #b653c3 58%, #df5c9b);
}

.tlc-fullscreen-app .tlc-action-btn.is-following {
    color: #6e5fbd;
    border-color: rgba(132, 113, 204, .25);
    background: rgba(129, 111, 194, .09);
}

.tlc-fullscreen-app .tlc-action-btn.is-pending {
    color: #7f8091;
    border-color: rgba(130, 132, 155, .22);
    background: rgba(130, 132, 155, .07);
}

.tlc-fullscreen-app .tlc-profile-social-stats {
    display: flex;
    width: min(100%, 520px);
    justify-content: flex-start;
    gap: clamp(24px, 8vw, 58px);
    margin: 18px 0 2px;
}

.tlc-fullscreen-app .tlc-profile-social-stats button {
    display: flex;
    min-width: 76px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 4px 0;
    border: 0;
    color: #8e93aa;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-profile-social-stats strong {
    color: #f2f3fa;
    font-size: 17px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-profile-follow {
    width: min(100%, 460px);
    min-height: 42px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(112deg, #735bea, #b653c3 58%, #df5c9b);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-profile-follow.is-following {
    border: 1px solid rgba(132, 113, 204, .28);
    color: #b9aff4;
    background: rgba(129, 111, 194, .13);
}

.tlc-fullscreen-app .tlc-profile-follow:disabled {
    opacity: .65;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-profile-remove-chat {
    width: min(100%, 460px);
    min-height: 40px;
    margin-top: 8px;
    border: 1px solid rgba(220, 92, 122, .3);
    border-radius: 12px;
    color: #db8096;
    background: rgba(220, 92, 122, .08);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-profile-remove-chat:hover {
    border-color: rgba(220, 92, 122, .56);
    background: rgba(220, 92, 122, .14);
}

.tlc-fullscreen-app .tlc-profile-private-notice {
    width: min(100%, 720px);
    margin: 20px 0 4px;
    padding: 16px;
    border: 1px solid rgba(163, 145, 233, .16);
    border-radius: 14px;
    color: #c2c2d2;
    background: rgba(130, 111, 194, .09);
    font-size: 12px;
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-chat-request-gate {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid rgba(125, 128, 152, .17);
    background: rgba(122, 111, 179, .06);
}

.tlc-fullscreen-app .tlc-chat-request-note {
    color: #8d91a8;
    font-size: 11px;
    line-height: 1.7;
}

.tlc-fullscreen-app .tlc-chat-request-button {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(112deg, #735bea, #a44ed0 58%, #df5c9b);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-chat-request-button:disabled {
    color: #9b9db0;
    background: rgba(130, 132, 155, .15);
    cursor: default;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-explorer-subnav {
    border-color: #e9e7f2;
    background: #f6f5fb;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-explorer-tab {
    color: #74778b;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-explorer-tab.is-active {
    color: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-social-list-self {
    color: #6958bc;
    background: rgba(129, 111, 194, .06);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-social-stats strong {
    color: #252941;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-follow.is-following {
    color: #6958bc;
    background: rgba(129, 111, 194, .08);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-remove-chat {
    color: #ad435f;
    background: rgba(220, 92, 122, .06);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-private-notice {
    border-color: rgba(125, 108, 184, .17);
    color: #55546a;
    background: rgba(130, 111, 194, .06);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-chat-request-gate {
    border-top-color: #e8e8f0;
    background: #f8f8fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-chat-request-note {
    color: #73778b;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-explorer-subnav {
        gap: 2px;
        padding: 4px;
    }

    .tlc-fullscreen-app .tlc-explorer-tab {
        font-size: 9px;
    }

    .tlc-fullscreen-app .tlc-person-card {
        flex-wrap: wrap;
    }

    .tlc-fullscreen-app .tlc-card-actions {
        max-width: none;
        width: 100%;
        justify-content: flex-start;
        padding-inline-start: 50px;
    }

    .tlc-fullscreen-app .tlc-chat-request-gate {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 14px;
    }

    .tlc-fullscreen-app .tlc-chat-request-button {
        width: 100%;
    }
}

.tlc-fullscreen-app .tlc-story-rail {
    flex: 0 0 auto;
    min-width: 0;
    padding: 11px 12px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    background: rgba(18, 20, 31, .88);
}

.tlc-fullscreen-app .tlc-story-rail[hidden],
.tlc-fullscreen-app .tlc-story-compose-modal[hidden],
.tlc-fullscreen-app .tlc-story-viewer[hidden],
.tlc-fullscreen-app .tlc-profile-action-menu[hidden],
.tlc-fullscreen-app .tlc-profile-action-toggle[hidden],
.tlc-fullscreen-app .tlc-story-preview[hidden],
.tlc-fullscreen-app .tlc-story-recipient-picker[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-story-rail-track {
    display: flex;
    flex-direction: row;
    gap: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    direction: ltr;
    padding: 1px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.tlc-fullscreen-app .tlc-story-rail-track::-webkit-scrollbar {
    display: none;
}

.tlc-fullscreen-app .tlc-story-circle {
    display: grid;
    flex: 0 0 62px;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #e7e9f5;
    background: transparent;
    cursor: pointer;
    font: inherit;
    scroll-snap-align: start;
}

.tlc-fullscreen-app .tlc-story-ring {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    padding: 3px;
    border-radius: 50%;
    background: #4b4f60;
    transition: transform .18s ease, filter .18s ease;
}

.tlc-fullscreen-app .tlc-story-circle.has-unseen .tlc-story-ring,
.tlc-fullscreen-app .tlc-story-circle.is-own .tlc-story-ring {
    background: conic-gradient(from 220deg, #f5b83e, #f04483, #9b4cf5, #f5b83e);
}

.tlc-fullscreen-app .tlc-story-circle.is-seen .tlc-story-ring {
    background: #626779;
}

.tlc-fullscreen-app .tlc-story-circle:hover .tlc-story-ring {
    filter: brightness(1.12);
    transform: scale(1.04);
}

.tlc-fullscreen-app .tlc-story-avatar {
    display: grid;
    width: 100%;
    height: 100%;
    overflow: hidden;
    place-items: center;
    border: 2px solid #171a26;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #514886, #2575a7);
    font-size: 18px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-story-avatar img,
.tlc-fullscreen-app .tlc-story-recipient-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-story-plus {
    position: absolute;
    right: -1px;
    bottom: -1px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 2px solid #171a26;
    border-radius: 50%;
    color: #fff;
    background: #3388ed;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-story-add-ring {
    background: #4b4f60;
}

.tlc-fullscreen-app .tlc-story-add-icon {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 2px solid #171a26;
    border-radius: 50%;
    color: #f3f4fa;
    background: #252939;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-story-name {
    display: block;
    width: 62px;
    overflow: hidden;
    color: #c7cada;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-close {
    right: 12px;
    left: auto;
}

.tlc-fullscreen-app .tlc-profile-action-menu-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
}

.tlc-fullscreen-app .tlc-profile-action-toggle {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 9, 15, .55);
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-profile-action-menu {
    position: absolute;
    top: 43px;
    left: 0;
    display: grid;
    width: max-content;
    min-width: 190px;
    gap: 2px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: #1d2030;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
}

.tlc-fullscreen-app .tlc-profile-action-menu button {
    width: 100%;
    min-height: 39px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    color: #e8eaf5;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-profile-action-menu button:hover {
    background: rgba(255, 255, 255, .07);
}

.tlc-fullscreen-app .tlc-profile-action-menu .tlc-profile-remove-chat,
.tlc-fullscreen-app .tlc-profile-action-menu .tlc-profile-report,
.tlc-fullscreen-app .tlc-profile-action-menu .tlc-profile-suspend {
    min-height: 39px;
    margin: 0;
    border: 0;
    color: #ffb3b3;
    background: transparent;
    font-weight: 600;
}

.tlc-fullscreen-app .tlc-profile-action-menu .tlc-profile-suspend.is-suspended {
    color: #b7e9c8;
}

.tlc-fullscreen-app .tlc-story-compose-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tlc-fullscreen-app .tlc-story-compose-backdrop,
.tlc-fullscreen-app .tlc-story-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 4, 9, .78);
    backdrop-filter: blur(8px);
}

.tlc-fullscreen-app .tlc-story-compose-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(460px, 100%);
    max-height: min(90dvh, 820px);
    gap: 13px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    color: #eff0f8;
    background: #191c29;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .46);
}

.tlc-fullscreen-app .tlc-story-compose-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tlc-fullscreen-app .tlc-story-compose-header h2 {
    margin: 0;
    font-size: 17px;
}

.tlc-fullscreen-app .tlc-story-compose-close,
.tlc-fullscreen-app .tlc-story-viewer-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
    font-size: 22px;
}

.tlc-fullscreen-app .tlc-story-file-label,
.tlc-fullscreen-app .tlc-story-caption-label,
.tlc-fullscreen-app .tlc-story-audience-label {
    display: grid;
    gap: 7px;
    color: #d5d7e4;
    font-size: 12px;
    font-weight: 650;
}

.tlc-fullscreen-app .tlc-story-file,
.tlc-fullscreen-app .tlc-story-caption,
.tlc-fullscreen-app .tlc-story-audience {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    color: #eff0f8;
    background: #222638;
    font: inherit;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-story-file {
    padding: 8px;
}

.tlc-fullscreen-app .tlc-story-caption {
    resize: vertical;
    line-height: 1.7;
}

.tlc-fullscreen-app .tlc-story-preview {
    display: grid;
    max-height: 310px;
    overflow: hidden;
    place-items: center;
    border-radius: 13px;
    background: #0b0d14;
}

.tlc-fullscreen-app .tlc-story-preview.is-cropping {
    max-height: none;
    overflow: visible;
    background: transparent;
}

.tlc-fullscreen-app .tlc-story-preview img,
.tlc-fullscreen-app .tlc-story-preview video {
    display: block;
    max-width: 100%;
    max-height: 310px;
    object-fit: contain;
}

.tlc-fullscreen-app .tlc-story-crop-editor {
    display: grid;
    width: 100%;
    justify-items: center;
    gap: 10px;
    padding: 10px;
}

.tlc-fullscreen-app .tlc-story-crop-stage {
    position: relative;
    width: min(100%, 216px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 15px;
    background: #090a10;
    cursor: grab;
    touch-action: none;
}

.tlc-fullscreen-app .tlc-story-crop-stage:active {
    cursor: grabbing;
}

.tlc-fullscreen-app .tlc-story-crop-stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    max-width: none;
    max-height: none;
    pointer-events: none;
    transform: translate(-50%, -50%);
    user-select: none;
}

.tlc-fullscreen-app .tlc-story-crop-zoom-label {
    display: grid;
    width: min(100%, 280px);
    gap: 5px;
    color: #d5d7e4;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-story-crop-zoom {
    width: 100%;
    accent-color: #c653bb;
}

.tlc-fullscreen-app .tlc-story-crop-help,
.tlc-fullscreen-app .tlc-story-image-status {
    margin: 0;
    color: #a4a9bb;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.tlc-fullscreen-app .tlc-story-image-status:empty {
    display: none;
}

.tlc-fullscreen-app .tlc-story-recipient-picker {
    display: grid;
    gap: 8px;
    max-height: 195px;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.tlc-fullscreen-app .tlc-story-recipient-status {
    color: #a4a9bb;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-story-recipient-list,
.tlc-fullscreen-app .tlc-story-privacy-users {
    display: grid;
    max-height: 150px;
    gap: 5px;
    overflow-y: auto;
    padding-inline-end: 2px;
}

.tlc-fullscreen-app .tlc-story-recipient-row,
.tlc-fullscreen-app .tlc-story-privacy-person {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 9px;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-story-recipient-row:hover,
.tlc-fullscreen-app .tlc-story-privacy-person:hover {
    background: rgba(255, 255, 255, .06);
}

.tlc-fullscreen-app .tlc-story-recipient-avatar {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #393957;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-story-recipient-name {
    overflow: hidden;
    color: #e9eaf3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-story-recipient-username {
    margin-inline-start: auto;
    color: #8e94aa;
    direction: ltr;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-manage-privacy {
    justify-self: start;
    padding: 0;
    border: 0;
    color: #a99bff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-story-expiration-note,
.tlc-fullscreen-app .tlc-story-compose-status {
    margin: 0;
    color: #989eb3;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-story-compose-status:not(:empty) {
    color: #ffb1b1;
}

.tlc-fullscreen-app .tlc-story-publish {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(105deg, #a140d0, #ee4d85 54%, #f3a638);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
}

.tlc-fullscreen-app .tlc-story-publish:disabled {
    opacity: .65;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-story-viewer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 16px;
}

.tlc-fullscreen-app .tlc-story-viewer-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 4px auto minmax(0, 1fr) auto auto;
    width: min(430px, 100%);
    height: min(780px, calc(100dvh - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: #08090f;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
}

.tlc-fullscreen-app .tlc-story-progress {
    z-index: 2;
    display: flex;
    gap: 4px;
    padding: 10px 11px 0;
}

.tlc-fullscreen-app .tlc-story-progress-segment {
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, .36);
}

.tlc-fullscreen-app .tlc-story-progress-segment > span {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.tlc-fullscreen-app .tlc-story-progress-segment.is-complete > span {
    width: 100%;
}

.tlc-fullscreen-app .tlc-story-progress-segment.is-active > span {
    animation: tlc-story-progress linear forwards;
    animation-duration: var(--tlc-story-duration, 30s);
}

.tlc-fullscreen-app .tlc-story-progress-segment.is-active.is-loading > span,
.tlc-fullscreen-app .tlc-story-progress-segment.is-active.is-paused > span {
    animation-play-state: paused;
}

@keyframes tlc-story-progress {
    to { width: 100%; }
}

.tlc-fullscreen-app .tlc-story-viewer-header {
    z-index: 1;
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    color: #fff;
}

.tlc-fullscreen-app .tlc-story-viewer-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: #393957;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-story-viewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-story-viewer-author {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-story-viewer-time {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-viewer-close {
    margin-inline-start: auto;
    border-color: transparent;
    background: transparent;
}

.tlc-fullscreen-app .tlc-story-viewer-media {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
}

.tlc-fullscreen-app .tlc-story-viewer-image,
.tlc-fullscreen-app .tlc-story-viewer-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tlc-fullscreen-app .tlc-story-viewer-caption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    max-height: min(38%, 280px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
    color: #fff;
    background: rgba(12, 13, 20, .48);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-size: 13px;
    line-height: 1.7;
    text-align: start;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-color: rgba(255, 255, 255, .42) transparent;
    scrollbar-width: thin;
    touch-action: pan-y;
}

.tlc-fullscreen-app .tlc-story-viewer-prev,
.tlc-fullscreen-app .tlc-story-viewer-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    font-size: 27px;
    transform: translateY(-50%);
}

.tlc-fullscreen-app .tlc-story-viewer-prev { left: 8px; }
.tlc-fullscreen-app .tlc-story-viewer-next { right: 8px; }
.tlc-fullscreen-app .tlc-story-viewer-prev:disabled { opacity: .35; }

.tlc-fullscreen-app .tlc-story-privacy {
    display: grid;
    gap: 8px;
    margin-block: 15px;
}

.tlc-fullscreen-app .tlc-story-privacy-heading {
    margin: 9px 0 0;
    color: #e7e9f5;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-story-privacy-users {
    max-height: 220px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.tlc-fullscreen-app .tlc-story-privacy-person {
    min-height: 42px;
}

.tlc-fullscreen-app .tlc-story-privacy-checkbox,
.tlc-fullscreen-app .tlc-story-recipient-checkbox {
    accent-color: #b06cff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-rail {
    border-bottom-color: #e9eaf0;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-circle {
    color: #292b3a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-name {
    color: #54586c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-avatar {
    border-color: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-plus {
    border-color: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-compose-dialog {
    border-color: #e7e8ef;
    color: #25283a;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-compose-header h2,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-privacy-heading {
    color: #25283a;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-file-label,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-caption-label,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-audience-label,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-crop-zoom-label {
    color: #44485d;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-file,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-caption,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-audience,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-caption-edit-input {
    border-color: #dfe1eb;
    color: #292c40;
    background: #f8f8fc;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-crop-help,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-image-status {
    color: #777b8c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-recipient-name {
    color: #35394e;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-privacy-users {
    border-color: #e5e6ef;
    background: #fafaff;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-story-rail {
        padding: 9px 10px 7px;
    }

    .tlc-fullscreen-app .tlc-story-viewer {
        padding: 0;
    }

    .tlc-fullscreen-app .tlc-story-viewer-card {
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .tlc-fullscreen-app .tlc-story-compose-modal {
        padding: 9px;
    }

    .tlc-fullscreen-app .tlc-story-compose-dialog {
        max-height: calc(100dvh - 18px);
        padding: 16px;
    }
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-primary-actions {
    display: flex;
    width: min(100%, 460px);
    align-self: flex-start;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    direction: rtl;
}

.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-primary-actions .tlc-profile-follow,
.tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-primary-actions .tlc-profile-message {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-primary-actions {
        gap: 8px;
    }

    .tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-primary-actions .tlc-profile-follow,
    .tlc-fullscreen-app .tlc-profile-modal.is-user-profile .tlc-profile-primary-actions .tlc-profile-message {
        padding-inline: 7px;
        font-size: 11px;
    }
}

.tlc-fullscreen-app .tlc-story-name {
    direction: rtl;
}

.tlc-fullscreen-app .tlc-story-tag-picker,
.tlc-fullscreen-app .tlc-story-archive {
    display: grid;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-story-tag-picker > strong {
    color: #e9eaf3;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-story-tag-status,
.tlc-fullscreen-app .tlc-story-archive-status {
    color: #a4a9bb;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-story-tag-list {
    display: grid;
    max-height: 145px;
    gap: 4px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
}

.tlc-fullscreen-app .tlc-story-tag-checkbox {
    accent-color: #b06cff;
}

.tlc-fullscreen-app .tlc-story-reply-setting {
    display: grid;
    gap: 6px;
    margin: 8px 0;
    color: #c6c9d8;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-story-reply-audience,
.tlc-fullscreen-app .tlc-story-highlight-title {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    color: #f4f5fb;
    background: #202333;
    font: inherit;
}

.tlc-fullscreen-app .tlc-story-viewer-options {
    position: relative;
    margin-inline-start: auto;
}

.tlc-fullscreen-app .tlc-story-viewer-options-toggle,
.tlc-fullscreen-app .tlc-story-viewer-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-story-viewer-close {
    flex: 0 0 34px;
    margin-inline-start: 0;
}

.tlc-fullscreen-app .tlc-story-viewer-options-menu {
    position: absolute;
    top: calc(100% + 7px);
    inset-inline-end: 0;
    z-index: 5;
    display: grid;
    min-width: 145px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background: #202333;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}

.tlc-fullscreen-app .tlc-story-viewer-options-menu[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-story-viewer-options-menu button,
.tlc-fullscreen-app .tlc-story-archive-delete,
.tlc-fullscreen-app .tlc-story-highlight-delete,
.tlc-fullscreen-app .tlc-story-highlight-add-selected {
    min-height: 34px;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    color: #f3f4fa;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-align: right;
}

.tlc-fullscreen-app .tlc-story-viewer-options-menu button:hover,
.tlc-fullscreen-app .tlc-story-archive-delete:hover,
.tlc-fullscreen-app .tlc-story-highlight-delete:hover,
.tlc-fullscreen-app .tlc-story-highlight-add-selected:hover {
    background: rgba(255, 255, 255, .09);
}

.tlc-fullscreen-app .tlc-story-viewer-options-menu .tlc-story-viewer-delete {
    color: #ffaaaa;
}

.tlc-fullscreen-app .tlc-story-caption-editor {
    grid-template-rows: auto minmax(130px, 1fr) auto auto;
}

.tlc-fullscreen-app .tlc-story-caption-edit-input {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: #f5f5f8;
    background: #242638;
    font: inherit;
    font-size: 13px;
    line-height: 1.8;
}

.tlc-fullscreen-app .tlc-story-caption-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-story-caption-edit-actions button {
    min-height: 37px;
    padding: 7px 13px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .11);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-story-caption-edit-actions .tlc-story-caption-edit-save {
    background: linear-gradient(105deg, #a140d0, #ee4d85 54%, #f3a638);
}

.tlc-fullscreen-app .tlc-story-caption-edit-actions button:disabled {
    opacity: .6;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-story-caption-edit-status {
    min-height: 16px;
    margin: 0;
    color: #ffb6b6;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-reply-form {
    z-index: 2;
    display: flex;
    direction: ltr;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}

.tlc-fullscreen-app .tlc-story-reply-form[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-story-reply-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 54px;
    padding: 0 18px;
    border: 1.5px solid rgba(255, 255, 255, .43);
    border-radius: 28px;
    color: #fff;
    background: rgba(9, 10, 15, .72);
    font: inherit;
    font-size: 15px;
    direction: rtl;
    text-align: right;
    outline: none;
}

.tlc-fullscreen-app .tlc-story-reply-input:focus {
    border-color: rgba(255, 255, 255, .72);
}

.tlc-fullscreen-app .tlc-service-story-actions button {
    min-height: 38px;
    padding: 7px 13px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: #7048d9;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-story-reply-submit,
.tlc-fullscreen-app .tlc-story-like-button {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: color .16s ease, transform .16s ease, background .16s ease;
}

.tlc-fullscreen-app .tlc-story-reply-submit[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-story-reply-submit svg {
    display: block;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tlc-fullscreen-app .tlc-story-like-button svg {
    display: block;
    width: 37px;
    height: 37px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .16s ease, color .16s ease;
}

.tlc-fullscreen-app .tlc-story-like-button.is-liked {
    color: #ff4b6e;
}

.tlc-fullscreen-app .tlc-story-like-button.is-liked svg {
    fill: currentColor;
}

.tlc-fullscreen-app .tlc-story-like-button:hover,
.tlc-fullscreen-app .tlc-story-reply-submit:hover:not(:disabled) {
    background: rgba(255, 255, 255, .08);
    transform: scale(1.06);
}

.tlc-fullscreen-app .tlc-story-reply-submit:disabled,
.tlc-fullscreen-app .tlc-story-like-button:disabled {
    opacity: .55;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-story-archive-list,
.tlc-fullscreen-app .tlc-story-owned-highlights {
    display: grid;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-story-archive-item,
.tlc-fullscreen-app .tlc-story-owned-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.tlc-fullscreen-app .tlc-story-archive-row {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.tlc-fullscreen-app .tlc-story-archive-thumb {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border-radius: 8px;
    color: #d9d6f6;
    background: #292b3b;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-story-archive-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.tlc-fullscreen-app .tlc-story-archive-copy strong {
    overflow: hidden;
    color: #e9eaf3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-story-archive-copy small,
.tlc-fullscreen-app .tlc-story-owned-highlight span {
    color: #9da2b5;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-archive-delete {
    flex: 0 0 auto;
    color: #ffb0b0;
}

.tlc-fullscreen-app .tlc-story-highlight-create {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tlc-fullscreen-app .tlc-story-highlight-title {
    flex: 1 1 180px;
}

.tlc-fullscreen-app .tlc-story-owned-highlight {
    flex-wrap: wrap;
}

.tlc-fullscreen-app .tlc-story-owned-highlight strong {
    flex: 1 1 100px;
    color: #f0f1f8;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-profile-highlights {
    width: 100%;
    margin: 15px 0 8px;
}

.tlc-fullscreen-app .tlc-profile-highlights[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-profile-highlights-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #e9eaf3;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-profile-highlight-manage {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    color: #c9baff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-profile-highlights-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 1px 9px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tlc-fullscreen-app .tlc-profile-highlights-track::-webkit-scrollbar {
    display: none;
}

.tlc-fullscreen-app .tlc-profile-highlight-circle {
    display: grid;
    flex: 0 0 70px;
    justify-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: #dfe1ec;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.tlc-fullscreen-app .tlc-profile-highlight-thumb {
    display: grid;
    width: 62px;
    height: 62px;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #514886, #2575a7);
}

.tlc-fullscreen-app .tlc-profile-highlight-thumb.is-active-story {
    border-color: #c760ef;
}

.tlc-fullscreen-app .tlc-profile-highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-profile-highlight-label {
    max-width: 76px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-profile-highlights-empty {
    margin: 3px 0;
    color: #9da2b5;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-service-story-reply {
    display: block;
    margin-top: 4px;
    color: #e6e8f3;
    font-size: 12px;
    white-space: pre-wrap;
}

.tlc-fullscreen-app .tlc-service-story-actions {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 7px;
}

.tlc-fullscreen-app .tlc-story-owned-highlight-wrap {
    display: grid;
    gap: 5px;
}

.tlc-fullscreen-app .tlc-story-highlight-manage-items,
.tlc-fullscreen-app .tlc-story-highlight-remove-item {
    min-height: 32px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    color: #d9d1ff;
    background: rgba(255, 255, 255, .055);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-highlight-members {
    display: grid;
    gap: 5px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.tlc-fullscreen-app .tlc-story-highlight-members[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-story-highlight-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #e0e2ed;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-highlight-member span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-tag-picker > strong,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-reply-setting,
.tlc-fullscreen-app[data-theme="light"] .tlc-profile-highlights-heading {
    color: #37384b;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-reply-audience,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-highlight-title {
    border-color: #dfe0e8;
    color: #25283a;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewer-options-menu {
    border-color: #e4e5eb;
    background: #fff;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewer-options-menu button,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-archive-copy strong,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-owned-highlight strong {
    color: #303246;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-profile-highlight-circle {
    color: #333548;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-highlight-member {
    color: #303246;
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-story-viewer-card {
        height: min(780px, calc(100dvh - 16px));
        border-radius: 17px;
    }

    .tlc-fullscreen-app .tlc-story-viewer-header {
        gap: 6px;
        padding-inline: 8px;
    }

    .tlc-fullscreen-app .tlc-story-reply-form {
        padding-inline: 16px;
    }
}

.tlc-fullscreen-app .tlc-story-reply-form {
    align-items: center;
}

.tlc-fullscreen-app .tlc-story-owner-stats {
    z-index: 2;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-story-owner-stats[hidden],
.tlc-fullscreen-app .tlc-story-viewers-panel[hidden] {
    display: none !important;
}

.tlc-fullscreen-app .tlc-story-owner-stats-separator {
    opacity: .6;
}

.tlc-fullscreen-app .tlc-story-viewers-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: min(62%, 470px);
    padding: 15px 16px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    color: #f5f5f8;
    background: rgba(18, 19, 25, .97);
    box-shadow: 0 -18px 55px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
}

.tlc-fullscreen-app .tlc-story-viewers-header {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tlc-fullscreen-app .tlc-story-viewers-header > div {
    display: grid;
    gap: 3px;
}

.tlc-fullscreen-app .tlc-story-viewers-header strong {
    font-size: 14px;
}

.tlc-fullscreen-app .tlc-story-viewers-summary {
    color: #aeb2c0;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-story-viewers-close {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    font: inherit;
    font-size: 23px;
}

.tlc-fullscreen-app .tlc-story-viewers-list {
    display: grid;
    align-content: start;
    gap: 2px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 7px;
}

.tlc-fullscreen-app .tlc-story-viewer-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 5px 2px;
}

.tlc-fullscreen-app .tlc-story-viewer-row-avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: #393b49;
    font-size: 13px;
}

.tlc-fullscreen-app .tlc-story-viewer-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-story-viewer-row-copy {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.tlc-fullscreen-app .tlc-story-viewer-row-copy strong {
    overflow: hidden;
    color: #f6f6fa;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-story-viewer-row-copy small {
    overflow: hidden;
    color: #a4a8b5;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-story-viewer-row-like {
    flex: 0 0 28px;
    color: #ff4b6e;
    font-size: 22px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-story-viewers-status {
    min-height: 18px;
    margin: 5px 0 0;
    color: #b2b5c1;
    font-size: 10px;
    text-align: center;
}

.tlc-fullscreen-app .tlc-service-story-card {
    display: grid;
    width: min(92%, 340px);
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(225, 231, 255, .12);
    border-radius: 17px;
    color: #f0f1f7;
    background: linear-gradient(145deg, rgba(48, 44, 67, .96), rgba(25, 28, 40, .98));
    box-shadow: 0 8px 30px rgba(5, 8, 20, .24);
}

.tlc-fullscreen-app .tlc-service-story-title {
    color: #d4d5df;
    font-size: 11px;
    font-weight: 500;
    text-align: right;
}

.tlc-fullscreen-app .tlc-service-story-preview {
    position: relative;
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}

.tlc-fullscreen-app .tlc-service-story-thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 68px;
    overflow: hidden;
    border-radius: 9px;
    background: #353644;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-service-story-caption {
    overflow: hidden;
    color: #e8e8ed;
    font-size: 10px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-service-story-card .tlc-service-story-reply {
    margin-top: 0;
    padding: 8px 10px;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewers-panel {
    border-color: rgba(30, 33, 50, .12);
    color: #25283a;
    background: rgba(250, 250, 253, .98);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewers-header {
    border-color: rgba(30, 33, 50, .1);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewers-summary,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewer-row-copy small,
.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewers-status {
    color: #777b8c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-story-viewer-row-copy strong {
    color: #292b3c;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-service-story-card {
    border-color: rgba(91, 101, 142, .14);
    color: #303246;
    background: linear-gradient(145deg, #f3f1fb, #f8f8fc);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-service-story-title,
.tlc-fullscreen-app[data-theme="light"] .tlc-service-story-caption {
    color: #55586b;
}

.tlc-fullscreen-app[data-theme="light"] .tlc-service-story-preview {
    background: rgba(41, 43, 60, .06);
}

.tlc-fullscreen-app[data-theme="light"] .tlc-service-story-card .tlc-service-story-reply {
    color: #303246;
    background: rgba(41, 43, 60, .08);
}

@media (max-width: 520px) {
    .tlc-fullscreen-app .tlc-story-viewers-panel {
        height: min(64%, 460px);
        padding-inline: 13px;
    }

    .tlc-fullscreen-app .tlc-story-like-button {
        flex-basis: 38px;
        width: 38px;
    }
}

/* Native-feeling app shell, safe areas, and accessible touch controls. */
.tlc-fullscreen-app {
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.tlc-fullscreen-app :focus-visible {
    outline: 2px solid var(--tlc-primary-dark);
    outline-offset: 2px;
}

.tlc-fullscreen-app[data-theme="dark"] .tlc-chat-area::before {
    opacity: .42;
}

@media (max-width: 680px) {
    .tlc-fullscreen-app .tlc-header {
        padding-right: max(18px, env(safe-area-inset-right));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .tlc-fullscreen-app .tlc-contact-list {
        padding-right: max(10px, env(safe-area-inset-right));
        padding-left: max(10px, env(safe-area-inset-left));
    }

    .tlc-fullscreen-app .tlc-sidebar-footer {
        min-height: calc(58px + env(safe-area-inset-bottom));
        padding-right: max(18px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .tlc-fullscreen-app .tlc-chat-header {
        padding-right: max(15px, env(safe-area-inset-right));
        padding-left: max(15px, env(safe-area-inset-left));
    }

    .tlc-fullscreen-app .tlc-chat-menu {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .tlc-fullscreen-app .tlc-composer-dock {
        padding-right: max(11px, env(safe-area-inset-right));
        padding-left: max(11px, env(safe-area-inset-left));
    }

    .tlc-fullscreen-app .tlc-send-btn {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .tlc-fullscreen-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
    .tlc-fullscreen-app textarea,
    .tlc-fullscreen-app select {
        font-size: 16px !important;
    }
}
