:root{--primary: #8b5cf6;--primary-2: #a78bfa;--primary-soft: #ede9fe;--primary-text: #7c3aed;--primary-grad: linear-gradient(135deg, #8b5cf6, #a78bfa);--bg: #ffffff;--card: #ffffff;--text: #0f172a;--muted: #64748b;--border: #e5e7eb;--radius: 12px;--shadow: 0 1px 3px rgba(15, 23, 42, .06);--shadow-lg: 0 10px 30px -10px rgba(139, 92, 246, .18), 0 2px 10px rgba(15, 23, 42, .06)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{color:var(--primary-text);text-decoration:none}.layout{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;background:var(--card);color:#334155;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:20px 14px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 20px;border-bottom:1px solid var(--border);margin-bottom:18px}.brand .logo{width:34px;height:34px;border-radius:9px;background:var(--primary-grad);display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:16px}.brand .t{color:var(--text);font-weight:700;font-size:16px}.brand .sub{color:var(--muted);font-size:11px;margin-top:2px}.menu{display:flex;flex-direction:column;gap:6px}.menu a{display:flex;align-items:center;gap:10px;padding:11px 14px;color:#475569;border-radius:10px;font-size:14px;transition:all .15s}.menu a:hover{background:#f8f7ff;color:var(--primary-text)}.menu a.active{background:var(--primary-soft);color:var(--primary-text);font-weight:600}.user-card{margin-top:auto;border-top:1px solid var(--border);padding-top:16px}.user-card .name{font-size:14px;color:#334155;font-weight:600}.user-card .role{font-size:12px;color:var(--muted);margin:4px 0 12px}.user-card button{width:100%}.content{flex:1;padding:28px;min-width:0}.page{max-width:1140px;margin:0 auto}.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff,#f5f3ff 60%,#ede9fe)}.auth-card{width:400px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:36px 32px;box-shadow:var(--shadow-lg)}.auth-card h2{font-size:22px;text-align:center;margin-bottom:6px}.auth-card .auth-login-sub{text-align:center;margin-bottom:24px}.brand-logo{width:38px;height:38px;border-radius:10px;background:var(--primary-grad);display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;font-size:20px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.card h3{margin-bottom:16px}.card-title{font-weight:700;font-size:16px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}.btn{height:38px;padding:0 18px;border:none;border-radius:10px;background:var(--primary-grad);color:#fff;cursor:pointer;font-size:14px;font-weight:500;transition:all .15s;box-shadow:0 2px 8px -2px #8b5cf666}.btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px -2px #8b5cf673}.btn.ghost{background:#fff;border:1px solid var(--border);color:#374151;box-shadow:none}.btn.ghost:hover{background:#f8f7ff;color:var(--primary-text)}.btn.danger{background:#dc2626;box-shadow:0 2px 8px -2px #dc262666}.btn.sm{height:32px;padding:0 13px;font-size:13px}input,select{height:40px;border:1px solid var(--border);border-radius:10px;padding:0 12px;font-size:14px;width:100%;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #8b5cf624}label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid #f1f5f9}th{background:#faf9ff;color:var(--muted);font-weight:600}tbody tr:hover td{background:#f8f7ff}.muted{color:var(--muted);font-size:13px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.badge{display:inline-flex;align-items:center;padding:3px 11px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap}.badge.admin{background:var(--primary-soft);color:var(--primary-text)}.badge.user{background:#e0f2fe;color:#075985}.badge.on{background:#dcfce7;color:#166534}.badge.off{background:#fee2e2;color:#991b1b}.badge.done{background:#dcfce7;color:#166534}.badge.failed{background:#fee2e2;color:#991b1b}.badge.running{background:#fef9c3;color:#854d0e}.hr{height:1px;background:var(--border);margin:16px 0}.modal-mask{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50}.modal{width:460px;max-width:92vw;background:#fff;border-radius:14px;padding:26px;box-shadow:var(--shadow-lg);position:relative}.modal h3{margin-bottom:20px;font-size:18px}.modal .close{position:absolute;top:16px;right:18px;background:none;border:none;font-size:22px;line-height:1;cursor:pointer;color:var(--muted)}.modal .close:hover{color:var(--text)}.modal .actions{display:flex;gap:12px;align-items:center;margin-top:6px}.modal .actions .muted{flex:1}.login-modal{width:380px;text-align:center}.login-modal h3{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:18px}.plat-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.qr-wrap{margin:0 auto 14px;width:220px;height:220px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}.qr-img{width:200px;height:200px;border-radius:6px}.qr-state{width:200px;height:200px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:64px;font-weight:700}.qr-state.ok{color:#16a34a;background:#f0fdf4}.qr-state.err{color:#dc2626;background:#fef2f2;font-size:48px}.qr-state.warn{color:#d97706;background:#fffbeb;font-size:54px}.qr-state.loading{color:var(--muted);background:#f8f7ff;font-size:15px}.login-hint{font-size:14px;color:var(--text);margin-bottom:6px}.login-sub{font-size:12.5px;color:var(--muted);margin-bottom:14px;line-height:1.55}.login-sub.err{color:#dc2626}.modal-actions{display:flex;gap:12px;align-items:center;margin-top:4px}.modal-actions .muted{flex:1;text-align:left}
