* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1419;
  color: #e6e6e6;
}
header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #1f2730;
  position: relative;
}
header h1 {
  margin: 4px 0 2px;
  font-size: 24px;
}
.subtitle { margin: 0; color: #8a98a8; font-size: 14px; }
.back-link {
  color: #6aa3ff; text-decoration: none; font-size: 13px;
  position: absolute; top: 24px; right: 32px;
}
#status-bar { margin-top: 8px; font-size: 13px; color: #8a98a8; }
main { padding: 24px 32px; max-width: 1100px; margin: 0 auto; }

#auth-section { display: flex; gap: 8px; max-width: 420px; }
#auth-section input {
  flex: 1; padding: 10px 12px; background: #1a2330; border: 1px solid #2a3543;
  border-radius: 6px; color: #e6e6e6; font-size: 14px;
}
button {
  padding: 10px 16px; background: #2563eb; color: #fff; border: none;
  border-radius: 6px; cursor: pointer; font-size: 14px;
}
button:hover { background: #1d4ed8; }
button.secondary { background: #374151; }
button.secondary:hover { background: #4b5563; }
button.danger { background: #b91c1c; }

.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid #1f2730; margin-bottom: 16px;
}
.tab {
  background: none; color: #8a98a8; border-radius: 0;
  border-bottom: 2px solid transparent; padding: 10px 16px;
}
.tab.active { color: #e6e6e6; border-bottom-color: #2563eb; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.actions { display: flex; gap: 8px; margin-bottom: 12px; }

#status-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.status-card {
  background: #1a2330; border: 1px solid #2a3543; border-radius: 8px;
  padding: 14px; font-size: 13px;
}
.status-card .label { color: #8a98a8; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.status-card .value { font-size: 18px; margin-top: 4px; }
.value.good { color: #4ade80; }
.value.bad { color: #f87171; }

.row {
  background: #1a2330; border: 1px solid #2a3543; border-radius: 6px;
  padding: 10px 12px; margin-bottom: 6px; display: flex;
  justify-content: space-between; align-items: center; gap: 8px;
}
.row .meta { font-size: 12px; color: #8a98a8; }
.row .title { font-weight: 500; }
.row .text { color: #cdd6e0; font-size: 13px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }

.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.filters input { background: #1a2330; border: 1px solid #2a3543; color: #e6e6e6; padding: 6px 8px; border-radius: 4px; width: 80px; }

.toggle { display: flex; align-items: center; gap: 8px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #374151; }
.badge.on { background: #166534; }
.badge.off { background: #1f2937; }
