/* Shared chrome for auth / navigation */
.mpp-chrome {
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
  background: #0a5c2e;
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  box-shadow: 0 4px 20px rgba(10, 92, 46, 0.2);
}

.mpp-budget-page .mpp-chrome {
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: none;
}

.mpp-chrome__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  margin-top: 50px;
  gap: 1rem;
  flex-wrap: wrap;
}

.mpp-chrome__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.mpp-chrome__title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.mpp-chrome__tagline {
  font-size: 0.72rem;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.mpp-chrome__nav {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.mpp-chrome__nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.mpp-chrome__nav a:hover {
  text-decoration: underline;
}

.mpp-chrome__auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mpp-chrome__user {
  font-size: 0.8rem;
  opacity: 0.9;
}

.mpp-chrome__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  text-decoration: none;
}

.mpp-chrome__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.mpp-chrome__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.mpp-chrome__btn:active {
  transform: translateY(1px);
}

.mpp-chrome__btn--primary {
  background: #fff;
  color: #0a5c2e;
  border-color: #fff;
}

.mpp-chrome__btn--primary:hover {
  background: #f0fbf2;
  border-color: #f0fbf2;
  color: #0a5c2e;
}

.mpp-budget-page .mpp-chrome__btn--primary {
  color: #111;
}

.mpp-chrome__notice {
  padding: 0.45rem 1.25rem 0.65rem;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.mpp-chrome__notice--ok {
  background: rgba(33, 160, 56, 0.35);
}

.mpp-chrome__notice[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .mpp-chrome__nav {
    margin-left: 0;
    width: 100%;
  }
  .mpp-chrome__tagline {
    max-width: 100%;
  }
}
