.svg-symbols{position:absolute;width:0;height:0;overflow:hidden}.ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;flex:none}.svg-symbols symbol{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
[hidden]{display:none!important}body{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);margin:0;font-size:14px}.auth-page{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:24px}.auth-wrap{width:410px;max-width:100%}.auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;font-size:25px;font-weight:600;letter-spacing:-.7px;margin-bottom:28px}.brand-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:var(--blue);color:white;flex:none}.auth-brand .brand-icon{width:38px;height:38px}.auth-card{display:block;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:30px 32px;box-shadow:0 3px 17px #17202f05}.auth-badge{height:52px;width:52px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;margin-bottom:20px}.auth-badge svg{width:28px;height:28px}.auth-card h1{margin:0;font-size:24px;letter-spacing:-.6px;font-weight:600}.auth-sub{font-size:12px;line-height:20px;color:var(--muted);margin:10px 0 26px}.auth-card .field{margin-bottom:19px}.auth-foot{text-align:center;border-top:1px solid var(--border);padding-top:16px;margin:24px 0 0;font-size:11px;color:var(--muted)}.login-error{margin-bottom:18px}.wide{width:100%;justify-content:center}
#app.app-shell{display:flex;min-height:100dvh}.sidebar{width:224px;position:fixed;left:0;top:0;bottom:0;z-index:40;background:var(--sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column}.sidebar .brand{height:73px;display:flex;align-items:center;gap:11px;padding:0 22px;color:var(--text);font-size:23px;font-weight:600;letter-spacing:-.9px;text-decoration:none}.sidebar .brand span:last-child{white-space:nowrap}.nav-section-label{font-size:10px;letter-spacing:.8px;color:#8c99a9;margin:27px 24px 10px}.nav-items{display:flex;flex-direction:column;gap:3px;padding:0 12px}.nav-item{appearance:none;border:none;display:flex;align-items:center;gap:12px;background:transparent;color:var(--secondary);border-radius:7px;min-height:43px;padding:10px 12px;font-size:14px;text-align:left;cursor:pointer;width:100%;font-family:inherit}.nav-item .ico{width:19px;height:19px}.nav-item:hover{background:var(--hover)}.nav-item.active{color:#0769d7;background:#e2eeff;font-weight:500}.sidebar-bottom{margin-top:auto;padding:0 12px 25px}.sidebar-bottom .nav-section-label{margin-left:12px}.workspace{margin-left:224px;min-width:0;flex:1}.topbar{height:66px;background:white;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px;padding:0 28px}.topbar-crumb{font-size:12px;color:var(--muted)}.topbar-crumb span{color:#b9c3d0;padding:0 8px}.topbar-crumb strong{color:var(--secondary);font-weight:500}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:12px;color:var(--secondary)}.online-dot{width:7px;height:7px;border-radius:50%;background:var(--green)}.top-profile{display:inline-flex;min-height:32px;align-items:center;background:var(--hover);border:1px solid var(--border);padding:0 10px;border-radius:6px;margin-left:13px;color:var(--text)}.page-container{padding:28px;max-width:1900px;margin:0 auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:25px}.page-heading h1{margin:0;font-size:27px;line-height:1.25;font-weight:600;letter-spacing:-.6px}.page-heading p{margin:9px 0 0;color:var(--secondary);font-size:13px}.page-actions,.panel-controls,.button-group{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;border-radius:6px;font-size:12px;font-weight:500;min-height:35px;padding:8px 14px;font-family:inherit;text-decoration:none}.button .ico{width:16px;height:16px}.button.primary{background:var(--blue);color:white;border:1px solid var(--blue)}.button.primary:hover{background:#006be6}.button.secondary{background:white;border:1px solid var(--border);color:var(--secondary)}.button.secondary:hover{background:var(--hover);border-color:#cdd5df}.button.danger{background:#fff1f1;border:1px solid #f9dcdf;color:var(--red)}.button:disabled{opacity:.5;cursor:not-allowed}.button:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.icon-button{width:35px;height:35px;border:1px solid var(--border);background:white;border-radius:6px;color:var(--secondary);display:grid;place-items:center;cursor:pointer}.link-button{border:0;background:none;color:var(--blue);padding:0;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:5px}.link-button .ico{width:15px;height:15px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow);min-width:0;margin-bottom:22px}.panel-heading{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border)}.panel-heading h2{font-size:16px;font-weight:600;margin:0;letter-spacing:-.2px}.panel-body{padding:20px 21px}.muted-xs,.hint{font-size:11px;color:var(--muted)}.hint{line-height:18px}.count{font-size:12px;color:var(--muted);background:var(--hover);border-radius:5px;padding:3px 7px;margin-left:3px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat-card{border:1px solid var(--border);border-radius:9px;background:white;padding:19px 19px 15px;box-shadow:var(--shadow)}.stat-label{font-size:12px;color:var(--secondary);display:flex;justify-content:space-between;align-items:center;gap:9px}.stat-label .ico{width:17px;height:17px;color:#9ca8b8}.stat-number{font-size:29px;font-weight:600;letter-spacing:-.9px;line-height:34px;margin:13px 0 7px}.stat-bottom{color:var(--muted);font-size:11px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:22px}.dashboard-primary,.dashboard-side{min-width:0}.chart-legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--secondary);font-size:11px;margin-bottom:20px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px}.blue{background:#0077ff}.green{background:#26a566}.orange{background:#e8a15b}.chart{width:100%;min-height:254px;overflow:hidden}.chart svg{display:block;width:100%;height:255px}.chart-label{font:11px Arial,sans-serif;fill:#8c99a9}.chart-grid{stroke:var(--border);stroke-width:1}.chart-path{stroke:#0077ff;stroke-width:2.3;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:#e9f2ff;opacity:.55}.chart-green{stroke:#26a566;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart-orange{stroke:#e8a15b;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.quick-overview .overview-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px;color:var(--secondary)}.quick-overview .overview-row:first-child{padding-top:0}.quick-overview .overview-row:last-child{border:none;padding-bottom:0}.quick-overview strong{color:var(--text);font-size:13px}.subtle-info{font-size:12px;line-height:19px;color:var(--muted)}.event-feed{min-height:70px}.event-row{display:flex;gap:12px;padding:13px 21px;border-bottom:1px solid var(--border);align-items:center}.event-row:last-child{border:0}.event-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:8px;background:var(--blue-soft);color:#4084d4}.event-icon .ico{width:16px;height:16px}.event-main{min-width:0;flex:1}.event-main strong{font-size:12px;font-weight:600;display:block;line-height:18px}.event-main small{font-size:11px;color:var(--muted);display:block;margin-top:2px}.event-date{font-size:11px;color:var(--muted);white-space:nowrap}.mini-campaign{border-bottom:1px solid var(--border);padding:13px 21px;display:flex;align-items:center;justify-content:space-between;gap:8px}.mini-campaign:last-child{border:0}.mini-campaign strong{display:block;font-size:12px}.mini-campaign small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.status{font-size:11px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:5px 8px}.status i{width:5px;height:5px;border-radius:50%;background:currentColor}.status.running{background:#edf8f1;color:#29925c}.status.error{background:#fff0f1;color:#d45660}.status.restarting{background:#fff8e9;color:#bc8a31}.status.unknown{background:#f3f5f7;color:#788494}.table-wrap{overflow:auto;width:100%}.data-table{width:100%;border-collapse:collapse;min-width:690px}.data-table thead{background:#fafbfd}.data-table th{text-align:left;font-size:10px;font-weight:400;color:#8a96a7;padding:12px 16px;white-space:nowrap}.data-table td{padding:13px 16px;border-top:1px solid var(--border);font-size:12px;vertical-align:middle}.data-table tbody tr:hover{background:var(--hover)}.data-table .user-name{font-weight:600;color:var(--text);display:block}.data-table .user-handle{display:block;color:var(--muted);margin-top:5px}.table-search{padding:16px 21px;border-bottom:1px solid var(--border)}.search-input{display:flex;align-items:center;gap:9px;color:var(--muted);border:1px solid var(--border);background:white;border-radius:6px;padding:0 12px;max-width:340px}.search-input .ico{width:16px;height:16px}.search-input input{border:0;background:transparent;box-shadow:none!important;height:37px;min-width:0;flex:1;font-size:12px;outline:none!important}.table-footer{padding:13px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);border-top:1px solid var(--border)}.table-footer .button{min-height:30px;padding:5px 10px}.empty-placeholder{padding:30px;text-align:center;color:var(--muted);font-size:12px}.panel select{background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:6px;min-height:34px;padding:6px 11px;font-size:12px}.detail-panel{margin-top:22px}.detail-panel .panel-body{border-bottom:1px solid var(--border)}.detail-panel .panel-body:last-child{border:0}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.detail-stat{background:var(--hover);border-radius:6px;padding:12px}.detail-stat strong{display:block;font-size:20px}.detail-stat span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.compose-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,340px);gap:22px;align-items:start}.compose-form .field{display:flex;flex-direction:column;margin-bottom:19px;gap:8px}.compose-form .field>span{font-size:12px;color:var(--secondary)}.compose-form textarea,.compose-form input{border:1px solid var(--border);border-radius:6px;background:white;color:var(--text);min-height:37px;padding:9px 11px;font-family:Arial,sans-serif;font-size:12px;line-height:19px;width:100%;box-sizing:border-box}.compose-form textarea{min-height:178px;resize:vertical;border-top-left-radius:0;border-top-right-radius:0}.compose-form small{font-size:11px;color:var(--muted);line-height:17px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:0;background:#fafbfd;border:1px solid var(--border);border-bottom:0;border-radius:6px 6px 0 0}.editor-toolbar button{border:0;border-right:1px solid var(--border);background:none;min-width:36px;padding:9px;cursor:pointer;color:var(--secondary);font-size:12px}.editor-toolbar button:hover{color:var(--blue);background:var(--blue-soft)}.split-fields{display:flex;align-items:end;gap:12px}.split-fields .field:first-child{flex:1}.split-fields .field:last-child{flex:none}.notice-compact{font-size:11px;line-height:18px;padding:10px 12px;margin-bottom:19px}.upload-field{display:flex;align-items:center;gap:10px;padding:13px;border:1px dashed #becddd;border-radius:6px;cursor:pointer;color:var(--secondary);font-size:12px;position:relative}.upload-field input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-field .ico{color:var(--blue)}.section-subheading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:20px 0 5px}.section-subheading h3{font-size:13px;margin:0;font-weight:600}.compose-form .hint{margin:0 0 11px}.button-entry{display:grid;grid-template-columns:1fr 1.5fr 70px 32px;gap:7px;margin-bottom:8px}.button-entry input,.button-entry select{min-width:0!important}.button-entry button{border:1px solid var(--border);background:white;border-radius:6px;cursor:pointer;color:var(--red)}.form-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:20px;margin-top:20px}.telegram-message{background:#f5f8fc;border-radius:9px;border:1px solid #e3eaf4;padding:14px;overflow:hidden}.telegram-message-title{font-size:13px;font-weight:600;color:#2a76cf;margin-bottom:9px}.telegram-message-title span{font-size:9px;background:#d9eafe;border-radius:3px;margin-left:4px;padding:2px 4px}.preview-message{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:20px}.preview-button{display:block;text-align:center;font-size:12px;color:#2a77ce;border-top:1px solid #d9e8fa;padding:10px;margin-top:6px}.preview-file{padding:12px;background:white;border:1px solid var(--border);font-size:11px;border-radius:5px;margin-bottom:8px;overflow-wrap:anywhere}.modal{border:1px solid var(--border);padding:0;background:white;border-radius:12px;max-width:min(500px,calc(100vw - 28px));width:500px;box-shadow:0 15px 60px #15233838}.modal::backdrop{background:#15233866}.modal-head{padding:22px 24px;border-bottom:1px solid var(--border)}.modal-head h2{font-size:17px;margin:0}.modal-body{padding:22px 24px;font-size:13px;line-height:21px}.modal-foot{padding:16px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:9px}.sidebar-shade{display:none}.mobile-menu{display:none}.notice{margin:0 0 18px;border:1px solid #dbe8f8;background:#f4f8fe;color:#6682a4;padding:12px 13px;border-radius:7px;font-size:12px;line-height:19px}.notice.error{background:#fff6f6;border-color:#f4dfe0;color:#c86870}.notice.success{background:#edf8f1;border-color:#c6ead5;color:#29925c}
@media(max-width:1280px){.sidebar{width:205px}.workspace{margin-left:205px}}
@media(max-width:1100px){.dashboard-grid,.compose-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-side .panel{margin:0}.dashboard-side .panel:last-child{grid-column:1/-1}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .15s;width:250px}.sidebar.open{transform:translateX(0)}.sidebar-shade.show{display:block;position:fixed;inset:0;background:#17202f66;z-index:30}.workspace{margin-left:0}.topbar{height:60px;padding:0 17px}.mobile-menu{display:grid}.page-container{padding:22px 18px}.topbar-right .top-profile{display:none}}
@media(max-width:500px){.page-container{padding:21px 13px}.page-heading h1{font-size:24px}.page-heading{align-items:flex-start}.page-actions .button.secondary{display:none}.page-actions .button.primary{padding:8px}.stat-grid{gap:12px}.stat-card{padding:14px}.stat-number{font-size:26px}.dashboard-side{display:block}.dashboard-side .panel{margin-bottom:16px}.chart-legend{gap:7px}.button-entry{grid-template-columns:1fr 1fr}.button-entry .remove-button{grid-column:2;justify-self:end;width:32px;height:32px}.detail-grid{grid-template-columns:repeat(2,1fr)}.topbar-right #bot-handle{display:none}.auth-card{padding:25px}.panel-body{padding:17px}.panel-heading{padding:17px}.event-date{font-size:10px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

/* Auto-reply controls */
.ar-form{display:flex;flex-direction:column;gap:16px;max-width:840px}
.ar-check{display:flex;align-items:center;gap:10px;font-weight:600}
.ar-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ar-form textarea,.ar-form input[type=text],.ar-form input:not([type]),.ar-form select{max-width:100%;width:100%;padding:11px;border:1px solid #d5dde6;border-radius:8px;background:#fff;color:#1c2d45;font:inherit}
.ar-form textarea{resize:vertical;min-height:125px}
.ar-form .field{display:flex;flex-direction:column;gap:7px}
.ar-form button[type=submit]{align-self:flex-start}
@media(max-width:690px){.ar-fields{grid-template-columns:1fr}}

.ar-duration{display:flex;gap:8px}.ar-duration input[type=number]{max-width:100%;width:42%;min-width:0;padding:11px;border:1px solid #d5dde6;border-radius:8px;background:#fff;color:#1c2d45;font:inherit}.ar-duration select{flex:1;min-width:0}
