:root{--brand: #1a2b4c;--bg: #f5f6f8;--card: #ffffff;--border: #e2e5ea;--text: #1a1f2b;--muted: #6b7280;--radius: 10px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button{font:inherit;cursor:pointer;border:1px solid var(--border);background:#fff;padding:8px 14px;border-radius:8px;color:var(--text)}button:hover{border-color:var(--brand)}button.primary{background:var(--brand);color:#fff;border-color:var(--brand)}button:disabled{opacity:.6;cursor:default}button.link{border:none;background:none;color:var(--muted);padding:4px 0;text-align:left}input,select{font:inherit;padding:9px 11px;border:1px solid var(--border);border-radius:8px;background:#fff;width:100%}.login{min-height:100vh;display:grid;place-items:center;background:var(--brand)}.login-card{background:#fff;padding:32px;border-radius:14px;width:340px;display:flex;flex-direction:column;gap:14px;box-shadow:0 12px 40px #0003}.login-card h1{margin:0;font-size:20px}.login-card .subtitle{margin:-8px 0 4px;color:var(--muted)}.login-card label{display:flex;flex-direction:column;gap:6px;font-weight:600}.error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;padding:8px 10px;border-radius:8px}.app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{background:var(--brand);color:#fff;display:flex;flex-direction:column;padding:20px 16px}.sidebar .brand{font-weight:700;font-size:16px;padding:6px 8px 18px}.sidebar nav{display:flex;flex-direction:column;gap:4px;flex:1}.sidebar nav a{color:#ffffffd1;padding:9px 12px;border-radius:8px}.sidebar nav a:hover{background:#ffffff1f;text-decoration:none}.sidebar nav a.active{background:#ffffff2e;color:#fff;font-weight:600}.sidebar .user{border-top:1px solid rgba(255,255,255,.15);padding-top:14px;display:flex;flex-direction:column;gap:2px}.sidebar .user-name{font-weight:600}.sidebar .role{color:#fff9;font-size:12px;text-transform:capitalize;margin-bottom:6px}.sidebar .user .link{color:#fffc}.content{padding:28px 32px;overflow:auto}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.page-head h1{font-size:20px;margin:0}.page-head .saved{color:#137333;font-size:13px}h2{font-size:15px;margin:24px 0 10px}code{background:#f2f4f7;padding:2px 6px;border-radius:5px;font-size:12px}.login-card label input[type=color]{height:40px;padding:4px}.back{display:inline-block;margin-bottom:10px;color:var(--muted)}.loading,.empty{color:var(--muted);padding:16px 0}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:18px}.form{display:grid;gap:10px;max-width:520px}.detail{display:grid;gap:12px}.detail>div{display:grid;grid-template-columns:130px 1fr;align-items:center}.detail b{color:var(--muted);font-weight:600}.table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.table th,.table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--border)}.table th{background:#fafbfc;color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.03em}.table tr:last-child td{border-bottom:none}.badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;text-transform:capitalize;background:#eef2f7;color:#46536b}.badge.status-new{background:#e8f0fe;color:#1a56db}.badge.status-qualified{background:#e6f4ea;color:#137333}.badge.status-converted{background:#ede9fe;color:#6d28d9}.badge.status-lost{background:#fce8e6;color:#b42318}.badge.status-open{background:#e6f4ea;color:#137333}.badge.status-closed{background:#eef2f7;color:#46536b}.badge.status-pending{background:#fef3c7;color:#92610a}.badge.status-confirmed,.badge.status-paid{background:#e6f4ea;color:#137333}.badge.status-cancelled{background:#fce8e6;color:#b42318}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.button{display:inline-block;padding:8px 14px;border-radius:8px;border:1px solid var(--brand);color:var(--brand)}.button:hover{text-decoration:none;background:var(--brand);color:#fff}.timeline{list-style:none;padding:0;margin:0;background:var(--card);border:1px solid var(--border);border-radius:var(--radius)}.timeline li{display:flex;justify-content:space-between;padding:11px 16px;border-bottom:1px solid var(--border)}.timeline li:last-child{border-bottom:none}.timeline .act{font-weight:600;text-transform:capitalize}.timeline .when{color:var(--muted)}
