body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--body);
}
.account-header {
  max-width: 1200px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.account-header > a:first-child {
  font: 36px/1 var(--brush);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 5px solid var(--sun);
}
.back-home {
  color: var(--muted);
  font-size: 16px;
  padding: 10px;
}
main {
  max-width: 1100px;
  margin: 12px auto 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 24px;
  align-items: start;
}
.account-art {
  position: sticky;
  top: 28px;
  min-height: 600px;
  border-radius: 38px;
  background: var(--sky) url("/assets/scrapbook/hero-paper.webp") center/cover;
  padding: 36px;
  isolation: isolate;
  overflow: hidden;
}
.account-art h1 {
  font: 64px/1.1 var(--brush);
  margin: 24px 0 14px;
}
.account-art p {
  line-height: 1.8;
  position: relative;
  z-index: 2;
}
.account-art img {
  width: 90%;
  display: block;
  margin: 0 auto;
  max-height: 320px;
  object-fit: contain;
}
.tape {
  display: inline-block;
  background: var(--sun);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  transform: rotate(-4deg);
}
.art-note {
  display: block;
  font: 25px/1.4 var(--brush);
  text-align: center;
}
.card {
  background: #fffef9;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 28px;
  margin: 0 0 18px;
  box-shadow: 0 3px 12px #151a2d05;
}
.card h2 {
  font: 30px/1.25 var(--brush);
  margin: 0 0 18px;
}
.card label {
  display: block;
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 16px;
}
.card input:not([type="checkbox"]),
.card select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b5bec8;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  font: 16px/1.5 var(--body);
  min-height: 48px;
  margin-top: 7px;
}
.card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  accent-color: var(--action);
}
button,
.btn {
  border: 0;
  background: var(--action);
  color: white;
  border-radius: 18px;
  padding: 12px 18px;
  min-height: 48px;
  font: 600 16px/1.5 var(--body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 8px 4px 8px 0;
}
button.secondary {
  background: #eaf1fb;
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#login button {
  width: 100%;
  margin-top: 18px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.card pre {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
  background: #f4f3ee;
  padding: 12px;
  border-radius: 12px;
}
.card details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.card summary {
  cursor: pointer;
  min-height: 44px;
  overflow-wrap: anywhere;
}
#msg {
  position: sticky;
  top: 10px;
  z-index: 5;
  background: #fff0b8;
  padding: 12px 16px;
  border-radius: 18px;
  overflow-wrap: anywhere;
}
#msg:empty {
  display: none;
}
a {
  color: var(--action);
}
.device-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
#pairLink {
  overflow-wrap: anywhere;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .account-header {
    padding: 16px 20px;
  }
  .account-header > a:first-child {
    font-size: 30px;
  }
  main {
    display: block;
    padding: 0 16px;
    margin: 0 auto 36px;
    max-width: 520px;
  }
  .account-art {
    position: relative;
    top: auto;
    min-height: 285px;
    padding: 22px;
    border-radius: 30px;
    margin-bottom: -22px;
  }
  .account-art h1 {
    font-size: 46px;
    margin: 18px 0 12px;
  }
  .account-art img {
    position: absolute;
    right: -8px;
    bottom: 15px;
    width: 52%;
    height: 205px;
  }
  .account-art p {
    font-size: 14px;
    max-width: 53%;
    margin-bottom: 28px;
  }
  .art-note {
    display: none;
  }
  .account-body {
    position: relative;
    z-index: 3;
  }
  .card {
    padding: 24px;
    border-radius: 26px;
  }
  .tape {
    font-size: 10px;
  }
  .back-home {
    font-size: 14px;
  }
  .card h2 {
    font-size: 28px;
  }
  #msg {
    top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
