:root {
  --bg: #f1f5f9;
  --panel: #0e1627;
  --muted: #94a3b8;
  --accent: #4F46E5;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --border: #1f2937;
  --card: #0f172a;
  --glass: rgba(255,255,255,.04);
}
html,body{margin:0;height:100%;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:#0f172a}
.app{display:flex;min-height:100vh}
.sidebar{width:270px;background:linear-gradient(180deg,#f8fafc,#e2e8f0);border-right:1px solid #cbd5e1;color:#1f2937;padding:18px 14px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:10px 8px 16px;border-bottom:1px solid #cbd5e1;margin-bottom:12px}
.brand-meta p{margin:0;font-size:11px;color:#475569}
.nav-label{font-size:11px;color:#64748b;margin:12px 8px 6px}
.nav-sep{height:1px;background:#cbd5e1;margin:10px 0}
.nav-link{display:flex;align-items:center;gap:10px;color:#334155;text-decoration:none;padding:10px;border-radius:8px;margin:2px 4px;font-weight:600}
.nav-link:hover{background:#e2e8f0;color:#0f172a}
.nav-link.active{background:linear-gradient(135deg,rgba(79,70,229,.12),rgba(6,182,212,.10));color:#0f172a;border:1px solid rgba(79,70,229,.25)}
.content{flex:1;padding:16px}
.topbar{background:linear-gradient(180deg,#f8fafc,#e2e8f0);border:1px solid #cbd5e1;color:#0f172a;border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:5;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.icon-btn{background:#ffffff;border:1px solid #cbd5e1;color:#334155;border-radius:8px;padding:8px;cursor:pointer}
.icon-btn:hover{background:#f1f5f9}
.env-badge{background:#f8fafc;color:#64748b;border:1px solid #cbd5e1;border-radius:6px;padding:6px 8px;font-size:12px}
.section{display:none;margin-top:14px}
.section.active{display:block}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.grid+.card{margin-top:12px}
.grid.two{grid-template-columns:repeat(2,1fr)}
.card{background:#ffffff;border:1px solid #cbd5e1;border-radius:12px;padding:12px;color:#0f172a;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.card h3{margin:0;font-size:16px}
.quick-actions{display:flex;gap:8px;flex-wrap:wrap}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.filters label{font-size:12px;color:#475569}
.filters select,.filters input[type=date]{background:#ffffff;color:#0f172a;border:1px solid #cbd5e1;border-radius:6px;padding:6px 8px}
.btn{background:linear-gradient(135deg,#4F46E5,#06b6d4);border:none;color:#fff;border-radius:8px;padding:8px 12px;font-weight:700;cursor:pointer}
.btn:disabled{opacity:.6;cursor:not-allowed}
.stat{display:flex;flex-direction:column;gap:8px}
.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#64748b}
.stat-val{font-size:26px;font-weight:800}
.ok{color:var(--ok)}.warn{color:var(--warn)}
.subcard{background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;padding:10px}
.subhead{font-size:13px;color:#334155;margin-bottom:6px;font-weight:700}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #e2e8f0;padding:8px;text-align:left;font-size:12px;color:#334155}
.table th{color:#475569;background:#f1f5f9}
.muted{color:#64748b;text-align:center}
.placeholder{background:#f8fafc;border:1px dashed #cbd5e1;color:#64748b;border-radius:8px;padding:16px;text-align:center}
/* Topbar gradient override for desktop look */
.topbar{background:linear-gradient(180deg,#f8fafc,#e2e8f0)}
/* Desktop-like statusbar */
.statusbar{position:fixed;left:0;right:0;bottom:0;background:linear-gradient(#f8fafc,#e2e8f0);border-top:1px solid #cbd5e1;box-shadow:inset 0 1px #fff;display:flex;justify-content:space-between;align-items:center;padding:6px 10px;color:#334155;font-size:12px}
.status-right{display:flex;gap:14px}
.status-left{display:flex;gap:10px}
.logo{width:72px;height:72px;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#ffffff;border:1px solid #e2e8f0}
.logo img{width:100%;height:100%;object-fit:contain;display:block}