:root {
  --pp-bg: linear-gradient(
    180deg,
    #fff7ed 0%,
    #fff4e6 20%,
    #fff 54%,
    #fff 100%
  );
  --pp-panel: rgba(255, 255, 255, 0.94);
  --pp-panel-strong: rgba(255, 255, 255, 0.985);
  --pp-rail: linear-gradient(
    180deg,
    rgba(253, 230, 138, 0.24) 0%,
    rgba(255, 255, 255, 0.92) 46%,
    rgba(255, 255, 255, 0.99) 100%
  );
  --pp-border: rgba(15, 23, 42, 0.08);
  --pp-border-strong: rgba(15, 23, 42, 0.12);
  --pp-text: #0f172a;
  --pp-muted: #475569;
  --pp-soft: #e2e8f0;
  --pp-soft-strong: #cbd5e1;
  --pp-accent: #f59e0b;
  --pp-accent-dark: #b45309;
  --pp-danger: #b91c1c;
  --pp-danger-bg: #fef2f2;
  --pp-success: #047857;
  --pp-shadow: 0 36px 96px rgba(15, 23, 42, 0.16);
  --pp-radius-xl: 32px;
  --pp-radius-lg: 24px;
  --pp-radius-md: 18px;
  --pp-radius-sm: 14px;
}

html,
body.pp-app-body {
  height: 100%;
}

body.pp-app-body {
  background:
    radial-gradient(
      circle at top left,
      rgba(245, 158, 11, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(251, 191, 36, 0.12),
      transparent 30%
    ),
    var(--pp-bg);
  color: var(--pp-text);
  font-family: "Manrope", sans-serif;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.pp-app-body * {
  -webkit-tap-highlight-color: transparent;
}

.pp-app {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 12px;
}

.pp-frame,
.pp-window {
  height: 100%;
  min-height: 0;
}

.pp-window {
  align-items: stretch;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--pp-radius-xl);
  box-shadow: var(--pp-shadow);
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.pp-rail,
.pp-stage {
  min-height: 0;
}

.pp-rail {
  background: var(--pp-rail);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex: 0 0 38%;
  max-width: 38%;
  min-width: 300px;
  position: relative;
}

.pp-rail::before {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.16),
    rgba(255, 255, 255, 0)
  );
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: -110px;
  top: -90px;
  width: 240px;
}

.pp-rail__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 30px 24px;
  position: relative;
  scrollbar-width: thin;
  z-index: 1;
}

.pp-rail__inner::-webkit-scrollbar,
.pp-step__content::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.pp-rail__inner::-webkit-scrollbar-thumb,
.pp-step__content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
}

.pp-brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.pp-brand img {
  display: block;
  height: 28px;
  width: auto;
}

.pp-brand span {
  color: var(--pp-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pp-kicker {
  color: var(--pp-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pp-title {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  max-width: 12ch;
}

.pp-subtitle {
  color: var(--pp-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 34ch;
}

.pp-event-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.94),
    rgba(255, 247, 237, 0.9)
  );
  border: 1px solid rgba(180, 83, 9, 0.16);
  border-radius: 26px;
  display: grid;
  gap: 10px;
  max-width: 100%;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.pp-event-card::after {
  background: radial-gradient(
    circle at top right,
    rgba(251, 191, 36, 0.22),
    transparent 55%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.pp-event-card__eyebrow,
.pp-stage__event-mini span {
  color: var(--pp-accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pp-event-card__title,
.pp-stage__event-mini strong {
  color: var(--pp-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.pp-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pp-event-card__pill {
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  color: var(--pp-text);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.pp-event-card__pill.is-soft {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(180, 83, 9, 0.12);
  color: var(--pp-accent-dark);
}

.pp-rail-card,
.pp-review-card {
  background: var(--pp-panel);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg);
}

.pp-rail-card {
  padding: 20px;
}

.pp-rail-card__header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.pp-rail-card__eyebrow {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-checklist {
  display: grid;
  gap: 12px;
}

.pp-checklist li {
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.pp-checklist li::before {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 8px;
  width: 8px;
}

.pp-rail-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.pp-rail-footer p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.pp-rail-badge {
  align-items: center;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 999px;
  color: var(--pp-accent-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  width: fit-content;
}

.pp-stage {
  background:
    radial-gradient(
      circle at top left,
      rgba(251, 191, 36, 0.08),
      transparent 28%
    ),
    rgba(255, 255, 255, 0.28);
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 20px;
  position: relative;
}

.pp-stage__shell {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  position: relative;
  width: 100%;
}

.pp-stage__shell::before {
  background: radial-gradient(
    circle at top,
    rgba(251, 191, 36, 0.16),
    transparent 62%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.pp-stage__panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 34px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  max-width: 760px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.pp-stage__header,
.pp-stage__actions {
  flex-shrink: 0;
}

.pp-stage__header {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.9)
  );
  border-bottom: 1px solid var(--pp-border);
  padding: 24px 24px 18px;
}

.pp-stage__header-inner,
.pp-stage__actions-inner {
  margin: 0 auto;
  max-width: 620px;
  width: 100%;
}

.pp-stage__header-inner {
  display: grid;
  gap: 14px;
}

.pp-stage__mobile-brand {
  align-items: center;
  display: none;
  gap: 10px;
}

.pp-stage__mobile-brand img {
  display: block;
  height: 24px;
  width: auto;
}

.pp-stage__mobile-brand span {
  color: var(--pp-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pp-history-back-link {
  align-self: flex-start;
  color: #8a5a00;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 120ms ease, transform 120ms ease;
}

.pp-history-back-icon {
  font-size: 14px;
  line-height: 1;
}

.pp-history-back-link:hover,
.pp-history-back-link:focus {
  color: #7a4e00;
  text-decoration: underline;
  transform: translateX(-2px);
}

.pp-stage__event-mini {
  display: none;
  gap: 6px;
}

.pp-stage__title {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.72rem, 2.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.pp-stage__subtitle {
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 50ch;
}

.pp-progress {
  display: grid;
  gap: 12px;
}

.pp-progress__bar {
  background: rgba(226, 232, 240, 0.78);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.pp-progress__bar .progress-bar {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #fb7185 100%);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.pp-server-alert {
  align-items: flex-start;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(254, 242, 242, 0.96) 100%
  );
  border: 1px solid rgba(185, 28, 28, 0.12);
  border-radius: 22px;
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  display: flex;
  gap: 14px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 18px;
  pointer-events: none;
  position: relative;
  transform: translateY(-12px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.28s ease,
    margin-top 0.28s ease;
  visibility: hidden;
}

.pp-server-alert.is-visible {
  margin-top: 8px;
  max-height: 220px;
  opacity: 1;
  padding: 16px 18px 20px;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.pp-server-alert.is-entering {
  animation: ppServerAlertEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pp-server-alert.is-closing {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
  padding-top: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.985);
}

.pp-server-alert.is-paused .pp-server-alert__progress {
  animation-play-state: paused;
}

.pp-server-alert::after {
  background: radial-gradient(
    circle at top right,
    rgba(248, 113, 113, 0.14),
    transparent 58%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.pp-server-alert__icon,
.pp-server-alert__content {
  position: relative;
  z-index: 1;
}

.pp-server-alert__progress {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.96), rgba(249, 115, 22, 0.92));
  border-radius: 999px;
  bottom: 8px;
  height: 3px;
  left: 18px;
  opacity: 0.88;
  position: absolute;
  right: 18px;
  transform-origin: left center;
  z-index: 1;
}

.pp-server-alert.is-visible .pp-server-alert__progress {
  animation: ppServerAlertProgress var(--pp-server-alert-duration, 5200ms) linear forwards;
}

.pp-server-alert.is-closing .pp-server-alert__progress {
  opacity: 0;
}

.pp-server-alert__icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(251, 146, 60, 0.2));
  border: 1px solid rgba(185, 28, 28, 0.12);
  border-radius: 16px;
  color: var(--pp-danger);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.pp-server-alert__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pp-server-alert__eyebrow {
  color: #991b1b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-server-alert__title {
  color: #7f1d1d;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.pp-server-alert__message {
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

@keyframes ppServerAlertEnter {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ppServerAlertProgress {
  0% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-server-alert {
    transition: none;
  }

  .pp-server-alert.is-entering,
  .pp-server-alert.is-visible .pp-server-alert__progress {
    animation: none;
  }
}

.pp-stage__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.pp-step {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.pp-step.is-active {
  display: flex;
}

.pp-step__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  scrollbar-width: thin;
  width: 100%;
}

.pp-field-flow {
  display: grid;
  gap: 24px;
  max-width: 640px;
  width: 100%;
}

.pp-field-step {
  display: none;
}

.pp-field-step.is-active {
  display: block;
}

.pp-field-card {
  background: var(--pp-panel);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  margin: 0 auto;
  max-width: 640px;
  overflow: visible;
  padding: 28px;
  width: 100%;
}

.pp-label {
  color: var(--pp-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pp-input,
.pp-input.form-select {
  border: 1px solid var(--pp-soft);
  border-radius: var(--pp-radius-sm);
  box-shadow: none;
  color: var(--pp-text);
  font-size: 16px;
  min-height: 56px;
  padding: 14px 16px;
}

.pp-input[readonly] {
  background: #f8fafc;
}

.pp-input:focus,
.pp-input.form-select:focus {
  border-color: rgba(245, 158, 11, 0.56);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.pp-input.is-invalid,
.pp-input.form-select.is-invalid {
  background-image: none;
  border-color: rgba(185, 28, 28, 0.36);
}

.pp-select-picker {
  position: relative;
}

.pp-select-picker__native {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.pp-select-picker__trigger {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--pp-soft);
  border-radius: var(--pp-radius-sm);
  color: var(--pp-text);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  width: 100%;
}

.pp-select-picker__trigger:focus {
  border-color: rgba(245, 158, 11, 0.56);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
  outline: none;
}

.pp-select-picker__trigger-text {
  color: var(--pp-text);
  display: block;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.pp-select-picker:not(.has-value) .pp-select-picker__trigger-text {
  color: #64748b;
  font-weight: 600;
}

.pp-select-picker__trigger-icon {
  align-items: center;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 999px;
  color: var(--pp-accent-dark);
  display: inline-flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.pp-select-picker__trigger-icon::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  display: block;
  height: 8px;
  margin-top: -2px;
  transform: rotate(-45deg);
  transition: transform 0.18s ease, margin-top 0.18s ease;
  width: 8px;
}

.pp-select-picker.is-open .pp-select-picker__trigger-icon::before {
  margin-top: 2px;
  transform: rotate(135deg);
}

.pp-select-picker__dropdown {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
  display: none;
  left: 0;
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
}

.pp-select-picker.is-open .pp-select-picker__dropdown {
  display: block;
}

.pp-select-picker__option {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: var(--pp-text);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.pp-select-picker__option:hover,
.pp-select-picker__option:focus {
  background: rgba(245, 158, 11, 0.12);
  outline: none;
}

.pp-select-picker__option.is-selected {
  background: rgba(245, 158, 11, 0.16);
}

.pp-select-picker__option-check {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  color: transparent;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.pp-select-picker__option.is-selected .pp-select-picker__option-check {
  background: var(--pp-accent);
  border-color: var(--pp-accent);
  color: #fff;
}

.pp-select-picker__option-label {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.pp-select-picker.is-invalid .pp-select-picker__trigger {
  border-color: rgba(185, 28, 28, 0.36);
}

.pp-input-group {
  align-items: stretch;
  display: flex;
  gap: 10px;
}

.pp-input-group > .pp-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.pp-inline-button {
  border-radius: var(--pp-radius-sm) !important;
  font-size: 13px;
  font-weight: 800;
  min-width: 124px;
}

.pp-field-error {
  color: var(--pp-danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 8px;
  min-height: 18px;
}

.pp-inline-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
}

.pp-inline-note--status {
  align-items: center;
  display: none;
  gap: 8px;
  font-weight: 700;
}

.pp-inline-note--status.is-visible {
  display: inline-flex;
}

.pp-inline-note--status.is-success {
  color: var(--pp-success);
}

.pp-inline-note--status.is-loading {
  color: #9a3412;
}

.pp-inline-note--status::before {
  align-items: center;
  border-radius: 999px;
  content: "";
  display: inline-flex;
  flex-shrink: 0;
  height: 10px;
  justify-content: center;
  width: 10px;
}

.pp-inline-note--status.is-success::before {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12);
}

.pp-inline-note--status.is-loading::before {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(154, 52, 18, 0.12);
}

.pp-conflict {
  background: #fff7ed;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--pp-radius-lg);
  display: none;
  margin-top: 24px;
  padding: 18px;
}

.pp-conflict.is-visible {
  display: block;
}

.pp-conflict__eyebrow {
  color: var(--pp-accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.pp-conflict__title {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.pp-conflict__message {
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.pp-conflict__details {
  display: none;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.pp-conflict__details.is-visible {
  display: grid;
}

.pp-conflict__detail {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(194, 65, 12, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
}

.pp-conflict__detail-label {
  color: #9a3412;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.pp-conflict__detail-value {
  color: #1f2937;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.pp-conflict__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pp-chip {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding-inline: 16px;
}

.pp-chip--primary {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 58%, #fb7185 100%);
  border: 0;
  color: #fff;
}

.pp-chip--primary:hover,
.pp-chip--primary:focus,
.pp-chip--primary:active {
  color: #fff;
}

.pp-conflict-modal {
  position: relative;
}

.pp-conflict-modal__backdrop,
.pp-conflict-modal__close {
  display: none;
}

body.pp-conflict-modal-open {
  overflow: hidden !important;
}

[data-person-only-field].is-hidden {
  display: none;
}

.pp-address-preview,
.pp-review-card {
  margin-top: 24px;
  margin-inline: auto;
  max-width: 640px;
  padding: 20px;
  width: 100%;
}

.pp-step[data-step="revisao"] .pp-step__content {
  align-items: stretch;
  justify-content: flex-start;
}

.pp-address-preview {
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--pp-radius-lg);
  display: none;
}

.pp-address-preview.is-visible {
  display: block;
}

.pp-address-preview__eyebrow {
  color: var(--pp-accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-address-preview strong {
  color: var(--pp-text);
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-top: 10px;
}

.pp-address-preview p {
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 6px 0 0;
}

.pp-address-manual {
  display: none;
  margin-top: 18px;
}

.pp-address-manual.is-visible {
  display: block;
}

.pp-address-manual__hint {
  color: var(--pp-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.pp-address-manual__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-address-manual__field .pp-field-error {
  min-height: 0;
}

.pp-review-card__header span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pp-review-card {
  display: flex;
  flex-direction: column;
  max-height: min(100%, calc(100dvh - 272px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
}

.pp-review-card::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.pp-review-card::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
}

.pp-password-fields {
  display: grid;
  gap: 18px;
}

.pp-password-field {
  display: grid;
  gap: 10px;
}

.pp-password-toggle {
  align-items: center;
  appearance: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid var(--pp-border);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(31, 34, 38, 0.05);
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  user-select: none;
  width: 100%;
}

.pp-password-toggle:hover,
.pp-password-toggle:focus-visible {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
  outline: none;
}

.pp-password-toggle[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, #ffffff 100%);
  border-color: rgba(245, 158, 11, 0.34);
}

.pp-password-toggle__icon {
  align-items: center;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 14px;
  color: var(--pp-accent-dark);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  width: 42px;
}

.pp-password-toggle[aria-pressed="true"] .pp-password-toggle__icon {
  background: #1f2226;
  color: #ffffff;
}

.pp-password-toggle__icon-svg {
  height: 18px;
  width: 18px;
}

.pp-password-toggle__icon-svg--hide {
  display: none;
}

.pp-password-toggle[aria-pressed="true"] .pp-password-toggle__icon-svg--show {
  display: none;
}

.pp-password-toggle[aria-pressed="true"] .pp-password-toggle__icon-svg--hide {
  display: block;
}

.pp-password-toggle__content {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

.pp-password-toggle__label {
  color: var(--pp-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.pp-password-toggle__hint {
  color: var(--pp-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pp-review-card__header {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.pp-review-card__header strong {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.pp-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.pp-summary div {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--pp-radius-md);
  padding: 14px;
}

.pp-summary dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pp-summary dd {
  color: var(--pp-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}

.pp-stage__actions {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.98)
  );
  border-top: 1px solid var(--pp-border);
  padding: 18px 24px 24px;
}

.pp-stage__actions-inner {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.pp-stage__hint {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding-inline: 10px;
}

.pp-stage__cta {
  display: flex;
  gap: 12px;
}

.pp-action-button {
  align-items: center;
  border-radius: 18px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 56px;
  min-width: 178px;
  padding: 0 22px;
}

.pp-action-button.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 58%, #fb7185 100%);
  border: 0;
  color: #fff;
}

.pp-action-button--ghost {
  border-color: var(--pp-soft-strong);
  color: var(--pp-text);
}

.pp-action-button:focus-visible,
.pp-chip:focus-visible,
.pp-history-back-link:focus-visible,
.pp-inline-button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.22);
  outline-offset: 2px;
}

.pp-app[data-viewport-profile="compact"] {
  padding: 8px;
}

.pp-app[data-viewport-profile="compact"] .pp-rail__inner {
  gap: 18px;
  padding: 22px 20px;
}

.pp-app[data-viewport-profile="compact"] .pp-rail-card,
.pp-app[data-viewport-profile="compact"] .pp-review-card {
  padding: 16px;
}

.pp-app[data-viewport-profile="compact"] .pp-review-card {
  max-height: min(100%, calc(100dvh - 228px));
}

.pp-app[data-viewport-profile="compact"] .pp-title {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  max-width: 13ch;
}

.pp-app[data-viewport-profile="compact"] .pp-subtitle,
.pp-app[data-viewport-profile="compact"] .pp-stage__subtitle {
  line-height: 1.5;
}

.pp-app[data-viewport-profile="compact"] .pp-stage__header {
  padding: 18px 18px 14px;
}

.pp-app[data-viewport-profile="compact"] .pp-stage__header-inner {
  gap: 12px;
}

.pp-app[data-viewport-profile="compact"] .pp-stage__title {
  font-size: clamp(1.42rem, 2vw, 1.85rem);
}

.pp-app[data-viewport-profile="compact"] .pp-progress {
  gap: 10px;
}

.pp-app[data-viewport-profile="compact"] .pp-step__content {
  justify-content: flex-start;
  padding: 18px;
}

.pp-app[data-viewport-profile="compact"] .pp-stage__actions {
  padding: 14px 18px max(18px, env(safe-area-inset-bottom));
}

.pp-app[data-viewport-profile="compact"] .pp-stage__actions-inner {
  gap: 10px;
}

.pp-app[data-viewport-profile="compact"] .pp-action-button {
  min-height: 52px;
  min-width: 0;
}

.pp-app[data-viewport-profile="compact"]
  .pp-stage__actions-inner
  > .pp-action-button,
.pp-app[data-viewport-profile="compact"] .pp-stage__cta .btn {
  width: 100%;
}

@media (max-width: 1199.98px) {
  .pp-title {
    max-width: none;
  }
}

@media (max-width: 991.98px) {
  body.pp-app-body {
    overflow: hidden;
  }

  .pp-app {
    padding: 0;
  }

  .pp-window {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    flex-direction: column;
  }

  .pp-rail {
    display: none;
  }

  .pp-title {
    font-size: 1.9rem;
    max-width: 14ch;
  }

  .pp-stage__header {
    padding: 18px 18px 14px;
  }

  .pp-stage {
    padding: 0;
  }

  .pp-stage__panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }

  .pp-stage__mobile-brand {
    display: inline-flex;
  }

  .pp-step__content {
    padding: 18px;
  }

  .pp-review-card {
    max-height: min(100%, calc(100svh - 214px));
  }

  .pp-stage__actions {
    padding: 16px 18px max(18px, env(safe-area-inset-bottom));
  }

  .pp-stage__actions-inner {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .pp-stage__hint {
    order: 3;
    padding: 0;
  }

  .pp-stage__cta {
    width: 100%;
  }

  .pp-action-button,
  .pp-stage__cta .btn {
    width: 100%;
  }

  .pp-rail-card,
  .pp-rail-footer {
    display: none;
  }

  .pp-stage__event-mini {
    display: grid;
  }

  .pp-app[data-viewport-profile="compact"] .pp-rail {
    display: none;
  }

  .pp-app[data-viewport-profile="compact"] .pp-stage__actions-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pp-app[data-viewport-profile="compact"] .pp-stage__hint {
    display: none;
  }

  .pp-app[data-viewport-profile="compact"] .pp-stage__cta {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .pp-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-input-group > .pp-input {
    width: 100%;
  }

  .pp-address-manual__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-inline-button {
    min-height: 52px;
    width: 100%;
  }

  .pp-select-picker__trigger {
    min-height: 58px;
    padding: 16px;
  }

  .pp-select-picker__dropdown {
    border-radius: 18px;
    max-height: min(280px, 48vh);
    padding: 6px;
  }

  .pp-server-alert {
    gap: 12px;
  }

  .pp-server-alert__icon {
    border-radius: 14px;
    font-size: 18px;
    height: 42px;
    width: 42px;
  }

  .pp-server-alert.is-visible {
    padding: 14px 14px 18px;
  }

  .pp-stage__cta {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .pp-conflict-modal--checkout {
    align-items: flex-end;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 1060;
  }

  .pp-conflict-modal--checkout.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .pp-conflict-modal--checkout .pp-conflict-modal__backdrop {
    background: rgba(15, 23, 42, 0.54);
    border: 0;
    display: block;
    inset: 0;
    position: absolute;
    width: 100%;
  }

  .pp-conflict-modal--checkout .pp-conflict-modal__close {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    color: #1f2937;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    z-index: 2;
  }

  .pp-conflict-modal--checkout .pp-conflict-modal__panel.pp-conflict {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    display: block;
    margin: 0;
    max-width: none;
    opacity: 0;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    position: relative;
    transform: translateY(16px) scale(0.98);
    transition: transform 240ms ease, opacity 240ms ease;
    width: 100%;
    z-index: 1;
  }

  .pp-conflict-modal--checkout .pp-conflict__details {
    grid-template-columns: 1fr;
  }

  .pp-conflict-modal--checkout .pp-conflict-modal__panel.pp-conflict::before {
    background: linear-gradient(90deg, rgba(242, 162, 12, 0.9), rgba(242, 162, 12, 0.3));
    border-radius: 18px 18px 0 0;
    content: '';
    height: 4px;
    left: 1px;
    position: absolute;
    right: 1px;
    top: 1px;
  }

  .pp-conflict-modal--checkout.is-open .pp-conflict-modal__panel.pp-conflict.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .pp-conflict__eyebrow {
    margin-right: 48px;
  }

  .pp-conflict__title {
    font-size: 1.35rem;
    line-height: 1.15;
    margin-right: 40px;
  }

  .pp-conflict__message {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
  }

  .pp-conflict__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .pp-conflict__actions .pp-chip {
    align-items: center;
    display: inline-flex;
    font-size: 15px;
    justify-content: center;
    min-height: 46px;
    width: 100%;
  }

  .pp-conflict__actions .btn-outline-dark.pp-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #1f2937;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-conflict-modal,
  .pp-conflict-modal__panel.pp-conflict {
    transition: none !important;
  }
}

@media (max-width: 420px) {
  .pp-title {
    font-size: 1.7rem;
  }

  .pp-stage__title {
    font-size: 1.38rem;
  }
}
