* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.accountPage {
  margin: 0; min-height: 100vh;
  background: var(--page-base, #ede5d7); color: var(--journal-ink, #24312c);
  font-family: system-ui, sans-serif;
}
.accountBand {
  padding: 22px 22px 78px; color: #f4faf6;
  background-color: #123b3a;
  background-image: radial-gradient(70% 90% at 12% 0%, #1f5d54 0%, #1f5d5400 70%), radial-gradient(60% 80% at 100% 100%, #0c2f2f 0%, #0c2f2f00 72%);
}
.accountBand .backLink { color: #d5ebe3; font-size: 14px; font-weight: 650; text-decoration: none; }
.accountBand .eyebrow { margin: 28px 0 0; color: #a9cfc2; font-size: 11px; font-weight: 650; letter-spacing: .16em; }
.accountBand h1 { margin: 8px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 8vw, 40px); font-weight: 400; letter-spacing: -.4px; line-height: 1.05; }
.lede { max-width: 28rem; margin: 0; color: #d3e7df; font: italic 16px/1.45 Georgia, serif; }
main { max-width: 520px; margin: -52px auto 0; padding: 0 16px 48px; }
.sheet {
  padding: 8px 0 10px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 2px #0b1f1c0f, 0 14px 34px #0b1f1c17;
}
form.sheet { display: grid; gap: 10px; padding: 20px 18px 18px; }
.signedIn { padding-top: 18px; }
.signedIn > .eyebrow { margin: 0 20px; color: #6d5b3e; font-size: 11px; font-weight: 650; letter-spacing: .14em; }
.accountEmail { margin: 6px 20px 4px; font: 400 26px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.accountList { display: grid; }
.accountRow {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 18px; color: #1f3f36; text-decoration: none;
}
.accountRow + .accountRow::before, .signOut::before {
  content: ""; position: absolute; top: 0; left: 72px; right: 18px; border-top: 1px solid #edf2ef;
}
.accountRow:active { background: #f4f8f6; }
.rowIcon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ebf4ef; color: #1d6a4e; }
.rowText { font-size: 16.5px; font-weight: 650; line-height: 1.25; }
.rowText small { display: block; margin-top: 3px; color: #6b857a; font-size: 13px; font-weight: 500; }
.rowChev { display: grid; color: #a3b8ae; }
label { font-size: 13px; font-weight: 680; color: #3d5248; }
input, button {
  width: 100%; min-height: 50px; border: 1px solid #d5e3db; border-radius: 14px;
  padding: 12px 14px; background: #f7fbf8; color: inherit; font: inherit;
}
button { background: #1c7658; color: #fff; font-weight: 680; cursor: pointer; }
button:disabled { opacity: .55; }
.textButton {
  position: relative; min-height: 56px; border: 0; border-radius: 0; background: transparent;
  color: #6b857a; font-size: 15px; font-weight: 650;
}
.signOut { color: #8d4a3a; }
.hint { margin: 0; color: #6b857a; font-size: 13px; line-height: 1.45; }
#passwordForm { display: grid; gap: 10px; margin-top: 16px; padding: 20px 18px 18px; }
#passwordForm h2 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
#message { min-height: 24px; margin: 14px 8px 0; color: #1d6a4e; overflow-wrap: anywhere; }
#message.error { color: #8d3030; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #d49534; outline-offset: 2px; }
html[data-theme="dark"] .sheet { background: var(--journal-paper, #252b26); color: var(--journal-ink, #edf4ef); }
html[data-theme="dark"] .accountRow { color: #edf4ef; }
html[data-theme="dark"] .rowIcon { background: #303930; color: #b7d7c4; }
html[data-theme="dark"] .accountRow + .accountRow::before, html[data-theme="dark"] .signOut::before { border-color: #3a463d; }
html[data-theme="dark"] input { background: #1c2420; color: #edf4ef; border-color: #405046; }
html[data-theme="dark"] .rowText small, html[data-theme="dark"] .hint, html[data-theme="dark"] .textButton { color: #c5bda9; }
html[data-theme="dark"] .signOut { color: #e0b1a4; }
