.pn-page {
  --pn-surface: #fff;
  --pn-grouped: #f2f2f7;
  --pn-text: #1c1c1e;
  --pn-muted: #626269;
  --pn-line: #dcdce1;
  --pn-destructive: #b22329;
  color: var(--pn-text);
  background: var(--pn-grouped);
  min-height: 100%;
  box-sizing: border-box;
  padding: 20px max(18px, calc((100% - 560px) / 2)) 36px;
  font:
    16px/1.4 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
:root[data-appearance='dark'] .pn-page {
  --pn-surface: #202023;
  --pn-grouped: #111113;
  --pn-text: #f2f2f7;
  --pn-muted: #b4b4bd;
  --pn-line: #3a3a3f;
  --pn-destructive: #ff777a;
}
.pn-group > .pn-form {
  padding: 0 14px 14px;
}
.pn-group + .pn-form {
  margin-top: 16px;
}
.pn-page * {
  box-sizing: border-box;
}
.pn-page [hidden] {
  display: none !important;
}
.pn-page button,
.pn-page input,
.pn-page textarea {
  font: inherit;
}
.pn-page select { font: inherit; }
.pn-models { padding: 16px; }
.pn-models .pn-field select {
  width: 100%; min-height: 44px; padding: 8px;
  color: var(--pn-text); background: var(--pn-surface);
  border: 1px solid var(--pn-line); border-radius: 10px;
}
.pn-models .pn-caption { margin: 0; }
.pn-page button {
  cursor: pointer;
}
.pn-page :is(button, a, input, textarea):focus-visible {
  outline: 2px solid #327dc3;
  outline-offset: 2px;
}
.pn-page button:disabled {
  opacity: 0.56;
  cursor: wait;
}
.pn-group {
  background: var(--pn-surface);
  border-radius: 16px;
  overflow: hidden;
}
.pn-label {
  margin: 24px 14px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pn-muted);
}
.pn-label:first-child {
  margin-top: 0;
}
.pn-row {
  min-height: 52px;
  padding: 12px 15px;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  text-align: start;
  color: inherit;
  background: transparent;
  overflow-wrap: anywhere;
}
.pn-group > .pn-row + .pn-row,
.pn-file + .pn-file {
  border-top: 1px solid var(--pn-line);
}
.pn-detail {
  color: var(--pn-muted);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.pn-nav::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  border-top: 1.5px solid var(--pn-muted);
  border-right: 1.5px solid var(--pn-muted);
  transform: rotate(45deg);
}
.pn-nav:has(.pn-detail) .pn-detail {
  margin-left: auto;
}
.pn-nav:has(.pn-detail)::after {
  margin-left: 0;
}
.pn-nav[aria-expanded='true']::after {
  transform: rotate(135deg);
}
.pn-total {
  min-height: 84px;
}
.pn-total .pn-detail {
  font-size: 1.75rem;
  font-weight: 600;
  color: inherit;
}
.pn-status,
.pn-caption {
  margin: 6px 12px 12px;
  font-size: 14px;
  color: var(--pn-muted);
}
.pn-status:empty {
  display: none;
}
.pn-form {
  display: grid;
  gap: 16px;
}
.pn-field {
  display: grid;
  gap: 5px;
  font-size: 14px;
  color: var(--pn-muted);
}
.pn-field input,
.pn-field textarea {
  background: var(--pn-surface);
  color: var(--pn-text);
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  width: 100%;
  padding: 11px 15px;
  font-size: 16px;
}
.pn-field textarea {
  resize: vertical;
  min-height: 82px;
}
.pn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--pn-text);
  background: var(--pn-surface);
  border: 0;
  border-radius: 18px;
  padding: 9px 14px;
  line-height: 1.25;
  min-height: 44px;
  text-decoration: none;
  text-align: center;
}
.pn-primary {
  border-radius: 28px;
  min-height: 50px;
  background: var(--pn-text);
  color: var(--pn-surface);
  font-weight: 600;
}
.pn-quiet {
  background: transparent;
  color: var(--pn-muted);
  justify-self: center;
}
.pn-group + .pn-quiet,
.pn-label + .pn-quiet {
  margin-top: 8px;
}
.pn-danger {
  color: var(--pn-destructive);
}
.pn-form .pn-label {
  margin: 4px 0 -10px;
}
.pn-photo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: var(--pn-text);
  background: var(--pn-surface);
  padding: 0;
  justify-self: center;
}
.pn-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pn-partner-preview {
  display: grid;
  place-items: center;
  min-height: 90px;
}
.pn-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}
.pn-partner-preview .pn-mark {
  width: 72px;
  height: 72px;
}
.pn-partner-preview img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.pn-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pn-choice {
  width: 44px;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--pn-text);
  background: var(--pn-surface);
  display: grid;
  place-items: center;
  padding: 0;
}
.pn-choice[aria-pressed='true'] {
  border-color: var(--pn-text);
}
.pn-swatch {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.pn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.pn-actions .pn-form {
  flex-basis: 100%;
}
.pn-actions + .pn-label {
  margin-top: 18px;
}
.pn-item-actions {
  padding: 0 8px 8px;
}
.pn-item-actions .pn-button {
  font-size: 14px;
}
.pn-file .pn-detail {
  white-space: nowrap;
}
.pn-preview {
  padding: 8px 10px;
}
.pn-preview pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 3px 0;
}
.pn-preview img {
  display: block;
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
}
.pn-canvas-frame {
  display: block;
  width: 100%;
  height: min(65vh, 600px);
  min-height: 300px;
  border: 1px solid #cddde2;
  border-radius: 16px;
  background: white;
}
