*{box-sizing:border-box}body{color:#e8eaed;background:#0f1117;margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}a{color:#8ab4ff;text-decoration:none}.layout{grid-template-columns:220px 1fr;min-height:100vh;display:grid}.sidebar{background:#171a21;border-right:1px solid #2a2f3a;flex-direction:column;padding:1rem;display:flex}.logo{margin:0 0 1rem;font-size:1.1rem;font-weight:600}.sidebar nav{flex-direction:column;flex:1;gap:.25rem;display:flex}.sidebar nav a{color:#9aa0a6;border-radius:6px;padding:.5rem .75rem}.sidebar nav a:hover{color:#e8eaed;background:#2a2f3a}.sidebar nav a.active{color:#0f1117;background:#e8eaed;font-weight:500}.btn-logout{color:#9aa0a6;background:0 0;border:1px solid #2a2f3a;margin-top:auto}.content{max-width:1400px;padding:1.5rem 2rem}.page-header{justify-content:space-between;align-items:center;margin-bottom:1.25rem;display:flex}.page-header h2{margin:0;font-size:1.5rem}.page-header-actions{align-items:center;gap:.5rem;display:flex}.card{background:#171a21;border:1px solid #2a2f3a;border-radius:8px;margin-bottom:1rem;padding:1rem 1.25rem}.card h3{margin:0 0 1rem;font-size:1rem;font-weight:500}.stat-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.stat-card{background:#171a21;border:1px solid #2a2f3a;border-radius:8px;padding:1rem 1.25rem}.stat-label{color:#9aa0a6;margin-bottom:.5rem;font-size:.85rem}.stat-value{font-size:2rem;font-weight:600}.stat-positive{color:#4ade80}.chart-card{min-height:320px}.growth-chart-card{min-height:360px}.growth-chart-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.75rem;display:flex}.growth-chart-header h3{margin:0 0 .25rem}.growth-chart-badges{flex-wrap:wrap;flex-shrink:0;gap:.5rem;display:flex}.growth-badge{border-radius:999px;padding:.3rem .65rem;font-size:.8rem;font-weight:500}.growth-badge-total{color:#8ab4ff;background:#8ab4ff26}.growth-badge-new{color:#4ade80;background:#4ade8026}.growth-tooltip{background:#171a21;border:1px solid #2a2f3a;border-radius:8px;padding:.6rem .75rem;font-size:.85rem}.growth-tooltip-time{color:#9aa0a6;margin-bottom:.35rem}.growth-tooltip-total{color:#e8eaed}.growth-tooltip-new{color:#4ade80;margin-top:.25rem;font-weight:500}.stat-card-pulse{animation:1.2s ease-out stat-pulse}@keyframes stat-pulse{0%{border-color:#4ade80;box-shadow:0 0 #4ade8080}70%{box-shadow:0 0 0 12px #4ade8000}to{box-shadow:none}}.toolbar{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.table-wrap{border:1px solid #2a2f3a;border-radius:8px;overflow:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #2a2f3a;padding:.65rem .75rem;font-size:.9rem}thead th{color:#9aa0a6;z-index:1;background:#171a21;font-weight:500;position:sticky;top:0}tbody tr:last-child td{border-bottom:none}.field{flex-direction:column;gap:.35rem;margin-bottom:.85rem;display:flex}.field span{color:#9aa0a6;font-size:.85rem}.hint{color:#6b7280;font-size:.8rem}input,select,textarea,button{font:inherit}input,select,textarea{color:#e8eaed;background:#0f1117;border:1px solid #2a2f3a;border-radius:6px;padding:.5rem .65rem}select option{color:#e8eaed;background:#171a21}button{color:#0f1117;cursor:pointer;background:#e8eaed;border:none;border-radius:6px;padding:.5rem .85rem;font-weight:500}button:disabled{opacity:.4;cursor:not-allowed}.btn-secondary{color:#e8eaed;background:0 0;border:1px solid #2a2f3a;border-radius:6px;padding:.5rem .85rem;text-decoration:none;display:inline-block}.search-input{min-width:200px}.form-col{max-width:640px}.checkbox-field{align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.sticky-toolbar{z-index:2;background:#171a21;border-bottom:1px solid #2a2f3a;flex-wrap:wrap;align-items:end;gap:.75rem;margin:1rem 0;padding:.75rem 0;display:flex;position:sticky;top:0}.pagination{color:#9aa0a6;justify-content:space-between;align-items:center;margin-top:1rem;font-size:.9rem;display:flex}.pagination-btns{gap:.5rem;display:flex}.pagination-btns button{color:#e8eaed;background:0 0;border:1px solid #2a2f3a}.badge{text-transform:capitalize;border-radius:4px;padding:.15rem .5rem;font-size:.75rem;font-weight:500;display:inline-block}.badge-ok{color:#4ade80;background:#14532d}.badge-warn{color:#fbbf24;background:#422006}.badge-err{color:#f87171;background:#450a0a}.badge-neutral{color:#9aa0a6;background:#2a2f3a}.link-btn{color:#8ab4ff;cursor:pointer;background:0 0;border:none;padding:0;font-weight:400}.link-btn.danger{color:#f87171}.row-actions{white-space:nowrap}.modal-backdrop{z-index:100;background:#000000a6;place-items:center;padding:1rem;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.modal{background:#171a21;border:1px solid #2a2f3a;border-radius:10px;width:100%;max-width:480px;max-height:90vh;overflow:auto}.modal-wide{max-width:720px}.modal-header{border-bottom:1px solid #2a2f3a;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.modal-header h3{margin:0}.modal-body{padding:1.25rem}.btn-icon{color:#9aa0a6;background:0 0;border:none;padding:0;font-size:1.5rem;line-height:1}.tiptap-block{margin-bottom:.5rem}.tiptap{background:#0f1117;border:1px solid #2a2f3a;border-radius:6px}.tiptap-toolbar{border-bottom:1px solid #2a2f3a;flex-wrap:wrap;gap:.25rem;padding:.35rem;display:flex}.tiptap-toolbar button{color:#e8eaed;background:#2a2f3a;min-width:2rem;padding:.25rem .5rem}.ProseMirror{outline:none;min-height:120px;padding:.65rem}.preview-panel{border:1px solid #2a2f3a;border-radius:6px;margin-top:.75rem;overflow:hidden}.preview-label{color:#9aa0a6;background:#2a2f3a;padding:.35rem .65rem;font-size:.8rem}.preview-panel pre{white-space:pre-wrap;word-break:break-word;margin:0;padding:.65rem;font-size:.85rem}.estimate{color:#9aa0a6;font-size:.9rem}.empty{color:#6b7280;text-align:center;padding:2rem}.meta{margin-bottom:1rem}.login{place-items:center;min-height:100vh;display:grid}.login form{background:#171a21;border:1px solid #2a2f3a;border-radius:10px;flex-direction:column;gap:.75rem;width:320px;padding:2rem;display:flex}.error{color:#f87171}tg-spoiler{background:#2a2f3a;border-radius:3px}.bulk-add-layout{grid-template-columns:1fr 300px;align-items:start;gap:1rem;margin-bottom:1rem;display:grid}.bulk-add-tokens h3,.bulk-add-defaults h3{margin:0 0 .35rem}.bulk-add-tokens .hint,.bulk-add-defaults .hint{margin:0 0 .75rem}.bulk-textarea{resize:vertical;width:100%;min-height:300px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85rem;line-height:1.55}.bulk-add-actions{align-items:center;gap:.75rem;margin-top:.75rem;display:flex}.bulk-count{color:#9aa0a6;font-size:.9rem}.bulk-add-defaults button{width:100%;margin-top:.25rem}.bulk-table-toolbar{border-bottom:1px solid #2a2f3a;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem;padding-bottom:.75rem;display:flex}@media (max-width:960px){.bulk-add-layout{grid-template-columns:1fr}}.btn-danger{color:#f87171;background:#450a0a;border:1px solid #7f1d1d}.btn-danger:hover:not(:disabled){color:#fecaca;background:#7f1d1d}.cluster-actions{flex-wrap:wrap;gap:.75rem;margin-top:.5rem;display:flex}.dashboard-hint{background:#171a21;border:1px solid #2a2f3a;border-radius:8px;margin:0 0 1rem;padding:.75rem 1rem}.webhook-progress-card{margin-bottom:1rem}.webhook-progress-header{flex-wrap:wrap;justify-content:space-between;gap:.75rem;margin-bottom:1rem;display:flex}.webhook-progress-header h3{margin:0 0 .25rem}.webhook-progress-meta{flex-direction:column;align-items:flex-end;gap:.35rem;display:flex}.live-badge{color:#4ade80;text-transform:uppercase;letter-spacing:.04em;align-items:center;gap:.4rem;font-size:.8rem;font-weight:600;display:inline-flex}.live-dot{background:#4ade80;border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite live-pulse}@keyframes live-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.85)}}.webhook-updated{font-size:.8rem}.webhook-progress-bar-wrap{background:#0f1115;border:1px solid #2a2f3a;border-radius:999px;height:10px;margin-bottom:.6rem;overflow:hidden}.webhook-progress-bar{background:linear-gradient(90deg,#6366f1,#8ab4ff);border-radius:999px;min-width:0;height:100%;transition:width .6s}.webhook-progress-stats{flex-wrap:wrap;justify-content:space-between;gap:.5rem;font-size:.95rem;display:flex}.webhook-pending{color:#fbbf24}.webhook-progress-rate{color:#9aa0a6;flex-wrap:wrap;gap:1rem;margin-top:.5rem;font-size:.85rem;display:flex}.webhook-recent{border-top:1px solid #2a2f3a;margin-top:1rem;padding-top:.85rem}.webhook-recent-title{color:#9aa0a6;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;font-size:.8rem}.webhook-recent-list{max-height:180px;margin:0;padding:0;list-style:none;overflow:auto}.webhook-recent-list li{border-bottom:1px solid #1f2430;justify-content:space-between;gap:1rem;padding:.3rem 0;font-size:.85rem;display:flex}.webhook-recent-list li:last-child{border-bottom:none}.webhook-recent-bot{color:#e8eaed;font-family:ui-monospace,monospace}.webhook-recent-time{color:#9aa0a6;white-space:nowrap}.metrics-preview{margin-bottom:1rem}.metrics-preview-header{justify-content:space-between;align-items:center;margin-bottom:.35rem;display:flex}.metrics-preview-header h3{margin:0}.metrics-badge{color:#9aa0a6;background:linear-gradient(135deg,#2a2f3a,#1e2430);border:1px solid #3d4455;border-radius:999px;padding:.2rem .55rem;font-size:.75rem;font-weight:500}.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem;margin-top:1rem;display:grid}.metric-tile{background:linear-gradient(145deg,#171a21 0%,#12151c 100%);border:1px solid #2a2f3a;border-radius:10px;align-items:flex-start;gap:.85rem;padding:1rem 1.1rem;display:flex;position:relative;overflow:hidden}.metric-tile-icon{flex-shrink:0;font-size:1.5rem;line-height:1}.metric-tile-label{color:#9aa0a6;margin-bottom:.25rem;font-size:.85rem}.metric-tile-value{color:var(--accent,#8ab4ff);font-size:1.75rem;font-weight:600;line-height:1.1}.metric-tile-hint{color:#6b7280;margin-top:.35rem;font-size:.75rem}.metric-tile-spark{background:radial-gradient(circle,color-mix(in srgb,var(--accent,#8ab4ff)25%,transparent)0%,transparent 70%);pointer-events:none;border-radius:50%;width:80px;height:80px;position:absolute;bottom:-20px;right:-20px}.validate-report{flex-direction:column;gap:.75rem;display:flex}.validate-stats{flex-wrap:wrap;gap:.75rem 1.25rem;font-size:.9rem;display:flex}.validate-stats .stat-ok{color:#81c995}.validate-stats .stat-err{color:#f28b82}.validate-stats .stat-warn{color:#fdd663}.validate-stats .stat-neutral{color:#9aa0a6}.progress-bar{background:#2a2f3a;border-radius:3px;height:6px;overflow:hidden}.progress-fill{background:#8ab4ff;border-radius:3px;height:100%;transition:width .3s}.touched-count{color:#9aa0a6;font-size:.85em}.touched-bots{color:#8ab4ff;font-size:.85em}.validate-log{color:#9aa0a6;white-space:pre-wrap;word-break:break-word;background:#0f1117;border:1px solid #2a2f3a;border-radius:6px;max-height:200px;margin:0;padding:.75rem;font-size:.75rem;line-height:1.4;overflow:auto}