
:root {
  font-family: 'Inter', system-ui, sans-serif;
  color: #0f172a;
}
body { margin: 0; background: #f8fafc; }
header { background: #0f172a; color: #fff; padding: 20px; }
nav a {
  color: #cbd5f5;
  margin-right: 16px;
  text-decoration: none;
  font-weight: 600;
}
nav a.active {
  color: #fff;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 4px;
}
.mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.mode-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.mode-training { background: #e0f2fe; color: #0f172a; }
.mode-live { background: #fee2e2; color: #991b1b; }
.mode-select select { padding: 4px 6px; }
.container { padding: 24px; max-width: 1200px; margin: 0 auto; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.card-header { display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { margin: 0; font-size: 1rem; }
.badge-row { display: flex; gap: 8px; margin: 8px 0; }
.badge {
  display: inline-block;
  background: #e2e8f0;
  color: #1e293b;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.night { background: #c7d2fe; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.icon { font-size: 10px; }
.status-ok { background: #e0f2fe; color: #0f172a; }
.status-caution { background: #fef3c7; color: #92400e; }
.status-warning { background: #fee2e2; color: #991b1b; }
.status-unknown { background: #e5e7eb; color: #374151; }
.summary { background: #e0f2fe; border-radius: 12px; padding: 16px; }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table th,
.table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
.section { margin-top: 24px; }
.flag-list { margin: 8px 0; padding-left: 18px; }
.note { font-size: 13px; color: #475569; }
.result {
  margin-top: 12px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
}
footer { padding: 24px; text-align: center; font-size: 12px; color: #475569; }
input,
select {
  padding: 6px 8px;
  margin: 6px 8px 6px 0;
  max-width: 100%;
}
button {
  padding: 6px 10px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.urgency-amber { color: #b45309; font-weight: 700; }
.urgency-red { color: #b91c1c; font-weight: 700; }
.sparkline { width: 140px; height: 40px; }
.timeline { display: flex; gap: 12px; align-items: center; font-size: 12px; }
@media (max-width: 900px) {
  header { padding: 16px; }
  .container { padding: 16px; }
  .mode-row { flex-direction: column; align-items: flex-start; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .badge-row { flex-wrap: wrap; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .timeline { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  nav { display: flex; flex-direction: column; gap: 6px; }
  nav a { margin-right: 0; }
  input, select, button { width: 100%; }
  .grid { grid-template-columns: 1fr; }
}
