:root {
  --bg: #07070a;
  --panel: #0d0d12;
  --text: #f2f0ec;
  --muted: #b8b6b0;
  --accent: #ff6b35;
  --lime: #d5f5a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

h1, h2, p { margin: 0; }

.page {
  max-width: 1228px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

main { display: flex; flex-direction: column; gap: 28px; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Header */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.header p { font-size: 15px; margin-top: 4px; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.status.error .dot { background: var(--accent); }

.badge-outline {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
}
.badge-live {
  font-size: 12px;
  font-weight: 600;
  color: #16240a;
  background: var(--lime);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  font: 600 14px Inter, sans-serif;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.btn:hover { background: #ff8a5e; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 250px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h2 { font-size: 14px; font-weight: 500; color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.big { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.card-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sub { font-size: 18px; font-weight: 600; }
.split { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.split strong { font-weight: 600; color: var(--text); }
.split strong.accent { color: var(--accent); }

.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--lime); }

.ticket-extra { margin-top: 6px; }
.ticket-extra strong { font-weight: 600; color: var(--text); }

/* Support tickets by category */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.panel-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

.notice {
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
}

.tiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.tile {
  flex: 1 1 140px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile dt { font-size: 13px; color: var(--muted); }
.tile dd { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.tile-alert { border-color: var(--accent); }
.tile-alert dd { color: var(--accent); }

.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody th, tbody td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th.num, td.num { text-align: right; }
td.num { font-weight: 600; font-variant-numeric: tabular-nums; }
td.never { color: var(--muted); }
.row-alert td.never { color: var(--accent); }
.row-critical { background: rgba(255, 107, 53, 0.12); }
.row-high { background: rgba(255, 107, 53, 0.05); }

.tag {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.tag-critical { color: var(--bg); background: var(--accent); }
.tag-high { color: var(--accent); border: 1px solid var(--accent); }
