*{box-sizing:border-box}body{background-color:#f8fafc;color:#2d3748}.app{display:flex;flex-direction:column;min-height:100vh}.app-main{flex:1 1}.app-loading{align-items:center;gap:16px;height:100vh;justify-content:center}.app-loading,.bot-card{display:flex;flex-direction:column}.bot-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 1px 3px #0000001a;box-sizing:border-box;height:100%;max-width:100%;min-height:400px;overflow:hidden;padding:20px;transition:all .2s ease;width:100%}.bot-card-process-not-found{background:#fef2f2;border-color:#fecaca}.bot-card-process-running{background:#f0fdf4;border-color:#bbf7d0}.bot-card-process-starting{background:#fefce8;border-color:#fde047}.bot-card-process-stopped{background:#fff;border-color:#e5e7eb}.bot-card-content{display:flex;flex:1 1;flex-direction:column}.bot-card-content,.bot-card-main-content{box-sizing:border-box;max-width:100%;min-width:0;overflow:hidden;width:100%}.bot-card-main-content{flex:1 1}.bot-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.bot-card-selected{border-color:#667eea;border-width:2px;box-shadow:0 0 0 3px #667eea1a}.bot-card-header{align-items:flex-start;border-bottom:1px solid #f3f4f6;display:flex;justify-content:space-between;margin-bottom:16px;padding-bottom:12px}.bot-info{display:flex;flex:1 1;flex-direction:column;gap:8px}.bot-name-section{gap:8px}.bot-checkbox-wrapper,.bot-name-section{align-items:center;display:flex}.bot-checkbox{accent-color:#667eea;cursor:pointer;flex-shrink:0;height:20px;width:20px}.bot-info h2,.bot-info h3{color:#111827;font-size:18px;font-weight:600;margin:0}.bot-message-usernames{display:flex;flex-direction:column;gap:4px;margin-top:4px}.message-usernames-row{align-items:center;display:flex;font-size:12px;gap:6px}.message-index{color:#6b7280;font-weight:500;min-width:20px}.bot-twitter{align-items:center;color:#6b7280;display:flex;font-size:14px;gap:4px;margin:0}.bot-status-group{align-items:flex-end;display:flex;flex-direction:column;gap:4px}.bot-status{border-radius:20px;font-size:12px;gap:6px;padding:6px 12px;text-transform:capitalize}.bot-status,.process-status{align-items:center;display:flex;font-weight:500}.process-status{border-radius:12px;font-size:10px;gap:4px;padding:4px 8px}.process-status-running{background-color:#dcfce7;color:#166534}.process-status-detected_stopped{background-color:#fef3c7;color:#92400e}.process-status-not_detected{background-color:#fee2e2;color:#dc2626}.kill-buttons-group{gap:4px;margin-top:2px}.kill-button-small{align-items:center;background-color:#fee2e2;border:1px solid #dc2626;border-radius:8px;color:#dc2626;cursor:pointer;display:flex;font-size:9px;font-weight:500;gap:4px;justify-content:center;padding:2px 6px;transition:all .2s ease}.kill-button-small:hover:not(:disabled){background-color:#dc2626;color:#fff}.kill-button-small:active:not(:disabled){transform:scale(.95)}.kill-button-small:disabled{cursor:not-allowed;opacity:.5}.kill-restart-button{background-color:#fef3c7;border-color:#f59e0b;color:#f59e0b}.kill-restart-button:hover:not(:disabled){background-color:#f59e0b;color:#fff}.kill-restart-button:disabled{cursor:not-allowed;opacity:.5}.bot-status.success{background-color:#dcfce7;color:#166534}.bot-status.warning{background-color:#fef3c7;color:#92400e}.bot-status.pending{background-color:#dbeafe;color:#1e40af}.bot-status.error{background-color:#fee2e2;color:#dc2626}.bot-status.inactive{background-color:#f3f4f6;color:#4b5563}.bot-details{align-items:flex-start;box-sizing:border-box;display:flex;gap:16px;margin-bottom:16px;max-width:100%;min-width:0;width:100%}.bot-details-left{flex:1 1;min-width:0}.detail-item{align-items:center;color:#6b7280;display:flex;font-size:14px;gap:8px;margin-bottom:8px}.detail-item:last-child{margin-bottom:0}.detail-item .usernames-list{display:flex;flex-wrap:wrap;gap:4px;margin-left:4px}.detail-item.schedule-disabled{color:#9ca3af;opacity:.6}.detail-item.schedule-disabled svg{color:#9ca3af}.detail-item.schedule-clickable.schedule-disabled{background-color:#f8fafc;border-color:#e2e8f0;opacity:.7}.detail-item.schedule-clickable.schedule-disabled:hover{background-color:#f1f5f9;border-color:#cbd5e0;opacity:.9}.schedule-status{color:#9ca3af;font-size:12px;font-style:italic}.schedule-countdown{color:#667eea;font-weight:600;margin-left:4px}.schedule-clickable{background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;display:inline-flex;margin:4px 0;max-width:100%;padding:8px 12px;transition:all .2s ease;width:auto}.schedule-clickable:hover{background-color:#f1f5f9;border-color:#cbd5e0;box-shadow:0 1px 3px #0000001a;opacity:1}.detail-item.schedule-clickable{align-items:center;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:inline-flex;flex-wrap:wrap;gap:8px;margin:4px 0;max-width:100%;padding:8px 12px;transition:all .2s ease;width:auto}.detail-item.schedule-clickable:hover{background-color:#f1f5f9;border-color:#cbd5e0;box-shadow:0 1px 3px #0000001a}.bot-schedule.schedule-clickable:hover{background-color:#e0f2fe;border-color:#7dd3fc}.schedule-editing{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.schedule-inputs{align-items:center;display:flex;gap:4px}.schedule-input-hour,.schedule-input-minute{border:1px solid #cbd5e0;border-radius:4px;font-size:14px;padding:4px 6px;text-align:center;width:50px}.schedule-input-hour::-webkit-inner-spin-button,.schedule-input-hour::-webkit-outer-spin-button,.schedule-input-minute::-webkit-inner-spin-button,.schedule-input-minute::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.schedule-input-hour[type=number],.schedule-input-minute[type=number]{-webkit-appearance:textfield;appearance:textfield}.schedule-input-hour:focus,.schedule-input-minute:focus{border-color:#667eea;box-shadow:0 0 0 2px #667eea1a;outline:none}.schedule-utc-label{color:#718096;font-size:12px;margin-left:4px}.schedule-cancel-btn,.schedule-delete-btn,.schedule-save-btn{align-items:center;background:#fff;border:1px solid #cbd5e0;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;font-size:12px;height:28px;justify-content:center;margin-left:4px;min-width:28px;padding:4px 8px;transition:all .2s ease}.schedule-save-btn{border-color:#667eea;color:#667eea}.schedule-save-btn:hover:not(:disabled){background-color:#667eea;color:#fff}.schedule-save-btn:disabled{cursor:not-allowed;opacity:.5}.schedule-cancel-btn{color:#718096}.schedule-cancel-btn:hover:not(:disabled){background-color:#f7fafc;border-color:#cbd5e0}.schedule-cancel-btn:disabled{cursor:not-allowed;opacity:.5}.schedule-delete-btn{color:#718096}.schedule-delete-btn:hover:not(:disabled){background-color:#f7fafc;border-color:#cbd5e0}.schedule-delete-btn:disabled{cursor:not-allowed;opacity:.5}.sent-counts-container{margin-bottom:16px;margin-top:8px}.desired-counts-row,.sent-counts-container{box-sizing:border-box;max-width:100%;min-width:0;overflow:hidden;width:100%}.desired-counts-row{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:4px}.desired-count-item{align-items:center;color:#9ca3af;display:flex;font-size:11px;gap:4px;white-space:nowrap}.desired-count-item.editable{border-radius:4px;cursor:pointer;padding:2px 4px;transition:all .2s ease}.desired-count-item.editable:hover{background-color:#f3f4f6;color:#374151}.desired-label{color:#6b7280;font-weight:500}.sent-counts-row{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;max-width:100%;min-width:0;overflow:hidden;width:100%}.sent-count-item{align-items:center;color:#6b7280;display:flex;font-size:13px;gap:6px;white-space:nowrap}.sent-count-item.editable{border-radius:4px;cursor:pointer;padding:2px 4px;transition:all .2s ease}.sent-count-item.editable:hover{background-color:#f3f4f6;color:#374151}.inline-edit-input{background-color:#fff;border:1px solid #667eea;border-radius:4px;box-shadow:0 0 0 2px #667eea1a;color:inherit;font-family:inherit;font-size:inherit;outline:none;padding:2px 4px;text-align:center;width:60px}.inline-edit-input:focus{border-color:#667eea;box-shadow:0 0 0 2px #667eea33}.inline-edit-input:disabled{cursor:not-allowed;opacity:.6}.inline-edit-input::-webkit-inner-spin-button,.inline-edit-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.inline-edit-input[type=number]{-webkit-appearance:textfield;appearance:textfield}.bot-activity{background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px;padding:12px}.activity-title{align-items:center;color:#475569;display:flex;font-size:14px;font-weight:600;gap:6px;margin:0 0 8px}.loading-message,.no-activity{color:#64748b;font-size:12px;font-style:italic}.activity-content{display:flex;flex-direction:column;gap:6px}.current-message,.current-usernames{align-items:flex-start;display:flex;font-size:12px;gap:6px}.current-usernames{margin-top:8px}.usernames-label{font-weight:500;min-width:50px}.usernames-list{display:flex;flex:1 1;flex-wrap:wrap;gap:4px}.username-tag{border-radius:4px;font-size:11px;font-weight:500;padding:2px 6px}.username-tag.primary{background-color:#dbeafe;color:#1e40af}.username-tag.secondary{background-color:#fef3c7;color:#92400e}.username-tag.tertiary{background-color:#fce7f3;color:#9f1239}.username-tag.username-color-0{background-color:#dbeafe;color:#1e40af}.username-tag.username-color-1{background-color:#fef3c7;color:#92400e}.username-tag.username-color-2{background-color:#fce7f3;color:#9f1239}.username-tag.username-color-3{background-color:#dcfce7;color:#166534}.username-tag.username-color-4{background-color:#f3e8ff;color:#7c3aed}.username-tag.username-color-5{background-color:#fef2f2;color:#dc2626}.username-tag.username-color-6{background-color:#e0e7ff;color:#3730a3}.username-tag.username-color-7{background-color:#ccfbf1;color:#134e4a}.username-tag.username-color-8{background-color:#cffafe;color:#164e63}.username-tag.username-color-9{background-color:#fed7aa;color:#9a3412}.username-tag.username-color-10{background-color:#fef3c7;color:#78350f}.username-tag.username-color-11{background-color:#ecfccb;color:#365314}.username-tag.username-color-12{background-color:#d1fae5;color:#065f46}.username-tag.username-color-13{background-color:#e0f2fe;color:#0c4a6e}.username-tag.username-color-14{background-color:#ede9fe;color:#5b21b6}.username-tag.username-color-15{background-color:#fae8ff;color:#86198f}.username-tag.username-color-16{background-color:#ffe4e6;color:#9f1239}.username-tag.username-color-17{background-color:#f1f5f9;color:#334155}.current-target{align-items:flex-start;display:flex;font-size:12px;gap:6px;margin-top:8px}.message-label,.target-label{color:#475569;font-weight:500;min-width:50px}.message-text,.target-text{color:#334155;flex:1 1;word-break:break-word}.bot-stats{align-self:flex-start;background-color:#fafafa;border:1px solid #e5e7eb;border-radius:8px;flex-shrink:0;min-width:160px;padding:8px}.stats-title{align-items:center;color:#374151;display:flex;font-size:12px;font-weight:600;gap:6px;margin:0 0 6px}.stats-grid{grid-gap:6px;display:grid;gap:6px;grid-template-columns:repeat(2,1fr)}.stat-item{background-color:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:6px;text-align:center}.stat-number{color:#111827;font-size:16px;font-weight:700;margin-bottom:2px}.stat-label{color:#6b7280;font-size:10px;font-weight:500}.bot-error{align-items:center;background-color:#fef2f2;border:1px solid #fecaca;border-radius:6px;display:flex;gap:6px;margin-bottom:16px;padding:8px 12px}.error-text{color:#dc2626;font-size:12px;word-break:break-word}.bot-schedule{align-items:center;background-color:#f0f9ff;border:1px solid #bae6fd;border-radius:6px;color:#0369a1;display:flex;font-size:12px;gap:6px;margin-bottom:16px;padding:8px 12px}.bot-logs-preview{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;height:120px;padding:12px;transition:all .2s ease}.bot-card-bottom-section,.bot-logs-preview{box-sizing:border-box;flex-shrink:0;max-width:100%;overflow:hidden;width:100%}.bot-card-bottom-section{display:flex;flex-direction:column;gap:16px;margin-top:auto;min-width:0}.bot-logs-preview:hover{background-color:#f7fafc;border-color:#cbd5e0}.logs-preview-header{align-items:center;color:#2d3748;display:flex;font-size:12px;font-weight:600;gap:6px;margin-bottom:8px}.logs-preview-title{flex:1 1}.logs-preview-status{animation:pulse 2s ease-in-out infinite;color:#48bb78;font-size:10px}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.logs-preview-content{box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;gap:4px;height:72px;max-width:100%;overflow:hidden;width:100%}.logs-preview-empty{color:#718096;font-size:11px;font-style:italic;padding:4px 0}.logs-preview-line{background-color:#00000008;border-radius:3px;box-sizing:border-box;color:#2d3748;font-family:Courier New,monospace;font-size:11px;max-width:100%;padding:2px 4px;transition:background-color .2s ease}.logs-preview-line,.logs-preview-line span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.logs-preview-line span{display:block}.logs-preview-line:hover{background-color:#0000000d}.bot-actions,.bot-actions-desktop{display:flex;flex-wrap:wrap;gap:8px}.bot-actions-mobile,.mobile-menu-toggle{display:none}.action-button,.kill-buttons-group{display:flex;gap:6px}.action-button{align-items:center;border:none;border-radius:6px;cursor:pointer;flex:1 1;font-size:12px;font-weight:500;justify-content:center;min-width:70px;padding:8px 12px;transition:all .2s ease}.action-button:disabled{cursor:not-allowed;opacity:.5}.action-button.secondary{background-color:#f3f4f6;color:#374151}.action-button.secondary:hover:not(:disabled){background-color:#e5e7eb}.action-button.success{background-color:#10b981;color:#fff}.action-button.success:hover:not(:disabled){background-color:#059669}.action-button.danger{background-color:#ef4444;color:#fff}.action-button.danger:hover:not(:disabled){background-color:#dc2626}.action-button.warning{background-color:#f59e0b;color:#fff}.action-button.warning:hover:not(:disabled){background-color:#d97706}@media (max-width:768px){.bot-card{min-height:auto;padding:16px}.bot-card-header{align-items:flex-start;flex-direction:column;gap:12px}.bot-status-group{align-items:flex-start;width:100%}.bot-details{align-items:flex-start;display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:6px}.bot-details-left{display:flex;flex:1 1;flex-direction:row;flex-wrap:wrap;gap:6px;min-width:0}.bot-stats{background-color:#fafafa;border:1px solid #e5e7eb;border-radius:6px;flex:0 0 auto;min-width:0;padding:4px 6px}.stats-title{font-size:9px;margin-bottom:2px;white-space:nowrap}.stats-title svg{height:10px;width:10px}.stats-grid{grid-gap:3px;display:grid;gap:3px;grid-template-columns:repeat(3,1fr)}.stat-item{padding:2px 4px;text-align:center}.stat-number{font-size:12px;line-height:1.2}.stat-label{font-size:8px;line-height:1}.sent-counts-container{margin-bottom:12px}.desired-counts-row,.sent-counts-row{grid-gap:3px!important;box-sizing:border-box;display:grid!important;flex-wrap:nowrap!important;gap:3px!important;grid-template-columns:repeat(6,1fr)!important;justify-content:stretch;max-width:100%;width:100%}.desired-counts-row{margin-bottom:6px}.desired-count-item,.sent-count-item{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:3px;box-sizing:border-box;display:flex!important;font-size:10px;justify-content:center;max-width:100%;min-height:28px;padding:3px 4px;white-space:normal;width:100%}.desired-count-item,.sent-count-item{align-items:center;flex-direction:column;gap:1px}.desired-label{color:#6b7280;font-size:8px;line-height:1;white-space:nowrap}.desired-count-item span:not(.desired-label),.sent-count-item span{color:#111827;font-size:11px;font-weight:600;line-height:1.1}.sent-count-item{flex-direction:column;gap:1px}.sent-count-item svg{flex-shrink:0;height:9px;width:9px}.bot-actions{flex-direction:column;gap:10px}.bot-actions-desktop{display:none}.mobile-menu-toggle{align-items:center;background-color:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;display:flex;font-size:14px;font-weight:500;justify-content:space-between;padding:12px 16px;transition:all .2s ease;width:100%}.mobile-menu-toggle:hover{background-color:#e5e7eb}.mobile-menu-toggle svg{flex-shrink:0}.bot-actions-mobile{display:none;flex-direction:column;gap:8px;margin-top:8px;max-height:0;opacity:0;overflow:hidden;transition:max-height .3s ease,opacity .2s ease}.bot-actions-mobile.open{display:flex;max-height:1000px;opacity:1}.bot-actions-mobile .action-button{flex:none;font-size:14px;min-height:44px;min-width:auto;padding:12px 16px;width:100%}.kill-buttons-group{display:none}.logs-preview-line{font-size:8px;line-height:1.3;padding:4px 6px}.logs-preview-line span{font-size:10px}.logs-preview-title{font-size:11px}.logs-preview-header{font-size:11px;padding:6px 8px}.bot-logs-preview{height:110px}.logs-preview-content{height:66px}.detail-item{font-size:11px;gap:4px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-item svg{flex-shrink:0;height:12px;width:12px}.schedule-clickable{max-width:100%;width:100%}.stats-grid{gap:8px;grid-template-columns:repeat(2,1fr)}.stat-item{padding:10px}.stat-number{font-size:20px}.stat-label{font-size:11px}.bot-activity{padding:12px}.activity-title{font-size:13px}.current-message,.current-usernames{flex-wrap:wrap;font-size:13px}.message-text{line-height:1.5;word-break:break-word}.bot-logs-preview{padding:10px}.logs-preview-header{font-size:13px}.usernames-list{flex-wrap:wrap;gap:6px}.username-tag{font-size:12px;padding:4px 8px}.kill-buttons-group{flex-direction:column;gap:6px;width:100%}.kill-button-small{font-size:11px;min-height:36px;padding:8px 12px;width:100%}}@media (max-width:480px){.bot-card{padding:12px}.bot-name{font-size:16px}.desired-counts-row,.sent-counts-row{gap:2px!important;grid-template-columns:repeat(6,1fr)!important}.desired-count-item,.sent-count-item{font-size:9px;min-height:26px;padding:2px 3px}.desired-count-item span:not(.desired-label),.sent-count-item span{font-size:10px}.desired-label{font-size:7px}.sent-count-item svg{height:8px;width:8px}.action-button{font-size:13px;min-height:44px;padding:12px 14px}.stats-grid{grid-template-columns:1fr}.stat-item{padding:12px}}.bot-config-modal{max-height:90vh;max-width:1800px!important;overflow-x:hidden;overflow-y:auto;width:90vw!important}.bot-config-modal .modal-body{box-sizing:border-box;padding:24px;width:100%}.config-section{border-bottom:1px solid #e2e8f0;box-sizing:border-box;margin-bottom:32px;padding-bottom:24px;width:100%}.config-section:last-child{border-bottom:none}.config-section h3{color:#1a202c;font-size:18px;font-weight:600;margin:0 0 16px}.form-row{grid-gap:16px;gap:16px;grid-template-columns:1fr 1fr;margin-bottom:16px}.form-group label{color:#4a5568}.form-group input[type=number],.form-group input[type=text]{border:1px solid #cbd5e0;border-radius:4px;font-size:14px;padding:10px 12px;transition:border-color .2s}.form-group input[type=number]:focus,.form-group input[type=text]:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.checkbox-group{align-items:center;flex-direction:row;gap:8px}.form-row .checkbox-group{grid-column:1/-1;justify-self:start}.checkbox-group label{align-items:center;cursor:pointer;display:flex;font-weight:400;gap:8px}.checkbox-group input[type=checkbox]{cursor:pointer;height:18px;width:18px}@media (max-width:768px){.form-row{grid-template-columns:1fr}.bot-config-modal{max-width:95vw;width:95vw}}.modal-overlay{align-items:center;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}.modal-content{background:#fff;border-radius:12px;box-shadow:0 20px 40px #0003;display:flex;flex-direction:column;max-height:90vh;max-width:500px;overflow:hidden;width:100%}.modal-header{border-bottom:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;margin-bottom:24px;padding:24px 24px 0}.modal-header,.modal-title{align-items:center;display:flex}.modal-title{gap:12px}.modal-title h2{color:#2d3748;font-size:20px;font-weight:600;margin:0}.modal-title svg{color:#667eea}.modal-close{background:none;border:none;border-radius:6px;color:#718096;cursor:pointer;padding:8px;transition:background-color .2s ease}.modal-close:hover{background-color:#f7fafc;color:#4a5568}#create-user-form{overflow:hidden}#create-user-form,.modal-body{display:flex;flex:1 1;flex-direction:column;min-height:0}.modal-body{gap:20px;overflow-y:auto;padding:0 24px 24px}.form-group{gap:8px}.form-group input,.form-group select,.form-group textarea{border:2px solid #e2e8f0;border-radius:8px;font-size:14px;padding:12px 16px;transition:border-color .2s ease}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.form-group input:disabled,.form-group select:disabled,.form-group textarea:disabled{background-color:#f7fafc;color:#a0aec0;cursor:not-allowed}.modal-actions{border-top:1px solid #e2e8f0;display:flex;flex-shrink:0;gap:12px;justify-content:flex-end;margin-top:0;padding:24px}.button{align-items:center;border:none;border-radius:6px;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;padding:10px 20px;transition:all .2s ease}.button:disabled{cursor:not-allowed;opacity:.6}.button.primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.button.primary:hover:not(:disabled){box-shadow:0 4px 12px #667eea4d;transform:translateY(-1px)}.button.secondary{background-color:#f7fafc;border:1px solid #e2e8f0;color:#4a5568}.button.secondary:hover:not(:disabled){background-color:#edf2f7;color:#2d3748}.button.danger{background-color:#e53e3e;color:#fff}.button.danger:hover:not(:disabled){background-color:#c53030;box-shadow:0 4px 12px #e53e3e4d;transform:translateY(-1px)}.logs-container{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;font-family:Courier New,monospace;font-size:12px;height:400px;line-height:1.4;overflow-y:auto;padding:16px}.logs-content{color:#2d3748;white-space:pre-wrap;word-break:break-all}.logs-controls{display:flex;gap:12px;margin-bottom:16px}.logs-controls button{font-size:12px;padding:8px 16px}.log-entry{margin-bottom:4px}.log-entry.error{color:#c53030}.log-entry.warning{color:#d97706}.log-entry.info{color:#2d3748}.log-entry.debug{color:#059669}.selection-count{color:#667eea;font-weight:600}.cookie-selection{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.cookie-option{align-items:center;background-color:#f7fafc;border:2px solid #e2e8f0;border-radius:6px;cursor:pointer;display:flex;gap:8px;padding:8px 12px;transition:all .2s;-webkit-user-select:none;user-select:none}.cookie-option:hover:not(.disabled){background-color:#edf2f7;border-color:#667eea}.cookie-option.selected{background-color:#eef2ff;border-color:#667eea;color:#667eea;font-weight:500}.cookie-option.disabled{cursor:not-allowed;opacity:.5}.cookie-option input[type=checkbox]{cursor:pointer;margin:0}.cookie-option.disabled input[type=checkbox]{cursor:not-allowed}.no-cookies-hint{background-color:#f7fafc;border:1px dashed #cbd5e0;border-radius:6px;color:#a0aec0;font-style:italic;padding:12px}.form-hint{color:#718096;font-size:.875rem;margin-top:4px}.selected-cookies-ordered{background-color:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:20px;padding:16px}.selected-cookies-header{align-items:center;display:flex;font-size:14px;justify-content:space-between;margin-bottom:12px}.order-hint{color:#718096;font-size:12px;font-weight:400}.ordered-cookie-list{display:flex;flex-direction:column;gap:8px}.ordered-cookie-item{align-items:center;background-color:#fff;border:2px solid #e2e8f0;border-radius:6px;display:flex;gap:12px;padding:12px;transition:all .2s}.ordered-cookie-item.first-cookie{background-color:#eef2ff;border-color:#667eea}.ordered-cookie-item.first-cookie.matches-username{background-color:#d1fae5;border-color:#10b981}.ordered-cookie-item.first-cookie.warning{background-color:#fef3c7;border-color:#f59e0b}.cookie-order-number{align-items:center;border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:14px;font-weight:600;height:28px;justify-content:center;width:28px}.cookie-order-number,.ordered-cookie-item.first-cookie .cookie-order-number{background-color:#667eea}.ordered-cookie-item.first-cookie.matches-username .cookie-order-number{background-color:#10b981}.ordered-cookie-item.first-cookie.warning .cookie-order-number{background-color:#f59e0b}.cookie-username{color:#2d3748;flex:1 1;font-weight:500}.cookie-first-badge{border-radius:4px;font-size:12px;font-weight:500;padding:4px 8px}.ordered-cookie-item.first-cookie.matches-username .cookie-first-badge{background-color:#10b981;color:#fff}.ordered-cookie-item.first-cookie.warning .cookie-first-badge{background-color:#f59e0b;color:#fff}.cookie-order-controls{display:flex;flex-shrink:0;gap:4px}.order-button{align-items:center;background-color:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#4a5568;cursor:pointer;display:flex;height:28px;justify-content:center;padding:0;transition:all .2s;width:28px}.order-button:hover:not(:disabled){background-color:#f7fafc;border-color:#667eea;color:#667eea}.order-button:disabled{cursor:not-allowed;opacity:.4}.order-button.remove{color:#e53e3e}.order-button.remove:hover:not(:disabled){background-color:#fed7d7;border-color:#e53e3e;color:#c53030}.available-cookies-header{color:#2d3748;font-size:14px;margin-bottom:8px}.bot-selection-grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));margin-top:8px}.bot-checkbox-label{align-items:center;background-color:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;display:flex;min-width:0;overflow:hidden;padding:12px;transition:all .2s ease;-webkit-user-select:none;user-select:none}.bot-checkbox-label:hover{background-color:#edf2f7;border-color:#667eea}.bot-checkbox-label input[type=checkbox]:checked+.bot-checkbox-content,.bot-checkbox-label:has(input[type=checkbox]:checked){background-color:#eef2ff;border-color:#667eea}.bot-checkbox-content{align-items:center;display:flex;flex:1 1;gap:8px;min-width:0;overflow:hidden}.bot-checkbox-content svg{color:#667eea;flex-shrink:0}.bot-checkbox-content>span:first-of-type{flex:1 1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-username{color:#718096;flex-shrink:0;font-size:12px;margin-left:auto}.bot-checkbox-label input[type=checkbox]{cursor:pointer;margin-right:8px}.user-management-modal{max-width:900px}.user-management-content{grid-gap:24px;display:grid;gap:24px;grid-template-columns:1fr 1.5fr}.bot-access-section,.user-list-section{display:flex;flex-direction:column;gap:16px;min-height:0}.bot-access-section h3,.user-list-section h3{align-items:center;color:#2d3748;display:flex;font-size:16px;font-weight:600;gap:8px;margin:0}.user-list{display:flex;flex-direction:column;gap:8px;max-height:400px;overflow-y:auto}.user-item{align-items:center;background-color:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:12px;transition:all .2s ease}.user-item:hover{background-color:#edf2f7;border-color:#667eea}.user-item.selected{background-color:#eef2ff;border-color:#667eea}.user-item-icon{align-items:center;background-color:#e2e8f0;border-radius:50%;color:#667eea;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.user-item.selected .user-item-icon{background-color:#667eea;color:#fff}.user-item-info{flex:1 1;min-width:0}.user-item-name{color:#2d3748;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-item-role{color:#718096;font-size:12px;text-transform:capitalize}.admin-badge{background-color:#667eea;border-radius:4px;color:#fff;font-size:12px;font-weight:500;margin-left:8px;padding:4px 8px}.admin-message{align-items:center;background-color:#eef2ff;border:2px solid #667eea;border-radius:8px;color:#667eea;display:flex;gap:12px;padding:16px}.admin-message svg{flex-shrink:0}.admin-message p{font-size:14px;margin:0}.empty-state,.loading-state{color:#718096;font-size:14px;padding:24px;text-align:center}@media (max-width:768px){.user-management-content{grid-template-columns:1fr}}.bot-messages-modal{max-height:90vh;max-width:1400px;overflow-y:auto;width:95vw}.bot-messages-modal .modal-body{padding:24px}.messages-info{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:4px;margin-bottom:24px;padding:16px}.messages-info .info-text{color:#4a5568;font-size:14px;margin:0}.messages-list{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}.message-item{background-color:#fff;border:1px solid #e2e8f0;border-radius:4px;padding:16px}.message-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.message-header h3{align-items:center;color:#1a202c;display:flex;font-size:16px;font-weight:600;gap:12px;margin:0}.sent-counts-table-container{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:24px;padding:16px}.sent-counts-title{color:#1a202c;font-size:16px;font-weight:600;margin:0 0 12px}.sent-counts-table{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(6,1fr)}.sent-counts-table-cell{align-items:center;background-color:#fff;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:4px;padding:12px;transition:all .2s ease}.sent-counts-table-cell.editable:hover{background-color:#f8f9fa;border-color:#007bff}.sent-counts-table-cell.editing{border-color:#007bff;border-width:2px}.sent-count-number{color:#4a5568;font-size:12px;font-weight:600}.sent-count-value{color:#1a202c;font-size:18px;font-weight:700}.sent-count-edit-controls{align-items:center;display:flex;gap:4px}.sent-count-input{-moz-appearance:textfield;border:1px solid #e2e8f0;border-radius:4px;font-size:16px;font-weight:600;padding:4px 6px;text-align:center;width:60px}.sent-count-input::-webkit-inner-spin-button,.sent-count-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.sent-count-input:focus{border-color:#007bff;outline:none}.sent-count-cancel-btn,.sent-count-save-btn{align-items:center;border:none;border-radius:4px;cursor:pointer;display:flex;height:24px;justify-content:center;transition:background-color .2s;width:24px}.sent-count-save-btn{background-color:#10b981;color:#fff}.sent-count-save-btn:hover:not(:disabled){background-color:#059669}.sent-count-cancel-btn{background-color:#ef4444;color:#fff}.sent-count-cancel-btn:hover:not(:disabled){background-color:#dc2626}.sent-count-cancel-btn:disabled,.sent-count-save-btn:disabled{cursor:not-allowed;opacity:.5}.edit-hint{color:#6b7280;font-size:12px;font-weight:400;margin-left:8px}.saving-spinner{animation:spin 1s linear infinite;color:#007bff}.message-actions{align-items:center;display:flex;gap:8px}.active-toggle{align-items:center;color:#4a5568;cursor:pointer;display:flex;font-size:14px;gap:6px}.active-toggle input[type=checkbox]{cursor:pointer;height:16px;width:16px}.button.small{font-size:13px;padding:6px 12px}.button.small svg{height:14px;width:14px}.message-editor{display:flex;flex-direction:column;gap:16px}.form-group{gap:6px}.form-group label{font-size:13px}.form-group:has(.username-input:disabled) label{color:#a0aec0}.template-select{border:1px solid #cbd5e0;border-radius:4px;font-size:14px;padding:8px}.template-select:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.template-preview-small{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:4px;margin-top:8px;padding:8px}.template-preview-small pre{word-wrap:break-word;color:#4a5568;font-family:Courier New,monospace;font-size:12px;margin:0;white-space:pre-wrap}.form-row{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(3,1fr)}.username-input{border:1px solid #cbd5e0;border-radius:4px;font-size:13px;padding:8px}.username-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.username-input:disabled{background-color:#f7fafc;color:#a0aec0;cursor:not-allowed;opacity:.6}.username-input:disabled::placeholder{color:#cbd5e0}.message-preview{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:4px;padding:12px;position:relative}.message-info{margin-bottom:12px}.info-row{display:flex;font-size:13px;gap:8px;margin-bottom:6px}.info-label{color:#4a5568;font-weight:500}.info-value{color:#2d3748}.template-preview{background-color:#fff}.template-text{word-wrap:break-word}.inactive-badge{border-radius:3px;font-size:11px;padding:4px 8px;position:absolute;right:8px;top:8px}.message-empty{color:#a0aec0;font-style:italic;padding:20px;text-align:center}.success-message{background-color:#d4edda;border:1px solid #c3e6cb;border-radius:4px;color:#155724;padding:12px}@media (max-width:768px){.form-row,.messages-list{grid-template-columns:1fr}.message-header{align-items:flex-start;flex-direction:column;gap:8px}.message-actions{justify-content:flex-end;width:100%}.bot-messages-modal{max-width:95vw;width:95vw}}.cookie-upload-container{margin:0 auto;max-width:1200px;padding:24px}.cookie-upload-container h2{color:#333;margin-bottom:24px}.cookie-upload-area{background-color:#f9f9f9;border:2px dashed #ccc;border-radius:8px;cursor:pointer;margin-bottom:24px;padding:48px;text-align:center;transition:all .3s ease}.cookie-upload-area:hover{background-color:#f0f7ff;border-color:#007bff}.upload-icon{color:#666;margin-bottom:16px}.cookie-upload-area p{color:#666;margin:8px 0}.upload-hint{color:#999;font-size:.9em;font-style:italic}.upload-button{background-color:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:16px;margin-top:16px;padding:12px 24px;transition:background-color .2s}.upload-button:hover:not(:disabled){background-color:#0056b3}.upload-button:disabled{background-color:#ccc;cursor:not-allowed}.upload-status{align-items:center;border-radius:4px;display:flex;gap:8px;margin-bottom:24px;padding:12px}.upload-status.success{background-color:#d4edda;border:1px solid #c3e6cb;color:#155724}.upload-status.error{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.cookies-list{margin-top:32px}.cookies-list h3{color:#333;margin-bottom:16px}.no-cookies{color:#999;font-style:italic;padding:24px;text-align:center}.cookies-table{background-color:#fff;border-collapse:collapse;border-radius:4px;box-shadow:0 1px 3px #0000001a;overflow:hidden;width:100%}.cookies-table thead{background-color:#f8f9fa}.cookies-table th{border-bottom:2px solid #dee2e6;color:#333;font-weight:600;padding:12px;text-align:left}.cookies-table td{border-bottom:1px solid #dee2e6;padding:12px}.cookies-table tbody tr:hover{background-color:#f8f9fa}.status-badge{border-radius:4px;display:inline-block;font-size:.85em;font-weight:500;padding:4px 8px}.status-badge.active{background-color:#d4edda;color:#155724}.status-badge.inactive{background-color:#f8d7da;color:#721c24}.cookie-actions{align-items:center;display:flex;gap:8px}.update-button{background:none;border:none;border-radius:4px;color:#007bff;cursor:pointer;padding:4px 8px;transition:background-color .2s}.update-button:hover{background-color:#e7f3ff}.delete-button{background:none;border:none;border-radius:4px;color:#dc3545;cursor:pointer;padding:4px 8px;transition:background-color .2s}.delete-button:hover{background-color:#f8d7da}.update-hint{color:#007bff;display:block;font-weight:500;margin-top:4px}.upload-progress-list{background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;margin-bottom:24px;margin-top:16px;padding:16px}.upload-progress-list h4{color:#333;font-size:.95em;font-weight:600;margin:0 0 12px}.upload-progress-item{align-items:center;background-color:#fff;border:1px solid #dee2e6;border-radius:4px;display:flex;gap:8px;margin-bottom:8px;padding:8px 12px;transition:all .2s ease}.upload-progress-item:last-child{margin-bottom:0}.upload-progress-item.uploading{border-left:3px solid #007bff}.upload-progress-item.success{border-left:3px solid #28a745}.upload-progress-item.error{border-left:3px solid #dc3545}.upload-progress-item span:first-of-type{color:#333;flex:1 1;font-size:.9em}.progress-status{color:#666;font-size:.85em;font-weight:500}.upload-progress-item.uploading .progress-status{color:#007bff}.upload-progress-item.success .progress-status{color:#28a745}.upload-progress-item.error .progress-status{color:#dc3545}.dashboard{margin:0 auto;max-width:1800px;padding:24px}.dashboard-loading{align-items:center;display:flex;flex-direction:column;gap:16px;height:60vh;justify-content:center}.loading-spinner{animation:spin 1s linear infinite;border:4px solid #e2e8f0;border-radius:50%;border-top-color:#667eea;height:40px;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.dashboard-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:24px}.dashboard-search{align-items:center;display:flex;flex:0 0 auto;gap:12px;min-width:300px}.search-input-wrapper{align-items:center;display:flex;max-width:400px;position:relative;width:100%}.search-icon{z-index:1}.search-input{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000000d;padding:12px 50px 12px 40px;transition:all .2s ease}.search-input::placeholder{color:#a0aec0}.search-clear{align-items:center;background:none;border:none;color:#718096;cursor:pointer;display:flex;justify-content:center;padding:4px;position:absolute;right:8px;transition:color .2s ease;z-index:1}.search-clear:hover{color:#2d3748}.sort-button{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0000000d;color:#4a5568;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:6px;padding:12px 16px;transition:all .2s ease;white-space:nowrap}.sort-button:hover{background:#f7fafc;border-color:#667eea;box-shadow:0 4px 8px #667eea26;transform:translateY(-1px)}.sort-button-active{border-color:#667eea;box-shadow:0 4px 12px #667eea4d;color:#fff}.sort-button-active,.sort-button-active:hover{background:linear-gradient(135deg,#667eea,#764ba2)}.sort-button-active:hover{box-shadow:0 6px 16px #667eea66;transform:translateY(-2px)}.sort-button svg{flex-shrink:0}.dashboard-actions{flex-wrap:wrap}.dashboard-actions,.dashboard-title{align-items:center;display:flex;gap:12px}.dashboard-title{color:#2d3748}.dashboard-title h2{font-size:24px;font-weight:600;margin:0}.dashboard-stats{display:flex;flex-wrap:wrap;gap:16px}.stat-card{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0000000d;display:flex;gap:12px;padding:16px;transition:all .2s ease}.stat-card:hover{border-color:#cbd5e0;box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.stat-card-active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#667eea;box-shadow:0 4px 12px #667eea4d}.stat-card svg{color:#667eea}.stat-card-active .stat-number,.stat-card-active svg{color:#fff}.stat-card-active .stat-label{color:#ffffffe6}.stat-number{color:#2d3748;font-size:20px;font-weight:600}.stat-label,.stat-number{display:block;line-height:1}.stat-label{color:#718096;font-size:12px;letter-spacing:.5px;margin-top:2px;text-transform:uppercase}.cookie-upload-section{margin-bottom:24px;margin-top:24px}.create-bot-button{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;padding:12px 20px;transition:transform .2s ease,box-shadow .2s ease;white-space:nowrap}.create-bot-button:hover{box-shadow:0 8px 20px #667eea4d;transform:translateY(-1px)}.error-banner{background-color:#fed7d7;border:1px solid #feb2b2;border-radius:8px;justify-content:space-between;margin-bottom:24px;padding:12px 16px}.error-banner,.error-banner button{align-items:center;color:#c53030;display:flex}.error-banner button{background:none;border:none;cursor:pointer;font-size:20px;height:24px;justify-content:center;padding:0;width:24px}.bots-grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(3,1fr);margin-top:24px}@media (max-width:1800px){.bots-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:1024px){.bots-grid{grid-template-columns:1fr}}@media (max-width:768px){.dashboard{padding:16px}.dashboard-header{align-items:stretch;flex-direction:column}.dashboard-search{flex-direction:column;min-width:0;width:100%}.search-input-wrapper{max-width:100%}.sort-button{justify-content:center;width:100%}.dashboard-stats{gap:12px;justify-content:center}.stat-card{flex-basis:calc(50% - 6px);flex-grow:1;flex-shrink:1;min-width:140px;padding:12px}.stat-card:first-child{flex:1 1 100%;min-width:100%}.stat-card:not(:first-child){flex-basis:calc(50% - 6px);flex-grow:1;flex-shrink:1;min-width:calc(50% - 6px)}.stat-number{font-size:18px}.stat-label{font-size:11px}.dashboard-actions{justify-content:flex-start;width:100%}.dashboard-actions .create-bot-button{flex:1 1 auto;min-width:0}}.empty-state{align-items:center;color:#718096;display:flex;flex-direction:column;grid-column:1/-1;justify-content:center;padding:60px 20px;text-align:center}.empty-state svg{margin-bottom:16px;opacity:.5}.empty-state h3{color:#4a5568;font-size:20px;font-weight:500;margin:0 0 8px}.empty-state p{font-size:16px;margin:0}.bulk-action-bar{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:8px;box-shadow:0 4px 12px #667eea4d;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:24px;padding:16px 20px}.bulk-action-info{align-items:center;color:#fff;display:flex;gap:12px}.bulk-action-count{font-size:16px;font-weight:600}.bulk-action-deselect{align-items:center;background:#fff3;border:1px solid #ffffff4d;border-radius:6px;color:#fff;cursor:pointer;display:flex;justify-content:center;padding:6px;transition:all .2s ease}.bulk-action-deselect:hover{background:#ffffff4d;border-color:#ffffff80}.bulk-action-buttons{display:flex;flex-wrap:wrap;gap:8px}.bulk-action-button{align-items:center;border:none;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:6px;padding:8px 16px;transition:all .2s ease}.bulk-action-button:disabled{cursor:not-allowed;opacity:.5}.bulk-action-button.success{background:#22c55ee6}.bulk-action-button.success:hover:not(:disabled){background:#22c55e;box-shadow:0 4px 8px #22c55e4d;transform:translateY(-1px)}.bulk-action-button.danger{background:#ef4444e6}.bulk-action-button.danger:hover:not(:disabled){background:#ef4444;box-shadow:0 4px 8px #ef44444d;transform:translateY(-1px)}.bulk-action-button.warning{background:#f59e0be6}.bulk-action-button.warning:hover:not(:disabled){background:#f59e0b;box-shadow:0 4px 8px #f59e0b4d;transform:translateY(-1px)}.select-all-container{display:flex;justify-content:flex-start;margin-bottom:16px}.select-all-button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 3px #0000000d;color:#667eea;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .2s ease}.select-all-button:hover:not(:disabled){background:#f7fafc;border-color:#667eea;box-shadow:0 4px 8px #667eea26;transform:translateY(-1px)}.select-all-button:disabled{background:#f7fafc;color:#a0aec0;cursor:not-allowed;opacity:.6}@media (max-width:768px){.bulk-action-bar{align-items:stretch;flex-direction:column}.bulk-action-info{justify-content:space-between;width:100%}.bulk-action-buttons{flex-direction:column;width:100%}.bulk-action-button{justify-content:center;width:100%}}.global-templates-modal{max-width:800px}.templates-info{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:24px;padding:16px}.templates-info .info-text{color:#2d3748;font-weight:500;margin:0 0 12px}.placeholder-list{color:#4a5568;margin:0;padding-left:20px}.placeholder-list li{margin:8px 0}.placeholder-list code{background-color:#edf2f7;border-radius:4px;color:#667eea;font-family:Courier New,monospace;font-weight:600;padding:2px 6px}.templates-actions{margin-bottom:24px}.template-editor-section{background-color:#f7fafc;border:2px solid #667eea;border-radius:8px;margin-bottom:24px;padding:20px}.template-editor-section h3{color:#2d3748;margin:0 0 16px}.template-textarea{font-family:Courier New,monospace;font-size:14px;resize:vertical}.editor-actions{display:flex;gap:12px;margin-top:16px}.templates-list{margin-top:24px}.templates-list-header{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;margin-bottom:16px}.templates-list h3{color:#2d3748;margin:0}.search-container{align-items:center;display:flex;min-width:250px;position:relative}.search-icon{color:#718096;left:12px;pointer-events:none;position:absolute}.search-input{background-color:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#2d3748;font-size:14px;padding:8px 12px 8px 36px;transition:border-color .2s,box-shadow .2s;width:100%}.search-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.search-input:disabled{cursor:not-allowed}.no-templates,.search-input:disabled{background-color:#f7fafc;color:#a0aec0}.no-templates{border:1px dashed #cbd5e0;border-radius:8px;padding:40px;text-align:center}.template-item{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px;padding:16px;transition:box-shadow .2s}.template-item:hover{box-shadow:0 2px 8px #0000001a}.template-item-editing{border-color:#667eea;border-width:2px}.template-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:12px}.template-header h4{color:#2d3748;display:inline-block;margin:0 8px 0 0}.template-actions{display:flex;gap:8px}.template-preview{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:4px;margin-top:12px;padding:10px}.template-editor-inline{background-color:#f7fafc;border:2px solid #667eea;border-radius:8px;margin-top:12px;padding:16px}.template-editor-inline .form-group{margin-bottom:16px}.template-editor-inline .form-group:last-of-type{margin-bottom:0}.template-editor-inline label{color:#2d3748;display:block;font-size:14px;font-weight:500;margin-bottom:6px}.template-editor-inline input[type=text],.template-editor-inline textarea{background-color:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#2d3748;font-family:inherit;font-size:14px;padding:8px 12px;transition:border-color .2s,box-shadow .2s;width:100%}.template-editor-inline input[type=text]:focus,.template-editor-inline textarea:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.template-editor-inline input[type=text]:disabled,.template-editor-inline textarea:disabled{background-color:#f7fafc;color:#a0aec0;cursor:not-allowed}.template-editor-inline .active-toggle{align-items:center;cursor:pointer;display:flex;font-weight:400;gap:8px}.template-editor-inline .active-toggle input[type=checkbox]{cursor:pointer;width:auto}.template-text{background-color:initial;border-radius:0;color:#2d3748;font-family:Courier New,monospace;font-size:12px;line-height:1.5;margin:0;overflow-x:auto;padding:0;white-space:pre-wrap;word-break:break-word}.template-meta{color:#718096;font-size:12px;margin-top:8px}.inactive-badge{background-color:#fed7d7;border-radius:4px;color:#c53030;display:inline-block;font-size:12px;font-weight:500;margin-left:8px;padding:2px 8px}.success-message{background-color:#c6f6d5;border:1px solid #9ae6b4;border-radius:8px;color:#22543d;font-size:14px;margin-bottom:16px;padding:12px 16px}.header{background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 3px #0000000d;justify-content:space-between;padding:16px 24px}.clocks-container,.header,.header-left{align-items:center;display:flex}.clocks-container{gap:12px}.utc-clock{background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 4px 12px #667eea33}.user-clock,.utc-clock{align-items:center;border-radius:10px;display:flex;gap:10px;padding:10px 16px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.user-clock{background:linear-gradient(135deg,#48bb78,#38a169);box-shadow:0 4px 12px #48bb7833}.utc-clock-icon{color:#fff;flex-shrink:0}.utc-clock-content{display:flex;flex-direction:column;gap:2px}.utc-clock-label{color:#fffc;font-size:10px;font-weight:600;letter-spacing:1px;line-height:1;text-transform:uppercase}.utc-clock-time{color:#fff;display:inline-block;font-size:18px;font-weight:600;letter-spacing:.5px;line-height:1.2;min-width:80px;text-align:left}.user-clock-icon{color:#fff;flex-shrink:0}.user-clock-content{display:flex;flex-direction:column;gap:2px}.user-clock-label{color:#fffc;font-size:10px;font-weight:600;letter-spacing:1px;line-height:1;text-transform:uppercase}.user-clock-time{color:#fff;display:inline-block;font-size:18px;font-weight:600;letter-spacing:.5px;line-height:1.2;min-width:100px;text-align:left}.header-title{-webkit-text-fill-color:#0000;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;background-clip:text;color:#2d3748;font-size:24px;font-weight:600;margin:0}.header-center{flex:1 1;justify-content:center}.header-actions,.header-center{align-items:center;display:flex}.header-actions{flex-wrap:wrap;gap:12px}.header-action-button{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:8px;padding:10px 18px;transition:transform .2s ease,box-shadow .2s ease;white-space:nowrap}.header-action-button:hover{box-shadow:0 8px 20px #667eea4d;transform:translateY(-1px)}.header-right{gap:16px}.header-right,.user-info{align-items:center;display:flex}.user-info{background-color:#f7fafc;border-radius:8px;gap:12px;padding:8px 12px}.user-avatar{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;color:#fff;display:flex;height:32px;justify-content:center;width:32px}.user-details{align-items:flex-start;display:flex;flex-direction:column}.user-name{color:#2d3748;font-size:14px;font-weight:500;line-height:1}.user-role{color:#718096;font-size:12px;line-height:1;margin-top:2px;text-transform:capitalize}.logout-button{align-items:center;background-color:initial;border:1px solid #e2e8f0;border-radius:6px;color:#718096;cursor:pointer;display:flex;font-size:14px;gap:8px;padding:8px 16px;transition:all .2s ease}.logout-button:hover{background-color:#f7fafc;border-color:#fed7d7;color:#e53e3e}@media (max-width:768px){.header{flex-direction:column;gap:16px;padding:12px 16px}.header-left{width:100%}.clocks-container{flex-direction:column;gap:8px;width:100%}.user-clock,.utc-clock{justify-content:center;width:100%}.header-center{justify-content:flex-start;width:100%}.header-actions{flex-direction:column;width:100%}.header-action-button{justify-content:center;width:100%}.header-right{justify-content:space-between;width:100%}}.login-container{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}.login-box{background:#fff;border-radius:12px;box-shadow:0 20px 40px #0000001a;max-width:400px;padding:40px;width:100%}.login-header{margin-bottom:32px;text-align:center}.login-icon{color:#667eea;margin-bottom:16px}.login-header h1{color:#2d3748;font-size:28px;font-weight:600;margin:0 0 8px}.login-header p{color:#718096;font-size:16px;margin:0}.login-form{gap:20px}.form-group,.login-form{display:flex;flex-direction:column}.form-group label{color:#2d3748;font-size:14px;font-weight:500;margin-bottom:8px}.form-group input{border:2px solid #e2e8f0;border-radius:8px;font-size:16px;padding:12px 16px;transition:border-color .2s ease}.form-group input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.form-group input:disabled{background-color:#f7fafc;color:#a0aec0;cursor:not-allowed}.login-button{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;padding:12px 24px;transition:transform .2s ease,box-shadow .2s ease}.login-button:hover:not(:disabled){box-shadow:0 8px 20px #667eea4d;transform:translateY(-1px)}.login-button:disabled{box-shadow:none;cursor:not-allowed;opacity:.6;transform:none}.error-message{background-color:#fed7d7;border:1px solid #feb2b2;border-radius:8px;color:#c53030;font-size:14px;padding:12px 16px}.backend-error{background-color:#fef3c7;border:1px solid #fbbf24;color:#92400e;display:flex;flex-direction:column;gap:8px}.retry-button{align-self:flex-start;background-color:#f59e0b;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;padding:6px 12px;transition:background-color .2s}.retry-button:hover{background-color:#d97706}.login-footer{margin-top:24px;text-align:center}.login-footer p{color:#718096;font-size:14px;margin:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}