:root{--crm-ink:#172033;--crm-muted:#6f7890;--crm-line:#e7eaf1;--crm-blue:#3f6ad8;--crm-violet:#6c5ce7;--crm-green:#2fb171;--crm-red:#e75b66;--crm-amber:#f2a541}
*{box-sizing:border-box}body{color:var(--crm-ink);background:#f4f6fb}.app-header__logo .vpn-logo{display:flex;align-items:center;width:150px;height:50px;background:none!important;text-decoration:none!important}.vpn-logo img{display:block;width:150px;height:50px;object-fit:contain}
.page-title-mini{display:flex;gap:10px;align-items:baseline}.page-title-mini strong{font-size:16px}.page-title-mini span{color:#8b93a7;font-size:13px}.admin-chip{display:flex;align-items:center;gap:10px;padding-right:20px}.admin-chip>span:last-child{display:flex;flex-direction:column;line-height:1.2}.admin-chip small{color:#8b93a7;margin-top:3px}.admin-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;color:#fff;font-weight:700;background:linear-gradient(135deg,#3f6ad8,#7868e6)}.logout-form{margin:0}.logout-form button{position:relative;display:block;width:100%;border:0;background:transparent;color:#343a40;font-weight:400;text-align:left;white-space:nowrap;padding:.4rem 1rem .4rem 3rem;cursor:pointer}.logout-form button:hover{background:#e0f3ff;color:#3f6ad8}.logout-form .metismenu-icon{position:absolute;left:5px;top:50%;transform:translateY(-50%);font-size:1.8rem;width:34px;text-align:center}
.app-main__inner{max-width:1440px;width:100%;margin:0 auto;min-height:calc(100vh - 140px)}.search-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr minmax(420px,650px);gap:50px;align-items:center;padding:36px 40px;border-radius:18px;color:#fff;background:linear-gradient(120deg,#172e60 0%,#3f6ad8 58%,#735fe7 100%);box-shadow:0 16px 38px rgba(46,71,142,.22)}.search-hero:after{content:"";position:absolute;width:300px;height:300px;right:-130px;top:-180px;border:60px solid rgba(255,255,255,.08);border-radius:50%}.search-hero h1{font-size:31px;font-weight:700;margin:4px 0 8px;color:#fff}.search-hero p{font-size:14px;line-height:1.65;margin:0;max-width:580px;color:rgba(255,255,255,.78)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:800;color:#b9c9ff}.eyebrow-dark{color:var(--crm-blue)}
.search-panel{position:relative;z-index:1;padding:8px;border-radius:14px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)}.search-mode{display:flex;gap:4px;margin:0 0 7px}.search-mode label{margin:0;cursor:pointer}.search-mode input{position:absolute;opacity:0}.search-mode span{display:block;padding:6px 12px;border-radius:8px;font-size:12px;color:rgba(255,255,255,.72)}.search-mode input:checked+span{background:rgba(255,255,255,.2);color:#fff}.search-control{display:flex;align-items:center;background:#fff;border-radius:10px;padding:5px}.search-control i{font-size:24px;color:#8790a6;margin:0 8px}.search-control input{flex:1;min-width:0;height:42px;border:0;outline:0;font-size:16px;color:var(--crm-ink)}.search-control button{height:42px;border:0;border-radius:8px;padding:0 22px;background:#172e60;color:#fff;font-weight:700;cursor:pointer;transition:.2s}.search-control button:hover{background:#0d214b}
.crm-state{margin-top:22px}.empty-state{text-align:center;padding:72px 24px;border:1px dashed #ccd2df;border-radius:16px;background:rgba(255,255,255,.65)}.empty-icon{display:grid;place-items:center;width:66px;height:66px;margin:0 auto 14px;border-radius:20px;background:#e9eeff;color:var(--crm-blue);font-size:34px}.empty-state h2{font-size:18px;margin:0 0 6px}.empty-state p{color:var(--crm-muted);margin:0}.error-state{padding:22px 25px;border-left:4px solid var(--crm-red);border-radius:12px;background:#fff;box-shadow:0 5px 20px rgba(30,45,80,.06)}.error-state strong{display:block;margin-bottom:4px;color:#b62836}.search-matches{margin-top:22px}
.detail-shell{margin-top:22px}.back-link{display:inline-flex;margin-bottom:16px;color:var(--crm-blue);font-size:12px;font-weight:700}.result-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.result-head h2{font-size:24px;margin:2px 0 0}.result-head p{margin:4px 0 0;color:var(--crm-muted)}.status-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700}.status-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.status-active{background:#e7f8f0;color:#198754}.status-expired{background:#fdebed;color:#c73a48}.status-inactive{background:#fff4dd;color:#a76800}.status-archived{background:#eceff4;color:#626b7e}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.stat-card,.crm-card{background:#fff;border:1px solid #edf0f5;border-radius:14px;box-shadow:0 5px 18px rgba(30,45,80,.045)}.stat-card{padding:18px 20px}.stat-card small{display:block;color:var(--crm-muted);margin-bottom:7px}.stat-card strong{font-size:18px}.stat-card .subtext{display:block;margin-top:5px;color:#9aa1b2;font-size:11px}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.8fr);gap:14px}.crm-card{padding:22px;margin-bottom:14px}.card-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.card-heading h3{font-size:15px;margin:0}.card-heading span{color:var(--crm-muted);font-size:12px}.card-heading a,.table-action{font-size:11px;color:var(--crm-blue);font-weight:700}
.user-card{display:flex;align-items:center;gap:14px}.user-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#edf1ff;color:var(--crm-blue);font-weight:800;font-size:18px}.user-main{flex:1}.user-main strong{display:block;font-size:15px}.user-main a{color:var(--crm-blue)}.user-main small{display:block;color:var(--crm-muted);margin-top:3px}.details-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 30px}.detail-row{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #f0f2f6;font-size:12px}.detail-row span:first-child{color:var(--crm-muted)}.detail-row strong{text-align:right;font-weight:600;word-break:break-word}.detail-row span small{display:block;margin-top:2px;color:#b0b6c2;font-size:9px;font-family:monospace}
.table-wrap{overflow:auto}.crm-table{width:100%;border-collapse:collapse;font-size:12px}.crm-table th{text-align:left;padding:9px 10px;color:var(--crm-muted);font-weight:600;border-bottom:1px solid var(--crm-line);white-space:nowrap}.crm-table td{padding:12px 10px;border-bottom:1px solid #f1f3f7;vertical-align:top}.crm-table tr:last-child td{border-bottom:0}.muted{color:var(--crm-muted)}.mini-status{font-weight:700}.mini-status.active,.text-success{color:var(--crm-green)!important}.mini-status.expired{color:var(--crm-red)}.mini-status.inactive,.text-warning{color:var(--crm-amber)!important}.mini-status.archived{color:#737d90}
.orders-list{display:grid;gap:9px}.order-card{border:1px solid #e9edf4;border-radius:11px;overflow:hidden;background:#fbfcff}.order-card summary{display:grid;grid-template-columns:1.1fr 1fr 1fr .8fr .8fr 24px;align-items:center;gap:14px;padding:14px 15px;cursor:pointer;list-style:none}.order-card summary::-webkit-details-marker{display:none}.order-card summary>span{display:flex;flex-direction:column}.order-card summary small{color:var(--crm-muted);font-size:9px;margin-bottom:3px}.order-card summary strong{font-size:11px}.order-card summary>i{font-size:20px;transition:.2s}.order-card[open] summary>i{transform:rotate(180deg)}.order-details{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:18px;border-top:1px solid #e9edf4;background:#fff}.order-details h4{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#858ea3;margin:0 0 10px}.order-properties,.order-comments,.order-details>.table-action{grid-column:1/-1}.mini-row{display:flex;justify-content:space-between;gap:20px;padding:7px 0;border-bottom:1px solid #f2f3f6;font-size:10px}.mini-row strong{text-align:right}.order-comments p{font-size:11px;color:var(--crm-muted);margin:0}
.timeline{position:relative;margin-left:5px}.timeline:before{content:"";position:absolute;left:8px;top:8px;bottom:10px;width:2px;background:#e9edf5}.timeline-item{position:relative;padding:0 0 20px 31px}.timeline-item:last-child{padding-bottom:0}.timeline-dot{position:absolute;left:1px;top:4px;width:16px;height:16px;border:4px solid #fff;border-radius:50%;background:var(--crm-blue);box-shadow:0 0 0 1px #dce3f2}.timeline-payment .timeline-dot{background:var(--crm-green)}.timeline-cancel .timeline-dot,.timeline-expire .timeline-dot{background:var(--crm-red)}.timeline-renewal .timeline-dot{background:var(--crm-violet)}.timeline-item strong{display:block;font-size:12px}.timeline-item p{margin:3px 0;color:var(--crm-muted);font-size:11px}.timeline-item time{font-size:10px;color:#a4abb9}.tech-table{max-height:620px;overflow:auto}.tech-table .detail-row{font-size:11px}.app-footer__inner{padding:0 28px;display:flex;justify-content:space-between;color:#9ba2b1;font-size:11px}
.merge-card{border-color:#dfe5f7;background:linear-gradient(135deg,#fff,#f8f9ff)}.merge-intro{max-width:760px;margin:-4px 0 18px;color:var(--crm-muted);font-size:12px;line-height:1.6}.merge-unavailable{padding:13px 15px;border-radius:9px;background:#f0f2f6;color:#7d8595;font-size:12px}.merge-form label{display:block;margin-bottom:7px;color:#5f687c;font-size:11px;font-weight:700}.merge-controls{display:flex;gap:10px}.merge-controls select{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid #dce2ed;border-radius:9px;background:#fff;color:var(--crm-ink);outline:0}.merge-controls select:focus{border-color:var(--crm-blue);box-shadow:0 0 0 3px rgba(63,106,216,.09)}.merge-controls button{height:44px;padding:0 18px;border:0;border-radius:9px;background:var(--crm-blue);color:#fff;font-size:11px;font-weight:800;cursor:pointer}.merge-status{display:inline-block;padding:4px 7px;border-radius:6px;background:#eef1f6;color:#626c80;font-size:9px;font-weight:800;text-transform:uppercase}.merge-status-completed{background:#e7f8f0;color:#198754}.merge-status-failed{background:#fdebed;color:#c73a48}.timeline-merge .timeline-dot{background:var(--crm-violet)}.timeline-merge-failed .timeline-dot{background:var(--crm-red)}
.merge-confirm{padding:30px;border:1px solid #e7eaf1;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(30,45,80,.07)}.merge-confirm__head{text-align:center;max-width:760px;margin:0 auto 28px}.merge-confirm__head h1{margin:5px 0 8px;font-size:28px}.merge-confirm__head p{margin:0;color:var(--crm-muted)}.merge-flow{display:grid;grid-template-columns:1fr 180px 1fr;align-items:stretch;gap:16px}.merge-subscription{padding:22px;border:1px solid #e5e9f1;border-radius:14px;background:#fafbfe}.merge-target{border-color:#cbd7f7;background:#f7f9ff}.merge-donor{border-color:#f2d2d7;background:#fff9fa}.merge-role{display:inline-flex;padding:5px 8px;border-radius:6px;background:#e7edff;color:var(--crm-blue);font-size:9px;font-weight:800;text-transform:uppercase}.merge-donor .merge-role{background:#fdebed;color:#bf3948}.merge-subscription h2{margin:14px 0 3px;font-size:19px}.merge-subscription>p{margin:0 0 18px;color:var(--crm-muted);font-size:12px}.merge-subscription dl{margin:0}.merge-subscription dl div{display:flex;justify-content:space-between;gap:18px;padding:8px 0;border-top:1px solid rgba(0,0,0,.05);font-size:10px}.merge-subscription dt{color:var(--crm-muted);font-weight:500}.merge-subscription dd{margin:0;text-align:right;font-weight:700}.merge-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--crm-violet)}.merge-arrow strong{font-size:20px}.merge-arrow i{font-size:38px}.merge-arrow span{color:var(--crm-muted);font-size:9px}.merge-result{display:flex;align-items:center;justify-content:center;gap:15px;margin:20px 0;padding:16px;border-radius:11px;background:#edf8f3}.merge-result span{color:#547265;font-size:11px}.merge-result strong{color:#188553;font-size:18px}.merge-warning{display:flex;gap:14px;padding:16px 18px;border:1px solid #f2dfaf;border-radius:11px;background:#fffbef}.merge-warning>i{font-size:27px;color:#d99a17}.merge-warning strong{display:block;font-size:12px}.merge-warning p{margin:4px 0 0;color:#7d6c46;font-size:10px;line-height:1.5}.merge-confirm-form{margin-top:18px}.merge-checkbox{display:flex;align-items:flex-start;gap:10px;margin:0;color:#4e576b;font-size:11px;cursor:pointer}.merge-checkbox input{margin-top:2px}.merge-confirm-actions{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin-top:18px}.merge-confirm-actions a{color:var(--crm-muted);font-size:11px}.merge-confirm-actions button{height:44px;padding:0 20px;border:0;border-radius:9px;background:#d94c5b;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.app-flash{margin:0 0 16px;padding:14px 18px;border-radius:10px;font-size:12px;font-weight:600}.app-flash-success{border:1px solid #bfe9d5;background:#eaf9f2;color:#177549}.app-flash-error{border:1px solid #f3c7cd;background:#fff0f2;color:#b52f3e}
.login-body{min-height:100vh;background:#f3f5fa}.login-shell{display:grid;grid-template-columns:1.08fr .92fr;min-height:100vh}.login-brand{position:relative;display:flex;align-items:center;overflow:hidden;padding:9vw;background:linear-gradient(135deg,#102653,#3f6ad8 55%,#725ee5);color:#fff}.login-brand:before,.login-brand:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.15);border-radius:50%}.login-brand:before{width:500px;height:500px;left:-260px;bottom:-270px}.login-brand:after{width:330px;height:330px;right:-180px;top:-180px}.login-brand__content{position:relative;z-index:1;max-width:590px}.login-mark{display:inline-flex;align-items:center;font-weight:800;letter-spacing:.12em}.login-mark:before{content:"";width:34px;height:34px;margin-right:12px;border-radius:11px;background:#fff;box-shadow:0 8px 25px rgba(0,0,0,.2)}.login-brand h1{margin:70px 0 18px;color:#fff;font-size:44px;line-height:1.12;letter-spacing:-.03em}.login-brand p{max-width:520px;color:rgba(255,255,255,.72);font-size:16px;line-height:1.7}.login-points{display:grid;gap:9px;margin-top:40px;color:rgba(255,255,255,.85);font-size:13px}.login-points i{margin-right:7px}.login-panel{display:grid;place-items:center;padding:40px}.login-card{width:min(420px,100%);padding:44px;border-radius:20px;background:#fff;box-shadow:0 25px 60px rgba(31,47,89,.12)}.login-card h2{margin:6px 0 8px;font-size:28px}.login-card>p{margin:0 0 28px;color:var(--crm-muted)}.login-card .form-group{margin-bottom:18px}.login-card label{display:block;margin-bottom:7px;font-size:12px;font-weight:700;color:#4a5368}.login-input{display:block;width:100%;height:48px;padding:0 14px;border:1px solid #dfe3eb;border-radius:10px;outline:0;transition:.2s}.login-input:focus{border-color:var(--crm-blue);box-shadow:0 0 0 3px rgba(63,106,216,.1)}.login-card .help-block{color:var(--crm-red);font-size:10px;margin-top:5px}.login-card .form-check{display:flex;align-items:center;gap:8px}.login-card .form-check label{margin:0;font-weight:500}.login-submit{width:100%;height:48px;margin-top:4px;border:0;border-radius:10px;background:linear-gradient(135deg,#3f6ad8,#6f5edf);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(63,106,216,.25)}.login-note{display:block;margin-top:22px;text-align:center;color:#9aa1b0}.login-note i{margin-right:5px}
@media(max-width:1100px){.search-hero{grid-template-columns:1fr;gap:24px}.stats-grid{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}.login-brand{padding:7vw}.login-brand h1{font-size:36px}.merge-flow{grid-template-columns:1fr}.merge-arrow{min-height:80px}.merge-arrow i{transform:rotate(90deg)}}@media(max-width:850px){.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-panel{padding:20px}.order-card summary{grid-template-columns:1fr 1fr 1fr}.order-card summary>span:nth-child(4),.order-card summary>span:nth-child(5){display:none}}@media(max-width:600px){.app-main__inner{padding:16px}.search-hero{padding:25px 20px}.search-hero h1{font-size:24px}.search-control button{padding:0 14px}.stats-grid{grid-template-columns:1fr}.details-grid,.order-details{grid-template-columns:1fr}.result-head{align-items:flex-start;gap:12px}.admin-chip>span:last-child,.page-title-mini span{display:none}.login-card{padding:30px 24px}.app-footer__inner span:last-child{display:none}.merge-controls{flex-direction:column}.merge-confirm{padding:22px 16px}.merge-result{align-items:flex-start;flex-direction:column}.merge-confirm-actions{justify-content:space-between}}

/* Knowledge base */
.kb-kicker{display:block;margin-bottom:7px;color:#6b74d9;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.kb-hero{position:relative;display:grid;grid-template-columns:minmax(310px,.75fr) minmax(520px,1.25fr);gap:44px;align-items:center;overflow:hidden;padding:38px 42px;border-radius:20px;background:radial-gradient(circle at 10% 110%,rgba(114,96,229,.75),transparent 42%),linear-gradient(125deg,#142a58,#274f9e 60%,#3b68cb);color:#fff;box-shadow:0 18px 45px rgba(29,56,117,.2)}.kb-hero:after{position:absolute;right:-85px;top:-125px;width:310px;height:310px;border:1px solid rgba(255,255,255,.13);border-radius:50%;content:""}.kb-hero .kb-kicker{color:#bac9ff}.kb-hero h1{margin:0 0 10px;color:#fff;font-size:30px;line-height:1.18;letter-spacing:-.025em}.kb-hero-copy>p{max-width:520px;margin:0;color:rgba(255,255,255,.73);font-size:13px;line-height:1.7}.kb-stat-row{display:flex;gap:18px;margin-top:25px}.kb-stat-row span{display:flex;align-items:baseline;gap:5px;color:rgba(255,255,255,.65);font-size:10px}.kb-stat-row strong{color:#fff;font-size:17px}.kb-search{position:relative;z-index:1;padding:18px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}.kb-search>label{display:block;margin-bottom:8px;color:rgba(255,255,255,.78);font-size:11px;font-weight:700}.kb-search-control{display:flex;align-items:center;padding:6px;border-radius:11px;background:#fff;box-shadow:0 12px 28px rgba(7,21,57,.18)}.kb-search-control>i{margin:0 9px;color:#7e89a2;font-size:17px}.kb-search-control input{flex:1;min-width:0;height:44px;border:0;outline:0;color:var(--crm-ink);font-size:14px}.kb-search-control button{height:44px;padding:0 19px;border:0;border-radius:8px;background:#1e3e7e;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.kb-query-examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px;align-items:center}.kb-query-examples span{color:rgba(255,255,255,.58);font-size:9px}.kb-query-examples a{padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.09);color:rgba(255,255,255,.82);font-size:9px}.kb-query-examples a:hover{background:rgba(255,255,255,.18);text-decoration:none}.kb-catalog{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;margin-top:20px}.kb-categories{align-self:start;padding:17px;border:1px solid #e9edf4;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(31,49,91,.04)}.kb-categories h3{margin:0 8px 12px;font-size:12px}.kb-categories a{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:8px;color:#5f687d;font-size:10px}.kb-categories a:hover,.kb-categories a.is-active{background:#edf2ff;color:#315bb7;text-decoration:none}.kb-categories em{font-style:normal}.kb-article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.kb-article-card{position:relative;display:flex;flex-direction:column;min-height:242px;padding:23px;border:1px solid #e9edf4;border-radius:15px;background:#fff;color:var(--crm-ink);box-shadow:0 6px 20px rgba(31,49,91,.04);transition:.2s}.kb-article-card:hover{transform:translateY(-2px);border-color:#cdd8f4;box-shadow:0 12px 28px rgba(31,49,91,.09);text-decoration:none}.kb-article-icon{display:grid;place-items:center;width:38px;height:38px;margin-bottom:16px;border-radius:12px;background:#edf2ff;color:#456bd0}.kb-article-card>span{color:#8a93a7;font-size:9px;font-weight:700;text-transform:uppercase}.kb-article-card h2{margin:7px 0 8px;font-size:16px;line-height:1.35}.kb-article-card p{margin:0 0 18px;color:#737c90;font-size:11px;line-height:1.55}.kb-article-card>div:last-child{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.kb-article-card em{color:#2c9b67;font-size:9px;font-style:normal}.kb-article-card>div strong{color:#3f6ad8;font-size:10px}.kb-owner-state{display:flex;align-items:center;gap:23px;margin-top:20px;padding:29px 31px;border:1px solid #f0d39a;border-radius:16px;background:linear-gradient(120deg,#fffcf3,#fff);box-shadow:0 7px 24px rgba(109,78,19,.06)}.kb-owner-icon{display:grid;place-items:center;flex:0 0 62px;height:62px;border-radius:19px;background:#fff1cf;color:#b57600;font-size:25px}.kb-owner-state .kb-kicker{color:#a96d00}.kb-owner-state h2{margin:0 0 5px;font-size:22px}.kb-owner-state p{max-width:900px;margin:0;color:#74694f;font-size:12px;line-height:1.65}.kb-answer{margin-top:20px;padding:28px;border:1px solid #e5eaf3;border-radius:18px;background:#fff;box-shadow:0 10px 32px rgba(31,49,91,.065)}.kb-answer-head{display:flex;justify-content:space-between;gap:25px}.kb-answer-head h1{margin:0 0 6px;font-size:25px}.kb-answer-head p{max-width:850px;margin:0;color:var(--crm-muted);font-size:12px;line-height:1.65}.kb-confidence{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 92px;height:76px;border-radius:15px;background:#fff7e5;color:#ad7100}.kb-confidence.is-high{background:#e8f8f0;color:#188657}.kb-confidence strong{font-size:22px}.kb-confidence span{font-size:8px;font-weight:700;text-transform:uppercase}.kb-evidence-line{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.kb-evidence-line span{padding:6px 9px;border-radius:7px;background:#f2f4f8;color:#626c80;font-size:9px}.kb-evidence-line i{margin-right:3px;color:#3aae75}.kb-response-box{margin-top:20px;padding:18px 20px;border:1px solid #cfdaf5;border-left:4px solid #4c70d4;border-radius:11px;background:#f7f9ff}.kb-response-box>div{display:flex;justify-content:space-between;align-items:center}.kb-response-box>div>span{color:#3f5eae;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.kb-response-box p{margin:10px 0 0;color:#34415a;font-size:12px;line-height:1.7}.kb-copy{padding:6px 9px;border:1px solid #d7def1;border-radius:7px;background:#fff;color:#52617e;font-size:9px;font-weight:700;cursor:pointer}.kb-copy.is-copied{border-color:#9fd8be;color:#198a59}.kb-answer-actions{display:flex;justify-content:flex-end;margin-top:20px}.kb-primary-button{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-radius:9px;background:#3f6ad8;color:#fff!important;font-size:10px;font-weight:800}.kb-primary-button:hover{background:#3158bd;text-decoration:none}.kb-section{margin-top:24px}.kb-section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:13px}.kb-section-heading h2{margin:0;font-size:18px}.kb-flow-hint{color:#8992a5;font-size:9px}.kb-flow-hint i{margin-right:4px}.kb-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.kb-related-card{display:flex;flex-direction:column;min-height:135px;padding:18px;border:1px solid #e7ebf2;border-radius:12px;background:#fff;color:var(--crm-ink)}.kb-related-card:hover{border-color:#c8d4f1;text-decoration:none}.kb-related-card span{color:#8d95a6;font-size:8px;text-transform:uppercase}.kb-related-card strong{margin:7px 0 auto;font-size:12px}.kb-related-card em{margin-top:12px;color:#446ac8;font-size:9px;font-style:normal}.kb-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:#8b94a7;font-size:9px}.kb-breadcrumb a{color:#3f6ad8}.kb-breadcrumb i{font-size:6px}.kb-article-view{padding-bottom:20px}.kb-article-header{display:flex;justify-content:space-between;gap:35px;padding:31px;border:1px solid #e6eaf2;border-radius:17px;background:#fff;box-shadow:0 8px 26px rgba(31,49,91,.05)}.kb-article-header h1{margin:0 0 8px;font-size:29px;letter-spacing:-.02em}.kb-article-header>div>p{max-width:880px;margin:0;color:var(--crm-muted);font-size:12px;line-height:1.65}.kb-back-search{align-self:flex-start;white-space:nowrap;padding:9px 11px;border-radius:8px;background:#edf2ff;color:#3b62bd;font-size:9px;font-weight:700}.kb-back-search:hover{text-decoration:none}.kb-caution{display:flex;gap:13px;margin-top:14px;padding:15px 18px;border:1px solid #efd591;border-radius:11px;background:#fffaf0}.kb-caution>i{margin-top:2px;color:#c18614;font-size:19px}.kb-caution strong{display:block;font-size:10px}.kb-caution p{margin:3px 0 0;color:#796a47;font-size:10px}.kb-instruction-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:14px}.kb-list-card{position:relative;padding:24px 25px 22px;border:1px solid #e7ebf2;border-radius:14px;background:#fff}.kb-card-number{position:absolute;right:20px;top:16px;color:#e7ebf7;font-size:33px;font-weight:800}.kb-list-card h2{margin:0 0 16px;font-size:16px}.kb-list-card ol{display:grid;gap:10px;margin:0;padding-left:20px}.kb-list-card li{padding-left:3px;color:#596378;font-size:10px;line-height:1.55}.kb-flow{margin-top:14px;padding:25px;border:1px solid #e5eaf3;border-radius:16px;background:#fff}.kb-flow--compact{padding:21px;background:#fbfcff}.kb-flow-map{padding:15px;border:1px solid #edf0f5;border-radius:13px;background:linear-gradient(#fafbfe,#fff)}.kb-map-node{position:relative;padding:13px 15px;border:1px solid #dfe5f0;border-radius:10px;background:#fff;box-shadow:0 4px 12px rgba(34,50,88,.04)}.kb-map-node>span{display:block;margin-bottom:4px;color:#8992a5;font-size:7px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.kb-map-node strong{display:block;font-size:10px;line-height:1.4}.kb-map-node p{margin:7px 0 0;color:#737d91;font-size:8px;line-height:1.45}.kb-map-node--question{max-width:570px;margin:0 auto;border-color:#bfcdf1;background:#f5f8ff;text-align:center}.kb-map-node--question strong{font-size:11px}.kb-map-trunk{width:1px;height:20px;margin:0 auto;background:#aebee7}.kb-map-branches{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}.kb-map-branches:before{position:absolute;left:8%;right:8%;top:-1px;height:1px;background:#aebee7;content:""}.kb-map-branch{position:relative;padding-top:16px}.kb-map-branch:before{position:absolute;left:50%;top:0;width:1px;height:16px;background:#aebee7;content:""}.kb-map-node--action{height:100%;min-height:110px;border-top:3px solid #5a7cda}.kb-map-arrow{text-align:center;color:#9aa9ce;font-size:13px;line-height:20px}.kb-map-node--verify{background:#fbfcff;text-align:center}.kb-map-outcomes{display:flex;justify-content:center;gap:5px;margin-top:8px}.kb-map-outcomes em{padding:4px 6px;border-radius:5px;font-size:7px;font-style:normal;font-weight:800}.kb-map-outcomes .is-success{background:#e6f7ef;color:#22835a}.kb-map-outcomes .is-escalate{background:#fff0e5;color:#b46520}.kb-flow-runner{margin-top:18px;padding:18px;border-radius:13px;background:#182a50;color:#fff}.kb-flow-progress{display:flex;align-items:center;justify-content:center;gap:8px}.kb-flow-progress span{color:#73819e;font-size:8px;font-weight:700}.kb-flow-progress span.is-active{color:#c7d5ff}.kb-flow-progress i{width:28px;height:1px;background:#435372}.kb-flow-path{display:flex;align-items:center;gap:6px;min-height:32px;margin-top:10px;padding:8px 10px;border-radius:7px;background:rgba(255,255,255,.04);overflow:auto}.kb-flow-path span{max-width:180px;color:#8998b4;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kb-flow-path span.is-current{color:#d6e0ff}.kb-flow-path i{color:#64728c;font-size:6px}.kb-flow-stage{min-height:205px;margin-top:10px;padding:24px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.06);outline:0}.kb-flow-stage--success{background:linear-gradient(120deg,rgba(35,144,91,.28),rgba(255,255,255,.05))}.kb-flow-stage--escalate{background:linear-gradient(120deg,rgba(193,105,25,.28),rgba(255,255,255,.05))}.kb-flow-stage-marker{display:block;margin-bottom:8px;color:#91a9ed;font-size:8px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.kb-flow-stage h3{margin:0;color:#fff;font-size:19px}.kb-flow-stage p{max-width:850px;margin:9px 0 0;color:#c2cbe0;font-size:11px;line-height:1.65}.kb-flow-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin-top:19px}.kb-flow-options button{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:70px;padding:12px 35px 12px 13px;border:1px solid rgba(255,255,255,.13);border-radius:9px;background:rgba(255,255,255,.075);color:#fff;text-align:left;cursor:pointer}.kb-flow-options button:hover{border-color:#829be0;background:rgba(87,119,210,.2)}.kb-flow-options button span{color:#8ea1cc;font-size:7px}.kb-flow-options button strong{margin-top:4px;font-size:9px}.kb-flow-options button>i{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#95aae2}.kb-flow-controls{display:flex;justify-content:space-between;margin-top:10px}.kb-flow-controls button{padding:7px 9px;border:0;border-radius:7px;background:transparent;color:#9eabc3;font-size:8px;cursor:pointer}.kb-flow-controls button:hover{background:rgba(255,255,255,.06);color:#fff}.kb-flow-controls button:disabled{opacity:.35;cursor:default}.kb-response-box--large{padding:24px;margin-top:14px}.kb-escalation{margin-top:14px;padding:23px 25px;border:1px solid #edddc5;border-radius:14px;background:#fffdf8}.kb-escalation-title{display:flex;align-items:center;gap:13px}.kb-escalation-title>i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff0da;color:#b46c1d}.kb-escalation-title h2{margin:0;font-size:16px}.kb-escalation ul{display:grid;gap:7px;margin:16px 0 0;padding-left:20px}.kb-escalation li{color:#6e634f;font-size:10px}.kb-escalation>p{margin:16px 0 0;padding-top:13px;border-top:1px solid #efe5d6;color:#766b58;font-size:9px}.kb-case-list{display:grid;gap:9px}.kb-case{border:1px solid #e6eaf1;border-radius:11px;background:#fff;overflow:hidden}.kb-case summary{display:grid;grid-template-columns:75px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 15px;cursor:pointer;list-style:none}.kb-case summary::-webkit-details-marker{display:none}.kb-case-source{padding:4px 6px;border-radius:5px;background:#edf2ff;color:#4668bc;font-size:7px;font-weight:800;text-align:center;text-transform:uppercase}.kb-case summary strong{font-size:9px;line-height:1.45}.kb-case summary em{color:#687287;font-size:8px;font-style:normal}.kb-case summary em.is-confirmed{color:#258159}.kb-case-body{display:grid;gap:10px;padding:16px;border-top:1px solid #edf0f4;background:#fbfcff}.kb-case-body>div{padding-left:12px;border-left:3px solid #d8deeb}.kb-case-body>div.is-answer{border-color:#5378d7}.kb-case-body>div.is-feedback{border-color:#42ad77}.kb-case-body span{color:#8a93a7;font-size:7px;font-weight:800;text-transform:uppercase}.kb-case-body p{max-height:270px;margin:5px 0 0;color:#556075;font-size:9px;line-height:1.55;overflow:auto}.kb-cases-in-article{margin-top:22px}.kb-feedback{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:18px 21px;border:1px solid #dde4f0;border-radius:13px;background:#fff}.kb-feedback>div{display:flex;flex-direction:column}.kb-feedback>div strong{font-size:11px}.kb-feedback>div span{margin-top:3px;color:#8992a5;font-size:8px}.kb-feedback form{display:flex;gap:7px}.kb-feedback button{padding:9px 11px;border:1px solid #dce2ec;border-radius:8px;background:#fff;color:#596378;font-size:8px;font-weight:700;cursor:pointer}.kb-feedback button.is-helpful:hover{border-color:#91cfb3;color:#238058}.kb-feedback button.is-not-helpful:hover{border-color:#e6b783;color:#aa631b}.kb-feedback button:disabled{opacity:.5}.kb-feedback-status{margin:0;color:#24835a;font-size:8px}.kb-feedback-status.is-error{color:#b03d47}
@media(max-width:1150px){.kb-hero{grid-template-columns:1fr;gap:25px}.kb-catalog{grid-template-columns:210px minmax(0,1fr)}.kb-map-branches{grid-template-columns:repeat(2,minmax(175px,1fr))}.kb-map-branches:before{display:none}.kb-map-branch:before{top:0}}@media(max-width:800px){.kb-catalog{grid-template-columns:1fr}.kb-categories{display:flex;gap:6px;overflow:auto}.kb-categories h3{display:none}.kb-categories a{flex:0 0 auto}.kb-article-grid,.kb-related-grid,.kb-instruction-grid{grid-template-columns:1fr}.kb-map-branches{grid-template-columns:1fr}.kb-map-branch:before{display:none}.kb-map-trunk,.kb-map-branches:before{display:none}.kb-map-branch{padding-top:8px}.kb-answer-head,.kb-article-header{flex-direction:column}.kb-back-search{align-self:flex-start}.kb-feedback{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.kb-hero{padding:26px 20px}.kb-hero h1{font-size:24px}.kb-search-control{align-items:stretch;flex-wrap:wrap}.kb-search-control input{min-width:calc(100% - 45px)}.kb-search-control button{width:100%;margin-top:5px}.kb-query-examples{display:none}.kb-stat-row{gap:10px}.kb-answer,.kb-article-header,.kb-flow{padding:20px}.kb-article-header h1{font-size:23px}.kb-confidence{align-items:flex-start;flex-basis:auto;height:auto;padding:10px}.kb-evidence-line{gap:5px}.kb-map-outcomes{flex-direction:column}.kb-flow-progress i{width:10px}.kb-flow-progress span{font-size:6px}.kb-flow-stage{padding:18px}.kb-case summary{grid-template-columns:58px minmax(0,1fr)}.kb-case summary em{grid-column:2}.kb-feedback form{flex-wrap:wrap}}

/* Readability: comfortable text sizes for long support shifts */
body{font-size:16px}
.vertical-nav-menu li a{font-size:15px;line-height:2.4rem}
.vertical-nav-menu li a.support-menu-link{display:flex;align-items:center;padding-right:14px}
.support-menu-label{flex:1;min-width:0}
.support-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;margin-left:auto;border-radius:999px;background:#4169e1;color:#fff;font-size:12px;font-weight:800;line-height:1;box-shadow:0 4px 10px rgba(65,105,225,.28)}
.support-unread-badge.is-empty{display:none}
.support-notification-toggle{display:inline-flex;align-items:center;gap:7px;margin-right:14px;padding:9px 13px;border:1px solid #dce3f3;border-radius:12px;background:#fff;color:#48608f;font-size:13px;font-weight:700;cursor:pointer;transition:.18s ease}
.support-notification-toggle:hover{border-color:#9fb4ee;color:#315cd6;background:#f7f9ff}
.support-notification-toggle.is-active{border-color:#bee9d6;background:#edfbf5;color:#16835d}
.support-notification-toggle i{font-size:18px}
.support-toast-stack{position:fixed;z-index:1200;top:78px;right:24px;left:auto;display:flex;flex-direction:column;gap:10px;width:min(390px,calc(100vw - 32px));pointer-events:none}
.support-toast-clear-all{display:none;align-self:flex-end;align-items:center;gap:5px;padding:7px 10px;border:1px solid #dce4f3;border-radius:9px;background:#fff;color:#53627d;font-size:12px;font-weight:800;box-shadow:0 8px 22px rgba(24,42,82,.12);cursor:pointer;pointer-events:auto}
.support-toast-stack.has-toasts .support-toast-clear-all{display:inline-flex}
.support-toast-clear-all:hover{border-color:#b7c5e5;color:#315cd6;background:#f8faff}
.support-toast-clear-all i{font-size:17px}
.support-toast{position:relative;display:grid;grid-template-columns:auto 1fr;gap:3px 10px;width:100%;padding:15px 46px 15px 17px;border:1px solid #dbe4f6;border-left:5px solid #4169e1;border-radius:14px;background:#fff;color:#1d2942;text-align:left;box-shadow:0 16px 45px rgba(24,42,82,.22);cursor:pointer;pointer-events:auto;animation:support-toast-in .22s ease-out}
.support-toast.is-email{border-left-color:#27a77a}
.support-toast:focus-visible{outline:3px solid rgba(65,105,225,.24);outline-offset:2px}
.support-toast-close{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:29px;height:29px;padding:0;border:0;border-radius:8px;background:transparent;color:#7b879c;font-size:21px;line-height:1;cursor:pointer}
.support-toast-close:hover{background:#edf2ff;color:#315cd6}
.support-toast-source{grid-row:1/span 2;align-self:start;padding:4px 7px;border-radius:7px;background:#edf2ff;color:#315cd6;font-size:10px;font-weight:900;letter-spacing:.05em}
.support-toast.is-email .support-toast-source{background:#e9f9f2;color:#16835d}
.support-toast strong{font-size:15px;line-height:1.2}
.support-toast-preview{grid-column:2;color:#66718a;font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.support-toast.is-leaving{opacity:0;transform:translateY(-8px);transition:.22s ease}
@keyframes support-toast-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
.logout-form button{height:2.4rem;padding-top:0;padding-bottom:0;font-size:15px;line-height:2.4rem}
.logout-form .metismenu-icon{margin-top:0!important}
.app-sidebar__heading{font-size:13px!important}
.page-title-mini strong{font-size:18px}.page-title-mini span{font-size:14px}
.admin-chip strong{font-size:15px}.admin-chip small{font-size:13px}
.app-footer__inner{font-size:13px}
.kb-kicker{font-size:13px;line-height:1.4}
.kb-hero h1{font-size:36px;line-height:1.2}
.kb-hero-copy>p{font-size:16px;line-height:1.7}
.kb-stat-row span{font-size:13px}.kb-stat-row strong{font-size:22px}
.kb-search>label{font-size:14px}
.kb-search-control input{font-size:17px}
.kb-search-control button{font-size:14px}
.kb-query-examples span,.kb-query-examples a{font-size:12px}
.kb-categories h3{font-size:16px}
.kb-categories a{font-size:14px;line-height:1.35}
.kb-article-card>span{font-size:12px}
.kb-article-card h2{font-size:20px;line-height:1.4}
.kb-article-card p{font-size:15px;line-height:1.65}
.kb-article-card em,.kb-article-card>div strong{font-size:13px}
.kb-owner-state h2{font-size:27px}
.kb-owner-state p{font-size:16px;line-height:1.7}
.kb-answer-head h1{font-size:31px;line-height:1.3}
.kb-answer-head p{font-size:16px;line-height:1.7}
.kb-confidence{flex-basis:112px;height:92px}
.kb-confidence strong{font-size:28px}.kb-confidence span{font-size:11px}
.kb-evidence-line span{font-size:13px;line-height:1.4}
.kb-response-box>div>span{font-size:13px}
.kb-response-box p{font-size:16px;line-height:1.75}
.kb-copy{font-size:13px}
.kb-primary-button{font-size:14px}
.kb-section-heading h2{font-size:24px}
.kb-flow-hint{font-size:13px}
.kb-related-card span{font-size:11px}
.kb-related-card strong{font-size:16px;line-height:1.45}
.kb-related-card em{font-size:13px}
.kb-breadcrumb{font-size:13px}
.kb-article-header h1{font-size:34px;line-height:1.25}
.kb-article-header>div>p{font-size:16px;line-height:1.7}
.kb-back-search{font-size:13px}
.kb-caution strong{font-size:14px}.kb-caution p{font-size:14px;line-height:1.55}
.kb-list-card h2{font-size:22px}
.kb-list-card li{font-size:15px;line-height:1.65}
.kb-map-node>span{font-size:11px}
.kb-map-node strong{font-size:14px;line-height:1.5}
.kb-map-node p{font-size:13px;line-height:1.55}
.kb-map-node--question strong{font-size:16px}
.kb-map-node--action{min-height:160px}
.kb-map-outcomes em{font-size:11px;line-height:1.35}
.kb-flow-progress span{font-size:12px}
.kb-flow-path span{max-width:260px;font-size:12px}
.kb-flow-stage-marker{font-size:12px}
.kb-flow-stage h3{font-size:25px;line-height:1.35}
.kb-flow-stage p{font-size:16px;line-height:1.7}
.kb-flow-options button{min-height:90px}
.kb-flow-options button span{font-size:11px}
.kb-flow-options button strong{font-size:15px;line-height:1.45}
.kb-flow-controls button{font-size:13px}
.kb-escalation-title h2{font-size:22px}
.kb-escalation li{font-size:15px;line-height:1.6}
.kb-escalation>p{font-size:14px;line-height:1.6}
.kb-case summary{grid-template-columns:90px minmax(0,1fr) auto;padding:17px 18px}
.kb-case-source{font-size:11px}
.kb-case summary strong{font-size:15px;line-height:1.55}
.kb-case summary em{font-size:12px}
.kb-case-body span{font-size:11px}
.kb-case-body p{font-size:15px;line-height:1.65}
.kb-feedback>div strong{font-size:16px}
.kb-feedback>div span,.kb-feedback-status{font-size:13px}
.kb-feedback button{font-size:13px}
@media(max-width:600px){.kb-hero h1{font-size:30px}.kb-hero-copy>p{font-size:15px}.kb-section-heading h2{font-size:21px}.kb-map-node--action{min-height:0}.kb-flow-progress span{font-size:10px}.kb-case summary{grid-template-columns:72px minmax(0,1fr)}}

/* Telegram Business setup */
.tg-setup-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:34px 38px;border-radius:18px;background:linear-gradient(120deg,#18366f,#3e6edc);color:#fff;box-shadow:0 15px 35px rgba(30,62,126,.16)}
.tg-kicker{display:block;margin-bottom:8px;color:#a9c2ff;font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.tg-setup-hero h1{margin:0 0 8px;font-size:34px;line-height:1.2}
.tg-setup-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.76);font-size:16px;line-height:1.65}
.tg-overall-status{display:flex;flex-direction:column;flex:0 0 240px;padding:18px 20px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.08)}
.tg-overall-status.is-ready{background:rgba(35,181,114,.18)}
.tg-overall-status span{color:rgba(255,255,255,.7);font-size:13px}
.tg-overall-status strong{margin-top:5px;font-size:17px}
.tg-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.tg-panel{padding:27px;border:1px solid #e2e7f0;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(31,49,91,.05)}
.tg-panel-heading{display:flex;align-items:flex-start;gap:14px}
.tg-panel-heading h2{margin:0 0 5px;color:var(--crm-ink);font-size:21px}
.tg-panel-heading p{margin:0;color:var(--crm-muted);font-size:14px;line-height:1.55}
.tg-step-number{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:11px;background:#eaf0ff;color:#3f67c8;font-size:15px;font-weight:800}
.tg-token-form{margin-top:22px}
.tg-token-form label{display:block;margin-bottom:8px;color:#3c465a;font-size:14px;font-weight:700}
.tg-token-input{display:flex;align-items:center;height:52px;border:1px solid #dce2ed;border-radius:10px;background:#fbfcfe}
.tg-token-input:focus-within{border-color:#6485db;box-shadow:0 0 0 3px rgba(76,112,212,.1)}
.tg-token-input i{margin:0 13px;color:#8290aa}
.tg-token-input input{flex:1;height:50px;padding:0 14px 0 0;border:0;outline:0;background:transparent;color:#28344b;font-size:16px}
.tg-token-form .help-block{min-height:21px;margin:5px 0 0;color:#c34f58;font-size:13px}
.tg-primary-button,.tg-secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;font-size:14px;font-weight:800;cursor:pointer}
.tg-primary-button{width:100%;height:48px;margin-top:5px;background:#3f6ad8;color:#fff}
.tg-primary-button:hover{background:#3158bb}
.tg-secondary-button{height:40px;margin-top:17px;padding:0 14px;border:1px solid #dbe2ef;background:#fff;color:#4b5a75}
.tg-secondary-button:hover{border-color:#b9c8e7;color:#3158bb}
.tg-security-note,.tg-warning{display:flex;align-items:flex-start;gap:12px;margin-top:18px;padding:14px;border-radius:10px}
.tg-security-note{background:#f2f7f5;color:#527064}
.tg-security-note i{margin-top:3px;color:#2a9a6a}
.tg-security-note p,.tg-warning p{margin:0;font-size:13px;line-height:1.55}
.tg-status-list{display:grid;gap:1px;margin-top:22px;border:1px solid #e7ebf2;border-radius:10px;overflow:hidden;background:#e7ebf2}
.tg-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 15px;background:#fff}
.tg-status-list span{color:#747f94;font-size:14px}
.tg-status-list strong{color:#303c52;font-size:14px}
.tg-status-list strong.is-good{color:#23865a}
.tg-status-list strong.is-waiting{color:#b27816}
.tg-api-error{display:flex;flex-direction:column;gap:3px;margin-top:14px;padding:12px 14px;border:1px solid #f0c4c7;border-radius:9px;background:#fff6f6;color:#a33c44}
.tg-api-error strong{font-size:13px}.tg-api-error span{font-size:13px}
.tg-connect-panel{margin-top:18px}
.tg-connect-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:13px;align-items:center;margin-top:24px}
.tg-connect-flow>div{display:flex;flex-direction:column;min-height:120px;padding:17px;border:1px solid #e3e8f1;border-radius:12px;background:#fbfcff}
.tg-connect-flow>div>span{display:grid;place-items:center;width:27px;height:27px;margin-bottom:11px;border-radius:8px;background:#e8efff;color:#3d64c4;font-size:13px;font-weight:800}
.tg-connect-flow strong{font-size:15px}.tg-connect-flow small{margin-top:6px;color:#788398;font-size:13px;line-height:1.45}
.tg-connect-flow>i{color:#9caac5}
.tg-warning{border:1px solid #efd7a6;background:#fffaf0;color:#776744}
.tg-warning>i{margin-top:2px;color:#b77a14;font-size:18px}
.tg-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.tg-metrics>div{display:flex;align-items:baseline;gap:10px;padding:19px 22px;border:1px solid #e2e7f0;border-radius:13px;background:#fff}
.tg-metrics span{color:#315fc5;font-size:27px;font-weight:800}.tg-metrics strong{color:#667187;font-size:14px}
@media(max-width:1100px){.tg-setup-grid{grid-template-columns:1fr}.tg-connect-flow{grid-template-columns:1fr 1fr}.tg-connect-flow>i{display:none}}
@media(max-width:700px){.tg-setup-hero{align-items:flex-start;flex-direction:column;padding:26px 22px}.tg-overall-status{flex-basis:auto;width:100%}.tg-setup-hero h1{font-size:28px}.tg-panel{padding:21px}.tg-connect-flow{grid-template-columns:1fr}.tg-metrics{grid-template-columns:1fr}}

/* Telegram support workspace */
.app-main__inner.telegram-workspace{max-width:none;padding:18px 20px}
.telegram-support-page{min-width:0}
.tg-workspace-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:16px}
.tg-workspace-head h1{margin:4px 0 4px;color:#172033;font-size:30px;line-height:1.1}
.tg-workspace-head p{margin:0;color:#6f7890;font-size:15px}
.tg-workspace-actions{display:flex;align-items:center;gap:14px}
.tg-live-indicator,.tg-settings-link{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 13px;border-radius:10px;font-size:14px;font-weight:700}
.tg-live-indicator{background:#e9f8f1;color:#21855a}
.tg-live-indicator i,.tg-state-ok i{width:8px;height:8px;border-radius:50%;background:#2fb171;box-shadow:0 0 0 4px rgba(47,177,113,.13)}
.tg-settings-link{border:1px solid #dfe4ee;background:#fff;color:#3f5f9f;text-decoration:none!important}
.tg-settings-link:hover{border-color:#b9c8e7;color:#3158bb}
.tg-workspace{display:grid;grid-template-columns:330px minmax(470px,1fr) 430px;height:calc(100vh - 172px);min-height:650px;overflow:hidden;border:1px solid #dfe4ec;border-radius:16px;background:#fff;box-shadow:0 14px 38px rgba(30,45,80,.09)}
.tg-column{min-width:0;min-height:0;background:#fff}
.tg-dialogs-column,.tg-knowledge-column{display:flex;flex-direction:column;background:#f8f9fc}
.tg-dialogs-column{border-right:1px solid #e4e8ef}
.tg-knowledge-column{border-left:1px solid #e4e8ef}
.tg-column-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;padding:14px 17px;border-bottom:1px solid #e6e9f0;background:#fff}
.tg-column-head>div{min-width:0}
.tg-column-head strong{display:block;color:#263247;font-size:17px}
.tg-column-head span{display:block;overflow:hidden;margin-top:3px;color:#7b8598;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.tg-icon-button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #e1e6ef;border-radius:10px;background:#fff;color:#5971a8;font-size:20px;cursor:pointer}
.tg-icon-button:hover:not(:disabled){border-color:#b9c8e7;background:#f3f6fc;color:#3158bb}
.tg-icon-button:disabled{cursor:default;opacity:.45}
.tg-icon-button.is-loading i{animation:tg-spin .8s linear infinite}
@keyframes tg-spin{to{transform:rotate(360deg)}}
.tg-chat-search{display:flex;align-items:center;gap:9px;margin:13px 13px 9px;padding:0 12px;border:1px solid #dde3ed;border-radius:11px;background:#fff;color:#8792a8}
.tg-chat-search:focus-within{border-color:#7895dd;box-shadow:0 0 0 3px rgba(63,106,216,.08)}
.tg-chat-search i{font-size:20px}
.tg-chat-search input{width:100%;height:42px;border:0;outline:0;background:transparent;color:#263247;font-size:14px}
.tg-chat-list{min-height:0;overflow-y:auto;padding:4px 8px 10px}
.tg-chat-item{position:relative;display:flex;align-items:center;width:100%;gap:11px;margin:3px 0;padding:12px 10px;border:0;border-radius:12px;background:transparent;color:#263247;text-align:left;cursor:pointer}
.tg-chat-item:hover{background:#eef2f9}
.tg-chat-item.is-active{background:#e5edff;box-shadow:inset 3px 0 #3f6ad8}
.tg-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:15px;background:linear-gradient(135deg,#5878dc,#7a68e5);color:#fff;font-size:14px;font-weight:800;letter-spacing:.02em}
.tg-chat-item:nth-child(3n+2) .tg-avatar{background:linear-gradient(135deg,#2d9c84,#48b89e)}
.tg-chat-item:nth-child(3n+3) .tg-avatar{background:linear-gradient(135deg,#e08055,#e7a64f)}
.tg-chat-item-main{display:block;min-width:0;flex:1}
.tg-chat-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tg-chat-item-top strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.tg-chat-item-top time{flex:0 0 auto;color:#8c95a7;font-size:11px}
.tg-chat-preview{display:block;overflow:hidden;margin-top:4px;color:#707a8e;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.tg-unread{display:grid;place-items:center;position:absolute;right:9px;bottom:9px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#3f6ad8;color:#fff;font-size:10px;font-weight:800}
.tg-list-empty,.tg-knowledge-intro,.tg-conversation-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.tg-list-empty{min-height:260px;padding:25px;color:#8790a3}
.tg-list-empty i{margin-bottom:10px;font-size:34px;color:#9daed2}
.tg-list-empty strong{color:#455169;font-size:15px}.tg-list-empty span{max-width:230px;margin-top:6px;font-size:13px;line-height:1.5}
.tg-conversation-column{position:relative;background:#eef2f7}
.tg-conversation-empty{height:100%;padding:30px}
.tg-empty-symbol{display:grid;place-items:center;width:76px;height:76px;border-radius:25px;background:#e1e9fb;color:#4b6dca;font-size:38px}
.tg-conversation-empty h2{margin:17px 0 5px;font-size:22px}.tg-conversation-empty p{margin:0;color:#7c8698;font-size:15px}
.tg-conversation{display:grid;height:100%;grid-template-rows:auto minmax(0,1fr) auto auto}
.tg-chat-head{display:flex;align-items:center;gap:12px;min-height:74px;padding:11px 18px;border-bottom:1px solid #e1e6ed;background:#fff}
.tg-chat-person{min-width:0;flex:1}.tg-chat-person strong{display:block;overflow:hidden;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.tg-chat-person span{display:block;margin-top:3px;color:#788398;font-size:13px}
.tg-chat-state{flex:0 0 auto;font-size:12px;font-weight:700}
.tg-state-ok{display:inline-flex;align-items:center;gap:8px;color:#21855a}
.tg-state-warning{display:inline-flex;padding:7px 9px;border-radius:8px;background:#fff3d8;color:#9b6712}
.tg-state-error{display:inline-flex;padding:7px 9px;border-radius:8px;background:#fdebed;color:#b73e4b}
.tg-message-list{min-height:0;overflow-y:auto;padding:22px 22px 14px;background-color:#eef2f7;background-image:radial-gradient(rgba(71,95,143,.055) 1px,transparent 1px);background-size:18px 18px;scroll-behavior:smooth}
.tg-message{display:flex;margin:5px 0}.tg-message-incoming{justify-content:flex-start}.tg-message-outgoing{justify-content:flex-end}
.tg-message-bubble{max-width:min(78%,720px);padding:10px 13px 7px;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(44,57,83,.08)}
.tg-message-incoming .tg-message-bubble{border-bottom-left-radius:4px}
.tg-message-outgoing .tg-message-bubble{border-bottom-right-radius:4px;background:#dfeaff}
.tg-message-text{color:#253148;font-size:15px;line-height:1.48;overflow-wrap:anywhere}
.tg-message-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:4px;color:#8791a3;font-size:10px}
.tg-message.is-deleted .tg-message-bubble{opacity:.65}.tg-message.is-deleted .tg-message-text{color:#7f8795}
.tg-media-placeholder{display:inline-flex;align-items:center;gap:6px;color:#506382;font-weight:700}
.tg-send-error{padding:9px 17px;border-top:1px solid #f0c4ca;background:#fff0f2;color:#b43343;font-size:13px}
.tg-composer{padding:12px 15px 11px;border-top:1px solid #dfe4ec;background:#fff}
.tg-composer textarea{display:block;width:100%;max-height:150px;resize:none;padding:11px 12px;border:1px solid #dbe1eb;border-radius:11px;outline:0;color:#253148;font:15px/1.45 inherit}
.tg-composer textarea:focus{border-color:#708eda;box-shadow:0 0 0 3px rgba(63,106,216,.08)}
.tg-composer textarea:disabled{background:#f2f3f6;color:#9198a6}
.tg-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:8px}
.tg-composer-bottom>span{color:#939bab;font-size:11px}.tg-composer kbd{padding:1px 4px;border:1px solid #d9dee7;border-radius:4px;background:#f8f9fb;color:#687286;font:10px inherit}
.tg-composer button,.tg-use-answer{border:0;border-radius:9px;background:#3f6ad8;color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.tg-composer button{height:39px;padding:0 16px}.tg-composer button:hover:not(:disabled),.tg-use-answer:hover{background:#3158bb}
.tg-composer button:disabled{cursor:default;opacity:.55}.tg-composer button.is-loading{opacity:.72}
.tg-knowledge-intro{min-height:300px;padding:30px;color:#7c879b}
.tg-knowledge-intro>i{font-size:43px;color:#718bd4}.tg-knowledge-intro strong{margin-top:13px;color:#3b485f;font-size:17px}.tg-knowledge-intro p{max-width:320px;margin:8px 0 0;font-size:14px;line-height:1.55}
.tg-suggestion-list{min-height:0;overflow-y:auto;padding:12px}
.tg-suggestion{margin-bottom:10px;padding:15px;border:1px solid #e0e5ee;border-radius:13px;background:#fff}
.tg-suggestion.is-primary{border-color:#b9caf5;box-shadow:0 7px 20px rgba(48,79,153,.09)}
.tg-suggestion-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tg-suggestion-top span{overflow:hidden;color:#6880b8;font-size:10px;font-weight:800;letter-spacing:.05em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.tg-suggestion-top strong{padding:4px 7px;border-radius:7px;background:#e7f8f0;color:#21855a;font-size:12px}
.tg-suggestion h3{margin:9px 0 6px;color:#263247;font-size:17px;line-height:1.3}
.tg-suggestion-summary{margin:0;color:#778196;font-size:13px;line-height:1.5}
.tg-ready-answer{margin-top:12px;padding:11px 12px;border-left:3px solid #4c70d2;border-radius:7px;background:#f4f7ff}
.tg-ready-answer>span{color:#4263b8;font-size:10px;font-weight:800;text-transform:uppercase}.tg-ready-answer p{margin:6px 0 0;color:#334058;font-size:14px;line-height:1.5}
.tg-suggestion-details{margin-top:10px;border-top:1px solid #edf0f5}.tg-suggestion-details summary{padding:10px 0 3px;color:#53627d;font-size:12px;font-weight:800;cursor:pointer}
.tg-suggestion-details>div{margin-top:8px}.tg-suggestion-details>div>strong{color:#5a6780;font-size:11px;text-transform:uppercase}
.tg-suggestion-details ol{margin:5px 0 0;padding-left:20px;color:#536075;font-size:12px;line-height:1.45}.tg-suggestion-details li{margin:3px 0}
.tg-suggestion-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.tg-use-answer{height:36px;padding:0 12px}.tg-suggestion-actions a{color:#3f6ad8;font-size:12px;font-weight:700}
.tg-no-solution{padding:22px 18px;border:1px solid #f0d9a8;border-radius:13px;background:#fffaf0;color:#6e6043;text-align:center}
.tg-no-solution i{font-size:34px;color:#c48a25}.tg-no-solution strong{display:block;margin-top:8px;color:#6a5631;font-size:17px}.tg-no-solution p{margin:8px 0 13px;font-size:14px;line-height:1.55}.tg-no-solution a{color:#3f6ad8;font-size:13px;font-weight:800}
.tg-similar-cases{margin:5px 0 10px;padding:12px;border:1px solid #e1e5ed;border-radius:12px;background:#fff}.tg-similar-cases summary{color:#45536d;font-size:13px;font-weight:800;cursor:pointer}
.tg-similar-cases>div{padding:10px 0;border-top:1px solid #edf0f4}.tg-similar-cases>div:first-of-type{margin-top:9px}.tg-similar-cases strong{display:block;font-size:12px}.tg-similar-cases p{margin:5px 0;color:#687389;font-size:12px;line-height:1.45}.tg-similar-cases span{color:#8791a5;font-size:10px}
.tg-panel-loading{display:flex;align-items:center;justify-content:center;gap:9px;min-height:80px;padding:20px;color:#7d8799;font-size:13px}
.tg-panel-loading span{width:16px;height:16px;border:2px solid #c9d3e7;border-top-color:#3f6ad8;border-radius:50%;animation:tg-spin .8s linear infinite}
.tg-panel-error{margin:12px;padding:13px;border:1px solid #efc2c8;border-radius:9px;background:#fff1f3;color:#ac3442;font-size:13px}
@media(max-width:1450px){
    .tg-workspace{grid-template-columns:285px minmax(430px,1fr) 360px}
    .tg-message-bubble{max-width:86%}
}
@media(max-width:1120px){
    .app-main__inner.telegram-workspace{padding:16px}
    .tg-workspace-head{align-items:flex-start;flex-direction:column}
    .tg-workspace{grid-template-columns:270px minmax(430px,1fr)}
    .tg-knowledge-column{position:fixed;z-index:30;right:0;top:60px;bottom:0;width:min(430px,92vw);border-left:1px solid #dfe4ec;box-shadow:-15px 0 35px rgba(30,45,80,.14)}
}
@media(max-width:760px){
    .tg-workspace-actions{align-items:flex-start;flex-direction:column}
    .tg-workspace{display:block;height:auto;min-height:0}
    .tg-dialogs-column{height:300px;border-right:0;border-bottom:1px solid #e4e8ef}
    .tg-conversation-column{height:calc(100vh - 210px);min-height:560px}
    .tg-knowledge-column{display:none}
    .tg-composer-bottom>span{display:none}
}

/* Compact knowledge flow map with readable operator-sized text */
.kb-flow-map{padding:13px 15px}
.kb-map-trunk{height:14px}
.kb-map-branches{align-items:start}
.kb-map-branch{padding-top:12px}
.kb-map-branch:before{height:12px}
.kb-map-node--action{height:auto;min-height:130px}
.kb-map-arrow{line-height:14px}
.kb-map-node--verify{padding:10px 13px}
.kb-map-outcomes{margin-top:6px}
.kb-flow-runner{margin-top:14px}
.kb-map-node>span{font-size:13px}
.kb-map-node strong{font-size:16px;line-height:1.45}
.kb-map-node p{font-size:15px;line-height:1.5}
.kb-map-node--question strong{font-size:18px}
.kb-map-outcomes em{font-size:13px;line-height:1.3}
@media(max-width:600px){.kb-map-node--action{min-height:0}}

/* Unified Telegram and email support channels */
.tg-chat-title{display:flex;align-items:center;min-width:0;gap:6px}
.tg-chat-title strong{min-width:0}
.tg-channel-badge{display:inline-flex;flex:0 0 auto;padding:2px 5px;border-radius:5px;font-size:9px;font-style:normal;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.tg-channel-badge.is-telegram{background:#e7edff;color:#3f64c1}
.tg-channel-badge.is-email{background:#e5f6f1;color:#188063}
.tg-avatar.is-email,.tg-chat-item:nth-child(n) .tg-avatar.is-email{background:linear-gradient(135deg,#238b72,#4fb7a0)}
.tg-chat-person span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg-state-email{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:8px;background:#e5f6f1;color:#18765e}
.tg-message-source{display:inline-flex;align-items:center;gap:4px;margin-bottom:5px;color:#25816a;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.tg-message-attachments{display:grid;gap:7px;margin-top:9px}
.tg-message-image{display:block;overflow:hidden;border:1px solid rgba(54,78,120,.12);border-radius:10px;background:rgba(255,255,255,.48);color:#4d5f7d;text-decoration:none!important}
.tg-message-image img{display:block;width:100%;max-width:420px;max-height:300px;object-fit:contain;background:#fff}
.tg-message-image span{display:block;overflow:hidden;padding:6px 8px;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.tg-message-file{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid rgba(54,78,120,.13);border-radius:8px;background:rgba(255,255,255,.52);color:#3f5f9d;text-decoration:none!important}
.tg-message-file i{font-size:20px}.tg-message-file span{overflow:hidden;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:991px){.support-toast-stack{top:74px;right:16px;left:auto}.support-notification-toggle span{display:none}.support-notification-toggle{margin-right:8px;padding:9px}}
