:root{--tg-bg: #0e0e10;--tg-text: #f4f4f5;--tg-hint: #8b8b92;--tg-link: #6cb6ff;--tg-button: #2ea6ff;--tg-button-text: #ffffff;--tg-secondary: #1a1a1f;--tg-header: #111114;--tg-section: #16161b;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--app-width: 390px;font-family:Inter,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#050506;color:var(--tg-text)}#root{min-height:100vh}button{font:inherit;cursor:pointer}.estage{min-height:100svh;display:flex;justify-content:stretch;align-items:stretch;background:var(--tg-bg)}.ephone{position:relative;width:100%;max-width:none;min-height:100svh;display:flex;flex-direction:column;background:var(--tg-bg);overflow:hidden}@media (min-width: 720px){.estage{justify-content:center;align-items:center;padding:24px 16px;background:radial-gradient(1200px 500px at 50% -10%,#1a1d24 0%,transparent 55%),#050506}.ephone{max-width:var(--app-width);min-height:min(844px,calc(100vh - 48px));height:min(844px,calc(100vh - 48px));border-radius:28px;box-shadow:0 0 0 1px color-mix(in srgb,white 8%,transparent),0 24px 80px #00000073}}.escreen{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--tg-bg)}.ehead{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;padding:calc(10px + var(--safe-top)) 12px 10px;background:var(--tg-header);border-bottom:1px solid color-mix(in srgb,var(--tg-text) 8%,transparent)}.ehead h1{margin:0;font-size:17px;text-align:center}.ebrand{display:inline-flex;align-items:center;justify-content:center;gap:8px}.emark{width:22px;height:22px;display:block}.etrail{display:flex;gap:4px;align-items:center}.euser{display:inline-flex;align-items:center;gap:6px;max-width:92px;color:var(--tg-hint);font-size:11px}.euser i,.euser img{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#2a2a32;font-style:normal;font-size:11px;object-fit:cover}.euser em{font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.euser.is-live i,.euser.is-live img{box-shadow:0 0 0 2px #2ea6ff}.ebtn{border:0;background:var(--tg-button);color:var(--tg-button-text);border-radius:10px;padding:8px 10px}.ebtn.ghost{background:transparent;color:var(--tg-link);min-width:36px}.ebtn.block{width:100%;margin-top:12px;padding:14px}.ebody{flex:1;display:flex;flex-direction:column;min-height:0}.ecatalog,.eonboard{padding:20px 16px;display:flex;flex-direction:column;gap:12px}.etile{width:100%;text-align:left;border:0;border-radius:18px;padding:0 0 16px;overflow:hidden;background:linear-gradient(160deg,#1d2a3a,#12151c);color:var(--tg-text)}.etile:disabled{opacity:.45}.etile h2{margin:10px 16px 6px}.etile p{margin:0 16px;color:var(--tg-hint)}.etile .ebadge{margin:10px 16px 0}.ecover{display:block;height:128px;background:#161016}.ecover img{width:100%;height:128px;object-fit:cover;display:block}.ecover-ph{display:block;height:128px;background:repeating-linear-gradient(135deg,#1a1a22 0,#1a1a22 12px,#14141a 12px,#14141a 24px)}.eonboard .etile{padding:20px}.eonboard .etile h2{margin:8px 0 6px}.eonboard .etile p{margin:0}.ebadge{display:inline-block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--tg-link)}.elist{display:flex;flex-direction:column}.erow{display:flex;gap:12px;align-items:center;padding:14px 16px;border:0;background:transparent;color:inherit;text-align:left;width:100%;border-bottom:1px solid color-mix(in srgb,var(--tg-text) 8%,transparent)}.erow.is-active{background:color-mix(in srgb,var(--tg-button) 12%,transparent)}.eav{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:#2b3644;flex:0 0 44px}.eav-eva{background:#355d8a}.eav-architect{background:#8a2b2b}.eav-system{background:#3a3a44}.emeta{min-width:0;flex:1}.etitle{display:flex;justify-content:space-between;font-weight:650}.etitle i{font-style:normal;background:var(--tg-button);color:var(--tg-button-text);border-radius:999px;padding:0 6px;font-size:12px}.eprev{display:block;color:var(--tg-hint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;margin-top:2px}.ethread{flex:1;overflow:auto;padding:16px 12px 12px;display:flex;flex-direction:column;gap:8px}.ebubble{max-width:82%;padding:8px 12px;border-radius:16px;line-height:1.35}.ebubble p{margin:0;white-space:pre-wrap}.ebubble small{display:block;opacity:.6;font-size:11px;margin-bottom:2px}.ebubble.in{align-self:flex-start;background:var(--tg-secondary)}.ebubble.out{align-self:flex-end;background:color-mix(in srgb,var(--tg-button) 35%,#1b3a24)}.ebubble.typing{display:flex;gap:4px;width:52px}.ebubble.typing span{width:6px;height:6px;border-radius:50%;background:var(--tg-hint);animation:pulse 1s infinite}.ebubble.typing span:nth-child(2){animation-delay:.15s}.ebubble.typing span:nth-child(3){animation-delay:.3s}@keyframes pulse{50%{opacity:.3}}.echoices{display:flex;flex-direction:column;gap:8px;padding:10px 12px calc(12px + var(--safe-bottom));background:color-mix(in srgb,var(--tg-header) 92%,black)}.echoice{border:0;border-radius:14px;padding:12px 14px;background:var(--tg-secondary);color:var(--tg-text);text-align:left}.echoice.locked{opacity:.55}.emodal{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:flex-end;z-index:5}.esheet{width:100%;background:var(--tg-section);border-radius:18px 18px 0 0;padding:16px 16px calc(20px + var(--safe-bottom))}.esheet header{display:flex;justify-content:space-between;align-items:center}.esheet h2{margin:0}.esheet ul{list-style:none;padding:0;margin:12px 0 0}.esheet li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid color-mix(in srgb,var(--tg-text) 8%,transparent)}.empty,.bio{color:var(--tg-hint)}.eclue p{margin:4px 0 0;color:var(--tg-hint);font-size:13px}.enew{margin-left:8px;font-style:normal;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--tg-link)}.efields li{align-items:baseline}.ebootsplash{height:100svh;display:grid;place-items:center;color:var(--tg-hint);background:var(--tg-bg)}html[data-theme=red] .ebubble.in{background:#3a1212}html[data-theme=red] .echoice{background:#311010}
