:root{color-scheme:light dark;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#f5f5f5;color:#1a1a1a;--scrollbar-thumb-color:rgba(15,23,42,.35);--scrollbar-thumb-hover-color:rgba(15,23,42,.5);--sidebar-collapsed-item-size:3rem;--divider-color:rgba(15,23,42,.1)}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) transparent}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar,::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:999px;border:2px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}::-webkit-scrollbar-button{display:none;width:0;height:0}::-webkit-scrollbar-button:horizontal:decrement,::-webkit-scrollbar-button:horizontal:increment,::-webkit-scrollbar-button:single-button,::-webkit-scrollbar-button:vertical:decrement,::-webkit-scrollbar-button:vertical:increment{display:none;width:0;height:0;background:transparent;border:none}::-webkit-scrollbar-corner{background:transparent}body{margin:0}a{color:inherit}.main{min-height:100vh;display:flex;align-items:center;justify-content:center}.card,.main{padding:2rem}.card{width:min(400px,100%);background:#fff;border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,.1)}.profileCard{width:min(640px,100%)}.card h1{margin-top:0}.form{gap:1rem}.form,.inputGroup{display:flex;flex-direction:column}.inputGroup{gap:.5rem}.inputGroup label{font-weight:600}.inputGroup input,.inputGroup textarea{padding:.75rem 1rem;border-radius:8px;border:1px solid #d0d0d0;font-size:1rem}.inputGroup textarea{resize:vertical}.telegramStatusRow{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.statusTag{display:inline-flex;align-items:center;padding:.35rem .75rem;border-radius:999px;font-size:.85rem;font-weight:600;background:#e2e8f0;color:#0f172a}.statusTagSuccess{background:#dcfce7;color:#047857}.statusTagMuted{background:#f1f5f9;color:#475569}.statusTagInfo{background:#e0f2fe;color:#0369a1}.telegramStatusDetails{font-size:.9rem;color:#475569}.telegramActions{display:flex;flex-direction:column;gap:.75rem;margin-top:.75rem}.telegramButtons,.telegramInputRow{display:flex;gap:.5rem;flex-wrap:wrap}.telegramInputRow{align-items:center}.telegramInputRow input{flex:1 1;min-width:220px}.telegramHint{margin:0;font-size:.85rem;color:#64748b}.telegramNotice{margin-top:.75rem;padding:.75rem 1rem;border-radius:8px}.telegramNotice.success{background:#e6ffed;color:#137333}.telegramNotice.error{background:#ffe6e6;color:#b91c1c}.button{padding:.75rem 1rem;border:none;background-color:#0070f3;color:#fff}.button,.secondaryButton{border-radius:8px;font-weight:600;cursor:pointer}.secondaryButton{padding:.6rem 1rem;border:1px solid #d0d0d0;background:#fff}.secondaryButton:hover{background:#f5f5f5}.dangerButton{border-color:#fecaca;color:#b91c1c}.dangerButton:hover{background:#fee2e2}.button:disabled{opacity:.6;cursor:not-allowed}.footer{margin-top:1rem;text-align:center;font-size:.9rem}.error{background:#ffe6e6;color:#d93025}.error,.success{padding:.75rem 1rem;border-radius:8px}.success{background:#e6ffed;color:#137333}.dashboard{height:100vh;display:flex;gap:0;padding:0;background:radial-gradient(circle at top left,rgba(79,70,229,.08),transparent 55%),radial-gradient(circle at bottom right,rgba(14,116,144,.08),transparent 55%),#f4f6fb;overflow:hidden}.dashboardSidebar{position:relative;width:min(280px,100%);background:#f5f5f5;--sidebar-surface-color:#f5f5f5;border-radius:0;padding:.5rem;display:flex;flex-direction:column;justify-content:flex-start;max-height:100%;height:100%;margin:0;overflow:hidden;flex-shrink:0;border-right:1px solid var(--divider-color);--sidebar-motion-duration:0.36s;--sidebar-motion-ease:linear;transition:padding var(--sidebar-motion-duration) var(--sidebar-motion-ease),background-color var(--sidebar-motion-duration) var(--sidebar-motion-ease),border-color var(--sidebar-motion-duration) var(--sidebar-motion-ease),width var(--sidebar-motion-duration) var(--sidebar-motion-ease)}.dashboardSidebarStatic,.dashboardSidebarStatic *{transition:none!important;animation:none!important}.sidebarContent{display:flex;flex-direction:column;height:100%;overflow-y:auto;overflow-x:hidden;-ms-overflow-style:none;scrollbar-width:none;scrollbar-gutter:stable}.sidebarContent::-webkit-scrollbar{width:0;height:0}.dashboardSidebarCollapsed .sidebarContent{overflow-y:hidden;scrollbar-gutter:auto}.dashboardSidebarCollapsed{width:calc(var(--sidebar-collapsed-item-size) + 1rem);padding:.5rem;align-items:stretch;background:#fff;--sidebar-surface-color:#fff;border-right-color:#e2e8f0}.sidebarTopHeader{width:100%;display:flex;align-items:center;position:-webkit-sticky;position:sticky;top:0;z-index:2;background:var(--sidebar-surface-color);padding-bottom:.5rem;border-bottom:1px solid var(--divider-color);transition:background-color var(--sidebar-motion-duration) var(--sidebar-motion-ease)}.dashboardSidebarCollapsed .sidebarTopHeader,.sidebarTopHeader{justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.dashboardSidebarCollapsed .sidebarBrand{width:auto;justify-content:flex-start}.sidebarToggle{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;padding:.45rem;color:inherit;cursor:pointer;display:grid;place-items:center;transition:background .2s ease,transform .2s ease}.sidebarToggle:hover{background:#e2e8f0;transform:translateX(-1px)}.sidebarToggleIcon{width:22px;height:22px;display:block}.sidebarToggleCollapsed{align-self:center}.sidebarBrand{display:flex;align-items:center;gap:1rem}.dashboardSidebarCollapsed .sidebarBrand,.sidebarBrand{margin-bottom:0}.sidebarProfile,.sidebarTopHeader{padding-right:.75rem}.sidebarBrandMark{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#e2e8f0;color:#1d4ed8;font-weight:700;letter-spacing:.08em;position:relative;border:none;cursor:default;padding:0;font:inherit}.sidebarBrandMark:disabled{opacity:1;cursor:default}.sidebarBrandMarkCollapsed{cursor:pointer}.sidebarBrandMarkLabel{transition:opacity .2s ease}.sidebarBrandMarkIcon{position:absolute;inset:0;display:grid;place-items:center;width:28px;height:28px;margin:auto;opacity:0;transition:opacity .2s ease;pointer-events:none}.sidebarBrandMarkCollapsed:focus-visible .sidebarBrandMarkIcon,.sidebarBrandMarkCollapsed:hover .sidebarBrandMarkIcon{opacity:1}.sidebarBrandMarkCollapsed:focus-visible .sidebarBrandMarkLabel,.sidebarBrandMarkCollapsed:hover .sidebarBrandMarkLabel{opacity:0}.sidebarBrandTitle{font-weight:600;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebarBrandCopy{display:flex;flex-direction:column;gap:.25rem;max-width:100%;min-width:0;opacity:1;overflow:hidden;transition:opacity var(--sidebar-motion-duration) var(--sidebar-motion-ease),max-width var(--sidebar-motion-duration) var(--sidebar-motion-ease);transition-delay:.04s,0s}.dashboardSidebarCollapsed .sidebarBrandCopy{max-width:0;opacity:0;pointer-events:none}.sidebarNav{display:flex;flex-direction:column;gap:.5rem}.dashboardSidebarCollapsed .sidebarNav{align-items:flex-start}.sidebarNavItem{text-align:left;border:none;border-radius:14px;padding:.75rem 1rem .75rem .69rem;background:transparent;color:inherit;cursor:pointer;gap:.75rem;width:100%;text-decoration:none;transition:transform .2s ease,background-color .2s ease,color .2s ease,width var(--sidebar-motion-duration) var(--sidebar-motion-ease),padding var(--sidebar-motion-duration) var(--sidebar-motion-ease)}.dashboardSidebarCollapsed .sidebarNavItem,.sidebarNavItem{display:flex;align-items:center;height:var(--sidebar-collapsed-item-size)}.dashboardSidebarCollapsed .sidebarNavItem{padding-left:.69rem;width:var(--sidebar-collapsed-item-size);justify-content:flex-start;position:relative;transition:transform .2s ease,background-color .2s ease,color .2s ease,width var(--sidebar-motion-duration) var(--sidebar-motion-ease) .04s,padding var(--sidebar-motion-duration) var(--sidebar-motion-ease) .04s}.sidebarNavIcon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;color:#000;flex-shrink:0}.sidebarNavIconGlyph{width:25px;height:25px;display:block}.dashboardSidebarCollapsed .sidebarNavIcon{margin:0}.sidebarNavText{display:flex;flex-direction:column;gap:.35rem;max-width:100%;min-width:0;opacity:1;overflow:hidden;transition:opacity var(--sidebar-motion-duration) var(--sidebar-motion-ease),max-width var(--sidebar-motion-duration) var(--sidebar-motion-ease);transition-delay:.04s,0s}.dashboardSidebarCollapsed .sidebarNavText{max-width:0;opacity:0;pointer-events:none}.sidebarNavItem:hover{background:#eaeaea}.dashboardSidebar{color:#0f172a;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.dashboardSidebar a,.dashboardSidebar button{font-family:inherit;text-decoration:none}.dashboardSidebar .sidebarBrandTitle,.dashboardSidebar .sidebarNavLabel,.dashboardSidebar .sidebarProfileEmail,.dashboardSidebar .sidebarProfileMenuItem,.dashboardSidebar .sidebarProfileName{font-family:inherit;letter-spacing:-.01em;line-height:1.2}.dashboardSidebar .sidebarBrandTitle,.dashboardSidebar .sidebarNavLabel,.dashboardSidebar .sidebarProfileMenuItem,.dashboardSidebar .sidebarProfileName{font-weight:500}.dashboardSidebar .sidebarNavLabel,.dashboardSidebar .sidebarProfileMenuItem,.dashboardSidebar .sidebarProfileName{font-size:.95rem}.dashboardSidebar .sidebarProfileEmail{font-weight:500}.sidebarNavItemActive{background:#eaeaea;border-color:#eaeaea;color:#0f172a}.sidebarNavItem:hover .sidebarNavIcon,.sidebarNavItemActive .sidebarNavIcon{color:#000}.sidebarNavTooltip{position:fixed;top:0;left:0;transform:translateY(-50%);background:#0f172a;color:#fff;padding:.35rem .6rem;border-radius:8px;font-size:.85rem;line-height:1.1;white-space:nowrap;box-shadow:0 8px 16px rgba(15,23,42,.2);pointer-events:none;z-index:1200}.sidebarNavTooltip:before{content:"";position:absolute;top:50%;left:-6px;transform:translateY(-50%);border:6px solid transparent;border-right-color:#0f172a}.dashboardSidebarCollapsed .sidebarToggle{display:none}.sidebarNavLabel{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebarNavContainer{flex:1 1 auto;padding-right:.75rem;padding-top:.25rem;padding-bottom:1.75rem}.dashboardSidebarCollapsed .sidebarNavContainer{padding-right:0}.sidebarProfile{position:-webkit-sticky;position:sticky;bottom:0;margin-top:auto;padding-top:1.5rem;padding-bottom:.75rem;width:100%;background:var(--sidebar-surface-color);z-index:2;border-top:1px solid var(--divider-color);transition:background-color var(--sidebar-motion-duration) var(--sidebar-motion-ease)}.sidebarProfileCollapsed{width:auto;display:flex;justify-content:flex-start;align-items:center}.sidebarProfileButton{width:100%;border:1px solid transparent;background:transparent;border-radius:14px;padding:0 1rem 0 0;color:inherit;display:flex;align-items:center;min-height:var(--sidebar-collapsed-item-size);gap:.75rem;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,color .2s ease,width var(--sidebar-motion-duration) var(--sidebar-motion-ease),padding var(--sidebar-motion-duration) var(--sidebar-motion-ease),gap var(--sidebar-motion-duration) var(--sidebar-motion-ease)}.sidebarProfileButton:hover{border-color:rgba(148,163,184,.45);background:#eaeaea}.dashboardSidebarCollapsed .sidebarProfileButton{width:var(--sidebar-collapsed-item-size);height:var(--sidebar-collapsed-item-size);min-height:var(--sidebar-collapsed-item-size);padding:0;margin:0;transition:border-color .2s ease,background-color .2s ease,color .2s ease,width var(--sidebar-motion-duration) var(--sidebar-motion-ease) .04s,padding var(--sidebar-motion-duration) var(--sidebar-motion-ease) .04s,gap var(--sidebar-motion-duration) var(--sidebar-motion-ease) .04s}.sidebarProfileAvatar{width:3rem;height:3rem;border-radius:14px;background:#e2e8f0;display:grid;place-items:center;font-weight:600;color:#1d4ed8;letter-spacing:.04em;flex-shrink:0;transition:width var(--sidebar-motion-duration) var(--sidebar-motion-ease),height var(--sidebar-motion-duration) var(--sidebar-motion-ease),border-radius var(--sidebar-motion-duration) var(--sidebar-motion-ease)}.dashboardSidebarCollapsed .sidebarProfileButton{gap:0}.sidebarProfileInfo{display:flex;flex-direction:column;gap:.2rem;text-align:left;max-width:100%;min-width:0;opacity:1;overflow:hidden;transition:opacity var(--sidebar-motion-duration) var(--sidebar-motion-ease),max-width var(--sidebar-motion-duration) var(--sidebar-motion-ease);transition-delay:.04s,0s}.dashboardSidebarCollapsed .sidebarProfileInfo{max-width:0;opacity:0;pointer-events:none}.dashboardSidebarCollapsed .sidebarBrandCopy,.dashboardSidebarCollapsed .sidebarNavText,.dashboardSidebarCollapsed .sidebarProfileInfo{transition-delay:0s,.04s}.dashboardSidebarCollapsed .sidebarProfileAvatar{width:calc(var(--sidebar-collapsed-item-size) - 2px);height:calc(var(--sidebar-collapsed-item-size) - 2px);border-radius:14px}.sidebarProfileName{font-weight:600}.sidebarProfileEmail{font-size:.85rem;color:#64748b}.sidebarProfileMenu{position:fixed;min-width:220px;background:#fff;color:#111827;border-radius:18px;padding:.65rem;box-shadow:0 24px 48px rgba(15,23,42,.28);display:flex;flex-direction:column;gap:.25rem;z-index:1000}.sidebarProfileMenuCollapsed{min-width:200px}.sidebarProfileMenuItem{width:100%;border:none;background:transparent;border-radius:12px;padding:.75rem .9rem;text-align:left;font-weight:500;cursor:pointer;transition:background .2s ease,color .2s ease}.sidebarProfileMenuItem:hover{background:rgba(37,99,235,.08);color:#1d4ed8}.sidebarProfileMenuItem.danger:hover{background:rgba(220,38,38,.12);color:#b91c1c}.sidebarProfileMenuSeparator{height:1px;background:rgba(15,23,42,.08);margin:.25rem 0}.sidebarLogout{margin-top:2.5rem;border:1px solid hsla(0,0%,100%,.22);background:transparent;color:inherit;font-weight:600;padding:.75rem 1rem;border-radius:14px;cursor:pointer;transition:background .2s ease,transform .2s ease}.sidebarLogout:hover{background:hsla(0,0%,100%,.08);transform:translateX(2px)}.dashboardContent{flex:1 1;gap:2rem;overflow:hidden}.contentCard,.dashboardContent{display:flex;flex-direction:column;min-height:0}.contentCard{background:hsla(0,0%,100%,.92);border-radius:0;padding:2.5rem;box-shadow:0 30px 70px rgba(15,23,42,.15);gap:1.75rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);flex:1 1;overflow:auto}.contentCardStretch{padding:0;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.contentHeader{display:flex;flex-direction:column;gap:.5rem;flex-shrink:0}.contentHeader h1{margin:0;font-size:clamp(1.5rem,2.5vw,2rem)}.contentDescription{margin:0;font-size:.95rem;color:#4b5563}.contentCardStretch>.contentHeader{padding:2.5rem 2.5rem 0}.chatSection{padding:0 2.5rem 2.5rem}.chatSection,.chatSectionInner{flex:1 1;display:flex;min-height:0}.chatSectionInner>*{flex:1 1;min-height:0}.contentAlert,.contentAlert.error,.contentAlert.success{border-radius:12px}.contentCardStretch .contentAlert{margin:0 2.5rem}@media (max-width:1200px){.dashboard{padding:2.5rem;gap:2rem}.chatSection{padding:0 2rem 2rem}.contentCardStretch>.contentHeader{padding:2rem 2rem 0}.contentCardStretch .contentAlert{margin:0 2rem}}@media (max-width:960px){.dashboard{flex-direction:column;padding:2rem 1.5rem 3rem}.dashboardSidebar{width:100%;flex-direction:row;align-items:flex-start;gap:2rem}.dashboardSidebarCollapsed{width:100%;padding:2rem 1.5rem;align-items:flex-start}.sidebarNavContainer{flex:1 1;overflow:visible;padding-right:0}.sidebarBrand{margin-bottom:0}.sidebarNav{flex:1 1}.sidebarProfile{margin-top:0;padding-top:0;align-self:stretch}.sidebarLogout{margin-top:0}.dashboardContent{width:100%}}@media (max-width:720px){.dashboardSidebar{flex-direction:column}.dashboardSidebarCollapsed{width:100%;align-items:stretch}.chatSection{padding:0 1.5rem 1.5rem}.contentCardStretch>.contentHeader{padding:1.75rem 1.5rem 0}.contentCardStretch .contentAlert{margin:0 1.5rem}}@media (max-width:540px){.dashboard{padding:1.5rem}.contentCard{padding:1.75rem;border-radius:22px}.chatSection{padding:0 1.25rem 1.25rem}.dashboardSidebar,.dashboardSidebarCollapsed{padding:1.75rem 1.5rem;border-radius:24px}}