:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#111b49;background:#f3f8ff;--blue:#0874f9;--blue-deep:#0065ed;--ink:#111b49;--muted:#7d8eae;--line:#e6eef8;--soft:#f5f9ff;--green:#08b962;--orange:#ff9f12;--red:#ff525e;--purple:#a541ff}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 86% -12%,#dceeff 0%,transparent 42%),#f3f8ff;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.app-shell{display:flex;min-height:100vh;padding:14px;gap:12px}.sidebar{display:flex;flex-direction:column;flex:none;width:226px;min-height:calc(100vh - 28px);padding:14px 11px 12px;background:rgba(255,255,255,.82);border:1px solid #e4edf9;border-radius:14px;box-shadow:0 12px 30px rgba(76,128,185,.07)}.brand{display:flex;align-items:center;gap:9px;margin:0 5px 28px;color:var(--ink);font-size:19px;letter-spacing:-.8px;font-weight:800;text-decoration:none}.brand-mark{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:8px;color:white;background:linear-gradient(135deg,#2493ff,#0062f0);box-shadow:0 5px 11px #1477ed34}.brand-mark svg{width:18px;height:18px;fill:white;stroke:white}.brand-mark.mini{width:25px;height:25px;border-radius:6px}.brand-mark.mini svg{width:15px;height:15px}.nav{display:flex;flex-direction:column;gap:3px}.nav-item,.nav-subitem{display:flex;align-items:center;gap:11px;min-height:39px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#536589;text-align:left;font-size:12px;font-weight:500;line-height:1.3}.nav-item svg{width:16px;height:16px;flex:none}.nav-item span{flex:1}.nav-item:hover,.nav-subitem:hover{background:#f2f7ff;color:var(--blue)}.nav-item.active,.nav-subitem.active{background:#e8f2ff;color:#0068ed;font-weight:700}.nav-parent.active:has(+ .nav-children .nav-subitem.active){background:transparent;color:#536589;font-weight:500}.nav-caret{width:12px!important;height:12px!important;transition:transform .2s}.nav-children{display:flex;flex-direction:column;gap:1px;padding-left:25px}.nav-subitem{min-height:28px;padding:5px 9px 5px 16px;font-size:11px;position:relative}.nav-subitem:before{content:"";position:absolute;left:2px;top:50%;width:4px;height:4px;border-radius:50%;background:#9fb0cd}.nav-subitem.active:before{background:var(--blue)}.sidebar-help{display:flex;align-items:center;gap:8px;margin-top:auto;padding:9px 7px;background:#fff;border:1px solid #e8effa;border-radius:9px;box-shadow:0 4px 13px rgba(45,104,173,.06)}.sidebar-help strong,.sidebar-help small{display:block}.sidebar-help strong{font-size:10px}.sidebar-help small{margin-top:2px;font-size:9px;color:var(--muted)}.workspace{min-width:0;flex:1;display:flex;flex-direction:column;background:rgba(255,255,255,.5);border:1px solid #e6eef9;border-radius:14px;overflow:hidden;box-shadow:0 12px 30px rgba(76,128,185,.06)}.topbar{height:62px;display:flex;align-items:center;gap:15px;padding:0 23px;border-bottom:1px solid #eaf0f8;background:rgba(255,255,255,.72)}.search-shell{display:flex;align-items:center;gap:8px;width:min(440px,45%);height:34px;padding:0 10px;border:1px solid #e1eaf6;border-radius:6px;background:#f8fbff;color:#7c8baa}.search-shell svg{width:15px;height:15px;flex:none}.search-shell input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:11px}.search-shell input::placeholder{color:#95a5bd}.header-spacer{flex:1}.icon-btn{position:relative;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:#526b99}.icon-btn:hover{background:#eef5ff}.notification-btn i{position:absolute;top:3px;right:4px;width:7px;height:7px;border-radius:50%;background:#f33b44;border:1px solid white}.profile{display:flex;align-items:center;gap:8px;color:var(--ink)}.profile-avatar,.avatar{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:linear-gradient(135deg,#e2d9d2,#d78a74);color:#633323;font-size:9px;font-weight:800}.profile-copy strong,.profile-copy small{display:block}.profile-copy strong{font-size:10px;white-space:nowrap}.profile-copy small{margin-top:1px;font-size:9px;color:#7180a0}.profile>svg{width:12px;height:12px;color:#53719e;margin-left:4px}.system-status{display:flex;align-items:center;gap:6px;color:#7c8bab;font-size:10px;white-space:nowrap}.system-status i{width:6px;height:6px;border-radius:50%;background:#e9ab2d}.system-status.ok i{background:#16c877}.system-status.bad i{background:#ed5361}.menu-toggle{display:none}
.page{width:100%;max-width:1600px;margin:0 auto;padding:20px 22px 28px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:15px}.page-title{margin:0;color:var(--ink);font-size:21px;font-weight:800;letter-spacing:-.5px;line-height:1.18}.page-subtitle{margin:4px 0 0;color:#8b9aba;font-size:11px;line-height:1.4}.page-tools,.toolbar,.filters,.tabs,.table-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.page-tools{justify-content:flex-end}.btn,.select,.field,.tab,.pill-tab,.icon-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid #e1eaf8;border-radius:6px;background:#fff;color:#57688e;font-size:11px;font-weight:600;white-space:nowrap}.btn{border-color:var(--blue);background:var(--blue);color:#fff;box-shadow:0 3px 7px #0874f922}.btn:hover{background:var(--blue-deep)}.btn.secondary{border-color:#d5e6fb;background:#fff;color:var(--blue);box-shadow:none}.btn.small{min-height:27px;font-size:10px}.btn svg,.select svg,.icon-action svg{width:14px;height:14px}.select{padding-right:7px;cursor:pointer}.field{justify-content:flex-start;outline:none;font-weight:400}.field:focus,.select:focus-visible,.btn:focus-visible,.nav-item:focus-visible,.nav-subitem:focus-visible{outline:2px solid #69b1ff;outline-offset:2px}.field::placeholder{color:#96a5bd}.search-field{min-width:235px;flex:1}.filters{margin-bottom:10px}.filters .field{flex:1;max-width:350px}.tabs{margin-bottom:10px;gap:6px}.tab,.pill-tab{min-height:28px;font-size:10px}.tab.active,.pill-tab.active{background:#e8f2ff;border-color:#dceaff;color:#0874f9}.tab em,.pill-tab em{display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:5px;background:#f1f6fd;color:#7191c3;font-style:normal;font-size:9px}.tab.active em{background:#d8eafe;color:#0874f9}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.kpi,.panel,.mini-panel{background:#fff;border:1px solid #e7eef9;border-radius:9px;box-shadow:0 3px 10px rgba(66,128,199,.035)}.kpi{display:flex;align-items:center;gap:10px;min-height:70px;padding:12px}.kpi-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:8px;background:#e9f3ff;color:var(--blue)}.kpi-icon.orange{background:#fff5e4;color:#f99c0d}.kpi-icon.green{background:#e7faef;color:#00af61}.kpi-icon.red{background:#fff0f1;color:#f44452}.kpi-icon svg{width:19px;height:19px}.kpi-info{min-width:0}.kpi-label{font-size:10px;color:#8492b0;white-space:nowrap}.kpi-main{display:flex;align-items:baseline;gap:8px;margin-top:2px}.kpi-value{font-size:20px;line-height:1;font-weight:800;letter-spacing:-.5px;white-space:nowrap}.kpi-trend{font-size:10px;font-weight:800;color:#09b569;white-space:nowrap}.kpi-trend.negative{color:#f44853}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.panel{padding:12px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:22px;margin-bottom:7px}.panel-title{font-size:12px;font-weight:800}.link{border:0;background:transparent;color:#0874f9;font-size:10px;font-weight:700;text-decoration:none;cursor:pointer}.list-row{display:flex;align-items:center;gap:8px;min-height:37px;padding:5px 2px;border-bottom:1px solid #eef3fa;font-size:10px}.list-row:last-child{border-bottom:0}.list-row .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-row .muted{font-size:9px;color:#93a1bc;white-space:nowrap}.app-icon,.event-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#097af8;color:white;flex:none}.app-icon svg{width:13px;height:13px;fill:white;stroke:white}.app-icon.green{background:#00bc74}.app-icon.red{background:#fa4957}.app-icon.orange{background:#ff9b28}.app-icon.gray{background:#70829f}.event-icon{background:#eaf4ff;color:#0674ef;border-radius:50%}.event-icon.green{background:#e5f9ee;color:#02af5d}.event-icon.orange{background:#fff4e1;color:#f29c0c}.event-icon.red{background:#fff0f1;color:#f14955}.event-icon svg{width:13px;height:13px}.status{display:inline-flex;align-items:center;gap:5px;min-height:19px;padding:2px 8px;border-radius:99px;background:#e4faef;color:#04a65b;font-size:9px;font-weight:700;white-space:nowrap}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.paused{background:#fff4df;color:#ed930c}.status.off{background:#ffe9eb;color:#f04b57}.status.done{background:#edf1f8;color:#7e91b1}.status.blue{background:#e8f2ff;color:#1479f5}
.data-shell{overflow:hidden;padding:0}.table-scroller{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;table-layout:fixed}.data-table th{height:34px;padding:0 10px;background:#f8fbff;color:#697c9f;text-align:left;font-size:10px;font-weight:700}.data-table td{height:39px;padding:5px 10px;border-bottom:1px solid #ecf2f9;color:#364a73;font-size:10px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table th.num,.data-table td.num{text-align:right}.data-table .name-cell{display:flex;align-items:center;gap:7px;min-width:0}.name-cell strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.name-cell small{display:block;color:#8292ae;font-size:9px}.row-actions{width:25px;height:25px;border:0;background:transparent;color:#526c97}.row-actions svg{width:14px;height:14px}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;color:#93a0ba;font-size:10px}.pager{display:flex;gap:4px}.pager button{min-width:24px;height:24px;border:1px solid #e1eafa;border-radius:5px;background:#fff;color:#61779c}.pager button.active{background:var(--blue);border-color:var(--blue);color:white}
.board-scroll{overflow-x:auto}.kanban{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:6px;min-width:920px}.kanban-column{display:flex;flex-direction:column;min-width:0;background:#f8fbff;border:1px solid #ebf1f9;border-radius:7px}.kanban-title{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:7px 7px 5px;font-size:10px;font-weight:800}.kanban-title:before{content:"";display:inline-block;width:3px;height:18px;border-radius:2px;background:var(--stage-color,var(--blue))}.kanban-title span{flex:1}.kanban-title b{font-size:10px;color:var(--stage-color,var(--blue))}.kanban-stack{flex:1;padding:3px 5px;min-height:315px}.kanban-card{margin-bottom:5px;padding:7px;background:#fff;border:1px solid #e8eef7;border-radius:6px;box-shadow:0 2px 6px #4680bd0b}.kanban-person{display:flex;align-items:center;gap:5px;min-width:0}.kanban-person .avatar{width:21px;height:21px;font-size:8px}.kanban-person strong{font-size:9px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kanban-card small{display:block;margin-left:26px;font-size:8px;color:#8392af}.tag{display:inline-flex;align-items:center;margin:4px 0 0 26px;padding:2px 5px;border-radius:4px;background:#eef5ff;color:#1779f2;font-size:8px;white-space:nowrap}.tag.purple{background:#f5eaff;color:#9b38e8}.tag.green{background:#e8faef;color:#05ad5b}.tag.red{background:#ffedf0;color:#ee505c}.kanban-add{width:100%;padding:7px 2px;border:0;border-top:1px solid #e9f1fa;background:transparent;color:#197bf3;text-align:left;font-size:9px;font-weight:700}
.account-group{margin-top:12px}.account-label{margin-bottom:7px;color:#6c7d9f;font-size:11px;font-weight:700}.account-list{overflow:hidden}.account-row{display:flex;align-items:center;gap:9px;min-height:41px;padding:5px 10px;border-bottom:1px solid #eef3fa}.account-row:last-child{border-bottom:0}.account-name{flex:1;min-width:0}.account-name strong,.account-name small{display:block}.account-name strong{font-size:10px}.account-name small{margin-top:2px;color:#8594b0;font-size:9px}.account-type,.account-seen{width:95px;color:#8392ac;font-size:9px}.toggle{position:relative;display:inline-block;width:27px;height:15px}.toggle input{position:absolute;opacity:0}.toggle i{display:block;width:100%;height:100%;border-radius:20px;background:#c8d5e8;transition:background .2s}.toggle i:after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:white;box-shadow:0 1px 3px #52678633;transition:transform .2s}.toggle input:checked+i{background:#0874f9}.toggle input:checked+i:after{transform:translateX(12px)}.toggle input:focus-visible+i{outline:2px solid #67aafd;outline-offset:2px}
.analytics-grid{display:grid;grid-template-columns:1.4fr .95fr;gap:10px}.analytics-bottom{margin-top:10px;grid-template-columns:1fr 1fr}.chart-container{height:210px;padding-top:8px}.chart-container svg{width:100%;height:100%;overflow:visible}.chart-grid-line{stroke:#e8eff9;stroke-width:1}.chart-line{fill:none;stroke:#0874f9;stroke-width:3}.chart-fill{fill:url(#chartGradient)}.chart-point{fill:#0874f9;stroke:white;stroke-width:1.5}.chart-legend{display:flex;gap:13px;color:#8796b1;font-size:9px}.chart-legend span:before{content:"";display:inline-block;width:6px;height:6px;margin-right:4px;border-radius:50%;background:#0874f9}.chart-legend span:last-child:before{background:#b8d9ff}.donut-layout{display:flex;align-items:center;gap:16px;min-height:198px}.donut{display:grid;place-items:center;flex:none;width:145px;height:145px;border-radius:50%;background:conic-gradient(#0874f9 0 42%,#25c59a 42% 62%,#ffc04e 62% 77%,#ff6790 77% 87%,#a7b7d1 87% 100%)}.donut-hole{display:flex;align-items:center;justify-content:center;flex-direction:column;width:90px;height:90px;border-radius:50%;background:#fff}.donut-hole strong{font-size:18px}.donut-hole small{font-size:9px;color:#8899b5}.donut-legend{display:flex;flex-direction:column;gap:9px;min-width:0;flex:1}.donut-item{display:flex;align-items:center;gap:5px;color:#788aa9;font-size:9px}.donut-item i{width:7px;height:7px;border-radius:50%;flex:none}.donut-item span{flex:1}.donut-item b{color:#344b78}.bar-row{display:flex;align-items:center;gap:7px;min-height:29px;font-size:10px}.bar-row .label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{width:100px;height:5px;border-radius:8px;background:#e9f1fc}.bar-track i{display:block;height:100%;border-radius:8px;background:#0874f9}.bar-row b{width:32px;text-align:right}.account-activity .avatar{width:21px;height:21px}.account-activity .trend{color:#08b25f;font-size:9px;font-weight:700}.account-activity .trend.red{color:#e94752}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-line{display:grid;gap:5px;margin:11px 0;color:#677c9e;font-size:10px;font-weight:700}.form-line input,.form-line select,.form-line textarea{width:100%;min-height:34px;padding:8px;border:1px solid #e1eaf7;border-radius:6px;background:#fff;color:#243b67;font-size:11px}.form-line textarea{min-height:72px;resize:vertical}.empty-state{display:grid;place-items:center;gap:8px;min-height:170px;padding:25px;text-align:center;color:#8b9dbc;font-size:11px}.empty-state svg{width:27px;height:27px;color:#88b5f0}.empty-state strong{font-size:12px;color:#405880}.note{display:flex;align-items:center;gap:7px;margin:8px 0 13px;color:#7790b3;font-size:10px}.notice{margin-bottom:12px;padding:9px 11px;border:1px solid #dceaff;border-radius:7px;background:#f5faff;color:#3d6b9e;font-size:10px}.modal-backdrop{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#182d55a0;padding:15px}.modal{width:min(480px,100%);max-height:90vh;overflow:auto;padding:20px;border:1px solid #e4edf7;border-radius:13px;background:#fff;box-shadow:0 30px 80px #132a5480}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.modal h2{margin:0;font-size:17px}.modal p{color:#7a8baa;font-size:11px}.modal-footer{display:flex;justify-content:flex-end;gap:7px;margin-top:18px}.toast{position:fixed;z-index:40;right:21px;bottom:20px;padding:11px 15px;border-radius:8px;background:#15264c;color:#fff;font-size:11px;box-shadow:0 12px 30px #15316955;opacity:0;transform:translateY(14px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}
@media(max-width:1100px){.sidebar{width:190px}.page{padding:18px}.analytics-grid{grid-template-columns:1fr}.account-type{width:70px}.account-seen{display:none}}@media(max-width:800px){.app-shell{padding:0;gap:0}.sidebar{position:fixed;z-index:20;top:0;bottom:0;left:0;width:235px;min-height:100vh;border-radius:0;transform:translateX(-100%);transition:transform .2s;box-shadow:15px 0 40px #123b6644}.sidebar.open{transform:none}.workspace{min-height:100vh;border:0;border-radius:0}.menu-toggle{display:grid}.profile-copy,.profile>svg,.system-status{display:none}.search-shell{width:auto;flex:1}.topbar{padding:0 12px;gap:8px}.page{padding:15px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col,.settings-grid{grid-template-columns:1fr}.page-head{align-items:center}.page-title{font-size:18px}}@media(max-width:510px){.kpis{gap:6px}.kpi{padding:8px;min-height:60px}.kpi-icon{width:28px;height:28px}.kpi-value{font-size:17px}.kpi-label{font-size:9px}.kpi-trend{font-size:9px}.search-shell input{font-size:10px}.profile-avatar{display:none}.kanban{min-width:840px}.data-table{min-width:690px}.analytics-grid{grid-template-columns:1fr}.donut-layout{gap:8px}.donut{width:105px;height:105px}.donut-hole{width:65px;height:65px}.donut-hole strong{font-size:15px}}
.campaign-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin:12px 0; }
.campaign-tools > div { display:flex; flex-wrap:wrap; gap:6px; }
.campaign-tools .btn { padding:7px 10px; font-size:12px; }
.campaign-version { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid #e6edf8; font-size:12px; }
.campaign-workspace-controls,.campaign-schedule > div { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:9px 0; }
.campaign-workspace-controls input { flex:1 1 180px; }
.campaign-workspace-controls select,.campaign-schedule select { max-width:180px; }
.campaign-group .campaign-exclude { display:inline-flex; flex-direction:row; align-items:center; gap:4px; margin-left:auto; font-size:11px; color:#64748b; white-space:nowrap; }
.campaign-group > label { display:flex; align-items:center; gap:8px; flex:1; cursor:pointer; }
.campaign-labels-editor { margin:7px 0; padding:8px 10px; border:1px solid #e6edf8; border-radius:10px; }
.campaign-labels-editor summary { cursor:pointer; color:#2458a5; font-size:12px; font-weight:600; }
.campaign-labels-editor input { flex:1 1 100px; min-width:100px; }
.campaign-schedule { padding:10px 0; border-top:1px solid #e6edf8; }
.campaign-launch-tools { display:flex; gap:8px; margin:12px 0; }
.campaign-launch-confirm { margin-top:12px; padding:12px; background:#f4f8ff; border-radius:12px; }
.campaign-launch-confirm .telegram-bubble { margin:10px 0; }
