html {
  min-width: 320px;
}
body {
  margin: 0;
}
.topbar {
  border-bottom: 1px solid #ddd;
  background: #fafafa !important;
  color: #222 !important;
}
.nav-toolbar {
  gap: 22px;
  min-height: 48px !important;
  padding: 0 20px !important;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .025em;
}
.nav-links {
  display: flex;
  align-self: stretch;
  gap: 4px;
}
.nav-links .MuiButton-root {
  padding: 6px 12px;
  border-radius: 0;
}
.nav-links .active-nav {
  border-bottom: 2px solid #1565c0;
}
.locale-links {
  display: flex;
  margin-left: auto;
}
.locale-links .MuiButton-root {
  min-width: 34px;
}
.locale-links [aria-current="true"] {
  font-weight: 700;
  background: #e8eef5;
}
.page-content {
  padding: 18px 20px 24px;
}
.page-title {
  margin-bottom: 14px !important;
}
.compact-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.callsign-input {
  width: 240px;
}
.callsign-input input {
  font-family: Consolas, monospace;
  text-transform: uppercase;
}
.compact-form .MuiButton-root {
  min-height: 36px;
}
.archive-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 9px 0 13px;
  font-size: 12px;
  color: #555;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #757575;
}
.state-ready .status-dot {
  background: #2e7d32;
}
.state-unavailable .status-dot {
  background: #b71c1c;
}
.status-meta {
  color: #666;
  margin-left: 7px;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 7px;
  font-size: 12px;
  color: #555;
}
.data-table {
  border: 1px solid #ddd;
  border-radius: 2px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}
.results-table table {
  min-width: 1940px;
}
.statistics-table table {
  min-width: 1050px;
}
.results-table thead tr:first-child th {
  height: 36px;
}
.results-table .rank-subheading {
  top: 36px;
  height: 30px;
  font-size: 11px;
}
.rank-group {
  border-left: 1px solid #ddd;
}
.results-table tbody tr:nth-child(even),
.statistics-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.calculated-cell {
  background: rgb(21 101 192 / 3%);
}
.station-cell {
  font-weight: 600 !important;
}
.category-cell {
  max-width: 200px;
}
.mono {
  font-family: Consolas, "Liberation Mono", monospace !important;
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.breakable {
  overflow-wrap: anywhere;
}
.table-message {
  padding: 18px 10px !important;
  color: #666 !important;
}
.rank-note {
  display: block;
  margin-top: 7px !important;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
}
.metadata-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  margin: 0 0 18px;
}
.statistics-form .MuiTextField-root {
  min-width: 140px;
}
.statistics-form .MuiTextField-root:first-of-type {
  min-width: 210px;
}
.about-content {
  max-width: 960px;
}
.about-content section {
  margin-top: 20px;
}
.about-content .MuiTypography-subtitle1 {
  margin-bottom: 5px;
  font-weight: 500;
}
.about-content .data-table {
  max-height: none;
}
.site-footer {
  padding: 0 20px 12px;
}
.site-footer .MuiTypography-root {
  display: block;
  margin-top: 8px;
}
:focus-visible {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .nav-toolbar {
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 12px 0 !important;
  }
  .brand {
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  .locale-links {
    order: 1;
  }
  .nav-links {
    order: 2;
    width: 100%;
  }
  .nav-links .MuiButton-root {
    padding: 6px 10px;
  }
  .page-content {
    padding: 14px 12px 20px;
  }
  .compact-form {
    gap: 8px;
  }
  .compact-form > .MuiTypography-root {
    width: 100%;
    font-size: 12px;
  }
  .callsign-input {
    flex: 1;
    min-width: 170px;
  }
  .status-meta {
    margin-left: 0;
    width: 100%;
  }
  .data-table {
    max-height: 65vh;
  }
  .statistics-form .MuiTextField-root {
    flex: 1;
    min-width: 95px;
  }
  .statistics-form .MuiTextField-root:first-of-type {
    min-width: 160px;
  }
  .site-footer {
    padding-right: 12px;
    padding-left: 12px;
  }
}
