@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f6f2;--paper:#fff;--ink:#1f302b;--muted:#7d8981;--line:#e4e9e1;--green:#204e40;--mint:#e8f4df;--lime:#d9efb8;--accent:#79a46b;--red:#b64f4f;--radius:18px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:Manrope,system-ui,-apple-system,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #9cc68b;outline-offset:3px}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;color:inherit}.layout{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;padding:35px 25px 23px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:11px;font-size:28px;font-weight:800;letter-spacing:-1.5px}.brand img{width:39px;height:39px}.brand .label{font-size:9px;color:var(--muted);letter-spacing:1.8px;display:block;margin-top:1px;font-weight:600}.nav-label{text-transform:uppercase;color:#a2aaa2;font-size:10px;font-weight:700;letter-spacing:1.5px;margin:48px 13px 13px}.nav{display:grid;gap:7px}.nav button{justify-content:flex-start;padding:13px 14px;border-radius:10px;gap:13px;color:#7c867d;font-weight:600;white-space:nowrap}.nav button:hover{background:#f5f7f1}.nav button.active{background:#edf4e5;color:var(--green)}.nav button svg{width:18px;height:18px}.nav button .nav-count{margin-left:auto;border-radius:5px;background:#dde9d1;font-size:11px;padding:2px 6px}.sidebar-bottom{margin-top:auto}.sidebar-note{margin-top:35px;padding:17px;border:1px solid #e5eadc;border-radius:13px;background:linear-gradient(135deg,#f8fbf3,#edf3e6)}.sidebar-note .tiny{color:#72816c;font-size:11px;line-height:1.8;margin:8px 0 12px}.sidebar-note strong{font-size:12px}.sidebar-note button{font-size:11px;color:#5c7b4c;padding:0;justify-content:flex-start}.profile{display:flex;gap:11px;align-items:center;border-top:1px solid var(--line);margin-top:23px;padding-top:20px}.profile-circle{width:34px;height:34px;border-radius:50%;background:#f0f3eb;display:grid;place-items:center;color:#748369}.profile-name{font-size:12px;font-weight:700}.profile-sub{font-size:10px;color:var(--muted);margin-top:3px}.main{grid-column:2;padding:0 48px 40px;max-width:1680px;width:100%;margin:auto}.topbar{height:94px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.breadcrumb{font-size:11px;color:#939b92;display:flex;align-items:center;gap:10px}.breadcrumb b{font-weight:600;color:#4d5d51}.top-actions{display:flex;align-items:center;gap:20px}.connection-indicator{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#aab3a4;display:inline-block}.dot.online{background:#6b9c59}.icon-button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:white}.page-heading{margin:37px 0 25px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{display:flex;align-items:center;gap:7px;text-transform:uppercase;font-size:9px;letter-spacing:1.9px;color:#91a286;font-weight:700;margin-bottom:10px}.eyebrow:before{content:'';display:block;width:20px;height:1px;background:#9dbd8a}h1{font-size:29px;letter-spacing:-1.1px;margin:0;font-weight:800;line-height:1.4}h2{font-size:16px;letter-spacing:-.4px;margin:0;font-weight:800}h3{font-size:14px;margin:0;font-weight:700}.subtitle{color:var(--muted);font-size:12px;line-height:1.8;margin:7px 0 0}.btn{border-radius:9px;padding:12px 17px;font-size:12px;font-weight:700;min-height:42px;white-space:nowrap}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:#173f33}.btn-secondary{border:1px solid var(--line);background:white}.btn-secondary:hover{background:#f4f7ef}.btn-small{padding:8px 11px;min-height:34px;font-size:11px}.btn-danger{color:var(--red);border:1px solid #ebdada;background:#fff}.btn-text{color:#718263;font-weight:600;font-size:11px;padding:5px}.btn svg{width:16px;height:16px}.setup-banner{border:1px solid #dae5cc;border-radius:var(--radius);padding:23px 26px;display:flex;align-items:center;gap:20px;background:linear-gradient(105deg,#edf4e3 0%,#f4f8ed 70%);margin-bottom:25px}.banner-icon{width:44px;height:44px;background:#dae9ca;border-radius:13px;display:grid;place-items:center;color:#5c8051;flex-shrink:0}.banner-copy{flex:1}.banner-copy strong{font-size:13px;display:block;margin-bottom:5px}.banner-copy p{margin:0;line-height:1.7;color:#839175;font-size:11px}.demo-banner{background:#fff5dc;border-color:#ead8ab}.demo-banner .banner-copy p{color:#977f41}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:32px}.stat{background:#fff;padding:21px 24px;border:1px solid var(--line);border-radius:14px;position:relative}.stat-top{display:flex;justify-content:space-between;align-items:center}.stat-label{font-size:11px;color:#82907f;font-weight:500}.stat-icon{width:29px;height:29px;background:#f5f7f1;border-radius:8px;display:grid;place-items:center;color:#9ba793}.stat-icon svg{width:15px;height:15px}.stat-value{font-size:31px;font-weight:800;letter-spacing:-1px;line-height:1.3;margin-top:10px}.stat-value small{font-size:12px;color:#a0ac98;font-weight:500;letter-spacing:0;margin-left:9px}.stat-foot{font-size:9px;color:#94a08b;margin-top:7px;display:flex;gap:6px;align-items:center}.stat-foot svg{width:12px;height:12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 17px}.section-head .muted{margin-left:9px;font-size:10px;color:#a3ac9c;font-weight:400}.section-caption{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.6}.accounts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.account-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;transition:box-shadow .2s}.account-card:hover{box-shadow:0 7px 24px #3c51350a}.account-body{padding:21px}.account-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.account-number{font-size:9px;color:#a4aca0;text-transform:uppercase;letter-spacing:1.3px}.account-avatar{width:44px;height:44px;border-radius:13px;background:#eae5f1;color:#8a76a0;display:grid;place-items:center;font-size:17px;font-weight:800;position:relative}.account-avatar.peach{background:#f7e7da;color:#ac8772}.account-avatar.green{background:#e5eedc;color:#7a946c}.account-avatar .tiktok-badge{position:absolute;bottom:-4px;right:-4px;width:18px;height:18px;background:#25302c;border:2px solid white;border-radius:50%;display:grid;place-items:center;color:#fff}.tiktok-badge svg{width:10px;height:10px}.account-name{margin-top:18px;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.handle{font-size:10px;color:#9ca795;margin-top:4px}.route{display:flex;align-items:center;gap:11px;margin:20px 0 0;border:1px solid #e9eee3;border-radius:9px;padding:12px 10px;background:#f9fbf6;min-height:46px}.route svg{width:15px;height:15px;color:#9fb490}.route-destination{font-size:10px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.route-telegram{color:#8bafc2!important}.route-unset{color:#9aa591}.source-note{display:flex;align-items:center;gap:5px;margin:12px 0 0;color:#99a18f;font-size:9px;line-height:1.7}.source-note svg{width:11px;height:11px}.account-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0e8;padding:13px 20px;background:#fdfefa;gap:10px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:9px;font-weight:600;white-space:nowrap}.badge.green{background:#edf4e7;color:#759762}.badge.orange{background:#fbf0db;color:#b59856}.badge.red{background:#fbebea;color:#b97673}.badge.gray{background:#f1f3ef;color:#94a08b}.badge.blue{background:#edf3f6;color:#7c9bb0}.badge .dot{width:4px;height:4px;background:currentColor}.card-error{padding:0 21px 12px;color:#b57260;font-size:10px;line-height:1.6}.switch{border-radius:30px;width:32px;height:19px;background:#e2e7dd;padding:3px;display:flex;justify-content:flex-start;border:0;flex-shrink:0}.switch:after{content:'';width:13px;height:13px;border-radius:50%;background:white;box-shadow:0 1px 3px #0001}.switch.on{background:#8aad74;justify-content:flex-end}.switch:focus-visible{outline:3px solid #c3d9b4}.account-empty{border:1px dashed #d8e1cf;min-height:261px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background:#f7f9f3;position:relative;text-align:center}.account-empty .account-number{position:absolute;left:21px;top:22px}.empty-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;background:#edf2e7;color:#9eb18e;margin-bottom:14px}.account-empty h3{font-size:12px;color:#6e8065}.account-empty p{font-size:10px;color:#9ca78f;line-height:1.8;margin:8px 0 13px;max-width:190px}.activity{margin-top:33px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.activity-heading{padding:23px 25px 18px;display:flex;justify-content:space-between;align-items:center}.activity-heading h2{font-size:14px}.activity-heading p{font-size:10px;color:#9ca894;margin:5px 0 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:9px;color:#9aa592;background:#fafbf8;font-weight:600;padding:13px 24px;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8;white-space:nowrap}td{padding:16px 24px;border-bottom:1px solid #edf0e8;font-size:10px;color:#829077}tr:last-child td{border-bottom:0}.video-cell{display:flex;align-items:center;gap:11px}.video-thumb{width:29px;height:38px;background:#edf1e8;border-radius:5px;display:grid;place-items:center;color:#9bb28b}.video-thumb svg{width:13px;height:13px}.video-title{font-size:11px;color:#485942;font-weight:600;display:block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-id{display:block;color:#9aa68f;font-size:9px;margin-top:4px}.table-empty{text-align:center;padding:36px 20px 40px;color:#a1ad98}.table-empty svg{width:28px;height:28px;margin-bottom:9px;color:#b6c3ac}.table-empty strong{display:block;color:#7c8e71;font-size:12px;font-weight:600;margin-bottom:6px}.table-empty p{font-size:10px;margin:0;line-height:1.8}.bottom-strip{margin-top:23px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a0ac96;font-size:9px}.bottom-strip span{display:flex;align-items:center;gap:6px}.bottom-strip svg{width:11px;height:11px}.filter-tabs{display:flex;gap:6px;flex-wrap:wrap}.filter-tabs button{padding:8px 12px;border-radius:7px;color:#8d9b84;border:1px solid var(--line);font-size:10px;background:#fff}.filter-tabs button.active{background:#eaf3df;color:#5e8051;border-color:#d4e3c6}.settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px}.panel h2{font-size:15px;margin-bottom:7px}.panel p{font-size:11px;color:#8b9881;line-height:1.8}.setting-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #edf0e8;font-size:11px}.setting-row:last-child{border:0}.setting-row span:first-child{color:#8a9880}.setting-row strong{font-weight:600}.big-connection{display:flex;align-items:center;gap:13px;background:#f7faf2;padding:18px;border-radius:12px;margin:20px 0}.tg-avatar{width:43px;height:43px;background:#e5f0f4;color:#7fa6bc;border-radius:12px;display:grid;place-items:center}.connection-copy strong{display:block;font-size:12px}.connection-copy span{display:block;color:#91a183;font-size:10px;margin-top:5px}.steps-list{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:20px}.steps-list li{display:flex;gap:13px}.step-number{width:26px;height:26px;flex-shrink:0;display:grid;place-items:center;border:1px solid #dce7d1;border-radius:8px;color:#8da17b;font-size:11px}.steps-list strong{font-size:11px;display:block}.steps-list p{font-size:10px;margin:5px 0 0;color:#9aa48d;line-height:1.8}.search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:white;border-radius:8px;padding:9px 12px}.search input{border:0;outline:0;background:none;width:190px;font-size:10px;color:var(--ink)}.search svg{width:15px;height:15px;color:#9cae90}.modal-overlay{position:fixed;inset:0;background:#152a2390;backdrop-filter:blur(4px);z-index:10;display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:510px;max-width:100%;max-height:90vh;overflow:auto;border-radius:20px;background:#fff;padding:29px;box-shadow:0 30px 90px #10231c33}.modal.wide{width:660px}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.modal-header h2{font-size:20px}.modal-desc{font-size:11px;line-height:1.8;color:#8b9881;margin:0 0 22px}.modal-close{width:28px;height:28px;border-radius:7px;background:#f4f7ee;color:#8d9f80}.modal-close svg{width:15px;height:15px}.form-grid{display:grid;gap:16px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:7px;font-size:11px;font-weight:600;color:#65795b}.field input,.field select,.field textarea{border:1px solid #dfe7d7;border-radius:9px;width:100%;padding:12px;font-size:12px;color:#32492b;background:#fafcf7;outline:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9abb84;box-shadow:0 0 0 3px #e8f1df}.field input::placeholder{color:#abb5a0}.field small{font-size:9px;font-weight:400;color:#99a78b;line-height:1.8}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:23px;flex-wrap:wrap}.form-error{color:#b36455;background:#fcf0ec;border-radius:8px;padding:11px 13px;margin-top:15px;font-size:11px;line-height:1.7}.form-error:empty{display:none}.form-note{font-size:10px;line-height:1.9;background:#f2f6eb;color:#8a9c7b;border-radius:9px;padding:12px 15px;margin-top:16px}.code-block{font-family:ui-monospace,monospace;background:#f5f8ee;padding:12px;border-radius:8px;font-size:10px;word-break:break-all;white-space:pre-wrap;color:#7b9169}.login-image{width:100%;max-height:420px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#f4f7ed}.login-progress{font-size:11px;color:#819b6e;padding:13px 0;display:flex;gap:8px;align-items:center}.spinner{width:13px;height:13px;border:2px solid #d5e3ca;border-top-color:#86a56f;border-radius:50%;animation:spin 1s linear infinite}.error-detail{color:#b57869;font-size:10px;line-height:1.7;max-width:260px}.details{border:1px solid var(--line);padding:12px;border-radius:9px;margin-top:18px}.details summary{cursor:pointer;font-size:11px;color:#7c936d}.details .form-grid{margin-top:17px}.text-danger{color:var(--red)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#244c3c;color:white;padding:13px 20px;border-radius:11px;font-size:12px;z-index:20;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;box-shadow:0 6px 30px #234b3c20}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-brand{display:none}.empty-page{padding:55px 25px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:15px}.empty-page .empty-icon{margin:0 auto 15px}.empty-page h3{font-size:15px}.empty-page p{color:#98a38e;font-size:12px;line-height:1.9;margin-bottom:22px}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.main{padding-left:70px;padding-right:70px}.account-body{padding:26px}.account-footer{padding-left:26px;padding-right:26px}}
@media(max-width:1200px){.layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding:28px 18px}.main{padding:0 28px 30px}.account-body{padding:17px}.account-footer{padding:12px 17px}.route{gap:7px;padding:10px 8px}.source-note{font-size:8px}.stat{padding:18px}.setup-banner{padding:19px}.page-heading{gap:15px}h1{font-size:25px}th,td{padding-left:17px;padding-right:17px}}
@media(max-width:950px){.layout{grid-template-columns:78px minmax(0,1fr)}.sidebar{width:78px;padding:28px 12px}.brand{justify-content:center}.brand>div,.nav-label,.nav button>span,.sidebar-note,.profile>div:not(.profile-circle){display:none}.nav{margin-top:45px}.nav button{justify-content:center;padding:14px 0}.profile{justify-content:center}.main{padding:0 25px 30px}.accounts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-empty:last-child{display:none}.settings-grid{grid-template-columns:1fr}h1{font-size:25px}.breadcrumb{font-size:10px}}
@media(max-width:620px){.layout{display:block}.sidebar{position:fixed;inset:auto 0 0;width:100%;height:67px;padding:6px 10px;flex-direction:row;border-right:0;border-top:1px solid var(--line)}.brand,.sidebar-bottom{display:none}.nav{display:flex;margin:0;width:100%;justify-content:space-around;gap:5px}.nav button{flex:1;padding:8px 3px;flex-direction:column;gap:4px;font-size:9px}.nav button>span{display:block}.nav .nav-count{display:none}.main{padding:0 19px 95px;max-width:100%}.topbar{height:74px}.breadcrumb{display:none}.mobile-brand{display:flex;font-size:21px;align-items:center;gap:8px;font-weight:800;letter-spacing:-1px}.mobile-brand img{width:29px;height:29px}.top-actions{gap:10px}.connection-indicator{font-size:9px}.page-heading{margin-top:25px;align-items:flex-start;flex-direction:column;gap:15px}.page-heading .btn{width:100%}h1{font-size:26px;max-width:330px}.subtitle{font-size:11px}.setup-banner{flex-wrap:wrap;gap:11px;padding:17px}.banner-icon{width:35px;height:35px;border-radius:10px}.banner-copy{min-width:210px}.setup-banner>.btn{width:100%}.stats{gap:8px;margin-bottom:25px}.stat{padding:13px 11px;border-radius:11px}.stat-icon{display:none}.stat-label{font-size:8px;line-height:1.6}.stat-value{font-size:24px;margin-top:8px}.stat-value small{font-size:9px;margin-left:4px}.stat-foot{font-size:7px;line-height:1.6}.stat-foot svg{display:none}.accounts-grid{grid-template-columns:1fr}.account-empty:last-child{display:flex}.account-empty{min-height:175px}.account-top{gap:12px}.account-body{padding:20px}.account-footer{padding:13px 20px}.account-name{font-size:15px}.handle{font-size:11px}.route-destination{font-size:12px}.source-note{font-size:10px}.route{padding:13px}.account-name{margin-top:13px}.section-head{align-items:flex-start}.section-head h2{font-size:15px}.section-caption{font-size:10px}.activity-heading{padding:18px}.activity-heading p{font-size:9px}.bottom-strip{align-items:flex-start;flex-direction:column;gap:9px}.modal-overlay{padding:13px}.modal{padding:23px;max-height:92vh}.form-row{grid-template-columns:1fr}.form-actions .btn{flex:1}.panel{padding:22px}.filter-tabs{margin-bottom:9px}.search{width:100%}.search input{width:100%}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:620px){#toast{bottom:82px}.stat-label{font-size:9px}.stat-foot{font-size:8px}}
.route-list{display:grid;gap:7px;margin:18px 0 10px}.route-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;background:#f7f9f3;border:1px solid var(--line);border-radius:9px}.route-link{min-width:0;justify-content:flex-start;text-align:left;font-size:12px;flex:1}.route-link span{overflow-wrap:anywhere}.route-item .switch{flex-shrink:0}.route-add{margin-bottom:12px}.archive-shortcut{display:flex;flex-wrap:wrap;justify-content:flex-start;text-align:left;gap:7px;font-size:11px;margin-top:13px;overflow-wrap:anywhere}.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.archive-grid .section-head{margin:0 0 20px}.archive-destination{display:flex;gap:9px;align-items:center;font-weight:700;overflow-wrap:anywhere}.caption-preview{margin-top:20px;padding:18px;border:1px solid #dce7d3;background:#f4f8ef;color:#50664a;border-radius:12px;font-size:12px;line-height:1.9;overflow-wrap:anywhere}.archive-note{margin:24px 0}.archive-participants{display:block;font-size:11px;color:#6b7d61;max-width:250px;overflow-wrap:anywhere;margin-top:4px}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:20px;font-size:12px;color:var(--muted)}.archive-grid .panel{min-width:0}.archive-grid .panel p{overflow-wrap:anywhere}.account-number{white-space:nowrap}
@media(max-width:950px){.archive-grid{grid-template-columns:1fr}}
.proxy-version{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.proxy-checkbox{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.7}.proxy-checkbox input{width:16px;height:16px;accent-color:var(--green)}.telegram-network{margin:15px 0}.telegram-network .tiny{color:var(--muted);line-height:1.8;font-size:11px}.proxy-version .badge{white-space:normal}.setting-row strong{overflow-wrap:anywhere;text-align:right;min-width:0}
