body.pp-public {
  margin: 0;
  min-height: 100vh;
  background: var(--pp-bg);
  color: var(--pp-ink);
  font-family: var(--pp-font);
  font-size: 15px;
  line-height: 1.5;
}

body.pp-public,
body.pp-public *,
body.pp-public *::before,
body.pp-public *::after {
  box-sizing: border-box;
}

body.pp-public [hidden] {
  display: none !important;
}

body.pp-public a:focus-visible,
body.pp-public button:focus-visible {
  outline: 2px solid var(--pp-accent);
  outline-offset: 2px;
}

.pp-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.pp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--pp-ink);
  text-decoration: none;
}

.pp-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.pp-brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pp-toplink {
  flex: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--pp-ink-soft);
  text-decoration: none;
}

.pp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--pp-line-soft);
  font-size: 13px;
  color: var(--pp-muted);
}

.pp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pp-footer a {
  color: var(--pp-muted);
  text-decoration: none;
}

.pp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
  flex: 1;
  padding: 48px 0 64px;
  min-width: 0;
}

.pp-split-start {
  align-items: start;
  padding-top: 40px;
}

.pp-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.pp-stack-sm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pp-stack-xs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-display {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pp-intro {
  margin: 0;
  max-width: 30em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--pp-muted);
}

.pp-intro-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.pp-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pp-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--pp-muted);
}

.pp-lead-lg {
  font-size: 16px;
  line-height: 1.55;
}

.pp-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--pp-ink-soft);
}

.pp-hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--pp-muted);
}

.pp-hint-13 {
  font-size: 13px;
}

.pp-spam {
  font-size: 13.5px;
}

.pp-beside {
  font-size: 14px;
  color: var(--pp-muted);
}

.pp-ok {
  color: var(--pp-done);
}

.pp-bad {
  color: var(--pp-danger);
}

.pp-warn {
  color: var(--pp-warning);
}

.pp-ink {
  color: var(--pp-ink);
}

.pp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
  min-width: 0;
}

.pp-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.pp-control {
  display: flex;
  height: 44px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line-strong);
  border-radius: 8px;
  min-width: 0;
}

.pp-control input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--pp-ink);
  font: 400 15px/1.2 var(--pp-font);
}

.pp-address {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line-strong);
  border-radius: 8px;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14.5px;
}

.pp-address-lg {
  height: 56px;
  padding: 0 16px;
  font-size: 17px;
}

.pp-address input {
  flex: 1 1 40px;
  width: 40px;
  min-width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pp-accent);
  font: inherit;
  font-weight: 500;
}

.pp-address-prefix,
.pp-address-suffix {
  flex: none;
  color: var(--pp-muted);
}

.pp-control:focus-within,
.pp-address:focus-within {
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 3px rgba(var(--pp-accent-rgb), 0.18);
}

.pp-control.pp-invalid,
.pp-address.pp-invalid {
  border-color: var(--pp-danger);
}

.pp-control input:focus,
.pp-address input:focus {
  outline: none;
}

.pp-control input::placeholder,
.pp-address input::placeholder {
  color: var(--pp-muted);
  font-weight: 400;
}

.pp-open {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.pp-open .pp-address {
  flex: 1 1 320px;
  max-width: 100%;
}

.pp-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--pp-line-soft);
}

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-family: var(--pp-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.pp-btn:disabled {
  cursor: default;
}

.pp-btn-primary {
  background: var(--pp-accent-fill);
  color: var(--pp-on-accent);
}

.pp-btn-secondary {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pp-line-strong);
  background: var(--pp-raised);
  color: var(--pp-ink);
  font-size: 14px;
}

.pp-btn-open {
  height: 56px;
  padding: 0 22px;
  font-size: 15px;
}

a.pp-btn-primary {
  color: var(--pp-on-accent);
}

a.pp-btn-secondary {
  color: var(--pp-ink);
}

.pp-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex: none;
  animation: pp-spin 0.7s linear infinite;
}

@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}

.pp-form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--pp-danger-bg);
  color: var(--pp-danger);
  font-size: 13px;
  line-height: 1.4;
}

.pp-legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--pp-muted);
}

.pp-legal a {
  color: var(--pp-accent);
}

.pp-note {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  background: var(--pp-surface);
}

.pp-live {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pp-live-prefix {
  color: var(--pp-muted);
}

.pp-live-name {
  color: var(--pp-accent);
  font-weight: 500;
}

.pp-live-suffix {
  color: var(--pp-ink-soft);
}

.pp-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--pp-line);
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pp-ink-soft);
}

.pp-confirm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
  min-width: 0;
  padding: 72px 0 64px;
}

.pp-mail {
  width: 48px;
  height: 48px;
  color: var(--pp-accent);
}

.pp-address-box {
  padding: 14px 16px;
  border: 1px solid var(--pp-line);
  border-radius: 8px;
  background: var(--pp-surface);
  font-size: 16px;
}

.pp-resend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.pp-resend .pp-hint {
  flex: 1 1 220px;
  min-width: 0;
}

.pp-account {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 72px 0 48px;
}

.pp-account-wide {
  max-width: 920px;
}

.pp-languages {
  margin-top: 28px;
}

.pp-switch {
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.4;
}

.pp-switch a {
  color: var(--pp-accent);
}

.pp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pp-preview {
  position: relative;
  min-width: 0;
  padding: 0 0 56px;
}

.pp-board {
  overflow: hidden;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  background: var(--pp-surface);
  box-shadow: var(--pp-shadow);
}

.pp-board-head,
.pp-board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.pp-board-head {
  height: 48px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-board-name {
  font-size: 14px;
  font-weight: 600;
}

.pp-board-meta {
  font-size: 12.5px;
  color: var(--pp-muted);
}

.pp-spacer {
  flex: 1;
}

.pp-bar {
  display: flex;
  flex: none;
  width: 120px;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--pp-raised);
}

.pp-bar-fill {
  width: 42%;
  background: var(--pp-done);
}

.pp-board-row {
  height: 44px;
  border-bottom: 1px solid var(--pp-line-soft);
  font-size: 13.5px;
}

.pp-board-row-last {
  border-bottom: 0;
}

.pp-type {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 3px;
}

.pp-type-story { background: var(--pp-type-story); }
.pp-type-bug { background: var(--pp-type-bug); }
.pp-type-task { background: var(--pp-type-task); }

.pp-key {
  width: 62px;
  flex: none;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  color: var(--pp-muted);
}

.pp-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--pp-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pp-status {
  flex: none;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.pp-status-progress { color: var(--pp-progress); background: var(--pp-progress-bg); }
.pp-status-done { color: var(--pp-done); background: var(--pp-done-bg); }
.pp-status-todo { color: var(--pp-todo); background: var(--pp-raised); }

.pp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

.pp-avatar-1 { background: var(--pp-avatar-1-bg); color: var(--pp-avatar-1-fg); }
.pp-avatar-2 { background: var(--pp-avatar-2-bg); color: var(--pp-avatar-2-fg); }
.pp-avatar-3 { background: var(--pp-avatar-3-bg); color: var(--pp-avatar-3-fg); }

.pp-request {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 300px;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pp-line-strong);
  border-radius: 10px;
  background: var(--pp-raised);
  box-shadow: var(--pp-shadow);
}

.pp-request-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--pp-muted);
}

.pp-request-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.pp-request-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.pp-mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

@media (max-width: 900px) {
  .pp-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .pp-aside {
    display: none;
  }
}

@media (max-width: 600px) {
  .pp-page {
    padding: 0 20px;
  }
}

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

  .pp-address-lg {
    font-size: 15px;
  }

  .pp-address-lg input {
    min-width: 2ch;
    flex-basis: 2ch;
  }
}

@media (min-width: 1100px) {
  .pp-request {
    right: -16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-spinner {
    animation: none;
  }
}
