.tp-chat{position:relative;min-width:0;height:100%;border-radius:16px;overflow:hidden;background:var(--ck-bg, #f5f9ff);box-sizing:border-box}.tp-chat.is-fill{border-radius:0}.tp-chat .ck-msgs,.tp-chat .ck-msgs-loading{position:absolute;top:0;right:0;bottom:0;left:0;padding:96px 16px 104px;box-sizing:border-box}.tp-chat .ck-msgs-loading{display:flex;align-items:center;justify-content:center}@media (max-width: 640px){.tp-chat .ck-msgs,.tp-chat .ck-msgs-loading{padding:90px 12px 96px}}.tp-chat .chat-header{position:absolute;top:14px;left:16px;right:16px;z-index:6;display:flex;align-items:center;gap:12px;padding:11px 16px;border-radius:30px;box-sizing:border-box;background:#ffffffbd;-webkit-backdrop-filter:blur(28px) saturate(185%);backdrop-filter:blur(28px) saturate(185%);border:1px solid rgba(255,255,255,.7);box-shadow:0 16px 40px -12px #141e3c57,0 4px 12px -6px #141e3c2e,inset 0 1px #ffffffe6}.tp-chat .chat-header-ava{width:46px;height:46px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:17px;overflow:hidden;box-shadow:0 6px 14px -6px #141e3c59}.tp-chat .chat-header-info{flex:1;min-width:0}.tp-chat .chat-header-title{font-weight:700;font-size:16.5px;letter-spacing:-.01em;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-chat .chat-header-sub{font-size:13px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:5px}.tp-chat .chat-header-sub.typing{color:var(--ck-primary, #2563eb);font-weight:500}.tp-chat .chat-header-btn{cursor:pointer;padding:0;width:42px;height:42px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#64748b;font-size:16px;border:none;background:#ffffffeb;-webkit-backdrop-filter:blur(20px) saturate(175%);backdrop-filter:blur(20px) saturate(175%);box-shadow:0 10px 24px -10px #141e3c4d,inset 0 1px #fffffff2,inset 0 0 0 1px #0f172a0f;transition:transform .12s,color .18s,background .18s,box-shadow .18s}.tp-chat .chat-header-btn:hover{color:var(--ck-primary, #2563eb);background:#fff;transform:translateY(-1px);box-shadow:0 14px 28px -10px #141e3c57,inset 0 1px #fffffff2,inset 0 0 0 1px #0f172a14}.tp-chat .ck-composer{position:absolute;bottom:0;left:0;right:0;z-index:6;background:transparent;border-top:none;padding:12px 16px 16px;pointer-events:none}.tp-chat .ck-composer>*{pointer-events:auto}.tp-chat .tp-bottom{position:absolute;bottom:0;left:0;right:0;z-index:6;display:flex;flex-direction:column;pointer-events:none}.tp-chat .tp-bottom>*{pointer-events:auto}.tp-chat .tp-bottom .ck-composer{position:relative;bottom:auto}.tp-chat .tp-bottom.has-vis-btn{flex-direction:row;align-items:flex-end}.tp-chat .tp-bottom.has-vis-btn .ck-composer{flex:1 1 auto;min-width:0;padding-left:8px}.tp-chat .tp-vis-btn{flex:none;position:relative;width:56px;height:56px;margin:0 0 16px 16px;border-radius:50%;border:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#3b5bdb;font:inherit;background:var(--ck-glass-bg-strong, rgba(255,255,255,.92));-webkit-backdrop-filter:blur(20px) saturate(175%);backdrop-filter:blur(20px) saturate(175%);box-shadow:0 12px 30px -10px #141e3c4d,inset 0 1px #fffffff2,inset 0 0 0 1px #0f172a0f;transition:transform .12s,color .18s,background .18s,box-shadow .18s}.tp-chat .tp-vis-btn:hover{transform:translateY(-1px)}.tp-chat .tp-vis-btn svg{width:22px;height:22px}.tp-chat .tp-vis-cap{font-size:9.5px;font-weight:700;letter-spacing:.02em;line-height:1}.tp-chat .tp-vis-btn.on{color:#fff;background:linear-gradient(160deg,#f0a93b,#d9912a);box-shadow:0 12px 26px -10px #b96e00a6,inset 0 1px #ffffff59}.tp-chat .tp-vis-btn:disabled{cursor:default;transform:none}.tp-chat .tp-internal-banner{border-left-color:#d9912a;background:#fff3daf5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:0 12px 12px 0;box-shadow:0 8px 20px -14px #78500073}.tp-chat .tp-internal-banner .ck-composer-banner-label{color:#b26b00;display:flex;align-items:center;gap:5px}.tp-chat .tp-internal-banner .ck-composer-banner-label:before{content:"";width:11px;height:11px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B26B00' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat center/contain}.tp-chat .tp-internal-banner .ck-composer-banner-text{color:#8a5a00}.tp-chat.is-internal .ck-input-wrap{background:#fff6e5f7!important;box-shadow:0 12px 30px -10px #b96e0059,inset 0 0 0 1.5px #f0c36a!important}.tp-chat.is-internal .ck-composer textarea{background:transparent!important}.tp-chat.has-vis .ck-msgs{padding-bottom:110px}.tp-chat.has-vis .tp-mention-pop{bottom:100px}:root.dark .tp-chat .tp-vis-btn{background:#283246d9;color:#8fa8ff}:root.dark .tp-chat .tp-vis-btn.on{color:#fff;background:linear-gradient(160deg,#c98a2b,#a86d14)}:root.dark .tp-chat .tp-internal-banner{background:#3a2f17f2}:root.dark .tp-chat .tp-internal-banner .ck-composer-banner-text{color:#e3c58d}:root.dark .tp-chat.is-internal .ck-input-wrap{background:#3a2f17f2!important}@media (max-width: 640px){.tp-chat .tp-vis-btn{width:44px;height:44px;margin:0 0 14px 10px}.tp-chat .tp-vis-btn svg{width:19px;height:19px}.tp-chat .tp-vis-cap{display:none}.tp-chat .tp-bottom.has-vis-btn .ck-composer{padding:12px 10px 14px 6px}.tp-chat .tp-bottom.has-vis-btn .ck-composer-row{gap:6px}.tp-chat .tp-bottom.has-vis-btn .ck-composer-side-btn,.tp-chat .tp-bottom.has-vis-btn .ck-send{width:44px;height:44px}.tp-chat .tp-bottom.has-vis-btn .ck-composer-side-btn svg,.tp-chat .tp-bottom.has-vis-btn .ck-send svg{width:20px;height:20px}.tp-chat .tp-bottom.has-vis-btn .ck-input-wrap{min-height:44px;padding:0 6px 0 12px}.tp-chat .tp-bottom.has-vis-btn .ck-input-tool svg{width:22px;height:22px}}.tp-bg-pop-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5200}.tp-bg-pop{position:fixed;z-index:5300;width:268px;background:#ffffffe6;-webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);border:1px solid rgba(255,255,255,.8);border-radius:16px;padding:12px;box-shadow:0 20px 48px -18px #141e3c80,inset 0 1px #ffffffe6}.tp-bg-pop-title{font-weight:700;font-size:13.5px;color:#1e293b}.tp-bg-pop-sub{font-size:11px;color:#94a3b8;margin:1px 0 9px}.tp-bg-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tp-bg-item{height:42px;border-radius:11px;cursor:pointer;position:relative;border:2px solid transparent;box-shadow:inset 0 0 0 1px #0f172a0f;transition:transform .12s,border-color .12s}.tp-bg-item:hover{transform:translateY(-1px)}.tp-bg-item.active{border-color:var(--ck-primary, #2563eb)}.tp-bg-item.tp-bg-plain{background:#eef2f9}.tp-bg-item.active:after{content:"✓";position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 3px rgba(0,0,0,.4)}.tp-members-pop{position:fixed;z-index:5300;width:260px;max-height:320px;overflow-y:auto;background:#fffffff0;-webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);border:1px solid rgba(255,255,255,.8);border-radius:16px;padding:8px;box-shadow:0 20px 48px -18px #141e3c80,inset 0 1px #ffffffe6}.tp-mention-pop{position:absolute;z-index:40;left:16px;bottom:92px;width:270px;max-height:260px;overflow-y:auto;background:#fffffff5;-webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);border:1px solid rgba(255,255,255,.8);border-radius:16px;padding:6px;box-shadow:0 12px 34px #0f172a2e}.tp-mention-pop .tp-member-row,.tp-members-pop.can-mention .tp-member-row{cursor:pointer}.tp-member-row{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px}.tp-member-row:hover{background:#2563eb0f}.tp-member-ava{width:30px;height:30px;border-radius:50%;flex:none;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}.tp-member-name{font-size:13px;font-weight:600;color:#1e293b;line-height:1.2}.tp-member-role{font-size:11px;color:#94a3b8}:root.dark .tp-chat{background:#0f1420}:root.dark .tp-chat .chat-header{background:#1e2636b8;border-color:#ffffff14}:root.dark .tp-chat .chat-header-title{color:#e8edf6}:root.dark .tp-chat .chat-header-btn{background:#283246d9;color:#aab6c8;box-shadow:0 10px 24px -10px #00000080,inset 0 0 0 1px #ffffff0f}:root.dark .tp-bg-pop,:root.dark .tp-members-pop,:root.dark .tp-mention-pop{background:#181e2cf0;border-color:#ffffff14}:root.dark .tp-bg-pop-title,:root.dark .tp-member-name{color:#e8edf6}:root{--bg: #EAEDF5;--bg-2: #F3F5FA;--card: #FFFFFF;--card-2: #FAFBFD;--line: #EDEFF5;--line-2: #F1F3F7;--t1: #1B2236;--t2: #6B7388;--t3: #9AA1B4;--brand: #3B5BDB;--green: #1FA971;--teal: #1499B5;--amber: #D9912A;--red: #D8604F}html.dark{--bg: #0D1017;--bg-2: #1C232E;--card: #171D27;--card-2: #1E2530;--line: #28303C;--line-2: #232B36;--t1: #E9ECF2;--t2: #A3ABBA;--t3: #6E7686}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Onest,system-ui,sans-serif;background:var(--bg);color:var(--t1)}.mono{font-family:JetBrains Mono,monospace}button,input,select,textarea{font-family:inherit}::placeholder{color:var(--t3)}.nav:hover{background:var(--bg-2);color:var(--t1)}.pbtn:hover{filter:brightness(.94)}.pbtn{transition:filter .14s ease}.pbtn:disabled{opacity:.5;cursor:not-allowed}.pbtn:disabled:hover{filter:none}.qcard{transition:transform .14s ease,box-shadow .2s ease}.qcard:hover{transform:translateY(-2px);box-shadow:0 1px 2px #26325a0d,0 14px 30px -16px #26325a38}.row:hover,.crow:hover{background:var(--card-2)}.card-shadow{box-shadow:0 1px 2px #26325a0d,0 12px 30px -18px #26325a33}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin .8s linear infinite}.input{width:100%;background:var(--bg-2);border:1px solid var(--line);border-radius:11px;padding:11px 13px;font-size:13.5px;color:var(--t1);outline:none}.input:focus{border-color:var(--brand)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0f13207a;display:flex;align-items:center;justify-content:center;padding:20px}.app-nav{scrollbar-width:thin;scrollbar-color:var(--line) transparent}@media (max-width: 860px){.app-shell{flex-direction:column!important;height:auto!important;min-height:100vh!important}.app-sidebar-wrap{width:100%!important}.app-sidebar{position:static!important;width:100%!important;flex:none!important;overflow:visible!important}.panel-grip{display:none!important}.app-sidebar .app-nav{overflow:visible!important}.app-content--chats{flex:none!important;height:calc(100dvh - 200px);min-height:420px}}.hint{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--t3);cursor:help;border-radius:50%;outline:none;vertical-align:middle}.hint:hover,.hint:focus-visible{color:var(--brand)}.hint__tip{position:fixed;z-index:6000;width:max-content;max-width:280px;padding:10px 12px;border-radius:10px;background:#1b2236;color:#fff;font-size:12.5px;line-height:1.45;font-weight:500;box-shadow:0 12px 30px -12px #141c3273;pointer-events:none}html.dark .hint__tip{background:#2c3545}.status-list{container:statuslist / inline-size}.status-row{display:grid;align-items:center;gap:10px 14px;grid-template-columns:46px minmax(160px,1fr) 190px 220px 170px;grid-template-areas:"color title pill doc actions"}.status-row--head{padding:0 15px;font-size:11px;font-weight:600;color:var(--t3);letter-spacing:.02em}@container statuslist (max-width: 900px){.status-row{grid-template-columns:46px minmax(110px,1fr) 180px auto;grid-template-areas:"color title doc actions"}.status-row__pill{display:none}}@container statuslist (max-width: 540px){.status-row{grid-template-columns:46px minmax(0,1fr);grid-template-areas:"color title" "doc doc" "actions actions"}.status-row--head{display:none}}.catalog-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}.catalog-side{align-self:stretch;min-width:0}.catalog-side__sticky{position:sticky;top:0}.catalog-tree{max-height:calc(100vh - 150px);overflow-y:auto;scrollbar-width:thin}.catalog-grid--mini .catalog-tree__label{display:none}.catalog-table{container:cattable / inline-size}.catalog-table .row td{vertical-align:middle}@container cattable (max-width: 1000px){.catalog-table .col-size{display:none}}@container cattable (max-width: 820px){.catalog-table .col-supplier{display:none}}@container cattable (max-width: 560px){.catalog-table .col-type,.catalog-table .col-ms{display:none}}@media (max-width: 860px){.catalog-grid,.catalog-grid--mini{grid-template-columns:minmax(0,1fr)!important}.catalog-side__sticky{position:static}.catalog-tree{max-height:none}.catalog-grid--mini .catalog-tree__label{display:inline}}.orders-table{container:orderstable / inline-size}@container orderstable (max-width: 960px){.orders-table .col-progress{display:none}}@container orderstable (max-width: 820px){.orders-table .col-created{display:none}}.orders-table .col-client-inline{display:none}@container orderstable (max-width: 680px){.orders-table .col-client{display:none}.orders-table .col-client-inline{display:block}}@container orderstable (max-width: 560px){.orders-table .col-deadline{display:none}}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.detail-col{display:flex;flex-direction:column;gap:16px;min-width:0}@media (max-width: 1180px){.detail-grid{grid-template-columns:minmax(0,1fr)}}.crumb-link{background:none;border:none;padding:0;cursor:pointer;font:inherit;font-weight:600;color:var(--brand)}.crumb-link:hover{text-decoration:underline}.app-content{--pad-y: 26px;--pad-x: 28px}@media (max-width: 640px){.app-content{--pad-y: 18px;--pad-x: 14px}.app-shell{padding:10px!important;gap:10px!important}}.save-bar{position:sticky;bottom:calc(-1 * var(--pad-y, 26px));z-index:5;margin:20px calc(-1 * var(--pad-x, 28px)) calc(-1 * var(--pad-y, 26px));padding:12px var(--pad-x, 28px);display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;background:var(--card);border-top:1px solid var(--line);box-shadow:0 -10px 24px -18px #26325a59}.rule-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px 14px;align-items:center}@media (max-width: 640px){.rule-row{grid-template-columns:minmax(0,1fr)}}.panel-grip{position:absolute;top:0;bottom:0;width:14px;z-index:70;cursor:col-resize;touch-action:none;display:flex;align-items:center;justify-content:center;outline:none}.panel-grip__bar{width:5px;height:44px;border-radius:5px;background:color-mix(in srgb,var(--t3) 45%,transparent);transition:background .15s,height .15s,width .15s}.panel-grip:hover .panel-grip__bar,.panel-grip:focus-visible .panel-grip__bar,.panel-grip:active .panel-grip__bar{background:var(--brand);height:72px;width:6px}.party-table{container:partytable / inline-size}.party-table .party-narrow{display:none}@container partytable (max-width: 760px){.party-table .col-contacts{display:none}}@container partytable (max-width: 560px){.party-table .col-facts,.party-table .col-orders,.party-table .col-contacts-sm{display:none}.party-table .party-narrow{display:block}}.brand-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:start}@media (max-width: 720px){.brand-grid{grid-template-columns:minmax(0,1fr)}}.tp-head{container:tphead / inline-size}@container tphead (max-width: 700px){.tp-head__name{display:none}}@media (max-width: 860px){.app-content--chats{height:calc(100dvh - 98px)}}@media (max-width: 640px){.app-content--chats{height:calc(100dvh - 86px)}}
