:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #ecfeff;
    --bg: #f0fdfa;
    --panel: #ffffff;
    --border: #ccfbf1;
    --text: #134e4a;
    --muted: #64748b;
    --muted-text: #64748b;
    --mine-bg: #0891b2;
    --sidebar-w: 320px;
    --header-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
}
.tc-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--panel);
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
}
.tc-topbar {
    height: var(--header-h);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 60%);
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tc-app--notify-pulse .tc-topbar {
    animation: tc-notify-pulse 1.2s ease-in-out infinite;
    border-bottom-color: #fca5a5;
}
@keyframes tc-notify-pulse {
    0%, 100% {
        background: linear-gradient(135deg, #ecfeff 0%, #ffffff 60%);
        box-shadow: none;
    }
    50% {
        background: linear-gradient(135deg, #fee2e2 0%, #fff7ed 60%);
        box-shadow: 0 2px 14px rgba(239, 68, 68, 0.22);
    }
}
.tc-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.tc-brand-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #0891b2, #0d9488);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.tc-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted-text); margin-top: 1px; }
.tc-topbar-actions { display: flex; align-items: center; gap: 8px; }
.tc-user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-text); }
.tc-avatar {
    position: relative;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.tc-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.tc-avatar--group { background: #0d9488 !important; }
.tc-status {
    position: absolute; bottom: 0; right: 0;
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid #fff;
}
.tc-status--online { background: #22c55e; }
.tc-status--away { background: #f59e0b; }
.tc-status--offline { background: #94a3b8; }
.tc-btn-link, .tc-icon-btn {
    padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border);
    background: #fff; color: var(--muted-text); font-size: 12px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.tc-icon-btn { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 14px; }
.tc-btn-link:hover, .tc-icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.tc-body { display: flex; flex: 1; min-height: 0; }
.tc-sidebar {
    width: var(--sidebar-w); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; background: #fafbfc; flex-shrink: 0;
}
.tc-tabs { display: flex; border-bottom: 1px solid var(--border); }
.tc-tab {
    flex: 1; padding: 10px; border: none; background: transparent;
    font-size: 13px; font-weight: 600; color: var(--muted-text); cursor: pointer;
}
.tc-tab.active { color: var(--primary); background: var(--primary-light); }
.tc-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tc-search-wrap { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tc-search {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 13px; outline: none;
}
.tc-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,0.15); }
.tc-contact-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tc-contact {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    cursor: pointer; border-bottom: 1px solid #f1f5f9; transition: background .15s;
}
.tc-contact:hover { background: #f8fafc; }
.tc-contact.active { background: var(--primary-light); }
.tc-contact-meta { flex: 1; min-width: 0; }
.tc-contact-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-contact-preview { font-size: 12px; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tc-contact-right { text-align: right; flex-shrink: 0; }
.tc-contact-time { font-size: 11px; color: #94a3b8; }
.tc-badge {
    display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #ef4444; color: #fff;
    font-size: 11px; font-weight: 700; align-items: center; justify-content: center; margin-top: 4px;
}
.tc-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f0fdfa; }
.tc-chat-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--muted-text); gap: 12px; padding: 24px; text-align: center;
}
.tc-chat-empty i { font-size: 48px; opacity: .25; }
.tc-muted { font-size: 12px; }
.tc-chat-head {
    height: 52px; padding: 0 12px 0 16px; display: none; align-items: center; gap: 10px;
    background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.tc-chat-head.show { display: flex; }
.tc-chat-head-meta { flex: 1; min-width: 0; }
.tc-back-btn {
    display: none; width: 36px; height: 36px; border: none; background: transparent;
    color: var(--primary); font-size: 16px; border-radius: 8px; cursor: pointer;
}
.tc-chat-title { font-size: 15px; font-weight: 700; }
.tc-chat-sub { font-size: 12px; color: var(--muted-text); }
.tc-messages {
    flex: 1; overflow-y: auto; padding: 16px; display: none;
    flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch;
}
.tc-messages.show { display: flex; }
.tc-msg-row { display: flex; gap: 8px; max-width: 78%; align-items: flex-end; margin-bottom: 2px; }
.tc-msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.tc-msg-row.peer { align-self: flex-start; }
.tc-bubble-wrap { display: flex; flex-direction: column; max-width: 100%; }
.tc-msg-row.mine .tc-bubble-wrap { align-items: flex-end; }
.tc-msg-row.peer .tc-bubble-wrap { align-items: flex-start; }
.tc-bubble {
    padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55;
    word-break: break-word; white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,.04);
    position: relative;
}
.tc-msg-row.mine .tc-bubble {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.tc-msg-row.peer .tc-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}
.tc-msg-image { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; cursor: zoom-in; object-fit: cover; }
.tc-msg-image:hover { opacity: .92; }
.tc-msg-placeholder { color: #64748b; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tc-msg-caption { margin-top: 6px; font-size: 13px; }
.tc-msg-file { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tc-msg-sender { font-size: 11px; font-weight: 700; color: #0d9488; margin-bottom: 4px; }
.tc-msg-row.mine .tc-msg-sender { color: rgba(255,255,255,.85); }
.tc-msg-time { font-size: 10px; color: #94a3b8; margin-top: 4px; flex-shrink: 0; }
.tc-contact.has-unread .tc-contact-name { color: var(--text); }
.tc-contact.has-unread .tc-contact-preview { color: var(--primary); font-weight: 600; }
.tc-tab { position: relative; }
.tc-tab-badge {
    display: inline-flex; min-width: 16px; height: 16px; padding: 0 4px;
    margin-left: 4px; border-radius: 999px; background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700; align-items: center; justify-content: center;
    vertical-align: middle;
}
.tc-tab-badge[hidden] { display: none !important; }
.tc-icon-btn--active { border-color: #22c55e; color: #16a34a; background: #f0fdf4; }
.tc-icon-btn--muted { border-color: #e2e8f0; color: #94a3b8; background: #f8fafc; }
.tc-icon-btn--warn {
    border-color: #f59e0b;
    color: #d97706;
    background: #fffbeb;
    animation: tc-bell-warn 1.5s ease-in-out infinite;
}
@keyframes tc-bell-warn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
}
.tc-toast {
    position: fixed; top: 56px; left: 50%; transform: translateX(-50%) translateY(-6px);
    z-index: 2000; display: inline-flex; align-items: center; gap: 7px;
    max-width: min(260px, 82vw); padding: 6px 12px 6px 10px;
    background: rgba(255, 255, 255, .97); color: #334155;
    border: 1px solid rgba(8, 145, 178, .22); border-radius: 999px;
    font-size: 12px; line-height: 1.35; font-weight: 500;
    box-shadow: 0 6px 18px rgba(8, 145, 178, .12), 0 2px 6px rgba(15, 23, 42, .06);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.tc-toast-icon {
    flex-shrink: 0; font-size: 11px; color: #0891b2;
    width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
    background: #ecfeff; border-radius: 50%;
}
.tc-toast-text {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 768px) {
    .tc-toast { top: 50px; max-width: min(240px, 88vw); padding: 5px 11px 5px 9px; font-size: 11px; }
}

.tc-msg-notify {
    position: fixed; right: 14px; bottom: calc(14px + var(--safe-bottom, 0px));
    z-index: 2100; display: flex; align-items: stretch;
    max-width: min(200px, calc(100vw - 28px));
    background: rgba(255, 255, 255, .98); border: 1px solid rgba(8, 145, 178, .22);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 22px rgba(8, 145, 178, .14), 0 2px 8px rgba(15, 23, 42, .06);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.tc-msg-notify.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tc-msg-notify[hidden] { display: none !important; }
.tc-msg-notify-main {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
    padding: 9px 10px 9px 12px; border: none; background: transparent;
    color: #0f172a; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left;
}
.tc-msg-notify-main i {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: #ecfeff; color: #0891b2; font-size: 11px;
    display: inline-flex; align-items: center; justify-content: center;
}
.tc-msg-notify-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-msg-notify-main:hover { background: #f0fdfa; }
.tc-msg-notify-close {
    flex-shrink: 0; width: 34px; border: none; border-left: 1px solid #e2e8f0;
    background: transparent; color: #94a3b8; cursor: pointer; font-size: 12px;
}
.tc-msg-notify-close:hover { background: #f8fafc; color: #64748b; }
@media (max-width: 768px) {
    .tc-msg-notify { right: 10px; bottom: calc(10px + var(--safe-bottom, 0px)); max-width: min(188px, calc(100vw - 20px)); }
    .tc-msg-notify-main { padding: 8px 8px 8px 10px; font-size: 11px; }
}
.tc-compose {
    display: none; padding: 12px 14px calc(12px + var(--safe-bottom));
    background: #fff; border-top: 1px solid var(--border);
    gap: 8px; align-items: flex-end; flex-shrink: 0;
    position: relative;
}
.tc-compose.show { display: flex; }
.tc-compose--dragover { background: #ecfeff; border-top-color: var(--primary); }
.tc-compose-btn { flex-shrink: 0; }
.tc-compose-preview {
    display: none; padding: 10px 14px 0; background: #fff; border-top: 1px solid var(--border);
    align-items: center; gap: 10px;
}
.tc-compose-preview.show { display: flex; }
.tc-compose-preview-card {
    position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
    border: 1px solid #cbd5e1; background: #f8fafc; flex-shrink: 0;
}
.tc-compose-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-compose-preview-remove {
    position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: none; border-radius: 50%;
    background: rgba(15,23,42,.72); color: #fff; cursor: pointer; font-size: 11px;
}
.tc-compose-preview-hint { font-size: 12px; color: var(--muted-text); }
.tc-snip-assist {
    position: fixed; inset: 0; z-index: 1190; display: flex; align-items: flex-start; justify-content: center;
    padding-top: 72px; pointer-events: none;
}
.tc-snip-assist[hidden] { display: none !important; }
.tc-snip-assist-box {
    pointer-events: auto; background: #fff; border: 2px solid #0891b2; border-radius: 16px;
    padding: 18px 22px; max-width: 420px; box-shadow: 0 20px 50px rgba(8,145,178,.25);
    text-align: center;
}
.tc-snip-assist-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.tc-snip-assist-title i { color: #0891b2; margin-right: 6px; }
.tc-snip-assist-desc { font-size: 13px; color: var(--muted-text); margin: 0 0 14px; line-height: 1.5; }
.tc-snip-assist-actions { display: flex; gap: 10px; justify-content: center; }
.tc-snip-assist kbd {
    display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 12px;
    background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490;
}
.tc-compose--snip-waiting { outline: 2px dashed #0891b2; outline-offset: 2px; border-radius: 8px; }
.tc-msg-row.mine { cursor: context-menu; }
.tc-msg-image { -webkit-user-drag: none; user-select: none; }
.tc-emoji-panel {
    position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px);
    max-height: 220px; overflow-y: auto; padding: 10px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15,23,42,.12);
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
    z-index: 50;
}
.tc-emoji-panel[hidden] { display: none !important; }
.tc-emoji-btn {
    border: none; background: transparent; font-size: 22px; line-height: 1;
    padding: 6px 2px; border-radius: 8px; cursor: pointer;
}
.tc-emoji-btn:hover, .tc-emoji-btn:active { background: #ecfeff; }
@media (max-width: 640px) {
    .tc-emoji-panel { grid-template-columns: repeat(7, 1fr); max-height: 180px; }
}
.tc-input {
    flex: 1; min-height: 42px; max-height: 120px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 12px; font-size: 14px;
    resize: none; outline: none; font-family: inherit; line-height: 1.45;
}
.tc-input--block { width: 100%; flex: none; }
.tc-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,.12); }
.tc-send-btn {
    width: 42px; height: 42px; border: none; border-radius: 12px;
    background: var(--primary); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.tc-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.tc-loading { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

.tc-modal {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(15,23,42,.45); align-items: center; justify-content: center; padding: 16px;
}
.tc-modal.show { display: flex; }
.tc-modal-box {
    width: min(440px, 100%); max-height: 90vh; background: #fff;
    border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.15); overflow: hidden;
    display: flex; flex-direction: column;
}
.tc-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.tc-modal-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.tc-modal-close { border: none; background: transparent; font-size: 16px; color: var(--muted); cursor: pointer; }
.tc-modal-body { padding: 16px 18px; overflow-y: auto; }
.tc-modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); text-align: right; }
.tc-field-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.tc-radio, .tc-check { display: block; font-size: 13px; margin-bottom: 8px; cursor: pointer; }
.tc-hint { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.tc-divider { height: 1px; background: var(--border); margin: 16px 0; }
.tc-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-btn {
    padding: 8px 14px; border-radius: 10px; border: none; font-size: 13px;
    font-weight: 600; cursor: pointer;
}
.tc-btn--primary { background: var(--primary); color: #fff; }
.tc-btn--outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.tc-btn--danger { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.tc-check-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.tc-check-item { display: block; padding: 6px 8px; font-size: 13px; cursor: pointer; }

.tc-install-block { margin-top: 14px; padding: 12px; background: #ecfeff; border-radius: 12px; border: 1px solid #ccfbf1; }
.tc-install-steps { margin: 8px 0 0 18px; font-size: 13px; line-height: 1.7; color: var(--text); }
.tc-install-steps li { margin-bottom: 4px; }

.tc-lightbox {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .88); cursor: zoom-out;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.tc-lightbox.show { opacity: 1; pointer-events: auto; }
.tc-lightbox img {
    max-width: min(96vw, 1200px); max-height: 92vh;
    border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
    object-fit: contain;
}

.tc-context-menu {
    position: fixed; z-index: 2500; min-width: 168px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15,23,42,.15); padding: 6px;
    opacity: 0; transform: scale(.96); pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.tc-context-menu.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.tc-context-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 10px 12px; border: none; background: transparent;
    border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer; text-align: left;
}
.tc-context-menu button:hover { background: #f1f5f9; }
.tc-context-menu--danger { color: #dc2626 !important; }
.tc-meeting-btn { flex-shrink: 0; color: var(--primary); border-color: #a5f3fc; background: #ecfeff; }
.tc-meeting-btn:hover { background: #cffafe; }
.tc-call-actions { display: flex; gap: 6px; flex-shrink: 0; }
.tc-voice-btn { flex-shrink: 0; color: #059669; border-color: #bbf7d0; background: #ecfdf5; }
.tc-voice-btn:hover { background: #d1fae5; }
.tc-meeting-panel--voice .tc-meeting-frame { background: linear-gradient(180deg, #134e4a 0%, #0f172a 100%); }
.tc-meeting-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 14px; background: linear-gradient(90deg, #ecfeff, #cffafe);
    border-bottom: 1px solid #a5f3fc; font-size: 13px; color: #0e7490; flex-shrink: 0;
}
.tc-meeting-banner[hidden] { display: none !important; }
.tc-btn--sm { padding: 6px 12px; font-size: 12px; }
.tc-meeting-panel {
    position: fixed; inset: 0; z-index: 5000; background: #0f172a;
    display: flex; flex-direction: column;
}
.tc-meeting-panel[hidden] { display: none !important; }
.tc-meeting-toolbar {
    height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(15, 23, 42, .95); color: #fff; flex-shrink: 0;
}
.tc-meeting-toolbar-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meeting-toolbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.tc-meeting-hint {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 8px 12px; background: #fef3c7; color: #92400e;
    border-bottom: 1px solid #fde68a; font-size: 12px; line-height: 1.5; flex-shrink: 0;
}
.tc-meeting-hint[hidden] { display: none !important; }
.tc-meeting-frame { flex: 1; min-height: 0; background: #000; position: relative; }
.tc-meeting-frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.tc-meeting-loading, .tc-meeting-error {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px; text-align: center; color: #e2e8f0; gap: 12px;
}
.tc-meeting-error i { font-size: 40px; color: #fbbf24; }
.tc-meeting-error h3 { font-size: 18px; color: #fff; }
.tc-meeting-error p { font-size: 14px; line-height: 1.7; max-width: 520px; color: #94a3b8; }
.tc-context-menu--danger:hover { background: #fef2f2 !important; }

.tc-context-menu--danger:hover { background: #fef2f2 !important; }

@media (max-width: 768px) {
    .tc-app { max-width: none; box-shadow: none; }
    .tc-sidebar { width: 100%; border-right: none; }
    .tc-sidebar.hidden-mobile { display: none; }
    .tc-chat.hidden-mobile { display: none; }
    .tc-chat { width: 100%; }
    .tc-back-btn { display: flex; align-items: center; justify-content: center; }
    .tc-user-chip span { display: none; }
    .tc-brand small { display: none; }
}
@media (min-width: 769px) {
    .tc-chat:not(.hidden-mobile) { display: flex !important; }
}

.tc-logout-form { display: inline-flex; margin: 0; }
.tc-logout-btn { color: #64748b; }
.tc-logout-btn:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

/* 登录页 */
.tc-login-page {
    min-height: 100vh; margin: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(160deg, #ecfeff 0%, #f0fdfa 45%, #fff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.tc-login-card {
    width: min(400px, 100%);
    background: #fff; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(8, 145, 178, .12);
    border: 1px solid #e2e8f0;
    padding: 32px 28px 24px;
}
.tc-login-brand { text-align: center; margin-bottom: 24px; }
.tc-login-brand .tc-brand-icon {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px;
    background: linear-gradient(135deg, #0891b2, #0d9488);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.tc-login-brand h1 { font-size: 24px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.tc-login-brand p { font-size: 13px; color: #64748b; margin: 0; }
.tc-login-error {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; margin-bottom: 16px;
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
    color: #dc2626; font-size: 13px;
}
.tc-login-form { display: flex; flex-direction: column; gap: 14px; }
.tc-login-field { display: flex; flex-direction: column; gap: 6px; }
.tc-login-field span { font-size: 13px; font-weight: 600; color: #334155; }
.tc-login-field input {
    height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: 15px; outline: none;
}
.tc-login-field input:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,.12); }
.tc-login-remember {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #64748b; cursor: pointer;
}
.tc-login-submit {
    height: 44px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #0d9488);
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tc-login-submit:hover { filter: brightness(1.05); }
.tc-login-foot {
    margin: 18px 0 0; text-align: center; font-size: 12px; color: #94a3b8; line-height: 1.6;
}
