* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #0b0d10; color: #e8eaed;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%; font-size: 14px;
}

header {
  position: sticky; top: 0; z-index: 10;
  padding: 10px 14px; background: #11141a;
  border-bottom: 1px solid #1f2630;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #8b94a3; gap: 8px;
}
header .meta { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
header .meta .ts { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.refresh {
  color: #6db7ff; background: transparent; border: 1px solid #2a323d;
  border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.refresh:active { background: #1a2230; }
.refresh:disabled { opacity: 0.5; cursor: default; }

.pill {
  padding: 2px 6px; border-radius: 4px; font-size: 10px;
  font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.pill.fresh { background: #1e7e34; color: #d4edda; }
.pill.stale { background: #a36a00; color: #fff3cd; }
.pill.alarm { background: #721c24; color: #f8d7da; }
.pill.loading { background: #004085; color: #cce5ff; }

.alarm-banner {
  background: #4a1418; color: #f8d7da;
  padding: 6px 14px; font-size: 11px; text-align: center;
  border-bottom: 1px solid #5a1e22;
}

#error .err {
  background: #2b1010; color: #ff9b9b; border-bottom: 1px solid #3a1818;
  padding: 8px 14px; font-size: 12px;
}

#signin { padding: 32px 16px; display: flex; justify-content: center; }
.signin-card {
  background: #141821; border: 1px solid #1f2630; border-radius: 12px;
  padding: 24px; max-width: 360px; text-align: center;
}
.signin-card h2 { margin: 0 0 8px 0; font-size: 18px; }
.signin-card p { font-size: 13px; color: #b6bdca; line-height: 1.5; margin: 8px 0; }
.signin-card .hint { font-size: 11px; color: #8b94a3; margin-top: 14px; }
.primary {
  background: #1a73e8; color: white; border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  margin: 12px 0 4px 0;
}
.primary:active { background: #1557b0; }

.wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse; font-variant-numeric: tabular-nums;
  font-size: 13px; width: max-content; min-width: 100%;
  transition: opacity 0.15s ease-out;
}
table.loading { opacity: 0.5; }
td {
  padding: 6px 10px; border-bottom: 1px solid #161a22; white-space: nowrap;
  color: #e8eaed;
}
tbody tr:first-child td { font-weight: 600; background: #141821; }

footer {
  padding: 8px 14px; font-size: 10px; color: #8b94a3;
  text-align: center; border-top: 1px solid #1f2630;
}
