/* A contained, app-like chat surface. No theme or document-level styles. */
.tlc-fullscreen-app {
    --tlc-ink: #20233a;
    --tlc-muted: #85899f;
    --tlc-line: #eceef5;
    --tlc-primary: #7062e9;
    --tlc-primary-dark: #5948d5;
    --tlc-accent: #a987ff;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    color: var(--tlc-ink);
    background: #f6f7fc;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    box-sizing: border-box;
    isolation: isolate;
}

.tlc-fullscreen-app *,
.tlc-fullscreen-app *::before,
.tlc-fullscreen-app *::after {
    box-sizing: border-box;
}

.tlc-fullscreen-app button,
.tlc-fullscreen-app input,
.tlc-fullscreen-app textarea {
    font: inherit;
}

.tlc-fullscreen-app button {
    -webkit-tap-highlight-color: transparent;
}

.tlc-fullscreen-app .tlc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-sidebar {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 360px;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #fff;
    border-left: 1px solid var(--tlc-line);
    box-shadow: -10px 0 36px rgba(37, 40, 76, .035);
}

.tlc-fullscreen-app .tlc-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px 24px 15px;
}

.tlc-fullscreen-app .tlc-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tlc-fullscreen-app .tlc-brand-mark {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #9283ff, #6553dc);
    box-shadow: 0 9px 20px rgba(112, 98, 233, .28);
    font-size: 24px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-brand-row > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-brand {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.tlc-fullscreen-app .tlc-brand-subtitle {
    color: var(--tlc-muted);
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-create-group {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #eeebff;
    border-radius: 14px;
    color: var(--tlc-primary);
    background: #f7f5ff;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.tlc-fullscreen-app .tlc-create-group span {
    margin-top: -2px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-create-group:hover {
    transform: translateY(-2px);
    background: #eeeaff;
    box-shadow: 0 7px 18px rgba(112, 98, 233, .15);
}

.tlc-fullscreen-app .tlc-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.tlc-fullscreen-app .tlc-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    color: #9a9eb1;
    font-size: 24px;
    line-height: 1;
    transform: translateY(-55%);
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-search-input {
    width: 100%;
    height: 46px;
    padding: 0 43px 0 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    outline: 0;
    color: var(--tlc-ink);
    background: #f5f6fa;
    font-size: 13px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tlc-fullscreen-app .tlc-search-input::placeholder {
    color: #a3a7b8;
}

.tlc-fullscreen-app .tlc-search-input:focus {
    border-color: #dcd7ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(112, 98, 233, .08);
}

.tlc-fullscreen-app .tlc-filter-tabs {
    display: flex;
    gap: 7px;
    padding: 4px;
    border-radius: 13px;
    background: #f6f6fa;
}

.tlc-fullscreen-app .tlc-filter-tab {
    flex: 1;
    min-height: 35px;
    padding: 5px 8px;
    border: 0;
    border-radius: 10px;
    color: #85899d;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tlc-fullscreen-app .tlc-filter-tab:hover {
    color: var(--tlc-primary);
}

.tlc-fullscreen-app .tlc-filter-tab.active {
    color: var(--tlc-primary-dark);
    background: #fff;
    box-shadow: 0 2px 9px rgba(36, 39, 67, .07);
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-contact-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 14px 16px;
    overscroll-behavior: contain;
    scrollbar-color: #deddee transparent;
    scrollbar-width: thin;
}

.tlc-fullscreen-app .tlc-list-section-title {
    padding: 15px 12px 8px;
    color: #a0a3b4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;
}

.tlc-fullscreen-app .tlc-contact-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 72px;
    margin: 3px 0;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--tlc-ink);
    background: transparent;
    text-align: right;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.tlc-fullscreen-app .tlc-contact-item:hover {
    background: #f8f7ff;
}

.tlc-fullscreen-app .tlc-contact-item.active {
    border-color: #eae6ff;
    background: linear-gradient(110deg, #f8f6ff, #f2efff);
}

.tlc-fullscreen-app .tlc-contact-item.active::before {
    position: absolute;
    top: 17px;
    right: -14px;
    width: 3px;
    height: 38px;
    border-radius: 5px 0 0 5px;
    background: var(--tlc-primary);
    content: "";
}

.tlc-fullscreen-app .tlc-avatar {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border-radius: 17px;
    color: #6455d0;
    background: linear-gradient(145deg, #eeebff, #ddd7ff);
    font-size: 19px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-avatar.is-group {
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #ffb87f, #f07d91);
    font-size: 21px;
}

.tlc-fullscreen-app .tlc-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-name {
    overflow: hidden;
    color: #292c42;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-last-msg {
    overflow: hidden;
    color: #9699aa;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-contact-arrow {
    color: #b8b4cc;
    font-size: 24px;
    line-height: 1;
    transition: transform .18s ease;
}

.tlc-fullscreen-app .tlc-contact-item:hover .tlc-contact-arrow {
    transform: translateX(-3px);
    color: var(--tlc-primary);
}

.tlc-fullscreen-app .tlc-join-label {
    padding: 5px 9px;
    border-radius: 9px;
    color: #6556d4;
    background: #eeebff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-contact-item.is-joining {
    opacity: .6;
    pointer-events: none;
}

.tlc-fullscreen-app .tlc-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 51px;
    padding: 10px 24px;
    border-top: 1px solid #f1f1f5;
    color: #9c9eae;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #77c7a1;
    box-shadow: 0 0 0 4px #e8f8f0;
}

.tlc-fullscreen-app .tlc-chat-area {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(213, 208, 255, .26), transparent 28%),
        radial-gradient(ellipse at 90% 90%, rgba(255, 225, 206, .22), transparent 26%),
        #f7f8fc;
}

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

.tlc-fullscreen-app .tlc-chat-header {
    z-index: 1;
    display: flex;
    flex: 0 0 78px;
    align-items: center;
    gap: 13px;
    padding: 0 30px;
    border-bottom: 1px solid rgba(228, 230, 240, .85);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
}

.tlc-fullscreen-app .tlc-conversation-avatar {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #9384ff, #6554db);
    box-shadow: 0 5px 13px rgba(83, 69, 191, .2);
    font-size: 17px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-conversation-avatar.is-group {
    background: linear-gradient(145deg, #ffb87f, #f07d91);
}

.tlc-fullscreen-app .tlc-conversation-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.tlc-fullscreen-app .tlc-header-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tlc-fullscreen-app .tlc-header-info h3 {
    overflow: hidden;
    margin: 0;
    color: #262940;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-chat-status {
    margin-top: 2px;
    color: #9a9caf;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-chat-menu {
    width: 38px;
    height: 38px;
    border: 1px solid #efeff5;
    border-radius: 12px;
    color: #898ca1;
    background: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

.tlc-fullscreen-app .tlc-back-btn {
    display: none;
    border: 0;
    color: var(--tlc-primary);
    background: transparent;
    font-size: 22px;
}

.tlc-fullscreen-app .tlc-chat-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: min(90%, 360px);
    color: #85899e;
    text-align: center;
    transform: translate(-50%, -50%);
}

.tlc-fullscreen-app .tlc-chat-empty strong {
    color: #464961;
    font-size: 16px;
}

.tlc-fullscreen-app .tlc-chat-empty > span:last-child {
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-empty-orb {
    display: grid;
    width: 74px;
    height: 74px;
    margin-bottom: 5px;
    place-items: center;
    border: 1px solid rgba(112, 98, 233, .12);
    border-radius: 25px;
    color: var(--tlc-primary);
    background: linear-gradient(145deg, #fff, #eeebff);
    box-shadow: 0 12px 36px rgba(82, 70, 179, .12);
    font-size: 29px;
}

.tlc-fullscreen-app .tlc-chat-area.has-conversation .tlc-chat-empty {
    display: none;
}

.tlc-fullscreen-app .tlc-messages-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding: 28px clamp(18px, 5vw, 76px) 20px;
    overscroll-behavior: contain;
    scrollbar-color: #dad9e8 transparent;
    scrollbar-width: thin;
}

.tlc-fullscreen-app .tlc-message {
    display: flex;
    width: 100%;
    animation: tlc-pop-in .2s ease both;
}

.tlc-fullscreen-app .tlc-message.sent {
    justify-content: flex-start;
}

.tlc-fullscreen-app .tlc-message.received {
    justify-content: flex-end;
}

.tlc-fullscreen-app .tlc-bubble {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: min(78%, 590px);
    min-width: 120px;
    padding: 11px 15px 8px;
    border: 1px solid rgba(231, 232, 242, .84);
    border-radius: 19px 19px 5px 19px;
    color: #37394e;
    background: #fff;
    box-shadow: 0 5px 17px rgba(34, 38, 73, .055);
    overflow-wrap: anywhere;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-bubble {
    border: 0;
    border-radius: 19px 19px 19px 5px;
    color: #fff;
    background: linear-gradient(135deg, #8d7cff, #6555dc);
    box-shadow: 0 8px 18px rgba(104, 88, 218, .18);
}

.tlc-fullscreen-app .tlc-sender-name {
    margin-bottom: 4px;
    color: #7868df;
    font-size: 10px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-sender-name.is-me {
    color: rgba(255, 255, 255, .78);
}

.tlc-fullscreen-app .tlc-text {
    color: inherit;
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.tlc-fullscreen-app .tlc-reply-box {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-right: 3px solid #9b8cff;
    border-radius: 7px;
    color: #62647a;
    background: #f5f4fb;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-reply-box-sender {
    color: var(--tlc-primary-dark);
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-reply-box-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-reply-box {
    border-right-color: rgba(255, 255, 255, .8);
    color: #f8f7ff;
    background: rgba(28, 22, 92, .18);
}

.tlc-fullscreen-app .tlc-message.sent .tlc-reply-box-sender {
    color: #fff;
}

.tlc-fullscreen-app .tlc-message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 20px;
    margin-top: 3px;
}

.tlc-fullscreen-app .tlc-time {
    color: #a3a5b5;
    font-size: 9px;
    line-height: 1;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-time {
    color: rgba(255, 255, 255, .72);
}

.tlc-fullscreen-app .tlc-message-reply {
    display: grid;
    width: 24px;
    height: 22px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #9294a7;
    background: transparent;
    cursor: pointer;
    opacity: .72;
    transition: color .16s ease, background .16s ease, opacity .16s ease;
}

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

.tlc-fullscreen-app .tlc-message-reply:hover {
    color: var(--tlc-primary-dark);
    background: #efedff;
    opacity: 1;
}

.tlc-fullscreen-app .tlc-message.sent .tlc-message-reply {
    color: rgba(255, 255, 255, .82);
}

.tlc-fullscreen-app .tlc-message.sent .tlc-message-reply:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.tlc-fullscreen-app .tlc-composer-dock {
    position: relative;
    z-index: 2;
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 54px) 22px;
}

.tlc-fullscreen-app .tlc-reply-preview {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0 5px 9px;
    padding: 9px 12px;
    border: 1px solid #ece9ff;
    border-radius: 14px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 5px 18px rgba(47, 44, 93, .06);
}

.tlc-fullscreen-app .tlc-reply-preview.active {
    display: flex;
}

.tlc-fullscreen-app .tlc-reply-rail {
    flex: 0 0 3px;
    width: 3px;
    height: 36px;
    border-radius: 4px;
    background: linear-gradient(#a28fff, #6655dc);
}

.tlc-fullscreen-app .tlc-reply-preview-content {
    flex: 1;
    overflow: hidden;
}

.tlc-fullscreen-app .tlc-reply-title {
    margin-bottom: 1px;
    color: var(--tlc-primary-dark);
    font-size: 10px;
    font-weight: 800;
}

.tlc-fullscreen-app .tlc-reply-sender {
    color: #86899d;
    font-weight: 500;
}

.tlc-fullscreen-app .tlc-reply-preview-text {
    overflow: hidden;
    color: #777a8e;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlc-fullscreen-app .tlc-cancel-reply {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #9a9cae;
    background: #f6f6fa;
    cursor: pointer;
    font-size: 19px;
}

.tlc-fullscreen-app .tlc-input-area {
    width: 100%;
}

.tlc-fullscreen-app .tlc-input-wrapper {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 9px 10px 9px 17px;
    border: 1px solid rgba(228, 229, 240, .95);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 9px 30px rgba(33, 38, 75, .1);
    direction: rtl;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.tlc-fullscreen-app .tlc-input-wrapper:focus-within {
    border-color: #cfc8ff;
    box-shadow: 0 9px 32px rgba(93, 77, 211, .15), 0 0 0 4px rgba(112, 98, 233, .06);
}

.tlc-fullscreen-app .tlc-message-input {
    flex: 1;
    width: 0;
    min-height: 40px;
    max-height: 144px;
    resize: none;
    padding: 9px 5px;
    border: 0;
    outline: 0;
    color: #34364c;
    background: transparent;
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

.tlc-fullscreen-app .tlc-message-input::placeholder {
    color: #a3a5b5;
}

.tlc-fullscreen-app .tlc-message-input:disabled {
    cursor: not-allowed;
}

.tlc-fullscreen-app .tlc-send-btn {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #8e7fff, #6554dc);
    box-shadow: 0 6px 14px rgba(101, 84, 220, .24);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.tlc-fullscreen-app .tlc-send-btn svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    transform: rotate(180deg);
}

.tlc-fullscreen-app .tlc-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 9px 19px rgba(101, 84, 220, .3);
}

.tlc-fullscreen-app .tlc-send-btn:active:not(:disabled) {
    transform: scale(.95);
}

.tlc-fullscreen-app .tlc-send-btn:disabled {
    color: #a7a8b5;
    background: #e6e6ed;
    box-shadow: none;
    cursor: not-allowed;
}

.tlc-fullscreen-app .tlc-send-btn.is-sending svg {
    animation: tlc-send-pulse .65s ease-in-out infinite alternate;
}

.tlc-fullscreen-app .tlc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 24px 12px;
    color: #999cad;
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}

.tlc-fullscreen-app .tlc-empty-state-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    color: var(--tlc-primary);
    background: #f0edff;
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-login-link {
    display: block;
    margin: 0 auto;
    color: var(--tlc-primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.tlc-fullscreen-app .tlc-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 28px 10px;
    color: #9699aa;
    font-size: 11px;
}

.tlc-fullscreen-app .tlc-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9e6fb;
    border-top-color: var(--tlc-primary);
    border-radius: 50%;
    animation: tlc-spin .7s linear infinite;
}

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

.tlc-fullscreen-app .tlc-group-modal {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
}

.tlc-fullscreen-app .tlc-group-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 28, 58, .42);
    backdrop-filter: blur(6px);
    animation: tlc-fade-in .18s ease both;
}

.tlc-fullscreen-app .tlc-group-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 410px);
    max-height: 100%;
    padding: 31px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(27, 25, 63, .24);
    animation: tlc-dialog-in .22s cubic-bezier(.2, .8, .2, 1) both;
    overflow: hidden;
}

.tlc-fullscreen-app .tlc-group-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.tlc-fullscreen-app .tlc-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #888b9e;
    background: #f5f5f9;
    cursor: pointer;
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-modal-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #ffb87f, #f07d91);
    box-shadow: 0 8px 18px rgba(240, 125, 145, .23);
    font-size: 24px;
}

.tlc-fullscreen-app .tlc-group-dialog h2 {
    margin: 0 0 7px;
    color: #272940;
    font-size: 20px;
}

.tlc-fullscreen-app .tlc-group-dialog p {
    margin: 0 0 23px;
    color: #898c9f;
    font-size: 12px;
    line-height: 1.9;
}

.tlc-fullscreen-app .tlc-group-dialog label {
    display: block;
    margin-bottom: 7px;
    color: #56596e;
    font-size: 11px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-group-name {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #e8e8f0;
    border-radius: 13px;
    outline: 0;
    color: #303248;
    background: #fafafe;
    font-size: 12px;
}

.tlc-fullscreen-app .tlc-group-name:focus {
    border-color: #c9c1ff;
    box-shadow: 0 0 0 4px rgba(112, 98, 233, .08);
}

.tlc-fullscreen-app .tlc-group-form-error {
    min-height: 22px;
    padding-top: 5px;
    color: #d45470;
    font-size: 10px;
}

.tlc-fullscreen-app .tlc-group-submit {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 5px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(120deg, #8878f6, #6554dc);
    box-shadow: 0 7px 16px rgba(101, 84, 220, .2);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.tlc-fullscreen-app .tlc-group-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.tlc-fullscreen-app .tlc-toast {
    position: absolute;
    right: 50%;
    bottom: 26px;
    z-index: 30;
    max-width: calc(100% - 32px);
    padding: 11px 17px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 13px;
    color: #fff;
    background: #39345f;
    box-shadow: 0 10px 25px rgba(30, 28, 58, .2);
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 10px);
    transition: opacity .2s ease, transform .2s ease;
}

.tlc-fullscreen-app .tlc-toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

.tlc-fullscreen-app .tlc-toast.is-error {
    background: #bf5369;
}

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

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

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

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

@keyframes tlc-send-pulse {
    from { transform: scale(.9); opacity: .7; }
    to { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
    .tlc-fullscreen-app .tlc-sidebar {
        flex-basis: 320px;
    }

    .tlc-fullscreen-app .tlc-chat-header {
        padding: 0 22px;
    }
}

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

    .tlc-fullscreen-app .tlc-header {
        gap: 15px;
        padding: max(18px, env(safe-area-inset-top)) 18px 12px;
    }

    .tlc-fullscreen-app .tlc-contact-list {
        padding-right: 10px;
        padding-left: 10px;
    }

    .tlc-fullscreen-app .tlc-chat-area {
        position: absolute;
        inset: 0;
        z-index: 5;
        display: none;
        width: 100%;
        height: 100%;
        background:
            radial-gradient(ellipse at 8% 12%, rgba(213, 208, 255, .22), transparent 30%),
            #f7f8fc;
    }

    .tlc-fullscreen-app .tlc-chat-area.active {
        display: flex;
    }

    .tlc-fullscreen-app .tlc-mobile-topbar {
        display: flex;
        flex: 0 0 48px;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        border-bottom: 1px solid rgba(228, 230, 240, .8);
        color: #777a8e;
        background: rgba(255, 255, 255, .9);
        font-size: 11px;
        font-weight: 700;
    }

    .tlc-fullscreen-app .tlc-mobile-back {
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
        border: 0;
        border-radius: 9px;
        color: var(--tlc-primary);
        background: #f2f0ff;
        font-size: 23px;
        line-height: 1;
    }

    .tlc-fullscreen-app .tlc-chat-header {
        flex-basis: 68px;
        padding: 0 15px;
        background: rgba(255, 255, 255, .9);
    }

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

    .tlc-fullscreen-app .tlc-chat-menu {
        width: 34px;
        height: 34px;
    }

    .tlc-fullscreen-app .tlc-messages-container {
        gap: 11px;
        padding: 18px 14px 15px;
    }

    .tlc-fullscreen-app .tlc-bubble {
        max-width: 88%;
        min-width: 100px;
        padding: 9px 12px 7px;
        border-radius: 16px 16px 5px 16px;
    }

    .tlc-fullscreen-app .tlc-message.sent .tlc-bubble {
        border-radius: 16px 16px 16px 5px;
    }

    .tlc-fullscreen-app .tlc-composer-dock {
        padding: 0 11px max(10px, env(safe-area-inset-bottom));
    }

    .tlc-fullscreen-app .tlc-input-wrapper {
        min-height: 59px;
        gap: 8px;
        padding: 6px 7px 6px 12px;
        border-radius: 19px;
    }

    .tlc-fullscreen-app .tlc-send-btn {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        border-radius: 14px;
    }

    .tlc-fullscreen-app .tlc-message-input {
        min-height: 38px;
        font-size: 12px;
    }

    .tlc-fullscreen-app .tlc-group-dialog {
        padding: 25px 21px;
        border-radius: 22px;
    }

    .tlc-fullscreen-app .tlc-group-modal {
        padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlc-fullscreen-app *,
    .tlc-fullscreen-app *::before,
    .tlc-fullscreen-app *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
