:root,[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--app-vh-lock:100vh;--control-font-size:16px;--bg:#edf3f9;--surface:#ffffffeb;--surface-strong:#fff;--surface-soft:#f7fafde6;--surface-raised:linear-gradient(180deg, #fffffffa, #f4f8fdf0);--surface-tint:#2c9dff0f;--line:#13233d1a;--line-soft:#13233d0f;--text:#152033;--muted:#758195;--brand:#2c9dff;--brand-strong:#1385f1;--brand-soft:#2c9dff24;--danger:#d94a4a;--shadow:0 18px 48px #121d2d14;--bg-layer-a:#40b6ff2e;--bg-layer-b:#2e9dff1f;--bg-grad-top:#f9fbfe;--bg-grad-bottom:#e6eef6;--radius-panel:24px;--radius-group:18px;--radius-control:14px;--radius-bubble:18px;--density-row:64px;--density-row-roomy:68px;--title-page:22px;--title-hero:26px;--title-section:20px;--title-label:13px;--motion-fast:.14s;--motion-base:.18s;--motion-slow:.22s;--motion-press:.1s;--motion-selected:.12s;--motion-loading:.16s;--motion-empty:.18s;--motion-arrival:.22s;--ease-standard:cubic-bezier(.22, 1, .36, 1);--ease-emphasis:cubic-bezier(.2, .9, .2, 1);--ease-native:cubic-bezier(.2, .8, .2, 1)}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f1725;--surface:#182232e6;--surface-strong:#152133;--surface-soft:#182232eb;--surface-raised:linear-gradient(180deg, #182232f5, #121c2bf2);--surface-tint:#2c9dff33;--line:#89a6cc42;--line-soft:#89a6cc29;--text:#e8f1ff;--muted:#9eb4d4;--brand:#56b4ff;--brand-strong:#7dc8ff;--brand-soft:#56b4ff3d;--danger:#ff8d8d;--shadow:0 18px 48px #04070e6b;--bg-layer-a:#3b82f638;--bg-layer-b:#2c9dff29;--bg-grad-top:#0f1725;--bg-grad-bottom:#0b1220}*{box-sizing:border-box}html,body,#root{height:100%;min-height:100%;max-height:100%;overflow:hidden}body{color:var(--text);background:radial-gradient(920px 640px at 15% -8%, var(--bg-layer-a), transparent 58%), radial-gradient(720px 520px at 96% 8%, var(--bg-layer-b), transparent 52%), linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg) 52%, var(--bg-grad-bottom) 100%);margin:0;font-family:SF Pro Text,SF Pro Display,PingFang SC,Helvetica Neue,sans-serif}button,input,select,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}.page{min-height:100dvh;min-height:var(--app-vh-lock)}.app-enter{animation:app-enter var(--motion-slow) var(--ease-standard)}.error{color:var(--danger);margin:0}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.center{place-items:center;padding:16px;display:grid}.page-frame{gap:10px;width:min(1240px,100%);margin:0 auto;display:grid}.tg-shell{height:100dvh;min-height:100dvh;height:var(--app-vh-lock);max-height:var(--app-vh-lock);min-height:var(--app-vh-lock);justify-content:center;align-items:stretch;padding:0;display:flex;overflow:hidden}.tg-svg-icon{stroke:currentColor;stroke-width:1.8px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px;display:block}.tg-app{width:min(430px,100vw);height:100dvh;min-height:100dvh;height:var(--app-vh-lock);max-height:var(--app-vh-lock);min-height:var(--app-vh-lock);border-radius:calc(var(--radius-panel) + 2px);box-shadow:var(--shadow);animation:app-enter var(--motion-slow) var(--ease-standard);background:linear-gradient(#fffffffa,#f4f8fdf5);border:1px solid #0f1f360d;grid-template-rows:auto auto 1fr auto;gap:6px;padding:8px 8px 0;display:grid;position:relative;overflow:hidden}.tg-app[data-capture-mode=true]{opacity:0;pointer-events:none}.tg-app[data-mobile-chat=true]{grid-template-rows:1fr;gap:0;padding:6px}.tg-app[data-mobile-chat=true] .tg-surface.split{flex-direction:column;height:100%;min-height:0;display:flex}.tg-app[data-mobile-chat=true] .tg-chat-pane.visible{flex:auto;height:auto;min-height:0}.tg-app[data-mobile-chat=true] .tg-timeline{flex:auto;min-height:0}.tg-topbar{border-radius:var(--radius-panel);min-height:56px;box-shadow:var(--shadow);background:#ffffffe6;border:1px solid #13233d0a;grid-template-columns:88px minmax(0,1fr) 88px;align-items:center;gap:8px;padding:0 8px;display:grid}.tg-top-search{min-width:0}.tg-top-search .tg-search-shell{height:40px;min-height:40px;box-shadow:none;border-color:#13233d0f;padding:0 10px}.tg-top-search .tg-search{height:34px}.tg-topbar[data-feedback=switch]{animation:none}.tg-topbar[data-feedback=arrival]{box-shadow:0 18px 40px #2c9dff14}.tg-topbar[data-feedback=preview]{box-shadow:0 18px 40px #2c9dff0f}.tg-topbar h1{text-align:center;font-size:var(--title-page);letter-spacing:-.02em;margin:0;font-weight:720}.tg-top-action{width:88px;max-width:88px;min-height:40px;color:var(--brand-strong);cursor:pointer;border-radius:var(--radius-control);transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), color var(--motion-selected) var(--ease-native), opacity var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native);background:0 0;border:0;justify-content:flex-start;align-items:center;gap:6px;padding:6px 10px;display:inline-flex}.page-top-action{min-width:56px}.ghost-action{color:var(--brand-strong)}.page-top-action .subtle{color:var(--muted)}.tg-top-action.align-right{justify-content:flex-end}.tg-top-action.is-hidden{visibility:hidden;pointer-events:none}.tg-top-action:hover,.tg-top-action:focus-visible,.tg-bottom-nav button:hover,.tg-bottom-nav button:focus-visible,.tg-icon-btn:hover,.tg-icon-btn:focus-visible,.tg-chip-action:hover,.tg-chip-action:focus-visible,.tg-send:hover,.tg-send:focus-visible,.tg-main-action:hover,.tg-main-action:focus-visible,.tg-inline-btn:hover,.tg-inline-btn:focus-visible,.tg-row:hover,.tg-row:focus-visible{background:#2c9dff1a;outline:none}.tg-top-action:active,.tg-bottom-nav button:active,.tg-icon-btn:active,.tg-chip-action:active,.tg-send:active,.tg-main-action:active,.tg-inline-btn:active{transform:scale(.992)}.tg-locale-switch{min-height:34px;color:var(--brand-strong);cursor:pointer;transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native);background:#ffffffdb;border:1px solid #2c9dff1f;border-radius:999px;justify-content:center;align-items:center;gap:6px;margin:0;padding:0 12px;display:inline-flex}.tg-top-switches{gap:8px;margin:0 4px 0 auto;display:inline-flex}.tg-theme-switch{min-height:34px;color:var(--brand-strong);cursor:pointer;transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native);background:#ffffffdb;border:1px solid #2c9dff1f;border-radius:999px;justify-content:center;align-items:center;padding:0 12px;display:inline-flex}.tg-locale-switch:hover,.tg-locale-switch:focus-visible,.tg-theme-switch:hover,.tg-theme-switch:focus-visible{background:#2c9dff1a;border-color:#2c9dff33;outline:none}.tg-locale-switch:focus-visible,.tg-theme-switch:focus-visible{box-shadow:0 0 0 3px #2c9dff33}.admin-locale-switch{align-self:end;margin-top:-2px}.admin-top-switches{justify-self:end}.page-surface{background:var(--surface-raised);box-shadow:var(--shadow);transition:transform var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), background-color var(--motion-selected) var(--ease-native);border:1px solid #13233d0a}.page-surface:hover{transform:translateY(-1px);box-shadow:0 18px 42px #121d2d16}.page-surface-elevated{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.page-topbar{border-radius:var(--radius-panel);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);grid-template-columns:88px minmax(0,1fr) 88px;align-items:center;min-height:60px;padding:0 8px;display:grid}.page-topbar h1{text-align:center;min-width:0;font-size:var(--title-page);letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;margin:0;overflow:hidden}.page-topbar-side{min-height:32px;color:var(--brand-strong);justify-content:flex-start;align-items:center;font-size:13px;font-weight:600;display:inline-flex}.page-topbar-side.subtle{color:var(--muted);justify-content:flex-end}.page-topbar-side.ghost{opacity:0}.page-cap{background:var(--surface-tint);width:fit-content;min-height:28px;color:var(--brand-strong);letter-spacing:.06em;text-transform:uppercase;border-radius:999px;align-items:center;padding:0 12px;font-size:11px;font-weight:700;display:inline-flex}.page-group-list{border-radius:var(--radius-group);background:#fffffff5;border:1px solid #13233d0a;gap:0;display:grid;overflow:hidden}.page-surface-subtle{border-radius:var(--radius-group);transition:transform var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), background-color var(--motion-selected) var(--ease-native);background:#fffc;border:1px solid #13233d0d;box-shadow:0 12px 28px #121d2d0d}.page-form-row{background:#ffffffd6;border-bottom:1px solid #13233d0d;gap:5px;padding:11px 12px;display:grid}.page-form-row:last-child{border-bottom:0}.field-label{color:var(--muted);letter-spacing:.03em;text-transform:uppercase;font-size:11px;font-weight:600}.primary-button,.secondary-button,.danger-button{border-radius:var(--radius-control);min-height:44px;transition:background-color var(--motion-selected) var(--ease-native), color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), filter var(--motion-loading) var(--ease-native);border:1px solid #0000;padding:0 16px;font-weight:700}.primary-button{background:linear-gradient(180deg, var(--brand), var(--brand-strong));color:#fff}.secondary-button{color:var(--brand-strong);background:#2c9dff1a;border-color:#2c9dff24}.ghost-button{color:var(--brand-strong)!important;background:#ffffffb3!important;border-color:#13233d14!important}.danger-button{color:var(--danger);background:#d94a4a1a;border-color:#d94a4a29}.primary-button:hover,.primary-button:focus-visible,.danger-button:hover,.danger-button:focus-visible,.secondary-button:hover,.secondary-button:focus-visible{outline:none;transform:translateY(-1px);box-shadow:0 8px 18px #2c9dff24}.primary-button:active,.secondary-button:active,.danger-button:active{transform:translateY(0)scale(.992)}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled,.tg-send:disabled,.tg-main-action:disabled,.tg-top-action:disabled,.tg-inline-btn:disabled,.tg-chip-action:disabled{opacity:.52;cursor:not-allowed;box-shadow:none;transform:none}.tg-top-label{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:13px;font-weight:560;display:inline-block;overflow:hidden}.tg-search-shell{background:#ffffffeb;border:1px solid #13233d0a;border-radius:15px;grid-template-columns:18px 1fr;align-items:center;gap:8px;min-height:48px;padding:0 14px;display:grid;box-shadow:0 10px 28px #121d2d0d}.tg-search-shell.compact{border:1px solid #0000}.tg-search-shell[data-feedback=switch]{animation:none}.tg-search-shell[data-feedback=arrival]{border-color:#2c9dff29;box-shadow:0 10px 28px #2c9dff1a}.tg-search-shell[data-feedback=preview]{border-color:#2c9dff24;box-shadow:0 10px 28px #2c9dff14}.tg-search-icon{color:var(--muted);width:18px;height:18px}.tg-search{width:100%;height:42px;color:var(--text);font-size:var(--control-font-size);background:0 0;border:0;outline:none;padding:0}.tg-pane-meta{min-height:30px;color:var(--muted);animation:fade-slide-in var(--motion-empty) var(--ease-native);justify-content:space-between;align-items:center;gap:10px;padding:0 4px 2px;display:flex}.tg-pane-meta[data-feedback=switch]{animation:none}.tg-pane-kicker{color:var(--brand-strong);letter-spacing:.06em;text-transform:uppercase;font-size:10px;font-weight:700}.tg-pane-meta small{text-align:right;font-size:12px}.tg-list-head-stack{gap:6px;min-height:34px;display:grid}.tg-surface{grid-template-rows:minmax(0,1fr);height:100%;min-height:0;display:grid;overflow:hidden}.tg-surface.split{grid-template-columns:1fr;height:100%}.tg-pane{background:0 0;border:0;min-height:0}.list-pane{scrollbar-gutter:stable;animation:pane-crossfade var(--motion-fast) var(--ease-native);transition:opacity var(--motion-selected) var(--ease-native), transform var(--motion-base) var(--ease-native);flex-direction:column;gap:6px;padding-right:2px;display:flex;overflow:hidden}.list-pane[data-tab=contacts],.list-pane[data-tab=settings],.list-pane[data-tab=favorites]{animation-duration:var(--motion-slow)}.list-pane[data-tab=settings]{overflow-y:auto}.list-pane[data-feedback=switch]{box-shadow:none;transform:translateY(0)}.list-pane[data-feedback=arrival] .thin-list{box-shadow:0 14px 30px #2c9dff14}.list-pane[data-feedback=preview] .thin-list{box-shadow:0 12px 26px #2c9dff0f}.thin-list{border-radius:var(--radius-group);background:var(--surface);border:1px solid #13233d0a;gap:0;overflow:hidden}.thin-list[data-empty=true],.tg-timeline[data-empty=true]{align-content:center;min-height:132px}.hidden-mobile{display:none}.tg-list{flex-direction:column;justify-content:flex-start;align-items:stretch;display:flex}.tg-scroll-list{flex:1;min-height:0;overflow:hidden auto}.tg-focus-list{max-height:188px}.tg-search-list{flex:none;max-height:208px}.tg-row{width:100%;min-height:var(--density-row-roomy);text-align:left;color:inherit;cursor:pointer;transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), border-color var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native);background:0 0;border:0;border-bottom:1px solid #13233d0b;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;padding:9px 12px;display:grid}.tg-row:last-child{border-bottom:0}.tg-row.thin{border-radius:0;height:68px;min-height:68px;max-height:68px}.tg-row-entry{background:#2c9dff0f}.tg-row.active{box-shadow:inset 2px 0 0 var(--brand), inset 0 0 0 1px #2c9dff14;background:linear-gradient(#2c9dff21,#2c9dff17)}.tg-row[data-flash=true]{animation:row-flash var(--motion-arrival) var(--ease-native), row-pop var(--motion-base) var(--ease-native)}.tg-row:hover,.tg-row:focus-visible{transform:translateY(-1px);box-shadow:inset 0 0 0 1px #2c9dff14}.tg-row.active .tg-tail small,.tg-row.thin.active .tg-mainline strong{color:var(--brand-strong)}.tg-avatar{color:#0f7fe8;background:linear-gradient(#dff2ff,#cfe9ff);border-radius:50%;place-items:center;width:42px;height:42px;font-size:17px;font-weight:700;display:grid;box-shadow:inset 0 1px #ffffff80}.tg-avatar.tg-avatar-photo{object-fit:cover;display:block}.tg-mainline{gap:2px;min-width:0;display:grid}.tg-mainline strong{white-space:nowrap;text-overflow:ellipsis;font-size:16px;line-height:1.15;overflow:hidden}.tg-mainline small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.tg-tail{color:var(--muted);justify-items:end;gap:4px;min-width:0;font-size:11px;display:grid}.tg-tail small{white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}.tg-row-delete{white-space:nowrap;border-radius:999px;min-height:26px;padding:0 10px;font-size:11px}.tg-tail em{background:var(--brand);color:#fff;border-radius:999px;place-items:center;min-width:20px;height:20px;padding:0 6px;font-style:normal;display:grid}.tg-unread-dot{background:#e5484d!important}.tg-toggle{color:var(--muted);align-items:center;gap:8px;padding:0 2px;display:flex}.tg-invite{border-radius:var(--radius-group);min-height:116px;transition:box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), transform var(--motion-selected) var(--ease-native);grid-template-columns:1fr 92px;gap:8px;padding:8px;display:grid}.tg-invite input,.tg-group-form input,.tg-group-form select,.tg-composer textarea,.login-card input,.admin-panel input,.admin-panel select{border:1px solid var(--line);border-radius:var(--radius-control);width:100%;font-size:var(--control-font-size);transition:border-color var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), background-color var(--motion-selected) var(--ease-native);background:#fffffff2;outline:none;padding:10px 12px;line-height:1.4}.tg-invite input:focus,.tg-group-form input:focus,.tg-group-form select:focus,.tg-composer textarea:focus,.login-card input:focus,.admin-panel input:focus,.admin-panel select:focus{border-color:#2c9dff52;box-shadow:0 0 0 3px #2c9dff14}.tg-invite button,.tg-group-form button,.tg-send,.tg-main-action,.login-card button,.admin-panel button{background:linear-gradient(180deg, var(--brand), var(--brand-strong));color:#fff;cursor:pointer;border:0;border-radius:14px;font-weight:700}.tg-group-form{border-radius:var(--radius-group);background:var(--surface-raised);border:1px solid var(--line-soft);min-height:116px;transition:box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), transform var(--motion-selected) var(--ease-native);gap:8px;padding:8px;display:grid}.tg-group-form[data-feedback=switch],.tg-invite[data-feedback=switch]{animation:none}.tg-group-form[data-feedback=arrival],.tg-invite[data-feedback=arrival]{border-color:#2c9dff24;box-shadow:0 12px 28px #2c9dff14}.tg-group-form select{min-height:110px}.tg-setting-line{justify-content:space-between;align-items:center;gap:8px;display:flex}.tg-contact-sheet-actions{align-items:flex-start}.tg-contact-sheet-actions .row{justify-content:flex-end;gap:8px}.tg-setting-hint{color:var(--muted);font-size:12px}.tg-chip-action{border:1px solid var(--line);min-height:32px;color:var(--text);cursor:pointer;transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), color var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native);background:#fffffff2;border-radius:999px;padding:0 12px}.tg-chip-action.is-secondary{color:var(--brand-strong);background:#2c9dff14;border-color:#2c9dff24}.tg-chip-action.is-danger{color:var(--danger);background:#d94a4a14;border-color:#d94a4a38}.tg-settings{animation:pane-crossfade var(--motion-fast) var(--ease-native);gap:8px;display:grid}.tg-action-sheet{width:min(100%,520px);max-height:min(86vh,720px);max-height:min(calc(var(--app-vh-lock) - 24px), 720px);grid-template-rows:auto minmax(0,1fr) auto;display:grid}.tg-action-sheet-body{gap:10px;min-height:0;padding:12px 14px;display:grid;overflow-y:auto}.tg-request-center .tg-list{border-radius:var(--radius-group);border:1px solid #13233d0f;overflow:hidden}.tg-request-center{flex-direction:column;place-content:start flex-start;min-height:0;display:flex;overflow:hidden}.tg-request-center.tg-scroll-list{overflow:hidden}.tg-request-center .tg-list{flex:auto;min-height:132px}.tg-request-center .tg-tail .row{gap:6px;display:flex}.tg-request-list-scroll{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;max-height:none;overflow:hidden auto}.tg-row-skeleton{pointer-events:none}.tg-row-skeleton .tg-skeleton-block{color:#0000;background:linear-gradient(90deg,#13233d14,#13233d21,#13233d14) 0 0/200% 100%;border-radius:999px;animation:1.2s linear infinite tg-skeleton-shimmer;display:inline-block}.tg-row-skeleton .tg-avatar.tg-skeleton-block{width:42px;height:42px}.tg-row-skeleton .tg-mainline strong.tg-skeleton-line-primary{width:136px;height:14px}.tg-row-skeleton .tg-mainline small.tg-skeleton-line-secondary{width:176px;height:11px}.tg-row-skeleton .tg-tail .tg-skeleton-chip{width:52px;height:20px}.tg-action-sheet-body input,.tg-action-sheet-body select,.tg-action-sheet-body textarea{border:1px solid var(--line);border-radius:var(--radius-control);width:100%;font-size:var(--control-font-size);background:#fffffff2;outline:none;padding:10px 12px;line-height:1.4}.tg-action-sheet-body select[multiple]{min-height:120px}.tg-action-sheet-body input:focus,.tg-action-sheet-body select:focus,.tg-action-sheet-body textarea:focus{border-color:#2c9dff52;box-shadow:0 0 0 3px #2c9dff14}.tg-action-sheet-body textarea{resize:vertical;min-height:108px;font:inherit;color:var(--text)}.tg-list-actions{justify-content:flex-start}.tg-announcement-line{align-items:flex-start}.tg-action-list{max-height:340px}.tg-profile-card{text-align:center;border-radius:var(--radius-panel);background:var(--surface-raised);border:1px solid #13233d0a;min-height:116px;padding:14px}.compact-profile{padding-bottom:16px}.tg-profile-avatar{color:#fff;background:linear-gradient(#5ec2ff,#1c8cf6);border-radius:50%;place-items:center;width:92px;height:92px;margin:0 auto 10px;font-size:42px;font-weight:800;display:grid}.tg-profile-avatar-img{object-fit:cover;border:1px solid var(--line);border-radius:50%;width:92px;height:92px;margin:0 auto 10px}.tg-profile-card h2{letter-spacing:-.02em;margin:0;font-size:27px}.tg-profile-card p{color:var(--muted);margin:4px 0 0}.tg-chat-pane{border-radius:var(--radius-group);height:100%;min-height:0;animation:pane-crossfade var(--motion-fast) var(--ease-native);transition:transform var(--motion-base) var(--ease-native), opacity var(--motion-base) var(--ease-native), box-shadow var(--motion-base) var(--ease-native);background:linear-gradient(#fffffff5,#f5f9fdeb),linear-gradient(#f7fbff 0%,#eef4fa 100%);border:0;flex-direction:column;flex:auto;min-width:0;display:none;overflow:hidden}.tg-chat-pane[data-feedback=switch]{box-shadow:none}.tg-chat-pane[data-feedback=arrival]{box-shadow:0 12px 36px #2c9dff14}.tg-chat-pane[data-feedback=preview]{box-shadow:0 12px 36px #2c9dff0f}.tg-chat-pane.visible{flex:auto;height:100%;min-height:0;display:flex}.tg-chat-head{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-height:58px;transition:box-shadow var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), transform var(--motion-selected) var(--ease-native);background:#ffffffd1;border-bottom:1px solid #13233d0b;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.tg-chat-head[data-feedback=arrival]{box-shadow:inset 0 -1px #2c9dff14}.tg-chat-head[data-feedback=preview]{box-shadow:inset 0 -1px #2c9dff0f}.tg-chat-head.full{padding-top:10px}.tg-chat-head-minimal{z-index:3;grid-template-columns:auto minmax(0,1fr) auto;min-height:54px;padding:7px 9px;position:relative}.tg-chat-title{gap:1px;min-width:0;display:grid}.tg-chat-title strong{font-size:17px;line-height:1.1}.tg-chat-title small{color:var(--muted);font-size:12px}.tg-chat-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.tg-chat-head-minimal .tg-chat-title strong,.tg-chat-head-minimal .tg-chat-title small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tg-mobile-chat-menu{border-radius:var(--radius-panel);border:1px solid var(--line);background:var(--surface-raised);min-width:136px;box-shadow:var(--shadow);z-index:6;gap:6px;padding:8px;display:grid;position:absolute;top:calc(100% + 6px);right:8px}.tg-side-panel-backdrop{z-index:40;background:#070e1857;border:0;position:fixed;inset:0}.tg-side-panel{border-radius:var(--radius-panel);border:1px solid var(--line);background:var(--surface-raised);width:min(320px,100% - 16px);box-shadow:var(--shadow);z-index:41;grid-template-rows:auto minmax(0,1fr);gap:8px;padding:10px;display:grid;position:absolute;top:56px;bottom:8px;right:8px}.tg-side-panel-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.tg-side-panel-list{-webkit-overflow-scrolling:touch;min-height:0;overflow:hidden auto}.tg-side-panel-body{gap:8px;min-height:0;display:grid;overflow:hidden auto}.tg-side-panel-section{border-radius:var(--radius-group);border:1px solid var(--line-soft);background:var(--surface-raised);gap:8px;padding:8px;display:grid}.tg-side-panel-section select{min-height:40px}.tg-capture-layer{z-index:120;background:#060c14c7;grid-template-rows:auto 1fr;gap:8px;padding:10px;display:grid;position:fixed;inset:0}.tg-capture-toolbar{border:1px solid var(--line);border-radius:var(--radius-panel);background:#0b1420e6;place-items:center start;gap:2px;padding:8px 10px;display:grid}.tg-capture-stage{touch-action:none;cursor:crosshair;width:100%;height:100%;position:relative;overflow:hidden}.tg-capture-image{object-fit:contain;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%}.tg-capture-rect{border:2px dashed var(--brand);box-sizing:border-box;pointer-events:none;background:#2c9dff26;position:absolute}.tg-timeline{scrollbar-gutter:stable;min-height:0;transition:box-shadow var(--motion-base) var(--ease-native), background-position var(--motion-base) var(--ease-native);background:radial-gradient(circle at 100% 0,#47b0ff14,#0000 40%),linear-gradient(#f9fbfd 0%,#f1f5fa 100%);flex:auto;align-content:start;gap:5px;min-width:0;padding:12px 10px;display:grid;overflow:hidden auto}.tg-timeline[data-pulse=true]{animation:timeline-pulse var(--motion-arrival) var(--ease-native);box-shadow:inset 0 0 0 1px #2c9dff1a}.tg-bubble{border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) 8px;max-width:84%;animation:bubble-in var(--motion-arrival) var(--ease-native) both;transition:transform var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), background-color var(--motion-base) var(--ease-native), border-color var(--motion-base) var(--ease-native), opacity var(--motion-selected) var(--ease-native);background:#fffffff5;border:1px solid #1228420f;justify-self:start;min-width:0;padding:9px 38px 8px 11px;position:relative;overflow-x:hidden;box-shadow:0 4px 12px #121f3008}.tg-bubble.mine{border-radius:var(--radius-bubble) var(--radius-bubble) 8px var(--radius-bubble);background:linear-gradient(#e7f3ff,#deefff);border-color:#2c9dff24;justify-self:end}.tg-bubble.grouped{margin-top:-2px}.tg-bubble.continued{border-top-left-radius:12px;margin-top:-6px;margin-left:14px}.tg-bubble.mine.continued{border-top-right-radius:12px;margin-left:0;margin-right:14px}.tg-bubble.stack-tail{margin-bottom:2px}.tg-bubble.failed{border-color:#d94a4a47}.tg-bubble[data-status=sending]{opacity:.92;box-shadow:0 6px 14px #2c9dff14}.tg-bubble[data-status=failed]{background:linear-gradient(#fff8f8f5,#fff1f1f5)}.tg-bubble.highlighted{animation:bubble-in var(--motion-arrival) var(--ease-native) both, highlight-pulse 2.2s var(--ease-native) both;border-color:#2c9dff47;box-shadow:0 0 0 3px #2c9dff2e}.tg-bubble.selected{border-color:#2c9dff57;box-shadow:0 0 0 2px #2c9dff3d}.tg-bubble[data-arrival=true]{animation:bubble-in var(--motion-arrival) var(--ease-native) both, incoming-bubble var(--motion-arrival) var(--ease-native)}.tg-bubble.attachment-only{box-shadow:none;background:0 0;border:0;padding:0}.tg-inline-image-message{cursor:zoom-in;background:0 0;border:0;border-radius:16px;padding:0;display:block;overflow:hidden}.tg-inline-image{object-fit:cover;width:auto;max-width:min(72vw,280px);height:auto;box-shadow:none;background:0 0;border:0;border-radius:16px;display:block}.tg-bubble-menu-trigger{width:26px;height:26px;color:var(--muted);opacity:.82;background:#ffffffd1;border:1px solid #12284214;border-radius:999px;place-items:center;display:grid;position:absolute;top:6px;right:6px}.tg-bubble-menu-trigger:hover,.tg-bubble-menu-trigger:focus-visible{opacity:1;color:var(--brand-strong);background:#fffffff5;border-color:#2c9dff2e}.tg-bubble p{margin:0;font-size:14px;line-height:1.36}.tg-message-stack{gap:8px;display:grid}.tg-message-cluster{grid-template-columns:34px minmax(0,1fr);align-items:end;gap:8px;display:grid}.tg-message-cluster.mine{grid-template-columns:minmax(0,1fr)}.tg-cluster-avatar{color:#0f7fe8;width:30px;height:30px;transition:opacity var(--motion-base) var(--ease-standard);background:linear-gradient(#dff2ff,#cfe9ff);border-radius:50%;align-self:end;place-items:center;margin-bottom:6px;font-size:12px;font-weight:700;display:grid}.tg-cluster-avatar-btn{cursor:pointer;border:0;padding:0}.tg-cluster-avatar-btn:disabled{cursor:default}.tg-cluster-avatar-btn:not(:disabled):hover,.tg-cluster-avatar-btn:not(:disabled):focus-visible{outline:none;box-shadow:inset 0 0 0 1px #2c9dff52}.tg-cluster-avatar.ghost{opacity:0}.tg-day-badge{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;border:1px solid var(--line-soft);background:#ffffffd1;border-radius:999px;grid-column:1/-1;justify-self:center;margin:8px 0 4px;padding:4px 10px;font-size:11px}.tg-attachment-card{transition:transform var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);background:#2c9dff14;border:1px solid #2c9dff24;border-radius:16px;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;min-width:0;max-width:100%;padding:10px 11px;display:grid;overflow:hidden}.tg-attachment-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px #2c9dff14}.tg-attachment-card.image{box-shadow:none;background:0 0;border-color:#0000}.tg-attachment-card.file{background:linear-gradient(#1520330f,#15203308)}.tg-attachment-card.voice{background:linear-gradient(#2c9dff1a,#82c2ff14);grid-template-columns:minmax(0,1fr)}.tg-attachment-card.voice>div:first-child,.tg-attachment-card.voice .tg-attachment-meta,.tg-attachment-card.voice .tg-attachment-actions{grid-column:1/-1}.tg-voice-audio-hidden{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.tg-attachment-preview{cursor:pointer;width:64px;height:64px;transition:transform var(--motion-fast) var(--ease-standard), filter var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);background:0 0;border:0;border-radius:14px;padding:0;overflow:hidden}.tg-attachment-preview:hover,.tg-attachment-preview:focus-visible{filter:saturate(1.05);outline:none;transform:translateY(-1px)scale(1.02)}.tg-attachment-card[data-state=preview] .tg-attachment-preview{transform:translateY(-1px)scale(1.02);box-shadow:0 10px 22px #2c9dff2e}.tg-photo-thumb{color:#fff;background:linear-gradient(135deg,#ffffff3d,#fff0 45%),linear-gradient(#71c5ff,#2f97ff);border-radius:14px;place-items:center;width:64px;height:64px;display:grid}.tg-photo-thumb-image{object-fit:cover;background:0 0;border-radius:14px;width:64px;height:64px;display:block}.tg-attachment-icon{width:34px;height:34px;color:var(--brand-strong);background:#ffffffe6;border-radius:12px;place-items:center;display:grid}.tg-voice-bars{cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;width:64px;height:36px;padding:0;display:flex}.tg-voice-progress{background:#2c9dff1f;border-radius:999px;height:4px;overflow:hidden}.tg-voice-progress>span{border-radius:inherit;height:100%;transition:width var(--motion-base) linear;background:linear-gradient(90deg,#55b8ff,#1f8df5);display:block}.tg-voice-bars.playing span{animation-duration:.8s}.tg-voice-bars span{background:linear-gradient(#5ec2ff,#238ff7);border-radius:999px;width:4px;animation:1.4s ease-in-out infinite voice-wave}.tg-voice-bars span:first-child{height:12px}.tg-voice-bars span:nth-child(2){height:22px;animation-delay:.1s}.tg-voice-bars span:nth-child(3){height:28px;animation-delay:.2s}.tg-voice-bars span:nth-child(4){height:18px;animation-delay:.3s}.tg-voice-bars span:nth-child(5){height:10px;animation-delay:.4s}.tg-attachment-meta{gap:2px;display:grid}.tg-attachment-meta strong{font-size:14px}.tg-attachment-meta small{color:var(--muted);font-size:12px}.tg-attachment-badge{min-height:22px;color:var(--brand-strong);background:#fffc;border-radius:999px;align-self:start;align-items:center;padding:0 8px;font-size:11px;font-weight:700;display:inline-flex}.tg-attachment-actions{justify-items:end;gap:8px;display:grid}.tg-attachment-state{color:var(--muted);text-align:right;min-width:48px;font-size:11px}.tg-reply-chip,.tg-reply-banner{border-left:3px solid var(--brand);background:#2c9dff14}.tg-reply-chip{text-align:left;cursor:pointer;border-top:0;border-bottom:0;border-right:0;border-radius:10px;gap:2px;width:100%;margin-bottom:8px;padding:7px 9px;display:grid}.tg-reply-chip span,.tg-reply-banner span{color:var(--brand-strong);font-size:11px;font-weight:700}.tg-reply-chip strong,.tg-reply-banner strong{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:600;overflow:hidden}.tg-message-reactions{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.tg-reaction-chip{border:1px solid var(--line);min-height:24px;color:var(--text);background:#ffffffd6;border-radius:999px;align-items:center;gap:4px;padding:0 8px;display:inline-flex}.tg-reaction-chip.active{background:#2c9dff24;border-color:#2c9dff47}.tg-reaction-chip small{color:var(--muted);font-size:11px}.tg-bubble-meta{color:var(--muted);justify-content:flex-end;align-items:center;gap:6px;margin-top:6px;font-size:11px;display:flex}.tg-status{text-transform:capitalize}.tg-status.sending{color:var(--brand-strong)}.tg-status.failed{color:var(--danger)}.tg-inline-btn{border:1px solid var(--line);cursor:pointer;min-height:22px;color:var(--text);transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), color var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native);background:#ffffffeb;border-radius:999px;padding:0 8px}.tg-inline-btn:hover,.tg-inline-btn:focus-visible{transform:translateY(-1px)}.tg-inline-btn.is-danger{color:var(--danger);background:#d94a4a14;border-color:#d94a4a2e}.tg-member-check{border:1px solid var(--line);color:#0000;cursor:pointer;width:28px;height:28px;transition:background-color var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native);background:#ffffffeb;border-radius:999px;place-items:center;display:grid}.tg-member-check:hover,.tg-member-check:focus-visible{outline:none;transform:translateY(-1px);box-shadow:0 4px 14px #2c9dff2e}.tg-member-check[data-selected=true]{background:linear-gradient(180deg, var(--brand), var(--brand-strong));color:#fff;border-color:#2c9dff6b}.tg-member-check-mark{opacity:0;transition:opacity var(--motion-selected) var(--ease-native), transform var(--motion-selected) var(--ease-native);font-size:14px;font-weight:700;line-height:1;transform:scale(.75)}.tg-member-check[data-selected=true] .tg-member-check-mark{opacity:1;transform:scale(1)}.tg-chat-hint{max-width:260px;color:var(--muted);text-align:right;font-size:11px;line-height:1.35}.tg-message-menu-backdrop{z-index:70;background:0 0;border:0;position:fixed;inset:0}.tg-message-menu{border:1px solid var(--line);background:var(--surface-raised);width:min(292px,100vw - 24px);max-height:calc(100vh - 24px);box-shadow:var(--shadow);z-index:71;border-radius:20px;padding:10px;position:fixed;overflow:auto}.tg-message-quick-reactions{align-items:center;gap:6px;margin-bottom:8px;display:flex}.tg-message-quick-reactions button{border:1px solid var(--line);min-width:34px;min-height:34px;color:var(--text);background:#ffffffdb;border-radius:999px;place-items:center;display:grid}.tg-message-menu-actions{gap:4px;display:grid}.tg-message-menu-actions button{min-height:42px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:12px;padding:0 12px}.tg-message-menu-actions button.is-danger{color:var(--danger)}.tg-message-menu-actions button:hover,.tg-message-menu-actions button:focus-visible{background:#2c9dff1a;outline:none}.tg-composer{z-index:2;transition:box-shadow var(--motion-selected) var(--ease-native), transform var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native);min-width:0;padding:8px;padding-bottom:max(8px, env(safe-area-inset-bottom));background:#ffffffeb;border-top:1px solid #13233d0b;border-radius:18px;align-items:end;gap:6px;margin:auto 4px 0;display:grid;position:sticky;bottom:0}html[data-keyboard-open=true] .tg-app[data-mobile-chat=true]{padding-top:4px}html[data-keyboard-open=true] .tg-composer{margin-top:0}.tg-composer[data-busy=true]{box-shadow:0 -10px 28px #2c9dff1a}.tg-composer[data-feedback=arrival]{border-top-color:#2c9dff24}.tg-composer[data-feedback=preview]{box-shadow:0 -10px 24px #2c9dff14}.tg-composer.elevated{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.tg-composer-actions{align-items:center;gap:6px;min-width:0;display:flex;position:relative}.tg-attach-btn{border:1px solid var(--line);min-height:40px;color:var(--brand-strong);background:#ffffffeb;border-radius:999px;align-items:center;gap:6px;padding:0 12px;display:inline-flex}.tg-attach-btn span{font-size:13px;font-weight:600}.tg-attachment-menu{border:1px solid var(--line);background:var(--surface-raised);min-width:128px;box-shadow:var(--shadow);z-index:30;border-radius:14px;gap:4px;padding:8px;display:grid;position:absolute;bottom:calc(100% + 8px);left:0}.tg-attachment-menu button{min-height:34px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:10px;padding:0 10px}.tg-attachment-menu button:hover,.tg-attachment-menu button:focus-visible{background:#2c9dff1a;outline:none}.tg-composer-body{gap:6px;min-width:0;display:grid}.tg-composer-right{align-items:center;gap:0;display:flex}.tg-reply-banner{border-radius:12px;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;display:flex}.tg-composer:focus-within{box-shadow:0 -8px 24px #2c9dff14}.tg-composer textarea{resize:none;border-radius:999px;min-height:44px;max-height:96px;padding:10px 14px;overflow-x:hidden}.tg-icon-btn{border:1px solid var(--line);width:40px;height:40px;color:var(--brand-strong);cursor:pointer;transition:background-color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), color var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native);background:#fffffff0;border-radius:999px}.tg-hidden-input{display:none}.tg-sr-only-input{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tg-send{min-width:68px;min-height:40px;transition:filter var(--motion-loading) var(--ease-native), transform var(--motion-press) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), opacity var(--motion-selected) var(--ease-native);border-radius:999px}.tg-send[data-busy=true]{filter:saturate(.92);box-shadow:0 10px 24px #2c9dff33}.tg-main-action{background:linear-gradient(180deg, var(--brand), var(--brand-strong));color:#fff;cursor:pointer;width:44px;min-width:44px;height:44px;min-height:44px;transition:filter var(--motion-loading) var(--ease-native), transform var(--motion-press) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native), opacity var(--motion-selected) var(--ease-native), background-color var(--motion-selected) var(--ease-native), border-color var(--motion-selected) var(--ease-native);border:0;border-radius:999px;place-items:center;display:grid}.tg-main-action[data-mode=voice]{border:1px solid var(--line);color:var(--brand-strong);background:#fffffff0}.tg-main-action[data-mode=recording]{color:var(--danger);background:#d94a4a2e;border:1px solid #d94a4a52}.tg-main-action[data-loading=true]{filter:saturate(.92);box-shadow:0 10px 24px #2c9dff33}.tg-bottom-nav{padding:6px 14px calc(4px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffff38;border-top:1px solid #13233d05;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:auto;display:grid}.tg-bottom-nav button{color:#697386;cursor:pointer;min-height:48px;transition:background-color var(--motion-selected) var(--ease-native), color var(--motion-selected) var(--ease-native), transform var(--motion-press) var(--ease-native), opacity var(--motion-selected) var(--ease-native), box-shadow var(--motion-selected) var(--ease-native);background:0 0;border:0;border-radius:14px;place-items:center;gap:2px;display:grid}.tg-bottom-nav button.active{color:var(--brand-strong);background:#2c9dff1a}.tg-bottom-nav button.active .nav-icon{opacity:1;transform:translateY(-1px)}.tg-bottom-nav button.active:after{content:"";background:var(--brand-strong);border-radius:999px;width:12px;height:2px;margin-top:1px;display:block}.nav-icon{opacity:.82;width:18px;height:18px;transition:transform var(--motion-selected) var(--ease-native), opacity var(--motion-selected) var(--ease-native);display:flex}.nav-label{opacity:.54;letter-spacing:-.01em;transition:opacity var(--motion-selected) var(--ease-native);font-size:10px}.tg-bottom-nav button em{min-width:16px;color:var(--brand-strong);background:#2c9dff24;border-radius:999px;padding:1px 4px;font-size:10px;font-style:normal;line-height:1}.tg-nav-badge{color:var(--brand-strong)!important;background:#2c9dff24!important}.tg-nav-badge-alert{color:#e5484d!important;background:#e5484d2e!important}.tg-bottom-nav button.active .nav-label{opacity:.72}.tg-empty{text-align:center;color:var(--muted);animation:fade-slide-in var(--motion-empty) var(--ease-native);margin:10px 0;font-size:13px}.tg-toast{color:#fff;animation:fade-slide-in var(--motion-empty) var(--ease-native);background:#121824eb;border-radius:999px;padding:8px 12px;font-size:13px;position:absolute;bottom:74px;left:50%;transform:translate(-50%)}.login-page{place-items:center;height:100%;max-height:100%;padding:18px;display:grid;overflow-y:auto}html[data-keyboard-open=true] .login-page{padding-top:max(18px, env(safe-area-inset-top));place-items:start center}.login-shell{place-items:center;gap:10px;width:min(540px,100%);display:grid;position:relative}.login-shell>.page-topbar,.login-shell>.login-card{width:min(420px,100%)}.login-orb{filter:blur(8px);opacity:.5;border-radius:50%;position:absolute}.login-orb-a{background:#2a9dff2e;width:180px;height:180px;top:0;left:10%}.login-orb-b{background:#2a9dff1f;width:230px;height:230px;bottom:6%;right:6%}.login-card{z-index:1;border-radius:var(--radius-panel);width:min(420px,100%);animation:app-enter var(--motion-slow) var(--ease-standard);gap:9px;padding:18px 18px 16px;display:grid;position:relative}.login-meta-strip,.admin-stage-strip{flex-wrap:wrap;gap:8px;display:flex}.login-meta-pill,.admin-stage-pill{min-height:26px;color:var(--brand-strong);background:#2c9dff14;border-radius:999px;align-items:center;padding:0 10px;font-size:11px;font-weight:700;display:inline-flex}.page-heading{align-items:center;gap:12px;display:flex}.page-heading-copy{gap:2px;display:grid}.page-heading-copy h1,.page-heading-copy h2{letter-spacing:-.03em;margin:0}.page-heading-copy h1{font-size:var(--title-hero);line-height:1}.page-heading-copy h2{font-size:var(--title-section);line-height:1.1}.page-heading-copy p{color:var(--muted);font-size:var(--title-label);margin:0;line-height:1.35}.section-heading{margin-bottom:2px}.surface-note{border-radius:calc(var(--radius-control) + 2px);background:#2c9dff14;border:1px solid #2c9dff14;gap:2px;padding:10px 12px;display:grid}.surface-note.dense{gap:4px}.surface-note strong{font-size:14px}.surface-note small{color:var(--muted)}.surface-note.compact{padding-block:9px}.surface-note.danger{background:#d94a4a14;border-color:#d94a4a1a}.brand-badge{color:#fff;background:linear-gradient(#67c8ff,#258ff6);border-radius:17px;place-items:center;width:54px;height:54px;font-weight:800;display:grid}.login-card label{gap:6px;display:grid}.auth-group-list{border-radius:var(--radius-group)}.auth-actions{grid-template-columns:1fr auto;gap:8px;display:grid}.page-action-strip .secondary-button{min-width:84px}.login-card input{min-height:46px;box-shadow:none;background:0 0;border:0;border-radius:0;padding-inline:0}.login-card button{border-radius:999px;min-height:46px}.admin-shell-root{align-items:stretch}.admin-app{grid-template-rows:auto minmax(0,1fr) auto;width:min(980px,100vw)}.admin-topbar{grid-template-columns:88px 1fr 88px}.admin-mini-summary{border-radius:var(--radius-group);background:#ffffffb3;border:1px solid #13233d0f;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;display:grid}.admin-mini-card{min-height:52px;color:var(--text);transition:border-color var(--motion-fast) var(--ease-native), background var(--motion-fast) var(--ease-native);background:#ffffffeb;border:1px solid #13233d0f;border-radius:12px;align-content:center;justify-items:center;gap:2px;display:grid}.admin-mini-card strong{font-size:16px;line-height:1}.admin-mini-card small{color:var(--muted);font-size:11px}.admin-mini-card.active{background:#2c9dff1f;border-color:#2c9dff4d}.admin-stage-switch{scrollbar-width:thin;border-radius:var(--radius-group);gap:6px;padding:6px;display:flex;overflow:auto hidden}.admin-tab-btn{min-height:36px;color:var(--muted);white-space:nowrap;background:#ffffffe0;border:1px solid #13233d14;border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 12px;display:inline-flex}.admin-tab-btn.active{color:var(--brand-strong);background:#2c9dff24;border-color:#2c9dff57}.admin-panel{border-radius:var(--radius-panel);gap:10px;min-height:0;display:grid}.admin-panel-screen{flex-direction:column;height:100%;min-height:0;padding:12px;display:flex;overflow:hidden}.admin-panel-head{gap:2px;display:grid}.admin-panel-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;flex:auto;min-height:0;padding-right:2px;display:block;overflow:hidden auto}.admin-panel-scroll>*+*{margin-top:8px}.admin-panel input,.admin-panel select{min-height:42px}.admin-search-row,.admin-section-actions{gap:8px;display:grid}.admin-search-row[data-active=true]{animation:fade-slide-in var(--motion-empty) var(--ease-native)}.admin-search-row{grid-template-columns:1fr 88px}.admin-invite-row{grid-template-columns:minmax(0,1fr) 110px;align-items:center}.admin-section-actions{grid-template-columns:auto auto 1fr;align-items:center}.admin-inline-note{color:var(--muted);font-size:12px}.admin-primary,.admin-secondary{min-height:42px}.admin-secondary{color:var(--brand-strong)!important}.admin-note{width:min(100%,580px)}.admin-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-summary-item{background:#ffffffc7;border-right:1px solid #13233d0d;gap:2px;padding:10px 12px;display:grid}.admin-summary-item:last-child{border-right:0}.admin-summary-item strong{font-size:18px;line-height:1}.admin-summary-item small{color:var(--muted);font-size:12px}.admin-list{background:#fffffff5;flex-direction:column;align-items:stretch;display:flex}.admin-panel-list[data-empty=true]{place-items:center;min-height:132px;display:grid}.admin-tail{min-width:62px}.admin-tail .row{flex-wrap:nowrap;justify-content:flex-end;gap:6px;max-width:100%;overflow:hidden}.admin-list .tg-row{background:0 0}.admin-list .tg-row.compact{flex:0 0 68px;height:68px;min-height:68px;max-height:68px}.admin-bottom-nav{background:#ffffff85;border:1px solid #13233d0a;border-radius:16px;grid-template-columns:repeat(6,1fr);margin-bottom:0}.admin-bottom-nav .nav-label{white-space:nowrap}@media (width<=979px){.login-page{padding:10px 10px max(16px, env(safe-area-inset-bottom));place-items:start center}.page-topbar,.tg-topbar{grid-template-columns:64px minmax(0,1fr) 64px;gap:6px;min-height:52px;padding:0 6px}.page-topbar h1,.tg-topbar h1{font-size:19px}.tg-top-action{gap:4px;width:64px;max-width:64px;min-height:36px;padding:4px 6px}.page-heading-copy p,.admin-panel-head .page-heading-copy p{display:none}.login-shell{align-items:stretch;width:100%}.login-shell>.page-topbar,.login-shell>.login-card{width:100%}.auth-actions{grid-template-columns:1fr}.page-action-strip .secondary-button{width:100%;min-width:0}.admin-app{border-left:0;border-right:0;border-radius:0;width:100vw;padding:8px}.admin-topbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:6px}.admin-topbar .tg-top-action{justify-content:center;width:44px;min-width:44px;max-width:44px;padding:0}.admin-topbar .tg-top-label{display:none}.admin-top-search .tg-search-shell{gap:6px;height:38px;min-height:38px;padding:0 8px}.admin-top-search .tg-search{height:32px}.admin-panel-screen{padding:10px}.admin-bottom-nav .nav-label{font-size:9px}.tg-composer{border-radius:16px;gap:4px;margin:0 2px;padding:6px}.tg-composer.elevated{grid-template-columns:auto minmax(0,1fr) auto;gap:4px}.tg-attach-btn{justify-content:center;min-width:38px;min-height:38px;padding:0}.tg-attach-btn span{display:none}.tg-composer textarea{min-height:40px;max-height:120px;padding:9px 12px}.tg-main-action{width:40px;height:40px}.tg-lightbox{place-items:end center;padding:10px}.tg-lightbox-sheet,.tg-action-sheet,.tg-confirm-sheet{width:100%;max-width:100%}.tg-lightbox-sheet{max-height:min(calc(var(--app-vh-lock) - 12px), 860px);border-radius:20px 20px 16px 16px}.tg-lightbox-topbar{align-items:flex-start}.tg-lightbox-topbar>div{min-width:0}.tg-lightbox-topbar small,.tg-lightbox-topbar strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tg-lightbox-actions,.tg-confirm-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.tg-lightbox-actions>*,.tg-confirm-actions>*{width:100%}.list-pane{gap:4px;padding-right:0}.thin-list{border-radius:calc(var(--radius-group) - 2px)}.tg-row{grid-template-columns:38px 1fr auto;gap:8px;padding:8px 10px}.tg-row.thin{height:64px;min-height:64px;max-height:64px}.tg-avatar{width:38px;height:38px;font-size:12px}.tg-pane-meta{gap:8px;min-height:26px;padding:0 2px 1px}.tg-pane-kicker{font-size:9px}.tg-pane-meta small{font-size:11px}.tg-bottom-nav{padding:4px 8px calc(3px + env(safe-area-inset-bottom));gap:2px}.tg-bottom-nav button{border-radius:12px;gap:1px;min-height:44px}.nav-icon{width:17px;height:17px}.nav-label{font-size:9px}.tg-bottom-nav button em{min-width:14px;padding:1px 3px;font-size:9px}.tg-timeline{gap:4px;padding:10px 8px}.tg-message-cluster{grid-template-columns:30px minmax(0,1fr);gap:6px}.tg-cluster-avatar{width:26px;height:26px;margin-bottom:4px;font-size:11px}.tg-bubble{max-width:88%;padding:8px 34px 7px 10px;box-shadow:0 3px 10px #121f3006}.tg-bubble.continued{margin-top:-4px;margin-left:10px}.tg-bubble.mine.continued{margin-right:10px}.tg-bubble-menu-trigger{width:24px;height:24px;top:5px;right:5px}.tg-bubble p{font-size:13px;line-height:1.32}.tg-bubble-meta{gap:4px;margin-top:5px;font-size:10px}.tg-inline-image,.tg-inline-image-message{border-radius:14px}.tg-inline-image{max-width:min(74vw,240px)}.tg-attachment-card{border-radius:14px;gap:8px;padding:8px 9px}.tg-attachment-preview,.tg-photo-thumb,.tg-photo-thumb-image{border-radius:12px;width:56px;height:56px}.tg-attachment-icon{border-radius:10px;width:30px;height:30px}.tg-voice-bars{gap:3px;width:56px;height:32px}.tg-reply-banner{margin-bottom:6px;padding:6px 8px}.tg-reply-banner span{font-size:10px}.tg-reply-banner strong{font-size:11px}.tg-group-form{gap:6px;min-height:0;padding:6px}.tg-group-form select{min-height:96px}.tg-setting-line{align-items:flex-start;gap:6px}.tg-setting-line .row.wrap{justify-content:flex-start;width:100%}.tg-chip-action{min-height:30px;padding:0 10px}}.tg-lightbox{z-index:6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fade-slide-in var(--motion-empty) var(--ease-native);background:#070e1894;place-items:center;padding:18px;display:grid;position:absolute;inset:0}html[data-keyboard-open=true] .tg-lightbox{place-items:end center;padding:10px}.tg-lightbox-sheet{width:min(100%,560px);max-height:min(calc(var(--app-vh-lock) - 24px), 860px);border-radius:var(--radius-panel);transform-origin:50%;transition:box-shadow var(--motion-selected) var(--ease-native), transform var(--motion-selected) var(--ease-native);background:#fffffffa;overflow:hidden;box-shadow:0 24px 54px #08121f38}.tg-lightbox-sheet[data-feedback=preview]{box-shadow:0 26px 60px #2c9dff2e}.tg-lightbox-sheet.motion-next{animation:lightbox-swap-next var(--motion-base) var(--ease-native)}.tg-lightbox-sheet.motion-prev{animation:lightbox-swap-prev var(--motion-base) var(--ease-native)}.tg-lightbox-sheet.motion-enter{animation:app-enter var(--motion-base) var(--ease-native)}.tg-lightbox-topbar{border-bottom:1px solid #13233d0f;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.tg-lightbox-topbar strong,.tg-lightbox-topbar small{display:block}.tg-lightbox-topbar small{color:var(--muted)}.tg-lightbox-actions{gap:8px;display:flex}.tg-confirm-sheet{width:min(100%,420px)}.tg-confirm-body{gap:8px;padding:18px 16px 10px;display:grid}.tg-confirm-body p{color:var(--text);margin:0}.tg-confirm-body small{color:var(--muted)}.tg-confirm-actions{justify-content:flex-end;padding:0 16px 16px}.tg-lightbox-image{object-fit:contain;width:100%;max-height:min(70vh,560px);transition:transform var(--motion-base) var(--ease-native), opacity var(--motion-base) var(--ease-native), filter var(--motion-selected) var(--ease-native);background:#eff4fa;display:block}.tg-lightbox-image.motion-next{animation:media-shift-next var(--motion-base) var(--ease-native)}.tg-lightbox-image.motion-prev{animation:media-shift-prev var(--motion-base) var(--ease-native)}.primary-button[data-loading=true],.secondary-button[data-loading=true],.danger-button[data-loading=true],.tg-send[data-loading=true],.tg-main-action[data-loading=true],.tg-invite button[data-loading=true],.tg-group-form button[data-loading=true]{animation:subtle-loading var(--motion-loading) ease-in-out infinite alternate}.tg-attachment-card[data-state=downloading]{border-color:#2c9dff47;box-shadow:0 10px 24px #2c9dff1f}.tg-attachment-card[data-state=downloaded],.tg-attachment-card[data-state=preview]{border-color:#2c9dff3d;transform:translateY(-1px)}.tg-attachment-card[data-state=playing]{box-shadow:inset 0 0 0 1px #2c9dff29}.tg-lightbox-placeholder{min-height:280px;color:var(--muted);background:linear-gradient(#f9fbfd,#f1f5fa);place-items:center;gap:8px;display:grid}@media (width<=979px){.tg-chat-head-mobile{gap:6px;min-height:52px;padding:6px 8px}.tg-chat-head-mobile .tg-top-action{min-height:34px;padding:4px 8px}.tg-chat-head-mobile .tg-chat-title{min-width:0;overflow:hidden}.tg-chat-head-mobile .tg-chat-title strong,.tg-chat-head-mobile .tg-chat-title small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.tg-chat-hint,.tg-surface.split[data-has-chat=true] .list-pane,.tg-surface.split[data-has-chat=false] .tg-chat-pane{display:none}}[data-theme=dark] .tg-app,[data-theme=dark] .page-surface,[data-theme=dark] .page-surface-subtle,[data-theme=dark] .page-group-list,[data-theme=dark] .tg-topbar,[data-theme=dark] .tg-search-shell,[data-theme=dark] .tg-chat-pane,[data-theme=dark] .tg-composer,[data-theme=dark] .tg-row,[data-theme=dark] .tg-profile-card,[data-theme=dark] .admin-panel,[data-theme=dark] .admin-hero,[data-theme=dark] .login-card,[data-theme=dark] .tg-lightbox-sheet{background:var(--surface-raised);border-color:var(--line)}[data-theme=dark] .tg-locale-switch,[data-theme=dark] .tg-theme-switch,[data-theme=dark] .tg-icon-btn,[data-theme=dark] .tg-main-action[data-mode=voice],[data-theme=dark] .tg-attach-btn,[data-theme=dark] .tg-chip-action,[data-theme=dark] .tg-inline-btn,[data-theme=dark] .ghost-button,[data-theme=dark] .secondary-button{color:var(--text)!important;border-color:var(--line)!important;background:#141f2fd9!important}[data-theme=dark] .tg-member-check{border-color:var(--line);background:#141f2fd9}[data-theme=dark] .tg-member-check[data-selected=true]{background:linear-gradient(180deg, var(--brand), var(--brand-strong))!important;color:#fff!important;border-color:#56b4ff75!important}[data-theme=dark] .tg-locale-switch:focus-visible,[data-theme=dark] .tg-theme-switch:focus-visible{box-shadow:0 0 0 3px #56b4ff47}[data-theme=dark] .login-card input,[data-theme=dark] .tg-invite input,[data-theme=dark] .tg-group-form input,[data-theme=dark] .tg-group-form select,[data-theme=dark] .tg-action-sheet-body input,[data-theme=dark] .tg-action-sheet-body select,[data-theme=dark] .tg-action-sheet-body textarea,[data-theme=dark] .tg-composer textarea,[data-theme=dark] .admin-panel input,[data-theme=dark] .admin-panel select{color:var(--text);border-color:var(--line);background:#121c2beb}[data-theme=dark] .page-form-row{border-bottom-color:var(--line);background:#121c2bd1}[data-theme=dark] .auth-group-list{border:1px solid var(--line);background:#121c2bc7}[data-theme=dark] .login-card .page-form-row input{color:var(--text);background:0 0}[data-theme=dark] .tg-mainline small,[data-theme=dark] .tg-tail,[data-theme=dark] .surface-note small,[data-theme=dark] .page-heading-copy p,[data-theme=dark] .field-label{color:var(--muted)}[data-theme=dark] .tg-row-skeleton .tg-skeleton-block{background:linear-gradient(90deg,#9eb4d424,#9eb4d43d,#9eb4d424) 0 0/200% 100%}[data-theme=dark] .tg-chat-pane{border-color:var(--line);background:linear-gradient(#111a28f5,#0c1421f0),linear-gradient(#111a28 0%,#0c1421 100%)}[data-theme=dark] .tg-search-shell,[data-theme=dark] .tg-search,[data-theme=dark] .tg-pane-meta,[data-theme=dark] .tg-surface.split,[data-theme=dark] .tg-surface,[data-theme=dark] .tg-composer-body,[data-theme=dark] .tg-composer textarea{color:var(--text);border-color:var(--line);background:#121c2be0}[data-theme=dark] .tg-chat-head,[data-theme=dark] .tg-timeline,[data-theme=dark] .tg-composer,[data-theme=dark] .tg-reply-chip,[data-theme=dark] .tg-day-badge,[data-theme=dark] .tg-attachment-card,[data-theme=dark] .tg-bottom-nav,[data-theme=dark] .tg-chat-hint,[data-theme=dark] .tg-chat-actions,[data-theme=dark] .tg-pane-meta,[data-theme=dark] .tg-toast,[data-theme=dark] .tg-group-form,[data-theme=dark] .tg-invite,[data-theme=dark] .tg-attachment-menu,[data-theme=dark] .tg-mobile-chat-menu,[data-theme=dark] .tg-side-panel,[data-theme=dark] .tg-message-menu{border-color:var(--line);color:var(--text);background:#121c2bdb}[data-theme=dark] .tg-attachment-card.image{box-shadow:none;background:0 0;border-color:#0000}[data-theme=dark] .tg-timeline{background:linear-gradient(#0f1725f5 0%,#0c131ff5 100%)}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-timeline{background:radial-gradient(circle at 14% 9%,#5a4aff24,#0000 38%),radial-gradient(circle at 86% 83%,#2d7bff1f,#0000 42%),linear-gradient(#070b15 0%,#050912 100%)}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-chat-head{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#121826d1;border:1px solid #6785be47;border-radius:18px;margin:8px 10px 0}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-chat-title strong{font-size:19px}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-chat-title small{color:#dae0ecb3}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-composer{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0e1421db;border:1px solid #5f7eb747;border-radius:18px;margin:0 4px}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-composer textarea{border-radius:999px;min-height:44px;max-height:96px;padding:10px 14px}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-icon-btn{border-radius:999px}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-send{border-radius:999px;min-width:72px;min-height:44px}[data-theme=dark] .tg-chat-pane[data-conversation-type=DIRECT] .tg-main-action[data-mode=voice]{border-radius:999px}[data-theme=dark] .tg-main-action[data-mode=recording]{color:#ffd6d6;background:#ff8d8d29;border-color:#ff8d8d52}[data-theme=dark] .tg-bubble{border-color:var(--line);color:var(--text);background:#182334f5}[data-theme=dark] .tg-bubble.mine{background:#1e446cdb;border-color:#56b4ff57}[data-theme=dark] .tg-reaction-chip,[data-theme=dark] .tg-message-quick-reactions button{border-color:var(--line);color:var(--text);background:#141f2fe0}[data-theme=dark] .tg-reaction-chip.active{background:#56b4ff33;border-color:#56b4ff5c}[data-theme=dark] .tg-bubble.failed{background:#481e26d1;border-color:#ff8d8d66}[data-theme=dark] .tg-bubble-meta small,[data-theme=dark] .tg-chat-title small,[data-theme=dark] .tg-pane-kicker,[data-theme=dark] .tg-chat-hint,[data-theme=dark] .tg-setting-hint{color:var(--muted)}[data-theme=dark] .tg-bottom-nav{border-top-color:var(--line);background:#0d1521e6}[data-theme=dark] .tg-bottom-nav button{color:var(--muted)}[data-theme=dark] .tg-bottom-nav button.active{color:var(--text);background:#56b4ff29}[data-theme=dark] .tg-lightbox-image,[data-theme=dark] .tg-lightbox-placeholder{background:#0f1725}[data-theme=dark] .tg-toast{background:#080e18f2}[data-theme=dark] .brand-badge,[data-theme=dark] .tg-profile-avatar{background:linear-gradient(#4a9df7,#2b74d6)}[data-theme=dark] .login-orb-a{background:#488eff3d}[data-theme=dark] .login-orb-b{background:#488eff33}[data-theme=dark] .tg-top-action:hover,[data-theme=dark] .tg-top-action:focus-visible,[data-theme=dark] .tg-bottom-nav button:hover,[data-theme=dark] .tg-bottom-nav button:focus-visible,[data-theme=dark] .tg-icon-btn:hover,[data-theme=dark] .tg-icon-btn:focus-visible,[data-theme=dark] .tg-chip-action:hover,[data-theme=dark] .tg-chip-action:focus-visible,[data-theme=dark] .tg-send:hover,[data-theme=dark] .tg-send:focus-visible,[data-theme=dark] .tg-main-action:hover,[data-theme=dark] .tg-main-action:focus-visible,[data-theme=dark] .tg-inline-btn:hover,[data-theme=dark] .tg-inline-btn:focus-visible,[data-theme=dark] .tg-member-check:hover,[data-theme=dark] .tg-member-check:focus-visible,[data-theme=dark] .tg-row:hover,[data-theme=dark] .tg-row:focus-visible{background:#56b4ff29}[data-theme=dark] .tg-member-check[data-selected=true]:hover,[data-theme=dark] .tg-member-check[data-selected=true]:focus-visible{background:linear-gradient(180deg, var(--brand), var(--brand-strong))!important}@keyframes fade-slide-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes app-enter{0%{opacity:0;transform:translateY(10px)scale(.992)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes row-flash{0%{background:#2c9dff24}to{background:0 0}}@keyframes row-pop{0%{transform:scale(.997)}55%{transform:scale(1.004)}to{transform:scale(1)}}@keyframes bubble-in{0%{opacity:0;transform:translateY(6px)scale(.988)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes pane-switch{0%{opacity:.92;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@keyframes pane-crossfade{0%{opacity:.94}to{opacity:1}}@keyframes nav-shift{0%{opacity:.88;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes timeline-pulse{0%{box-shadow:inset 0 0 #2c9dff00}55%{box-shadow:inset 0 0 0 1px #2c9dff1f}to{box-shadow:inset 0 0 #2c9dff00}}@keyframes incoming-bubble{0%{transform:translateY(4px)scale(.99);box-shadow:0 0 #2c9dff00}45%{transform:translateY(0)scale(1);box-shadow:0 0 0 2px #2c9dff1c}to{box-shadow:0 0 #2c9dff00}}@keyframes highlight-pulse{0%{box-shadow:0 0 #2c9dff33}18%{box-shadow:0 0 0 3px #2c9dff2e}to{box-shadow:0 0 #2c9dff00}}@keyframes voice-wave{0%,to{opacity:.8;transform:scaleY(.76)}50%{opacity:1;transform:scaleY(1)}}@keyframes lightbox-swap-next{0%{opacity:.92;transform:translate(12px)}to{opacity:1;transform:translate(0)}}@keyframes lightbox-swap-prev{0%{opacity:.92;transform:translate(-12px)}to{opacity:1;transform:translate(0)}}@keyframes media-shift-next{0%{opacity:.94;transform:translate(8px)scale(.99)}to{opacity:1;transform:translate(0)scale(1)}}@keyframes media-shift-prev{0%{opacity:.94;transform:translate(-8px)scale(.99)}to{opacity:1;transform:translate(0)scale(1)}}@keyframes subtle-loading{0%{filter:saturate(.96)brightness(.99)}to{filter:saturate()brightness(1.03)}}@keyframes tg-skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}
