:root {
  --app-primary: #0b5cab;
  --app-dark: #152238;
  --app-bg: #f4f7fb;
}
body { background: var(--app-bg); color: #1f2937; }
.app-topbar { background: linear-gradient(90deg, #0b5cab, #123b78); box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.app-content { padding: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h1 { margin: 0; font-weight: 800; color: #0f172a; }
.page-header p { margin: 4px 0 0; color: #64748b; }
.stat-card, .panel-card, .table-card, .form-card {
  background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
}
.stat-card { border-left: 6px solid #0b5cab; min-height: 116px; }
.stat-label { color: #64748b; font-weight: 700; font-size: 14px; }
.stat-value { color: #0f172a; font-weight: 900; font-size: 34px; margin-top: 8px; }
.table-card { overflow-x: auto; padding: 10px 16px; }
.form-card { max-width: 1180px; }
.flow-list li { margin-bottom: 10px; }
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at top left, #dbeafe, transparent 35%), linear-gradient(135deg, #e8f1ff, #f8fafc);
}
.login-card { width: 940px; min-height: 520px; display: grid; grid-template-columns: 1fr 1.25fr; border-radius: 28px; overflow: hidden; background: #fff; }
.login-left { background: linear-gradient(145deg, #0b5cab, #14213d); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.login-left h1 { font-size: 46px; font-weight: 900; }
.login-left p { color: #dbeafe; font-size: 17px; }
.brand-badge { width: 92px; height: 92px; border-radius: 28px; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.14); font-weight:900; font-size: 24px; margin-bottom: 24px; }
.login-right { padding: 64px 72px; display: flex; flex-direction: column; justify-content: center; }
.login-right h2 { font-weight: 900; color: #0f172a; }
.btn-primary { background-color: var(--app-primary); border-color: var(--app-primary); }

.cartogram {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}
.carto-box {
  min-height: 96px;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dbeafe;
  color: #0f172a;
}
.carto-box strong { font-size: 15px; }
.carto-box span { font-size: 30px; font-weight: 900; margin-top: 6px; }
.level-0 { background: #f8fafc; }
.level-1 { background: #dbeafe; }
.level-2 { background: #bfdbfe; }
.level-3 { background: #93c5fd; }
.level-4 { background: #60a5fa; color: white; }
.level-5 { background: #1d4ed8; color: white; }
