:root {
  --sidebar: #10222a;
  --ink: #14202b;
  --muted: #667787;
  --paper: #f4f1ea;
  --card: #fffdf8;
  --line: #e4ddd0;
  --accent: #c9842a;
  --teal: #1f6f6a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "IBM Plex Sans", sans-serif; background: var(--paper); color: var(--ink); }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; background: var(--sidebar); color: #e8efe9; padding: 22px 16px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #1b1408; font-weight: 700; display: grid; place-items: center; }
.brand small { display: block; opacity: .7; }
.app-sidebar nav a { display: block; color: #d7e2dc; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.app-sidebar nav a.active, .app-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-user { margin-top: auto; font-size: 13px; opacity: .85; }
.sidebar-user a, .linkish { color: #f0d9ad; background: none; border: 0; padding: 0; text-decoration: none; }
.app-main { margin-left: 230px; padding: 24px 28px 48px; }
.app-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.app-top h1 { font-size: 26px; margin: 0; }
.muted { color: var(--muted); margin: 0; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi, .card-soft { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { display: block; font-size: 22px; margin-top: 6px; }
.delta.up { color: #1f7a4d; } .delta.down { color: #b42318; }
.badge-temp, .badge-sev, .badge-stag, .health-chip { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.temp-frio { background: #dbeafe; color: #1d4ed8; }
.temp-morno { background: #fef3c7; color: #b45309; }
.temp-quente { background: #ffedd5; color: #c2410c; }
.temp-muito { background: #fee2e2; color: #b91c1c; }
.temp-na { background: #e5e7eb; color: #4b5563; }
.sev-info { background: #e0f2fe; color: #075985; }
.sev-attention { background: #fef3c7; color: #92400e; }
.sev-important { background: #ffedd5; color: #9a3412; }
.sev-critical { background: #fee2e2; color: #991b1b; }
.stag-active { background: #dcfce7; color: #166534; }
.stag-attention { background: #fef9c3; color: #854d0e; }
.stag-stalled { background: #ffedd5; color: #9a3412; }
.stag-critical { background: #fee2e2; color: #991b1b; }
.health-high { background: #dcfce7; color: #166534; }
.health-mid { background: #fef3c7; color: #92400e; }
.health-low { background: #fee2e2; color: #991b1b; }
.table thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.timeline { border-left: 3px solid #d9cbb3; margin-left: 10px; }
.tl-item { padding: 0 0 18px 18px; position: relative; }
.tl-item:before { content: ""; width: 11px; height: 11px; background: var(--accent); border-radius: 50%; position: absolute; left: -7px; top: 6px; }
.factor { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.factor.neg { color: #b42318; } .factor.pos { color: #1f7a4d; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: #10222a; }
.auth-card { width: 380px; background: #fffdf8; padding: 32px; border-radius: 18px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .app-sidebar { position: relative; width: auto; } .app-main { margin-left: 0; } }
