/**
 * Apple-style account dashboard on /account (signed-in).
 * Always light — dark mode is not used for the customer portal.
 */

.pdx-account-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  width: min(1120px, 100%);
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.04);
}

.pdx-account-sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f5f7;
}

.pdx-account-sidebar-user {
  padding: 6px 10px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.pdx-account-sidebar-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #1d1d1f;
}

.pdx-account-sidebar-email {
  font-size: 12px;
  color: #6e6e73;
  word-break: break-all;
}

.pdx-account-sidebar-status {
  margin-top: 6px;
  font-size: 12px;
  color: #6e6e73;
}

.pdx-account-nav-group {
  margin-bottom: 14px;
}

.pdx-account-nav-label {
  padding: 0 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86868b;
}

.pdx-account-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.pdx-account-nav-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.pdx-account-nav-btn.is-active {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  font-weight: 600;
}

.pdx-account-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pdx-account-signout {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  border-radius: 10px;
  font-size: 14px;
}

.pdx-account-main {
  min-width: 0;
  padding: 24px 28px 32px;
  overflow: auto;
  background: #ffffff;
}

.pdx-account-page-head {
  margin-bottom: 22px;
}

.pdx-account-page-title {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}

.pdx-account-page-lead {
  margin: 0;
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.45;
}

.pdx-account-card {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}

.pdx-account-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.pdx-account-field {
  margin-bottom: 12px;
}

.pdx-account-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}

.pdx-account-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #1d1d1f;
}

.pdx-account-main .pdx-portal-section {
  margin-bottom: 24px;
}

.pdx-account-main .pdx-portal-section h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #1d1d1f;
}

.pdx-account-main .pdx-portal-nav {
  display: none;
}

.pdx-account-main .pdx-portal-content {
  padding: 0;
}

@media (max-width: 900px) {
  .pdx-account-app {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pdx-account-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
  }

  .pdx-account-nav-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 4px;
  }

  .pdx-account-nav-label {
    grid-column: 1 / -1;
  }

  .pdx-account-main {
    padding: 18px 16px 28px;
  }
}
