:root {
    --bg: #0f172a;
    --panel: #ffffff;
    --sidebar: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --ok: #16a34a;
    --violation: #dc2626;
    --neutral: #6b7280;
    --error: #b45309;
    --accent: #2563eb;
    --border: #e5e7eb;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f3f4f6;
    color: var(--text);
}
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px;
    background: var(--sidebar);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
}
.sidebar .brand { font-weight: 700; font-size: 18px; padding: 0 20px 20px; }
.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
}
.sidebar a:hover, .sidebar a.active { background: #1f2937; color: #fff; }
.sidebar-footer { margin-top: auto; padding: 20px; border-top: 1px solid #1f2937; }
.user-info { font-size: 13px; color: #9ca3af; margin-bottom: 8px; }
.logout-link { padding: 0 !important; color: #f87171 !important; }
.content { flex: 1; padding: 30px; max-width: 1100px; }
h1 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-box { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.stat-box .value { font-size: 28px; font-weight: 700; }
.stat-box .label { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.badge-ok { background: var(--ok); }
.badge-violation { background: var(--violation); }
.badge-neutral { background: var(--neutral); }
.badge-error { background: var(--error); }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn-danger { background: var(--violation); }
.btn-secondary { background: #6b7280; }
form.inline { display: inline; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    margin-top: 4px;
}
label { display: block; font-size: 13px; font-weight: 600; margin-top: 14px; color: #374151; }
.form-actions { margin-top: 20px; }
.thumb { width: 90px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { width: 340px; background: #fff; padding: 30px; border-radius: 10px; border: 1px solid var(--border); }
.alert-box { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.missing-list { font-size: 13px; color: var(--violation); }
.empty-state { color: var(--muted); font-size: 14px; padding: 20px 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
