/* Self-hosted so the panel works on a locked-down network and has no CDN dependency. */
:root {
  --bg: #0b0e13; --surface: #141922; --surface-2: #1d2430;
  --border: #2a3441; --text: #e8ecf3; --muted: #9aa4b5;
  --primary: #4c8dff; --up: #16c784; --down: #ea3943; --warn: #f5a623;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex: 0 0 216px; background: var(--surface);
  border-right: 1px solid var(--border); padding: 20px 0;
}
.brand { padding: 0 20px 18px; font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.nav a {
  display: block; padding: 9px 20px; color: var(--muted); font-weight: 500;
  border-left: 3px solid transparent;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); border-left-color: var(--primary); }
.main { flex: 1; padding: 24px 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 15px; margin: 26px 0 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.card .label { color: var(--muted); font-size: 12px; }
.card .value { font-size: 22px; font-weight: 700; margin-top: 3px; }
.card .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: rgba(22,199,132,0.14); color: var(--up); }
.pill.bad { background: rgba(234,57,67,0.14); color: var(--down); }
.pill.warn { background: rgba(245,166,35,0.14); color: var(--warn); }
input, select, button { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 10px; width: 100%;
}
button, .btn {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 8px 14px; font-weight: 600; cursor: pointer;
}
button.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters input, .filters select { width: auto; min-width: 150px; }
.notice { background: rgba(76,141,255,0.12); border: 1px solid rgba(76,141,255,0.3); color: var(--text); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.error { background: rgba(234,57,67,0.12); border: 1px solid rgba(234,57,67,0.35); color: var(--down); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.login { max-width: 360px; margin: 12vh auto; }
.pagination { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.pagination a:hover { background: var(--surface-2); }
.pagination .disabled { color: var(--muted); opacity: 0.5; }
.pagination .summary { background: none; border: none; color: var(--muted); padding: 6px 2px; }
/* Belt and braces: nothing in the panel should ever render a page-sized icon. */
.pagination svg { width: 14px; height: 14px; }
