:root {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-polar: #0284c7;
  --accent-ice: #38bdf8;
  --border-color: #e2e8f0;
  --nav-bg: #091728;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; width: 100%; }
header {
  background: var(--nav-bg);
  color: #fff;
  border-bottom: 2px solid var(--accent-polar);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
.logo img { width: 32px; height: 32px; }
nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 18px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.station-widget {
  background: linear-gradient(135deg, #0b192c, #1e3e62);
  color: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.station-info h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-ice);
  margin-bottom: 2px;
}
.station-info p { font-size: 13px; color: #cbd5e1; }
.station-telemetry { display: flex; gap: 14px; }
.telemetry-item {
  text-align: center;
  background: rgba(255,255,255,0.07);
  padding: 6px 12px;
  border-radius: 8px;
}
.telemetry-val { font-size: 16px; font-weight: 700; color: #fff; }
.telemetry-lbl { font-size: 11px; color: #94a3b8; text-transform: uppercase; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--accent-polar); color: var(--accent-polar); }
.filter-btn.active { background: var(--accent-polar); color: #fff; border-color: var(--accent-polar); }
main { flex: 1; padding-bottom: 40px; }
.hero { width: 100%; border-radius: 10px; margin: 20px 0 10px; display: block; }
h1 { font-size: 26px; color: var(--nav-bg); margin-bottom: 6px; }
.meta { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card img { width: 56px; height: 56px; flex: none; }
.card-content { flex: 1; }
.card-tags { display: flex; gap: 6px; margin-bottom: 6px; }
.tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.card h2 { font-size: 18px; color: var(--nav-bg); margin-bottom: 6px; }
.card p { color: var(--text-secondary); font-size: 14.5px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 14px; }
th { background: #f1f5f9; color: var(--nav-bg); font-weight: 600; }
tr:last-child td { border-bottom: none; }
footer { background: #fff; border-top: 1px solid var(--border-color); padding: 20px 0; color: var(--text-muted); font-size: 12.5px; text-align: center; }
