*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#0f1117;--surface:#1a1d27;--border:#2a2d3a;--accent:#6c63ff;--accent-hover:#5a52e0;--green:#22c55e;--red:#ef4444;--yellow:#f59e0b;--text:#e2e8f0;--muted:#64748b;font-family:Inter,system-ui,sans-serif}body{background:var(--bg);color:var(--text);min-height:100vh}.auth-wrap{justify-content:center;align-items:center;min-height:100vh;display:flex}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;max-width:400px;padding:2.5rem}.auth-card h1{margin-bottom:.25rem;font-size:1.5rem}.auth-card p{color:var(--muted);margin-bottom:1.75rem;font-size:.9rem}.auth-toggle{color:var(--muted);text-align:center;margin-top:1rem;font-size:.85rem}.auth-toggle button{color:var(--accent);cursor:pointer;background:0 0;border:none;font-size:.85rem}.field{margin-bottom:1rem}.field label{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.35rem;font-size:.78rem;display:block}.field input,.field textarea{background:var(--bg);border:1px solid var(--border);width:100%;color:var(--text);border-radius:8px;outline:none;padding:.65rem .85rem;font-family:inherit;font-size:.95rem;transition:border-color .2s}.field input:focus,.field textarea:focus{border-color:var(--accent)}.field textarea{resize:vertical;min-height:80px}.btn{cursor:pointer;border:none;border-radius:8px;align-items:center;gap:.5rem;padding:.65rem 1.2rem;font-size:.9rem;font-weight:600;transition:background .2s,opacity .2s;display:inline-flex}.btn-primary{background:var(--accent);color:#fff;justify-content:center;width:100%;padding:.75rem}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-sm{padding:.38rem .8rem;font-size:.78rem}.btn-green{background:var(--green);color:#fff}.btn-green:hover{background:#16a34a}.btn-red{background:var(--red);color:#fff}.btn-red:hover{background:#dc2626}.btn-ghost{background:var(--border);color:var(--text)}.btn-ghost:hover{background:#343748}.nav{background:var(--surface);border-bottom:1px solid var(--border);z-index:10;justify-content:space-between;align-items:center;height:56px;padding:0 2rem;display:flex;position:sticky;top:0}.nav-brand{font-size:1.05rem;font-weight:700}.nav-brand span{color:var(--accent)}.nav-right{align-items:center;gap:1rem;display:flex}.nav-email{color:var(--muted);font-size:.82rem}.nav-logout{border:1px solid var(--border);color:var(--text);cursor:pointer;background:0 0;border-radius:6px;padding:.3rem .7rem;font-size:.78rem}.nav-logout:hover{border-color:var(--muted)}.page{max-width:1000px;margin:0 auto;padding:2rem 1.5rem}.page-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.page-header h1{font-size:1.4rem}.agent-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.agent-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:.85rem;padding:1.25rem;transition:border-color .2s;display:flex}.agent-card:hover{border-color:#3a3d4a}.agent-card-top{justify-content:space-between;align-items:flex-start;display:flex}.agent-name{font-size:1rem;font-weight:600}.agent-tpl{color:var(--muted);margin-top:.15rem;font-size:.75rem}.agent-actions{flex-wrap:wrap;gap:.5rem;display:flex}.badge{text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;border-radius:20px;padding:.22rem .6rem;font-size:.7rem;font-weight:700}.badge-live{color:var(--green);background:#22c55e26}.badge-draft{color:var(--muted);background:#64748b1f}.badge-deploying{color:var(--yellow);background:#f59e0b26}.badge-stopped,.badge-error{color:var(--red);background:#ef44441f}.empty{text-align:center;color:var(--muted);padding:5rem 1rem}.empty h2{color:var(--text);margin-bottom:.5rem;font-size:1.15rem}.empty p{margin-bottom:1.5rem;font-size:.9rem}.overlay{z-index:100;background:#000000a6;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;width:100%;max-width:520px;max-height:90vh;padding:2rem;overflow-y:auto}.modal h2{margin-bottom:.5rem;font-size:1.15rem}.modal-sub{color:var(--muted);margin-bottom:1.5rem;font-size:.85rem}.modal-footer{justify-content:flex-end;gap:.75rem;margin-top:1.5rem;display:flex}.modal-footer .btn{width:auto}.step-dots{gap:.4rem;margin-bottom:1.5rem;display:flex}.step-dot{background:var(--border);border-radius:2px;flex:1;height:4px;transition:background .3s}.step-dot.active{background:var(--accent)}.template-list{flex-direction:column;gap:.6rem;margin-bottom:1rem;display:flex}.tpl-option{background:var(--bg);border:2px solid var(--border);cursor:pointer;text-align:left;border-radius:10px;width:100%;padding:.85rem 1rem;transition:border-color .2s}.tpl-option:hover{border-color:#4a4d5a}.tpl-option.selected{border-color:var(--accent);background:#6c63ff12}.tpl-name{font-size:.9rem;font-weight:600}.tpl-desc{color:var(--muted);margin-top:.15rem;font-size:.78rem}.alert{border-radius:8px;margin-bottom:1rem;padding:.65rem 1rem;font-size:.85rem}.alert-error{color:#fca5a5;background:#ef44441a;border:1px solid #ef444440}.alert-success{color:#86efac;background:#22c55e1a;border:1px solid #22c55e40}.spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.6s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}
