*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: #00091E;
  color: #FFFFFF;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 6px;
  background: #FFFFFF;
  color: #00091E;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  padding: 16px 16px 0 88px;
  height: 64px;
  background: #00091E;
}
.navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 24px;
  flex-shrink: 0;
}
.navbar .logo img { width: 30px; height: 28px; object-fit: contain; }
.nav-tabs {
  display: flex;
  gap: 0;
  list-style: none;
  height: 48px;
  align-items: stretch;
  position: relative;
}
.nav-tabs li { display: flex; }
.nav-tabs .nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #CCCCCC;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
  white-space: nowrap;
}
.nav-tabs .nav-tab:hover { color: #FFFFFF; }
.nav-tabs .nav-tab:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -4px;
}
.nav-tabs .nav-tab.active {
  color: #009BFF;
  border-bottom-color: #009BFF;
}
.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 155, 255, 0.5);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 14px;
  color: #CCCCCC;
}
.nav-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66BB6A;
}
/* "Last sync" indicator, right-aligned to the modal container's right edge
   (page-container is max-width 1200px + 24px padding, centered).
   Navbar itself has 16px right padding, so subtract that to land on the
   page-container's right edge. */
.last-sync {
  margin-left: auto;
  margin-right: max(8px, calc((100vw - 1200px) / 2 + 8px));
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #CCCCCC;
  white-space: nowrap;
  user-select: none;
}
.last-sync .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66BB6A;
  box-shadow: 0 0 6px rgba(102, 187, 106, 0.6);
}

/* --- Page container --- */
.page-container {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.page-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.167;
}
.page-subtitle {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 32px;
}
.noscript-notice {
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #CCCCCC;
}
.noscript-notice strong { color: #FFFFFF; }

/* --- Tab sections --- */
.tab-section { display: none; }
.tab-section.active { display: block; }
