.cover-account,
.account-actions,
.auth-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.cover-account {
  margin-top: 7px;
  gap: 5px;
  font-size: 13px;
  color: var(--secondary);
}
.cover-account a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 3px;
}
.cover-account a:hover { color: var(--accent-ink); }
.cover-account > span { color: var(--rule); }
.account-page { max-width: 720px; }
.account-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--rule);
}
.account-identity:has(.account-actions) { grid-template-columns: auto minmax(0, 1fr); }
.account-identity .account-actions { grid-column: 2; }
.account-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--blush);
}
.account-identity h2 {
  font-size: 19px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.account-identity p,
.legacy-import p,
.library-note,
.auth-intro { color: var(--secondary); font-size: 14px; }
.account-identity > .text-action { white-space: nowrap; }
.account-block { margin-block: 26px; }
.account-block > h2 {
  font: 600 22px/1.5 var(--editorial);
  margin-bottom: 12px;
}
.account-block .archive-item { border-bottom: 1px solid var(--rule); }
.account-block .archive-list,
.account-block .archive-item + .archive-item { border: 0; }
.account-block .archive-item { padding-inline: 0; }
.account-block .archive-person { overflow-wrap: anywhere; }
.account-block .archive-person strong { font-size: 19px; }
.tribute-preview, .ending-gate {
  margin-top: 16px;
  padding-block: 15px;
  border-block: 1px solid var(--rule);
}
.ending-share { margin-top: 18px; }
.ending-share button, .tribute-preview button, .ending-gate a { min-height: 44px; }
.ending-share .share-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  font: 16px/1.5 var(--sans);
  color: var(--secondary);
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.tribute-preview h2 { font: 600 20px/1.5 var(--editorial); }
.tribute-preview p, .guest-journal p { color: var(--secondary); font-size: 14px; }
.tribute-preview .account-actions { margin-top: 9px; }
.tribute-entry { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.tribute-entry h3 { margin: 0 0 5px; font: 600 17px/1.5 var(--editorial); }
.tribute-entry p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.tribute-note { margin: 9px 0 5px; }
.tribute-note img { display: block; width: 100%; height: auto; box-shadow: 0 7px 17px #49302018; }
.tribute-note img[hidden], .tribute-note a[hidden] { display: none; }
.tribute-note figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tribute-note summary, .tribute-note figcaption a { min-height: 44px; padding: 10px 0; font-size: 14px; }
.tribute-note summary { cursor: pointer; color: var(--secondary); }
.tribute-note figcaption a { white-space: nowrap; }
.shared-life { max-width: 550px; }
.shared-life h1 { font: 600 clamp(28px,6vw,42px)/1.35 var(--editorial); }
.shared-life .scene-text { color: var(--secondary); }
.shared-moments { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--rule); }
.shared-moments li { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.shared-moments span { color: var(--secondary); }
.shared-start { display: inline-flex; margin-top: 10px; }
.share-insights { display: grid; gap: 20px; margin-block: 26px; }
.share-insights h2 { font: 600 21px/1.45 var(--editorial); }
.share-insights p { margin: 4px 0; color: var(--secondary); }
.share-poster { display: grid; justify-items: start; gap: 13px; }
.share-poster img { display: block; width: min(100%,420px); height: auto; border: 1px solid var(--rule); }
.guest-journal .account-actions { margin-top: 16px; }
.cover-guest-note { color: var(--secondary); font-size: 12px; margin-top: 12px; }
.account-feedback,
.guest-transfer { font-size: 14px; color: var(--accent-ink); margin-top: 14px; }
.continue-playing, .legacy-import > button { margin-top: 14px; }
.auth-page { max-width: 440px; }
.auth-page .archive-head h1 { margin: 10px 0 8px; }
#auth-form { display: grid; gap: 6px; }
#auth-form label { margin-top: 18px; font-weight: 600; }
#auth-form input {
  width: 100%;
  padding: 10px 12px;
  min-height: 48px;
  border: 1px solid #cbbfc2;
  border-radius: 7px;
  background: var(--page);
  font: 16px/1.5 var(--sans);
  color: var(--ink);
}
#auth-form input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
#auth-form small { color: var(--secondary); font-size: 13px; }
.sms-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sms-code-row .secondary { align-self: stretch; white-space: nowrap; }
#sms-status:empty { display: none; }
#auth-form .error:empty { display: none; }
#auth-form .primary { width: 100%; margin-top: 18px; }
.auth-switch { justify-content: space-between; margin-top: 12px; }
.auth-switch a { min-height: 44px; }
@media (max-width: 760px), (max-height: 500px) and (max-width: 960px) and (pointer: coarse) {
  .account-page .archive-head h1 { margin: 0 0 18px; }
  .account-identity { gap: 8px 12px; padding-bottom: 18px; }
  .account-identity .account-actions { grid-column: 1 / -1; margin-top: 6px; }
  .account-block { margin-block: 22px; }
  .account-block > h2 { font-size: 20px; margin-bottom: 6px; }
  .auth-page { margin-top: 8px; }
  .cover-account { margin-top: 0; }
}
