.pp-page {
  --pp-teal: #075161;
  --pp-teal-light: #349fb7;
  --pp-mint: #00b894;
  --pp-gold: #ffd259;
  --pp-ink: #12333b;
  --pp-muted: #4f747e;
  --pp-line: #d9e7ea;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  color: var(--pp-ink);
  font-family: "Open Sans", system-ui, sans-serif;
}

.pp-title {
  margin: 6px 0 12px;
  color: var(--pp-teal);
  font: 400 26px/1.15 "Patua One", Georgia, serif;
}

.pp-card {
  margin-bottom: 14px;
  padding: 18px 16px 14px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 81, 97, .06);
  text-align: center;
}

.pp-pic-wrap {
  position: relative;
  width: 120px;
  display: block;
  margin: 0 auto 22px;
}

.pp-pic {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 10px;
  border: 2px solid var(--pp-gold);
  border-radius: 50%;
  background: #eef7f8 center/cover no-repeat;
}

.pp-pic-link { display:block; color:#fff; }
.pp-pic-link:focus-visible { outline:3px solid #349fb7; outline-offset:4px; border-radius:50%; }
.pp-pic-edit { position:absolute; left:2px; bottom:-4px; width:44px; height:44px; border-radius:50%; background:#075161; color:#fff; display:grid; place-items:center; box-shadow:0 1px 3px rgba(0,0,0,.3); z-index:1; }
.pp-pic-edit svg { width:22px; height:22px; }

.pp-medal {
  position: absolute;
  right: 4px;
  bottom: -16px;
  z-index: 1;
  width: 36px;
  height: 36px;
  color: #b9c2c8;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

.pp-name {
  margin: 0 0 14px;
  color: var(--pp-teal);
  font: 400 28px/1.2 "Patua One", Georgia, serif;
}

.pp-about {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef7f8;
  color: var(--pp-ink);
  font: 700 16px/1.3 "Open Sans", system-ui, sans-serif;
  text-align: left;
}

.pp-about__text,
.pp-about__empty {
  margin: 6px 0 0;
  color: var(--pp-ink);
  font: 400 15px/1.5 "Open Sans", system-ui, sans-serif;
  white-space: pre-line;
}

.pp-about__empty {
  color: var(--pp-muted);
  font-style: italic;
}

.pp-about__edit {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 6px 0 0;
  padding: 0 44px 0 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1.5px solid var(--pp-teal-light);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--pp-ink);
  caret-color: var(--pp-teal);
  font: 400 15px/1.5 "Open Sans", system-ui, sans-serif;
  resize: none;
}

.pp-about__edit[hidden],
.pp-owner[hidden],
.pp-editing.pp-about__acts {
  display: none;
}

.pp-about__acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pp-button,
.pp-preview,
.pp-connect {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font: 700 14px/1 "Open Sans", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}

.pp-button--primary,
.pp-connect {
  border: 0;
  background: var(--pp-mint);
  color: #fff;
}

.pp-button--primary:hover,
.pp-button--primary:focus,
.pp-connect:hover,
.pp-connect:focus {
  background: #00a985;
  color: #fff;
  text-decoration: none;
}

.pp-preview,
.pp-button--cancel {
  border: 1.5px solid var(--pp-gold);
  background: #fff;
  color: var(--pp-teal);
}

.pp-sub {
  margin: 6px 0 10px;
  color: rgba(255, 255, 255, .9);
  font: 700 14px/1.3 "Open Sans", system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.pp-offer {
  min-height: 96px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 12px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 81, 97, .06);
  color: var(--pp-ink);
  text-decoration: none;
}

.pp-offer:hover,
.pp-offer:focus {
  color: var(--pp-ink);
  text-decoration: none;
}

.pp-offer__img {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 10px;
  background: #eef7f8 center/cover no-repeat;
}

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

.pp-offer b {
  color: var(--pp-teal);
  font: 700 19px/1.25 "Open Sans", system-ui, sans-serif;
}

.pp-offer small {
  color: var(--pp-ink);
  font: 600 15px/1.35 "Open Sans", system-ui, sans-serif;
}

.pp-offer em {
  color: var(--pp-muted);
  font: 400 14.5px/1.4 "Open Sans", system-ui, sans-serif;
  font-style: normal;
}

.pp-offer .chev {
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--pp-teal-light);
  border-bottom: 1.6px solid var(--pp-teal-light);
  transform: rotate(-45deg);
}

.pp-no-offers {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--pp-muted);
  text-align: center;
}

.pp-connect {
  margin-top: 14px;
}

.pp-save-status {
  min-height: 18px;
  margin: 0;
  color: #b4233f;
  font-size: 13px;
}

.pp-save-status:empty {
  display: none;
}

body.pp-edit-mode .pp-offers,
body.pp-edit-mode .pp-sub,
body.pp-edit-mode .pp-connect {
  display: none;
}

@media (max-width: 1023px) {
  body.pp-edit-mode .pwa-dashboard-screen {
    padding-bottom: calc(184px + env(safe-area-inset-bottom, 0px));
  }

  .pp-editing.is-on {
    position: fixed;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 69;
    height: 74px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    box-sizing: border-box;
    padding: 10px 32px;
    border-top: 2px solid var(--pp-gold);
    background: rgba(7, 81, 97, .68);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}

@media (min-width: 1024px) {
  .pp-page {
    max-width: 760px;
  }

  .pp-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px 28px;
    align-items: start;
    padding: 22px 24px;
    text-align: left;
  }

  .pp-pic-wrap {
    width: 200px;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .pp-pic {
    width: 200px;
    height: 200px;
    margin: 0;
  }

  .pp-medal {
    right: 6px;
    bottom: -30px;
    width: 68px;
    height: 68px;
  }

  .pp-name {
    grid-column: 2;
    margin: 6px 0 0;
    font-size: 30px;
  }

  .pp-about {
    grid-column: 2;
    padding: 16px 18px;
    font-size: 18px;
  }

  .pp-about__text,
  .pp-about__empty,
  .pp-about__edit {
    font-size: 17px;
    line-height: 1.55;
  }

  .pp-about__edit {
    padding: 10px 12px;
    border: 1px solid var(--pp-line);
    border-radius: 8px;
    background: #fff;
  }

  .pp-about__acts {
    max-width: 420px;
  }

  .pp-editing.is-on {
    display: grid;
  }

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