:root { --bg:#f5f7fb; --card:#fff; --text:#182033; --muted:#667085; --line:#e5e7eb; --brand:#0d6efd; --danger:#dc3545; --ok:#198754; --warn:#ffc107; }
* { box-sizing:border-box; }
body { margin:0; font-family:Arial, Helvetica, sans-serif; background:var(--bg); color:var(--text); }
.topbar { background:#101828; color:white; padding:14px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.brand { display:flex; align-items:center; }
.brand img { height:42px; width:auto; display:block; }
.nav a { color:white; text-decoration:none; margin-left:16px; font-size:14px; }
.container { max-width:1200px; margin:24px auto; padding:0 16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; box-shadow:0 4px 14px rgba(16,24,40,.04); margin-bottom:18px; }
.grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.metric { font-size:28px; font-weight:700; }
.muted { color:var(--muted); }
.btn { background:var(--brand); color:white; padding:10px 14px; border-radius:9px; border:0; text-decoration:none; display:inline-block; cursor:pointer; }
.btn.secondary { background:#475467; }
.btn.danger { background:var(--danger); }
input, select, textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:9px; margin:6px 0 14px; background:white; }
textarea { min-height:120px; }
table { width:100%; border-collapse:collapse; background:white; }
th, td { padding:12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { background:#f9fafb; font-size:13px; color:#475467; }
.badge { padding:5px 8px; border-radius:99px; font-size:12px; background:#eef2ff; display:inline-block; }
.badge.danger { background:#fee2e2; color:#991b1b; }
.badge.ok { background:#dcfce7; color:#166534; }
.badge.warn { background:#fef3c7; color:#92400e; }
.notice { background:#ecfdf3; border:1px solid #abefc6; padding:12px; border-radius:9px; margin-bottom:14px; }
.error { background:#fef3f2; border:1px solid #fecdca; padding:12px; border-radius:9px; margin-bottom:14px; }
.comment { border-left:4px solid #d0d5dd; padding:12px; background:#f9fafb; margin-bottom:10px; border-radius:8px; }
.comment.ai { border-color:#7c3aed; }
@media (max-width: 800px) { .grid { grid-template-columns:1fr 1fr; } .topbar { align-items:flex-start; } .nav a { display:inline-block; margin:6px 10px 0 0; } }

.login-logo { text-align:center; margin-bottom:18px; }
.login-logo img { height:64px; width:auto; }
.app-subtitle { color:#667085; margin-top:-8px; margin-bottom:18px; }
