:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #667085;
    --border: #d8dee8;
    --primary: #1f5eff;
    --primary-dark: #1647bf;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 10px 30px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
h2 { margin: 0 0 8px; font-size: 20px; }
h3 { margin: 0 0 12px; font-size: 16px; }
p { margin: 0 0 12px; color: var(--muted); }
.mt-16 { margin-top: 16px; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.center { justify-content: center; }
.btn { border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 700; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #eef2ff; color: #243b80; }
.btn-sm { padding: 7px 10px; font-size: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-cols { grid-template-columns: 1fr 1.4fr; }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin: 8px 0; font-size: 22px; }
.stat-card small { color: var(--muted); }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { color: var(--success); background: #dcfae6; }
.muted-badge { color: var(--muted); background: #f2f4f7; }
.toast-root { position: fixed; right: 20px; top: 20px; z-index: 9999; display: grid; gap: 10px; }
.toast { padding: 12px 14px; border-radius: 10px; color: white; min-width: 280px; box-shadow: var(--shadow); animation: slide-in .15s ease-out; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: #175cd3; }
@keyframes slide-in { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #eef2ff, #f8fafc); }
.login-card { width: min(420px, calc(100vw - 32px)); background: white; border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: white; font-weight: 900; }
.brand-title { font-weight: 900; }
.brand-subtitle { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) { .cards-4, .two-cols { grid-template-columns: 1fr; } }

.hidden { display: none !important; }

.inline-panel {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.account-card {
    max-width: 560px;
}