*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0f172a;color:#e2e8f0;line-height:1.6}.app{display:flex;min-height:100vh}.sidebar{width:260px;background:#1e293b;border-right:1px solid #334155;display:flex;flex-direction:column;position:fixed;height:100vh}.sidebar-header{padding:2rem 1.5rem;border-bottom:1px solid #334155}.sidebar-header h1{font-size:1.5rem;color:#818cf8;margin-bottom:.25rem}.sidebar-header .subtitle{font-size:.875rem;color:#94a3b8}.nav-menu{flex:1;padding:1rem 0;list-style:none}.nav-menu li{margin-bottom:.25rem}.nav-menu a{display:block;padding:.75rem 1.5rem;color:#cbd5e1;text-decoration:none;transition:all .2s;border-left:3px solid transparent}.nav-menu a:hover{background:#334155;color:#818cf8;border-left-color:#818cf8}.sidebar-footer{padding:1.5rem;border-top:1px solid #334155}.btn-logout{width:100%;padding:.75rem;background:#374151;color:#e2e8f0;border:none;border-radius:6px;cursor:pointer;font-size:.95rem;transition:background .2s}.btn-logout:hover{background:#4b5563}.main-content{flex:1;margin-left:260px;padding:2rem;max-width:1400px}.page-header{margin-bottom:2rem;display:flex;justify-content:space-between;align-items:center}.page-header h1{font-size:2rem;color:#f1f5f9;margin-bottom:.5rem}.page-header .subtitle{color:#94a3b8;font-size:1rem}.btn-primary{padding:.75rem 1.5rem;background:linear-gradient(135deg,#4f46e5,#4338ca);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.95rem;font-weight:500;transition:transform .2s,box-shadow .2s}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #6366f166}.btn-secondary{padding:.75rem 1.5rem;background:#374151;color:#e2e8f0;border:none;border-radius:6px;cursor:pointer;font-size:.95rem;transition:background .2s}.btn-secondary:hover{background:#4b5563}.btn-sm{padding:.5rem 1rem;background:#374151;color:#e2e8f0;border:none;border-radius:4px;cursor:pointer;font-size:.85rem;transition:background .2s}.btn-sm:hover{background:#4b5563}.btn-sm.btn-primary{background:#4f46e5}.btn-sm.btn-primary:hover{background:#4338ca}.card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:1.5rem;margin-bottom:2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:1.5rem;display:flex;align-items:center;gap:1rem;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.stat-card.active{border-color:#4f46e5;background:linear-gradient(135deg,#1e293b,#1e3a5f)}.stat-icon{font-size:2rem;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:#334155;border-radius:8px}.stat-content h3{font-size:2rem;color:#f1f5f9;margin-bottom:.25rem}.stat-content p{color:#94a3b8;font-size:.9rem}.activity-section h2{font-size:1.5rem;color:#f1f5f9;margin-bottom:1rem}.activity-list{background:#1e293b;border:1px solid #334155;border-radius:8px;overflow:hidden}.activity-item{display:flex;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #334155}.activity-item:last-child{border-bottom:none}.activity-icon{font-size:1.5rem;width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#334155;border-radius:6px;flex-shrink:0}.activity-content h4{color:#f1f5f9;margin-bottom:.25rem}.activity-content p{color:#94a3b8;font-size:.9rem;margin-bottom:.5rem}.activity-time{color:#64748b;font-size:.85rem}.table-container{background:#1e293b;border:1px solid #334155;border-radius:8px;overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table thead{background:#334155}.data-table th{padding:1rem;text-align:left;color:#f1f5f9;font-weight:600;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.data-table td{padding:1rem;border-top:1px solid #334155;color:#cbd5e1}.data-table tbody tr:hover{background:#3341554d}.empty-state{text-align:center;padding:3rem 1rem!important;color:#64748b;font-style:italic}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500;text-transform:capitalize}.status-active,.status-completed{background:#22c55e33;color:#4ade80}.status-pending,.status-queued{background:#fbbf2433;color:#fbbf24}.status-draft{background:#94a3b833;color:#94a3b8}.status-sent{background:#6366f133;color:#818cf8}.filter-bar{margin-bottom:1.5rem;display:flex;gap:.5rem}.filter-bar button{padding:.5rem 1rem;background:#374151;color:#cbd5e1;border:1px solid #4b5563;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s}.filter-bar button:hover{background:#4b5563;border-color:#818cf8}.filter-bar button.active{background:#4f46e5;color:#fff;border-color:#4f46e5}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#f1f5f9;font-weight:500;font-size:.95rem}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.75rem;background:#0f172a;border:1px solid #334155;border-radius:6px;color:#e2e8f0;font-size:.95rem;transition:border-color .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#4f46e5}.form-actions{display:flex;gap:1rem;margin-top:1.5rem}.contact-selector{max-height:200px;overflow-y:auto;padding:.5rem;background:#0f172a;border:1px solid #334155;border-radius:6px}.checkbox-label{display:flex;align-items:center;padding:.5rem;cursor:pointer;color:#cbd5e1;transition:background .2s}.checkbox-label:hover{background:#1e293b}.checkbox-label input{width:auto;margin-right:.75rem}.tag{display:inline-block;padding:.25rem .75rem;background:#334155;color:#94a3b8;border-radius:12px;font-size:.8rem;margin-right:.5rem;margin-bottom:.25rem}.templates-section,.campaigns-section{margin-top:3rem}.templates-section h2,.campaigns-section h2{font-size:1.5rem;color:#f1f5f9;margin-bottom:1.5rem}.templates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-bottom:2rem}.template-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:1.5rem;transition:transform .2s,box-shadow .2s}.template-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000004d;border-color:#4f46e5}.template-card h4{color:#f1f5f9;margin-bottom:.5rem;font-size:1.1rem}.template-card p{color:#94a3b8;font-size:.9rem;margin-bottom:1rem}.template-id{display:inline-block;padding:.25rem .75rem;background:#334155;color:#818cf8;border-radius:4px;font-size:.8rem;font-family:Courier New,monospace}.email-info{display:flex;gap:1rem;align-items:center;margin-bottom:2rem;padding:1rem;background:#1e293b;border:1px solid #334155;border-radius:8px}.info-badge{padding:.5rem 1rem;background:#334155;border-radius:6px;color:#cbd5e1;font-size:.9rem}.info-badge strong{color:#f1f5f9}.agents-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-bottom:3rem}.agent-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:2rem;text-align:center;transition:transform .2s,box-shadow .2s}.agent-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #0006;border-color:#4f46e5}.agent-icon{font-size:3rem;margin-bottom:1rem}.agent-card h3{color:#f1f5f9;margin-bottom:.75rem;font-size:1.25rem}.agent-card p{color:#94a3b8;font-size:.95rem;margin-bottom:1.5rem;line-height:1.5}.agent-runs-section{margin-top:3rem}.agent-runs-section h2{font-size:1.5rem;color:#f1f5f9;margin-bottom:1.5rem}.pipeline-info{margin-top:3rem}.pipeline-info h2{font-size:1.5rem;color:#f1f5f9;margin-bottom:1.5rem}.info-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.info-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:1.5rem}.info-card h4{color:#f1f5f9;margin-bottom:.75rem;font-size:1.1rem}.info-card p{color:#94a3b8;font-size:.95rem;line-height:1.6}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#4f46e5,#1e3a8a);padding:2rem}.login-card{width:100%;max-width:400px;background:#1e293b;border:1px solid #334155;border-radius:12px;padding:2.5rem;box-shadow:0 8px 24px #0006}.login-header{text-align:center;margin-bottom:2rem}.login-header h1{font-size:2rem;color:#818cf8;margin-bottom:.5rem}.login-header p{color:#94a3b8;font-size:1rem}.login-form .error-message{background:#ef444433;color:#f87171;padding:.75rem;border-radius:6px;margin-bottom:1.5rem;text-align:center;font-size:.9rem}.btn-login{width:100%;padding:.875rem;background:linear-gradient(135deg,#4f46e5,#4338ca);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:transform .2s,box-shadow .2s}.btn-login:hover{transform:translateY(-1px);box-shadow:0 4px 12px #6366f166}.login-footer{margin-top:2rem;text-align:center}.login-footer p{color:#64748b;font-size:.85rem}.loading{display:flex;align-items:center;justify-content:center;min-height:400px;color:#94a3b8;font-size:1.1rem}code{background:#334155;color:#818cf8;padding:.25rem .5rem;border-radius:4px;font-family:Courier New,monospace;font-size:.85rem}.copyable,.email-copyable{cursor:pointer;transition:color .2s;-webkit-user-select:none;user-select:none}.copyable:hover,.email-copyable:hover{color:#818cf8!important}.copy-flash{color:#4ade80!important;animation:flash .3s ease}@keyframes flash{0%,to{opacity:1}50%{opacity:.6}}.email-copyable{word-break:break-all;color:#818cf8}.smart-table code.copyable{background:#334155;padding:.25rem .5rem;border-radius:4px;font-family:Courier New,monospace;font-size:.85rem;color:#818cf8}.empty-state-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:3rem 2rem;text-align:center;color:#64748b;font-size:1rem}.text-muted{color:#64748b}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-card{background:#1e293b;border:1px solid #334155;border-radius:12px;padding:2rem;max-width:500px;width:90%;box-shadow:0 20px 40px #00000080}.modal-card h2{color:#f1f5f9;margin-bottom:1.5rem;font-size:1.5rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#1e293b}::-webkit-scrollbar-thumb{background:#334155;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#475569}

/* === MLL brand alignment (match mylegalletters.com) === */
.sidebar-header h1,.login-header h1,.main-content h2,.main-content h3,h2,h3,h4{font-family:'Playfair Display',Georgia,serif;letter-spacing:.01em}
.login-header h1::before{content:"";display:block;width:200px;height:40px;margin:0 auto .9rem;background:url(/assets/mylegalletters-logo-light.png) center/contain no-repeat}
.sidebar-header h1::before{content:"";display:block;width:170px;height:34px;margin-bottom:.65rem;background:url(/assets/mylegalletters-logo-light.png) left center/contain no-repeat}
.login-card{border-radius:16px;box-shadow:0 20px 50px #00000059}
