
:root{
  --bg:#0E1116;
  --card:#151A22;
  --ink:#EAF2F7;
  --muted:#9FB3C8;
  --accent:#19B36B;      /* Rooftop green */
  --accent-2:#3ED07F;
  --warn:#E9B949;
  --danger:#E76F51;
  --grid:#1E2530;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--grid);position:sticky;top:0;background:rgba(14,17,22,.9);backdrop-filter:saturate(120%) blur(6px);z-index:10}
.brand{display:flex;gap:12px;align-items:center}
.logo-img{height:36px;object-fit:contain;filter:invert(0)}
.brand-text h1{font-size:18px;margin:0 0 -2px 0}
.brand-text .tag{margin:0;color:var(--muted);font-size:12px}
.usernav button{margin-left:8px}
#whoami{margin-right:8px}
.wrap{display:flex;min-height:calc(100vh - 64px)}
.sidenav{width:220px;border-right:1px solid var(--grid);padding:10px;position:sticky;top:60px;height:calc(100vh - 60px);overflow:auto}
.navlink{display:block;padding:10px 12px;border-radius:8px;color:var(--ink);text-decoration:none;margin:4px 0}
.navlink:hover,.navlink.active{background:rgba(61,214,125,.12)}
main#app{flex:1;padding:20px}
.grid{display:grid;gap:12px}
.grid.cards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.card{background:var(--card);border:1px solid var(--grid);border-radius:12px;padding:16px}
.card h3{margin:0 0 8px 0}
.kpi{font-size:28px;font-weight:700;margin:4px 0}
.kpi.small{font-size:18px}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;border:1px solid var(--grid);color:var(--muted)}
.badge.ok{border-color:var(--accent);color:var(--accent)}
.badge.warn{border-color:var(--warn);color:var(--warn)}
.badge.danger{border-color:var(--danger);color:var(--danger)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--grid);padding:10px;text-align:left}
.table th{color:var(--muted);font-weight:600}
.table tr:hover{background:rgba(255,255,255,.02)}
.row{display:flex;gap:12px;flex-wrap:wrap}
.row .col{flex:1;min-width:260px}
.input,select,textarea{width:100%;padding:10px;border-radius:8px;border:1px solid var(--grid);background:#0b0e13;color:var(--ink);resize:vertical}
button{background:var(--accent);color:#00220f;border:none;border-radius:8px;padding:10px 12px;font-weight:700;cursor:pointer}
button.ghost{background:transparent;border:1px solid var(--grid);color:var(--ink)}
button.danger{border-color:var(--danger);color:var(--danger)}
button.link{background:transparent;border:none;text-decoration:underline;color:var(--ink);padding:0}
.small{font-size:12px;color:var(--muted)}
.footer{padding:16px;border-top:1px solid var(--grid);text-align:center}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#0b0e13;border:1px solid var(--grid);padding:4px 6px;border-radius:6px}

.splash{position:fixed;inset:0;background:rgba(12,16,22,.96);display:flex;align-items:center;justify-content:center;z-index:1000}
.splash-card{width:min(720px,92vw);background:var(--card);border:1px solid var(--grid);border-radius:14px;padding:20px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.splash-logo{height:48px;margin-bottom:8px}
.actions{margin-top:12px}
@media print{
  .sidenav,.topbar,.footer,.print-hide,.actions,.splash{display:none !important}
  body{background:#fff;color:#000}
  .card{border:1px solid #ddd}
}
