.fff-pd-shell {
  --fff-pd-bg: #f1e3c3;
  --fff-pd-surface: rgba(246, 234, 209, 0.88);
  --fff-pd-border: rgba(33, 50, 58, 0.18);
  --fff-pd-border-strong: rgba(33, 50, 58, 0.32);
  --fff-pd-text: #21323a;
  --fff-pd-muted: #3a4a50;
  --fff-pd-accent: #20384a;
  --fff-pd-accent-dark: #172b38;
  --fff-pd-soft: rgba(234, 215, 178, 0.9);
  --fff-pd-success: #5c7150;
  --fff-pd-warning: #a95d2b;
  --fff-pd-cool: #5d87a1;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--fff-pd-text);
}

.fff-pd-shell * {
  box-sizing: border-box;
}

.fff-pd-kicker,
.fff-pd-group__eyebrow {
  margin: 0 0 8px;
  color: var(--fff-pd-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fff-pd-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.fff-pd-lead,
.fff-pd-group__desc,
.fff-pd-card__summary,
.fff-pd-card__note,
.fff-pd-hero__activity {
  color: var(--fff-pd-muted);
}

.fff-pd-guest,
.fff-pd-hero,
.fff-pd-message {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1.5px solid var(--fff-pd-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(247, 237, 212, 0.96), rgba(241, 227, 195, 0.94));
  box-shadow: 4px 4px 0 rgba(33, 50, 58, 0.14);
}

.fff-pd-shell--guest .fff-pd-guest {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: start;
}

.fff-pd-benefits {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fff-pd-benefits li {
  padding: 14px 16px;
  border: 1px solid var(--fff-pd-border);
  border-radius: 18px;
  background: rgba(247, 237, 212, 0.76);
  font-weight: 600;
}

.fff-pd-guest__auth .fff-auth {
  margin: 0;
}

.fff-pd-guest__auth .fff-auth__card {
  box-shadow: none;
}

.fff-pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.fff-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--fff-pd-text);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 3px 3px 0 rgba(33, 50, 58, 0.16);
}

.fff-pd-btn:hover {
  transform: translateY(-1px);
}

.fff-pd-btn--primary {
  background: var(--fff-pd-accent);
  color: #f7edd4;
}

.fff-pd-btn--secondary {
  background: rgba(215, 173, 69, 0.88);
  border-color: var(--fff-pd-border-strong);
  color: var(--fff-pd-text);
}

.fff-pd-btn--ghost {
  background: transparent;
  border-color: var(--fff-pd-border);
  color: var(--fff-pd-muted);
}

.fff-pd-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
}

.fff-pd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fff-pd-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fff-pd-soft);
  color: var(--fff-pd-accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.fff-pd-account {
  padding: 20px;
  border: 1.5px solid var(--fff-pd-border);
  border-radius: 18px;
  background: rgba(247, 237, 212, 0.7);
}

.fff-pd-account__title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.fff-pd-account__list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.fff-pd-account__row {
  display: grid;
  gap: 4px;
}

.fff-pd-account__row dt {
  color: var(--fff-pd-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fff-pd-account__row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.fff-pd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.fff-pd-stat {
  padding: 18px;
  border: 1.5px solid var(--fff-pd-border);
  border-radius: 18px;
  background: var(--fff-pd-surface);
  box-shadow: 2px 2px 0 rgba(33, 50, 58, 0.1);
}

.fff-pd-stat__label {
  color: var(--fff-pd-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.fff-pd-stat__value {
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
}

.fff-pd-group {
  margin-top: 28px;
}

.fff-pd-group__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.fff-pd-group__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
}

.fff-pd-group__desc {
  margin: 8px 0 0;
  max-width: 720px;
}

.fff-pd-group__count {
  white-space: nowrap;
  color: var(--fff-pd-muted);
  font-weight: 700;
}

.fff-pd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.fff-pd-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 20px;
  border: 1.5px solid var(--fff-pd-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 237, 212, 0.96), rgba(241, 227, 195, 0.9));
  box-shadow: 4px 4px 0 rgba(33, 50, 58, 0.12);
}

.fff-pd-card--empty {
  background: rgba(247, 237, 212, 0.84);
}

.fff-pd-card__head {
  display: grid;
  justify-items: center;
  gap: 12px;
  align-items: start;
  text-align: center;
}

.fff-pd-card__title-wrap {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.fff-pd-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--fff-pd-soft);
  color: var(--fff-pd-accent);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.fff-pd-card__title {
  margin: 0;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(33, 50, 58, 0.3);
  border-radius: 18px;
  background: var(--fff-pd-accent);
  color: #fff7e5 !important;
  box-shadow: 3px 3px 0 rgba(33, 50, 58, 0.16);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.fff-pd-card__title a {
  color: inherit !important;
}

.fff-pd-card__summary {
  margin: 0;
  max-width: 30ch;
  font-size: 0.94rem;
  line-height: 1.58;
  text-align: center;
}

.fff-pd-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.fff-pd-card__status.is-hot {
  background: rgba(45, 106, 79, 0.12);
  color: var(--fff-pd-success);
}

.fff-pd-card__status.is-warm {
  background: rgba(161, 92, 23, 0.12);
  color: var(--fff-pd-warning);
}

.fff-pd-card__status.is-cool,
.fff-pd-card__status.is-empty {
  background: rgba(106, 111, 125, 0.12);
  color: var(--fff-pd-cool);
}

.fff-pd-card__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fff-pd-card__metric {
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(247, 237, 212, 0.7);
  border: 1px solid rgba(33, 50, 58, 0.12);
}

.fff-pd-card__metric dt {
  color: var(--fff-pd-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.fff-pd-card__metric dd {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.08;
}

.fff-pd-card__secondary {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.fff-pd-card__secondary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--fff-pd-muted);
  font-size: 0.92rem;
}

.fff-pd-card__secondary strong {
  color: var(--fff-pd-text);
  font-weight: 800;
  text-align: right;
}

.fff-pd-card__note {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
}

.fff-pd-message {
  text-align: left;
}

.fff-pd-auth-fallback {
  padding: 24px;
  border: 1.5px solid var(--fff-pd-border);
  border-radius: 18px;
  background: rgba(247, 237, 212, 0.88);
}

.fff-pd-auth-fallback h3 {
  margin: 0 0 8px;
}

.fff-pd-auth-fallback p {
  margin: 0;
  color: var(--fff-pd-muted);
}

.fff-pd-auth-fallback__social {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .fff-pd-shell--guest .fff-pd-guest,
  .fff-pd-hero,
  .fff-pd-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .fff-pd-guest,
  .fff-pd-hero,
  .fff-pd-message {
    padding: 22px;
    border-radius: 18px;
  }

  .fff-pd-group__head,
  .fff-pd-card__head,
  .fff-pd-card__secondary li {
    display: grid;
  }

  .fff-pd-card__highlights {
    grid-template-columns: 1fr;
  }

  .fff-pd-cards {
    grid-template-columns: 1fr;
  }
}

/* UI v2 profile surface: editorial list, no decorative card chrome. */
.fff-ui-v2 .fff-pd-shell {
  --fff-pd-bg: var(--fff-v2-paper, #f4f1e9);
  --fff-pd-surface: transparent;
  --fff-pd-border: rgba(29, 45, 62, .16);
  --fff-pd-border-strong: rgba(29, 45, 62, .3);
  --fff-pd-text: var(--fff-v2-ink, #1d2d3e);
  --fff-pd-muted: var(--fff-v2-muted, #68717a);
  --fff-pd-accent: var(--fff-v2-ink, #1d2d3e);
  --fff-pd-soft: rgba(181, 101, 59, .1);
  max-width: 1180px;
}

.fff-ui-v2 .fff-pd-guest,
.fff-ui-v2 .fff-pd-hero,
.fff-ui-v2 .fff-pd-message {
  border: 0;
  border-block: 1px solid var(--fff-pd-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fff-ui-v2 .fff-pd-benefits li,
.fff-ui-v2 .fff-pd-account,
.fff-ui-v2 .fff-pd-stat,
.fff-ui-v2 .fff-pd-auth-fallback,
.fff-ui-v2 .fff-pd-card__metric {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fff-ui-v2 .fff-pd-benefits li {
  border-inline: 0;
  border-block: 1px solid var(--fff-pd-border);
  font-weight: 600;
}

.fff-ui-v2 .fff-pd-btn,
.fff-ui-v2 .fff-pd-card__title {
  border-radius: 8px;
  box-shadow: none;
}

.fff-ui-v2 .fff-pd-card {
  border-inline: 0;
  border-block: 1px solid var(--fff-pd-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Dashboard release 1.2: one working surface, explicit actions, no card mosaic. */
.fff-ui-v2 .fff-pd-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-block: clamp(1rem, 2vw, 2rem) 5rem;
}

.fff-ui-v2 .fff-pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: 1rem 2rem;
  border-block: 1px solid var(--fff-pd-border);
}

.fff-ui-v2 .fff-pd-title {
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  letter-spacing: -0.045em;
}

.fff-ui-v2 .fff-pd-lead,
.fff-ui-v2 .fff-pd-hero__activity {
  max-width: 58ch;
  color: var(--fff-pd-muted);
}

.fff-ui-v2 .fff-pd-actions {
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.fff-ui-v2 .fff-pd-btn {
  min-height: 2.75rem;
  padding-inline: 0.9rem;
  border: 1px solid var(--fff-pd-border-strong);
  border-radius: 0.45rem;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.fff-ui-v2 .fff-pd-btn:hover,
.fff-ui-v2 .fff-pd-btn:focus-visible {
  transform: none;
  border-color: var(--fff-pd-accent);
}

.fff-ui-v2 .fff-pd-btn--primary {
  background: var(--fff-pd-accent);
  border-color: var(--fff-pd-accent);
  color: #fffdf8;
}

.fff-ui-v2 .fff-pd-btn--secondary {
  background: transparent;
  color: var(--fff-pd-text);
}

.fff-ui-v2 .fff-pd-btn--ghost {
  border-color: transparent;
}

.fff-ui-v2 .fff-pd-continue-note {
  margin: 0.8rem 0 0;
  color: var(--fff-pd-muted);
  font-size: 0.94rem;
}

.fff-ui-v2 .fff-pd-continue-note span {
  color: var(--fff-pd-accent);
  font-weight: 800;
}

.fff-ui-v2 .fff-pd-account {
  padding: 0;
  border: 0;
}

.fff-ui-v2 .fff-pd-account__title {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--fff-pd-border);
}

.fff-ui-v2 .fff-pd-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-block: 0.85rem;
  border-block: 1px solid var(--fff-pd-border);
}

.fff-ui-v2 .fff-pd-summary__label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--fff-pd-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fff-ui-v2 .fff-pd-summary__text {
  margin: 0;
  color: var(--fff-pd-muted);
  text-align: right;
}

.fff-ui-v2 .fff-pd-group {
  margin-top: 2.25rem;
}

.fff-ui-v2 .fff-pd-group__head {
  align-items: baseline;
  margin-bottom: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--fff-pd-border);
}

.fff-ui-v2 .fff-pd-group__title {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.fff-ui-v2 .fff-pd-group__count {
  font-size: 0.9rem;
  font-weight: 600;
}

.fff-ui-v2 .fff-pd-cards {
  display: block;
}

.fff-ui-v2 .fff-pd-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: 1rem 0;
}

.fff-ui-v2 .fff-pd-card__head {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.fff-ui-v2 .fff-pd-card__title-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-items: start;
  gap: 0.75rem;
}

.fff-ui-v2 .fff-pd-card__icon {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.45rem;
  border: 1px solid var(--fff-pd-border);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--fff-pd-accent);
  font-size: 0.7rem;
}

.fff-ui-v2 .fff-pd-card__title {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fff-pd-text) !important;
  box-shadow: none;
  font-size: 1.05rem;
  text-align: left;
}

.fff-ui-v2 .fff-pd-card__status {
  flex: 0 0 auto;
  min-height: 1.6rem;
  padding: 0;
  background: transparent;
  color: var(--fff-pd-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.fff-ui-v2 .fff-pd-card__highlights,
.fff-ui-v2 .fff-pd-card__secondary {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.fff-ui-v2 .fff-pd-card__metric {
  padding: 0.45rem 0.6rem;
  border: 0;
  border-left: 2px solid var(--fff-pd-soft);
  border-radius: 0;
  background: transparent;
}

.fff-ui-v2 .fff-pd-card__metric dd {
  margin-top: 0.25rem;
  font-size: 1rem;
}

.fff-ui-v2 .fff-pd-card__secondary {
  display: grid;
  margin: 0;
  padding: 0;
}

.fff-ui-v2 .fff-pd-card__secondary li {
  display: block;
  padding-left: 0.6rem;
  border-left: 2px solid var(--fff-pd-soft);
}

.fff-ui-v2 .fff-pd-card__secondary strong {
  display: block;
  margin-top: 0.25rem;
  text-align: left;
}

.fff-ui-v2 .fff-pd-card__footer {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: max-content;
}

.fff-ui-v2 .fff-pd-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  color: var(--fff-pd-accent);
  font-weight: 800;
  text-decoration: none;
}

.fff-ui-v2 .fff-pd-card__action:focus-visible {
  outline: 2px solid var(--fff-pd-accent);
  outline-offset: 3px;
}

.fff-ui-v2 .fff-pd-card__unavailable {
  color: var(--fff-pd-muted);
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .fff-ui-v2 .fff-pd-shell {
    padding-bottom: 6rem;
  }

  .fff-ui-v2 .fff-pd-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fff-ui-v2 .fff-pd-summary {
    display: block;
  }

  .fff-ui-v2 .fff-pd-summary__text {
    margin-top: 0.4rem;
    text-align: left;
  }

  .fff-ui-v2 .fff-pd-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .fff-ui-v2 .fff-pd-card__head {
    display: grid;
    gap: 0.5rem;
  }

  .fff-ui-v2 .fff-pd-card__footer {
    grid-column: 1;
    grid-row: auto;
  }

  .fff-ui-v2 .fff-pd-card__highlights,
  .fff-ui-v2 .fff-pd-card__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fff-ui-v2 .fff-pd-btn {
    transition: none;
  }
}
