/* Product workspace shell overrides.
   Width follows landing `.container` / `--container` (1240px), not a cinema layout. */

.product-page .header-inner {
  min-height: 66px;
  padding: 8px 0;
}

.product-page .brand-copy,
.product-page .brand-shell {
  gap: 0;
}

.product-page .brand {
  font-size: 28px;
}

.product-page .brand-subtitle {
  display: none;
}

.product-page .site-nav {
  gap: 10px;
  flex-wrap: nowrap;
}

.product-balance-link,
.product-login-link,
.account-menu-trigger {
  min-height: 42px;
  border-radius: 12px;
  font-family: "Inter", var(--font-ui);
  font-size: 14px;
  font-weight: 650;
}

.product-balance-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.product-balance-link:hover {
  border-color: rgba(83, 183, 255, 0.34);
  background: rgba(83, 183, 255, 0.12);
}

.product-balance-icon {
  color: #65c1ff;
  flex: 0 0 auto;
}

.product-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.product-login-link:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.13);
}

.account-menu {
  position: relative;
}

.account-menu > summary {
  list-style: none;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 56px;
  padding: 0 9px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.account-menu-trigger:hover,
.account-menu[open] .account-menu-trigger {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(83, 183, 255, 0.16);
  color: #8ed2ff;
}

.account-menu-caret {
  opacity: 0.72;
  transition: transform 0.16s ease;
}

.account-menu[open] .account-menu-caret {
  transform: rotate(180deg);
}

.account-menu-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid rgba(38, 58, 92, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 24, 50, 0.18);
  color: var(--text);
}

.account-menu-identity {
  overflow: hidden;
  padding: 10px 11px 9px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #18365b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-item:hover {
  background: #f2f6fb;
}

.account-menu-divider {
  height: 1px;
  margin: 5px 7px;
  background: rgba(38, 58, 92, 0.1);
}

.account-menu-form {
  margin: 0;
}

.account-menu-logout {
  color: #9b3f3b;
}

.product-balance-link:focus-visible,
.product-login-link:focus-visible,
.account-menu-trigger:focus-visible,
.account-menu-item:focus-visible {
  outline: 3px solid rgba(83, 183, 255, 0.42);
  outline-offset: 2px;
}

.pp-dashboard-heading {
  display: grid;
  gap: 7px;
  padding: 6px 2px 0;
}

.pp-dashboard-heading .pp-page-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.1vw, 1.85rem);
  line-height: 1.15;
}

.pp-dashboard-heading .pp-page-lead {
  max-width: 720px;
  margin: 0;
  color: #607792;
  font-size: 0.96rem;
  line-height: 1.55;
}

#pp-dashboard-note[hidden] {
  display: none;
}

body[data-authenticated="false"] #pp-dashboard-note {
  padding: 17px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 38, 74, 0.05);
}

body[data-authenticated="false"] #pp-dashboard-note .pp-note-copy {
  gap: 4px;
}

body[data-authenticated="false"] #pp-dashboard-note p {
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 880px) {
  .product-page .header-inner {
    min-height: 64px;
    padding: 7px 0;
  }
}

@media (max-width: 560px) {
  .product-page .header-inner {
    min-height: 60px;
    padding: 8px 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .product-page .brand {
    font-size: 22px;
  }

  .product-page .site-nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .product-balance-link {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .product-balance-icon,
  .account-menu-caret {
    display: none;
  }

  .account-menu-trigger {
    min-width: 42px;
    min-height: 38px;
    padding: 0 5px;
  }

  .account-avatar {
    width: 28px;
    height: 28px;
  }

  .product-login-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .pp-dashboard-heading .pp-page-title {
    font-size: 1.5rem;
  }
}
