.tg-app{position:relative;display:flex;height:100dvh;min-height:0;background:#0f0f0f;color:#fff}.tg-folders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 12px 8px}.tg-folder{display:flex;height:34px;align-items:center;justify-content:center;gap:4px;border:0;border-radius:17px;background:#181818;color:#fff;padding:0 4px;font-size:12px;font-weight:600;cursor:pointer}.tg-folder:hover{background:#2a2a2a}.tg-folder.is-on{background:#8774e1}.tg-folder-count{min-width:16px;height:16px;border-radius:8px;background:#3a3a3a;color:#8d8d8d;padding:0 4px;font-size:11px;font-weight:700;line-height:16px;text-align:center}.tg-folder-count.is-unread{background:#8774e1;color:#fff}.tg-folder.is-on .tg-folder-count.is-unread{background:#fff;color:#8774e1}.tg-list{z-index:2;display:flex;width:min(420px,100%);flex:0 0 auto;min-width:0;flex-direction:column;background:#212121}.tg-dismiss{position:absolute;inset:0;z-index:1;border:0;background:transparent;padding:0;cursor:default}.tg-search-wrap{position:relative;padding:10px 12px 8px}.tg-search-wrap svg{position:absolute;top:22px;left:26px;color:#aaaaaa}.tg-search{width:100%;height:42px;border:0;border-radius:22px;background:#181818;color:#fff;padding:0 16px 0 42px;font-size:16px;outline:none}.tg-search::placeholder{color:#aaaaaa}.tg-rows{min-height:0;flex:1;overflow-y:auto}.tg-row{display:flex;width:100%;height:72px;align-items:center;gap:10px;border:0;background:transparent;color:inherit;padding:0 10px 0 8px;text-align:left;cursor:pointer}.tg-row:hover{background:#2a2a2a}.tg-row.is-active{background:rgba(135,116,225,.18)}.tg-avatar{display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;color:#fff;font-weight:600}.tg-avatar-clinic{background:linear-gradient(135deg,#5ca8e0,#2f6fad)}.tg-avatar-doctor{background:linear-gradient(135deg,#e38b8b,#c45c62)}.tg-avatar-work{background:linear-gradient(135deg,#7d8cff,#4b5bd6)}.tg-avatar-staff{background:linear-gradient(135deg,#5ecf9b,#2f8f68)}.tg-list{position:relative}.tg-rows{padding-bottom:76px}.tg-plus{position:absolute;right:16px;bottom:16px;z-index:2;width:52px;height:52px;align-items:center;border:0;border-radius:50%;background:#8774e1;color:#fff;font-size:32px;line-height:1;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.35)}.tg-modal-back,.tg-plus{display:flex;justify-content:center}.tg-modal-back{position:fixed;inset:0;z-index:90;align-items:flex-start;background:rgba(0,0,0,.55);padding:12vh 16px 16px}.tg-modal{width:min(440px,100%);border-radius:16px;background:#212121;padding:16px;color:#fff}.tg-modal h2{margin:0 0 12px;font-size:18px}.tg-modal-search{width:100%;height:42px;border:0;border-radius:22px;background:#181818;color:#fff;padding:0 16px;font-size:16px;outline:none}.tg-modal-hits{max-height:360px;margin-top:12px;overflow-y:auto}.tg-modal-hit{display:flex;width:100%;align-items:center;gap:10px;border:0;border-radius:10px;background:transparent;color:inherit;padding:8px;text-align:left;cursor:pointer}.tg-modal-hit:hover{background:#2a2a2a}.tg-modal-hit small{display:block;color:#aaaaaa}.tg-avatar-lg{width:54px;height:54px;font-size:20px}.tg-avatar-md{width:42px;height:42px;font-size:16px}.tg-avatar-sm{width:32px;height:32px;font-size:13px}.tg-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.tg-avatar-spacer{visibility:hidden}.tg-row-body{min-width:0;flex:1}.tg-row-bottom,.tg-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.tg-peer{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:500;line-height:1.25}.tg-time{flex-shrink:0;color:#aaaaaa;font-size:12px}.tg-time.is-unread{color:#8774e1}.tg-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aaaaaa;font-size:15px;line-height:1.3}.tg-badge{display:inline-flex;min-width:22px;height:22px;flex-shrink:0;align-items:center;justify-content:center;border-radius:11px;background:#8774e1;padding:0 6px;color:#fff;font-size:13px;font-weight:600}.tg-main{display:flex;min-width:0;flex:1;flex-direction:column;background:#0f0f0f}.tg-app.is-chat>.tg-main{position:absolute;top:0;bottom:0;left:0;z-index:4;width:min(420px,100%);max-width:420px}.tg-app.is-hidden .tg-dismiss,.tg-app.is-hidden .tg-list,.tg-app.is-hidden>.tg-main{display:none}.tg-app.is-chat .tg-list{visibility:hidden;pointer-events:none}.tg-app:not(.is-chat)>.tg-main{display:none}.tg-app.is-overlay{position:fixed;inset:0;z-index:230;height:auto;background:transparent;pointer-events:none;display:block}.tg-app.is-overlay .tg-dismiss,.tg-app.is-overlay .tg-modal-back{pointer-events:auto}.tg-app.is-overlay .tg-list,.tg-app.is-overlay.is-chat>.tg-main{pointer-events:auto;position:fixed;top:max(.75rem,env(safe-area-inset-top,0px));right:max(.75rem,env(safe-area-inset-right,0px));bottom:calc(4.75rem + env(safe-area-inset-bottom, 0px));left:auto;z-index:2;width:min(420px,calc(100vw - 1.5rem));max-width:420px;height:auto;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px rgba(0,0,0,.45)}.crm-chat-fab{position:fixed;z-index:231;right:max(1rem,env(safe-area-inset-right,0px));bottom:max(1rem,env(safe-area-inset-bottom,0px));display:flex;width:52px;height:52px;align-items:center;justify-content:center;border:0;border-radius:50%;background:#8774e1;color:#fff;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.35)}.crm-chat-fab:hover{background:#7664d4}.crm-chat-fab-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;border-radius:9px;background:#e53935;padding:0 4px;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}.tg-head{display:flex;height:56px;align-items:center;gap:10px;background:#212121;padding:0 8px 0 12px;box-shadow:0 1px 1px rgba(0,0,0,.25)}.tg-head.is-work{height:auto;min-height:56px;padding-top:8px;padding-bottom:8px}.tg-work-actions{display:flex;flex-shrink:0;gap:6px;margin-left:auto}.tg-work-actions button{height:30px;border:0;border-radius:15px;background:#2f2f38;color:#fff;padding:0 10px;font-size:12px;white-space:nowrap;cursor:pointer}.tg-work-actions button:hover{background:#3a3a44}.tg-work-short{display:none}.tg-peek{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;overflow:hidden;background:rgba(0,0,0,.62);padding:16px}.tg-peek-body{margin:0 auto;width:min(1100px,100%);min-height:0;flex:1;overflow:auto;border-radius:16px;background:var(--app-bg,#1a1a1f)}.tg-peek-body .module-frame-header{position:sticky;top:0;z-index:40;margin-left:0!important;margin-right:0!important;animation:none;background:var(--app-bg,#1a1a1f);border-bottom:1px solid var(--card-border,rgba(255,255,255,.08));box-shadow:0 10px 18px -14px rgba(0,0,0,.85)}.tg-peek-body .module-frame-title-h1-wrap{padding-inline-start:0}.tg-peek-close{position:absolute;top:24px;right:24px;z-index:3;display:block;width:36px;height:36px;border:0;border-radius:50%;background:#2a2a2a;color:#fff;font-size:22px;line-height:1;cursor:pointer}.tg-head-copy{min-width:0;flex:1}.tg-head-name-solo{flex:1}.tg-head-name{font-size:16px;font-weight:500}.tg-head-name,.tg-head-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.tg-head-status{color:#8774e1;font-size:14px}.tg-back{display:flex;height:36px;flex-shrink:0;align-items:center;gap:2px;border:0;background:transparent;color:#8774e1;padding:0 8px 0 2px;font-size:15px;font-weight:600;line-height:1;cursor:pointer}.tg-back-mark{font-size:26px;line-height:1}.tg-history{min-height:0;flex:1;overflow-y:auto;background-color:#0f0f0f;background-image:radial-gradient(rgba(255,255,255,.045) 1px,transparent 0);background-size:22px 22px;padding:12px 8px 8px}.tg-empty{display:flex;flex:1;align-items:center;justify-content:center;color:#aaaaaa;font-size:16px}.tg-msg{display:flex;margin-bottom:4px}.tg-msg-in{align-items:flex-end;gap:6px;justify-content:flex-start}.tg-msg-out{justify-content:flex-end}.tg-bubble{max-width:min(480px,78%);padding:6px 8px 4px 10px;color:#fff;font-size:15px;line-height:1.35}.tg-bubble-in{background:#212121;border-radius:16px 16px 16px 6px}.tg-bubble-out{background:#8774e1;border-radius:16px 16px 6px 16px}.tg-bubble-meta{float:right;display:inline-flex;align-items:center;gap:3px;margin:4px 0 0 10px;color:rgba(255,255,255,.65);font-size:12px;line-height:1}.tg-ticks{display:inline-flex;color:rgba(255,255,255,.55)}.tg-ticks.is-read{color:#8ecbff}.tg-bubble-in .tg-ticks{color:#8d8d8d}.tg-bubble-in .tg-ticks.is-read{color:#6cb6f0}.tg-bubble-in .tg-bubble-meta{color:#aaaaaa}.tg-author{margin-bottom:1px;color:#8774e1;font-size:13px;font-weight:500}.tg-bubble-out .tg-author{color:rgba(255,255,255,.85)}.tg-service{width:fit-content;max-width:80%;margin:8px auto;border-radius:12px;background:rgba(0,0,0,.45);padding:3px 10px 4px;color:#fff;font-size:13px;line-height:1.35;text-align:center}.tg-compose{position:relative;display:flex;align-items:flex-end;gap:8px;background:#212121;padding:8px 10px 10px}.tg-mentions{position:absolute;right:58px;bottom:calc(100% + 6px);left:58px;z-index:30;max-height:220px;overflow:auto;border:1px solid #2f2f2f;border-radius:12px;background:#212121;box-shadow:0 8px 24px rgba(0,0,0,.45);padding:4px}.tg-mentions button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:8px;background:transparent;color:#fff;padding:8px 10px;text-align:left;cursor:pointer}.tg-mentions button span:last-child{color:#aaaaaa;font-size:12px}.tg-mentions button.is-on,.tg-mentions button:hover{background:#2a2a2a}.tg-mention{color:#8ab4ff;font-weight:600}.tg-bubble-out .tg-mention{color:#fff;text-decoration:underline}.tg-compose-main{display:flex;min-width:0;flex:1;flex-direction:column;gap:6px}.tg-clip{display:flex;width:42px;height:42px;flex-shrink:0;align-items:center;justify-content:center;border-radius:50%;color:#aaaaaa;cursor:pointer}.tg-clip:hover{background:#2a2a2a;color:#fff}.tg-pending{display:flex;flex-wrap:wrap;gap:6px}.tg-pending-file{border:0;border-radius:12px;background:#2a2a2a;color:#fff;padding:4px 8px;font-size:12px;cursor:pointer}.tg-input{min-width:0;width:100%;height:auto;min-height:42px;max-height:140px;resize:none;border:0;border-radius:21px;background:#181818;color:#fff;padding:10px 16px;font:inherit;font-size:16px;line-height:1.35;outline:none}.tg-drop{position:relative;display:flex;min-height:0;flex:1;flex-direction:column}.tg-drop-veil{position:absolute;inset:8px;z-index:2;display:flex;align-items:center;justify-content:center;border:2px dashed #8774e1;border-radius:16px;background:rgba(15,15,15,.82);color:#fff;font-size:16px}.tg-files{display:flex;flex-flow:row wrap;gap:6px;margin-bottom:4px}.tg-photo-btn{padding:0;border:0;background:transparent;cursor:zoom-in;line-height:0}.tg-photo{display:block;max-width:220px;max-height:220px;border-radius:12px}.tg-file{color:inherit;text-decoration:underline}.tg-input::placeholder{color:#aaaaaa}.tg-history-wrap{position:relative;display:flex;min-height:0;flex:1;flex-direction:column}.tg-history-wrap .tg-history{padding-bottom:46px}.tg-ask{position:absolute;left:10px;bottom:8px;z-index:2;height:32px;border:0;border-radius:16px;background:#2a2a2a;color:#fff;padding:0 12px;font-size:13px;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:pointer}.tg-ask.is-on{background:#8774e1}.tg-launcher{position:fixed;right:22px;bottom:22px;z-index:60;display:flex;width:58px;height:58px;border:0;border-radius:50%;background:#8774e1;box-shadow:0 8px 24px rgba(0,0,0,.35);cursor:pointer}.tg-launcher,.tg-launcher-badge{align-items:center;justify-content:center;color:#fff}.tg-launcher-badge{position:absolute;top:-2px;right:-2px;display:inline-flex;min-width:20px;height:20px;border-radius:10px;background:#e53935;padding:0 5px;font-size:11px;font-weight:700}.tg-widget{position:fixed;right:22px;bottom:92px;z-index:60;display:flex;width:min(380px,calc(100vw - 24px));height:min(640px,calc(100dvh - 120px));overflow:hidden;border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.45)}.tg-picks{display:flex;flex-direction:column;gap:6px;margin:8px 8px 8px 0}.tg-pick{border:0;border-radius:12px;background:#212121;color:#fff;padding:8px 12px;text-align:left;cursor:pointer}.tg-pick:hover{background:#2c2c2c}.tg-pick small{display:block;color:#aaaaaa}@media (max-width:767px){.tg-launcher{bottom:88px}.tg-widget{right:12px;bottom:156px;height:min(560px,calc(100dvh - 180px))}}.tg-send{display:flex;width:42px;height:42px;flex-shrink:0;align-items:center;justify-content:center;border:0;border-radius:50%;background:#8774e1;color:#fff;cursor:pointer}.tg-icon-btn{border:0;background:transparent;color:#aaaaaa;font-size:26px;line-height:1;cursor:pointer}.tg-send:disabled{background:#2a2a2a;color:#666;cursor:default}.tg-none{padding:24px 16px;color:#aaaaaa;font-size:15px}@media (max-width:767px){.tg-dismiss{display:none}.tg-app.is-chat>.tg-main{width:100%;max-width:none}.tg-app.is-overlay .tg-list,.tg-app.is-overlay.is-chat>.tg-main{width:min(420px,calc(100vw - 1rem));max-width:420px}.tg-app.is-overlay.is-chat .tg-head{padding-left:8px}.tg-app:not(.is-chat) .tg-rows{order:1;padding-bottom:8px}.tg-app:not(.is-chat) .tg-plus{position:static;order:2;align-self:flex-end;flex-shrink:0;margin:4px 16px 8px}.tg-app:not(.is-chat) .tg-folders{order:3;flex-shrink:0;padding:4px 12px calc(10px + env(safe-area-inset-bottom, 0px))}.tg-back{width:36px;padding:0;justify-content:center}.tg-back-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.tg-app.is-chat .tg-head{padding-left:max(3.5rem,calc(env(safe-area-inset-left, 0px) + 2.75rem + .5rem))}.tg-head.is-work{height:52px;min-height:0;gap:6px;padding-top:0;padding-bottom:0}.tg-head.is-work .tg-avatar-md{width:32px;height:32px;font-size:13px}.tg-head.is-work .tg-head-name{font-size:15px}.tg-head.is-work .tg-head-status{font-size:12px}.tg-head.is-work .tg-work-actions{gap:4px}.tg-head.is-work .tg-work-long{display:none}.tg-head.is-work .tg-work-short{display:inline}.tg-head.is-work .tg-work-actions button{height:28px;padding:0 8px;font-size:12px}}.tg-reply{margin:0 0 4px;padding:4px 8px;border-left:2px solid rgba(255,255,255,.7);border-radius:4px;background:rgba(0,0,0,.18);font-size:13px}.tg-reply,.tg-reply b,.tg-reply span{display:block}.tg-reply span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.85}.tg-edited{font-style:italic}.tg-actions{display:flex;gap:8px;margin-top:4px}.tg-actions button,.tg-compose-banner button{border:0;background:transparent;color:rgba(255,255,255,.8);font-size:12px;cursor:pointer;padding:0}.tg-compose-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 12px 6px;padding:6px 10px;border-left:2px solid #8774e1;border-radius:8px;background:#212121;color:#fff;font-size:13px}