:root {
  --new5-nav-bg: #1f3447;
  --new5-nav-border: rgba(222, 236, 249, 0.22);
  --new5-nav-pill-border: rgba(223, 237, 246, 0.72);
  --new5-nav-pill-bg: rgba(255, 255, 255, 0.08);
  --new5-nav-pill-hover: rgba(255, 255, 255, 0.2);
  --new5-sheet-bg: #24384c;
  --new5-sheet-label: #b7cee1;
  --new5-focus-ring: rgba(223, 237, 246, 0.45);
}

.new5-navbar {
  display: block;
  padding: 0;
  background: var(--new5-nav-bg) !important;
  border-bottom: 1px solid var(--new5-nav-border);
}

.new5-nav-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.new5-nav-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.new5-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--new5-nav-pill-border);
  color: #edf8ff;
  background: var(--new5-nav-pill-bg);
  text-decoration: none;
  padding: 0 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: rgba(237, 248, 255, 0.12);
}

.new5-nav-pill:hover,
.new5-nav-pill:focus {
  background: var(--new5-nav-pill-hover);
  border-color: rgba(239, 248, 255, 0.88);
  color: #fff;
  text-decoration: none;
}

.new5-nav-pill:focus {
  outline: none;
}

.new5-nav-pill:focus-visible {
  box-shadow: 0 0 0 2px var(--new5-focus-ring);
}

.new5-nav-readings {
  font-weight: 700;
  font-size: clamp(14px, 4vw, 17px);
  white-space: nowrap;
  max-width: 52vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new5-nav-account,
.new5-nav-menu-btn {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.new5-nav-menu-btn {
  appearance: none;
  line-height: 1;
  cursor: pointer;
}

.new5-nav-menu-btn .navbar-toggler-icon {
  display: none;
}

.new5-menu-sheet {
  width: 100%;
  box-sizing: border-box;
  background: var(--new5-sheet-bg);
  border-top: 1px solid rgba(225, 239, 249, 0.25);
  padding: 13px 12px 16px;
}

.new5-menu-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--new5-sheet-label);
}

.new5-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.new5-quick-card {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--new5-nav-pill-border);
  border-radius: 12px;
  color: #f5fbff;
  background: var(--new5-nav-pill-bg);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: rgba(237, 248, 255, 0.12);
}

.new5-quick-card:link,
.new5-quick-card:visited,
.new5-quick-card:hover,
.new5-quick-card:focus {
  color: #f5fbff;
}

.new5-quick-card strong {
  font-size: 14px;
  line-height: 1.2;
  color: #f5fbff;
}

.new5-quick-card span {
  font-size: 12px;
  line-height: 1.35;
  color: #d5e6f5;
}

.new5-quick-card:hover,
.new5-quick-card:focus {
  text-decoration: none;
  background: var(--new5-nav-pill-hover);
  border-color: rgba(239, 248, 255, 0.88);
}

.new5-quick-card:focus {
  outline: none;
}

.new5-quick-card:focus-visible {
  box-shadow: 0 0 0 2px var(--new5-focus-ring);
}

.new5-menu-links {
  display: grid;
  gap: 8px;
}

.new5-menu-links a {
  color: #f5fbff;
  border: 1px solid var(--new5-nav-pill-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.3;
  background: var(--new5-nav-pill-bg);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: rgba(237, 248, 255, 0.12);
}

.new5-menu-links a:hover,
.new5-menu-links a:focus {
  text-decoration: none;
  background: var(--new5-nav-pill-hover);
  border-color: rgba(239, 248, 255, 0.88);
}

.new5-menu-links a:focus {
  outline: none;
}

.new5-menu-links a:focus-visible {
  box-shadow: 0 0 0 2px var(--new5-focus-ring);
}

.new5-menu-logout {
  display: inline-flex;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--new5-nav-pill-border);
  border-radius: 999px;
  color: #f5fbff;
  background: var(--new5-nav-pill-bg);
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: rgba(237, 248, 255, 0.12);
}

.new5-menu-logout:hover,
.new5-menu-logout:focus {
  text-decoration: none;
  background: var(--new5-nav-pill-hover);
  border-color: rgba(239, 248, 255, 0.88);
  color: #fff;
}

.new5-menu-logout:focus {
  outline: none;
}

.new5-menu-logout:focus-visible {
  box-shadow: 0 0 0 2px var(--new5-focus-ring);
}

.new5-menu-logout-icon {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
  transform: translateY(-0.5px);
}

@media (min-width: 640px) {
  .new5-nav-main {
    padding: 10px 18px;
  }

  .new5-menu-sheet {
    padding: 13px 18px 18px;
  }

  .new5-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new5-nav-readings {
    max-width: none;
  }
}
