:root {
  --primary: #667eea; --text-1: #1f2937; --text-2: #4b5563; --text-3: #6b7280; --text-4: #9ca3af;
  --bg-1: #fff; --bg-2: #f9fafb; --bg-3: #f3f4f6; --border: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg-2); color: var(--text-1); font-size: 14px; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(31,41,55,.95); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; z-index: 9999; display: none; }
.toast.success { background: #10b981; } .toast.error { background: #ef4444; } .toast.warning { background: #f59e0b; }

.dash-page { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; margin-bottom: 24px; }
.top-left { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 22px; font-weight: 700; }
.role-tag { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: #eef2ff; color: #4f46e5; font-weight: 500; }
.top-right { display: flex; align-items: center; gap: 12px; }
.admin-name { color: var(--text-2); font-size: 13px; }
.btn { border: 1px solid var(--border); background: var(--bg-1); color: var(--text-2); padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .2s; }
.btn:hover { background: var(--bg-2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.dash-body { display: flex; flex-direction: column; gap: 20px; }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ov-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: box-shadow .2s; }
.ov-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.ov-label { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.ov-value { font-size: 26px; font-weight: 700; color: var(--text-1); }

.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.nav-card { display: flex; align-items: center; gap: 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--text-1); transition: all .2s; }
.nav-card:hover { box-shadow: 0 8px 24px rgba(102,126,234,.15); transform: translateY(-2px); border-color: var(--primary); }
.nav-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); flex-shrink: 0; }
.nav-icon svg { width: 26px; height: 26px; }
.nav-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.nav-desc { font-size: 12px; color: var(--text-3); }

.card { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 12px 18px; text-align: left; }
.data-table th { color: var(--text-3); font-weight: 500; background: var(--bg-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { border-bottom: 1px solid var(--border); color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.status-on { background: #d1fae5; color: #059669; }
.status-off { background: #fee2e2; color: #dc2626; }
.agent-chip { font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--bg-3); color: var(--text-3); display: inline-block; margin: 2px; }
.empty-row td { text-align: center; color: var(--text-4); padding: 30px; }
