.simple-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgb(11 11 11 / 12%);
  background: var(--paper);
}

html {
  scroll-padding-top: 100px;
}

.simple-header__inner {
  display: flex;
  width: min(1600px, 100%);
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 4vw;
}

.simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.simple-brand__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.simple-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.simple-header__actions form {
  margin: 0;
}

.account-menu {
  position: relative;
}

.account-menu > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.account-menu > summary::-webkit-details-marker,
.account-menu__settings > summary::-webkit-details-marker {
  display: none;
}

.account-menu > summary:hover {
  background: rgb(11 11 11 / 5%);
}

.account-menu > summary img,
.account-menu__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  object-fit: cover;
  font-size: 12px;
  font-weight: 750;
}

.account-menu__label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.account-menu__label strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__label small,
.account-menu__item small {
  color: var(--muted);
  font-size: 9px;
}

.account-menu__chevron {
  color: var(--muted);
  font-size: 13px;
  transition: transform 160ms ease;
}

.account-menu[open] > summary .account-menu__chevron {
  transform: rotate(180deg);
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 60px rgb(11 11 11 / 16%);
}

.account-menu__item {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.account-menu__item:hover,
.account-menu__item--active {
  background: var(--surface);
}

.account-menu__item > span:first-child {
  font-size: 12px;
  font-weight: 720;
}

.account-menu__settings > summary {
  list-style: none;
}

.account-menu__settings-panel {
  padding: 16px 18px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.account-menu__settings-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-menu__settings-panel button {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 10px;
  font-weight: 720;
}

.account-menu__logout .account-menu__item {
  border-bottom: 0;
}

.text-link {
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
}

.text-link--button {
  color: var(--muted);
}

.login-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 720;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.login-button:hover {
  background: #292929;
  transform: translateY(-1px);
}

.login-button__icon {
  font-size: 16px;
}

.page-issue {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px 18px;
  margin: 0 0 30px;
  border: 1px solid rgb(140 41 34 / 35%);
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  background: rgb(140 41 34 / 6%);
}

.page-issue--warning {
  border-color: rgb(121 85 0 / 34%);
  border-left-color: var(--warning);
  background: rgb(121 85 0 / 6%);
}

.page-issue__mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.page-issue--warning .page-issue__mark {
  background: var(--warning);
}

.page-issue strong,
.page-issue p {
  display: block;
  margin: 0;
}

.page-issue strong {
  color: var(--danger);
  font-size: 14px;
  letter-spacing: -0.015em;
}

.page-issue--warning strong {
  color: var(--warning);
}

.page-issue p {
  margin-top: 4px;
  color: #514e49;
  font-size: 12px;
  line-height: 1.5;
}

.simple-eyebrow {
  margin: 0 0 17px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.simple-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.simple-button:hover {
  transform: translateY(-2px);
}

.simple-button--primary {
  background: var(--black);
  color: var(--white);
}

.simple-button--primary:hover {
  background: #292929;
}

.simple-button--quiet {
  border-color: var(--line);
  background: rgb(255 255 255 / 50%);
}

.simple-button--light {
  background: var(--white);
  color: var(--black);
}

.simple-button [data-loading] {
  display: none;
}

[aria-busy="true"] .simple-button [data-default] {
  display: none;
}

[aria-busy="true"] .simple-button [data-loading] {
  display: inline;
}

.simple-footer {
  display: grid;
  min-height: 90px;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.simple-footer nav {
  justify-self: end;
}

.simple-footer nav a + a {
  margin-left: 18px;
}

.app-shell {
  width: min(1280px, 100%);
  min-height: calc(100vh - 176px);
  margin: 0 auto;
  padding: 90px 4vw 130px;
}

.app-intro {
  max-width: 950px;
}

.app-intro h1,
.campaign-heading h1,
.empty-campaign h1 {
  margin: 0;
  font-size: clamp(35px, 4.2vw, 63px);
  font-weight: 550;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.app-intro > p:last-child,
.empty-campaign > p:not(.simple-eyebrow) {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.text-link--active {
  border-bottom: 1px solid currentcolor;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
  }

  .simple-header__inner {
    min-height: 72px;
    padding-inline: 18px;
  }

  .simple-brand {
    font-size: 15px;
  }

  .simple-brand__mark {
    width: 32px;
    height: 32px;
  }

  .login-button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .simple-header__actions {
    gap: 14px;
  }

  .account-menu__label strong {
    max-width: 100px;
  }

  .account-menu__label small {
    display: none;
  }

  .account-menu__panel {
    width: min(300px, calc(100vw - 24px));
  }

  .simple-footer {
    grid-template-columns: 1fr auto;
    padding: 24px 20px;
  }

  .simple-footer > span:nth-child(2) {
    display: none;
  }

  .app-shell {
    padding: 64px 20px 100px;
  }

  .app-intro h1,
  .campaign-heading h1,
  .empty-campaign h1 {
    font-size: clamp(31px, 9vw, 46px);
  }
}

@media (max-width: 420px) {
  .simple-brand > span:last-child {
    display: none;
  }

  .simple-header__actions .login-button {
    display: none;
  }
}
