/* personalize
   Hub, Money Mood, Commitment Streak and Complete Profile questions.
   Measurements from Figma 18721:118642, 18744:119249, 18744:119474,
   18772:119908 and 18835:147214 / 148057 / 148220 / 148468. */

.pz-back {
  background: none;
  border: none;
  padding: 0;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.pz-title {
  margin: 0 0 40px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-heading {
  margin: 0 0 40px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-card {
  background: var(--navy-card);
  border-radius: 12px;
}

.pz-muted {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.pz-placeholder {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.pz-placeholder p {
  margin: 0;
  color: var(--light-gray);
}

.pz-placeholder-link {
  color: var(--link-green);
  font-weight: 500;
}

/* --- Hub --- */

.pz-todo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pz-todo-label {
  margin: 0;
  color: var(--gold);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-todo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 25px;
  background: var(--navy-card);
  border: 1px solid var(--figma-green);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.pz-hub-cards {
  display: flex;
  gap: 16px;
  align-items: stretch;
  /* ul reset (the hub cards are a list for screen readers) */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each li takes the card's old flex slot; the card fills it. */
.pz-hub-cards > li {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
}

.pz-hub-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
  color: var(--white);
  text-decoration: none;
}

.pz-hub-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pz-hub-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-hub-card-foot {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.pz-hub-card-foot.inline {
  align-items: center;
  justify-content: space-between;
}

.pz-hub-card-desc {
  flex: 1 0 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

/* --- Money Mood --- */

.pz-mood-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 960px;
  max-width: 100%;
  padding: 32px 15px;
  box-sizing: border-box;
}

.pz-mood-current,
.pz-mood-recap {
  flex: 1 0 0;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pz-mood-current {
  gap: 16px;
}

.pz-mood-face-empty {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy-border);
}

.pz-mood-label {
  width: 100%;
  text-align: center;
}

.pz-mood-caption {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

.pz-mood-name {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-mood-phrase {
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--navy-border);
}

.pz-mood-phrase p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.pz-mood-recap {
  gap: 24px;
}

.pz-recap-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pz-recap-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pz-recap-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--figma-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pz-recap-title {
  margin: 0;
  color: var(--link-green);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-divider {
  height: 1px;
  background: var(--navy-border);
}

.pz-recap-insight {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--navy-card-secondary);
  border-radius: 8px;
}

.pz-recap-insight-head {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-recap-insight-head span:first-child {
  flex: 1;
}

.pz-recap-tag {
  padding: 4px 12px;
  border-radius: 40px;
  background: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.pz-recap-amount {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pz-recap-amount .value {
  color: var(--link-green);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-recap-amount .label {
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

.pz-recap-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

/* Mobile's recap chart is display-only (touch disabled); the scaled values
   would make tooltips meaningless. */
.pz-recap-chart {
  width: 100%;
  pointer-events: none;
}

/* Loading stand-in for the insight + chart + key stack. */
.pz-mood-recap > .groove-skeleton {
  width: 100%;
}

.pz-recap-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pz-recap-key {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.pz-recap-key-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--light-gray);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.pz-recap-key-item .marker {
  width: 12px;
  padding: 4px 0;
  display: flex;
  gap: 2px;
}

.pz-recap-key-item .swatch {
  flex: 1;
  height: 4px;
}

.pz-recap-key-item .swatch.half {
  border-radius: 1px;
  background: var(--navy-border);
}

/* --- Commitment Streak --- */

.pz-streak-card {
  width: 600px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.pz-streak-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pz-streak-number {
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

.pz-streak-number p {
  margin: 0;
}

.pz-streak-number .value {
  color: var(--gold);
  font-size: 80px;
}

.pz-streak-number .label {
  font-size: 16px;
}

.pz-challenge {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--navy-card-secondary);
  border-radius: 12px;
}

.pz-challenge-title {
  margin: 0;
  color: var(--link-green);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-challenge-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pz-challenge-dot {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 40px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
}

.pz-challenge-message {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

.pz-streak-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pz-streak-tab {
  width: 80px;
  height: 40px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 40px;
  cursor: pointer;
}

.pz-streak-tab.selected {
  background: var(--white);
}

.pz-streak-tab-icon {
  width: 18px;
  height: 18px;
  background: var(--white);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.pz-streak-tab.selected .pz-streak-tab-icon {
  background: var(--navy-mid);
}

.pz-history {
  width: 100%;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.pz-history-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.pz-cal {
  width: 428px;
  max-width: 100%;
}

.pz-cal-head {
  height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-cal-head span {
  flex: 1;
  text-align: center;
}

.pz-cal-nav {
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
}

.pz-cal-weekdays {
  height: 30px;
  display: flex;
  background: var(--navy-card-secondary);
  border-radius: 8px;
}

.pz-cal-weekdays span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.4;
}

.pz-cal-row {
  height: 41.33px;
  display: flex;
}

.pz-cal-cell {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.pz-cal-cell img {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Navy band joining consecutive streak days in a week row. */
.pz-cal-cell.left::before,
.pz-cal-cell.right::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 40px;
  width: 50%;
  transform: translateY(-50%);
  background: var(--navy-mid);
}

.pz-cal-cell.left::before {
  left: 0;
}

.pz-cal-cell.right::after {
  right: 0;
}

/* --- Complete Profile questions --- */

.pz-progress {
  position: relative;
  height: 4px;
  margin-bottom: 40px;
  border-radius: 8px;
  background: var(--navy-card-secondary);
}

.pz-progress-fill {
  height: 4px;
  border-radius: 8px;
  background: #D0AA62;
}

.pz-question {
  width: 750px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 40px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pz-question-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pz-question-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.pz-question-subtitle {
  margin: 0;
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
}

.pz-question-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pz-question-section.goals {
  gap: 16px;
}

.pz-question-section.field {
  gap: 8px;
}

.pz-question-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.pz-question-hint {
  margin: 0;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.4;
}

.pz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pz-chip {
  padding: 7px 15px;
  background: var(--navy-card-secondary);
  border: 1px solid var(--navy-border);
  border-radius: 40px;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}

.pz-chip.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-mid);
}

.pz-input {
  height: 40px;
  box-sizing: border-box;
  padding: 8px;
  background: var(--navy-card-secondary);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 25px;
  outline: none;
}

.pz-input:focus {
  border-color: var(--gold);
}

.pz-error {
  margin: 0;
  color: #C96B67;
  font-size: 12px;
}

.pz-primary {
  width: 342px;
  max-width: 100%;
  height: 40px;
  padding: 8px 24px;
  background: var(--white);
  border: 1px solid var(--navy-border);
  border-radius: 40px;
  color: var(--navy-mid);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
  cursor: pointer;
}

.pz-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

/* --- Reflow (WCAG 1.4.10): desktop (>=1024px) unchanged --- */

@media (max-width: 767.98px) {
  .pz-hub-cards,
  .pz-mood-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pz-mood-row {
    padding: 24px 0;
  }

  .pz-streak-card,
  .pz-question {
    padding: 24px;
    gap: 32px;
  }

  .pz-todo-cta {
    padding: 16px;
    gap: 8px;
  }
}

@media (max-width: 479.98px) {
  .pz-streak-card,
  .pz-question {
    padding: 16px;
  }

  /* 7 x 40px streak icons don't fit a 320px column; let them shrink. */
  .pz-cal-cell {
    min-width: 0;
  }

  .pz-cal-cell img {
    width: 100%;
    max-width: 40px;
    height: auto;
  }
}
