/* Базовый стиль сайта — минимально, без зависимостей */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: rgba(0,0,0,.08);
  --primary: #2563eb;
  --primary-text: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: rgba(0,0,0,.05); padding: 1px 6px;
  border-radius: 4px; font-size: .9em;
}

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

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary); color: var(--primary-text);
  border-radius: 8px; font-weight: 600; border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: .92; }

/* Centered login */
.centered {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 20px;
}
.card {
  max-width: 420px; width: 100%;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 28px; text-align: center;
}
.card h1 { margin: 0 0 10px; font-size: 22px; }
.tg-widget { margin: 24px 0; }

/* App layout */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar .brand { font-weight: 700; }
.topbar nav a { margin-left: 16px; }

.container {
  max-width: 960px; margin: 0 auto; padding: 24px;
}

/* Tables */
.grid {
  width: 100%; border-collapse: collapse; margin-top: 16px;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.grid th, .grid td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.grid th { background: rgba(0,0,0,.03); font-weight: 600; }
.grid tr:last-child td { border-bottom: none; }
.grid td:first-child { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Status badges in table */
.ok-badge  { color: #16a34a; font-weight: 600; }
.err-badge { color: #dc2626; font-weight: 600; }

/* Responsive table */
@media (max-width: 600px) {
  .grid { font-size: 12px; }
  .grid th, .grid td { padding: 7px 8px; }
  .topbar nav a { margin-left: 10px; }
}
