/* Account pages share the feed's material and appearance controller. */
.account-page { min-height: 100svh; }
.account-page > header, .account-page > main, .account-page > footer { width: min(100% - 48px, 920px); }
.account-page > header.site-header { padding-block: 16px; }
.account-page .masthead { --nav-depth: 1; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; min-height: 76px; gap: 16px; margin: 0; padding: 12px 20px; }
.account-page .wordmark { min-width: 0; }
.account-page .wordmark img { flex: 0 0 auto; }
.account-navigation .icon { flex: 0 0 auto; }
.account-page .wordmark small { display: block; }
.account-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.account-page .account-intro { padding: 40px 8px 32px; }
.account-page .account-intro h1 { margin-top: 18px; max-width: 740px; font-size: clamp(30px, 4.7vw, 46px); text-wrap: balance; }
.account-page .tagline { max-width: 660px; font-size: 16px; }
.account-navigation { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.account-navigation a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration-thickness: 1px; }
.account-page main > article, .account-page main > section { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1); }
.account-page .project-form > p { max-width: 68ch; color: var(--muted); }
.account-page .project-form label { line-height: 1.6; }
.account-page .project-form textarea { line-height: 1.75; }
.account-page .project-form input:not([type=hidden]):not([type=checkbox]), .account-page .project-form textarea, .account-page .project-form select { background: var(--recess); transition: border-color var(--motion), background var(--motion); }
.account-page .project-form input:focus, .account-page .project-form textarea:focus, .account-page .project-form select:focus { border-color: var(--accent); background: var(--surface); }
.account-page button { transition: transform var(--spring), background var(--motion), box-shadow var(--motion); }
.account-page button:active { transform: scale(.975); }
.account-page .account-bar { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-nested); background: var(--glass-clear); color: var(--muted); font-size: 14px; }
.account-page .account-bar form { flex-shrink: 0; }
.account-page .account-bar button { padding: 10px 16px; font-size: 14px; }
.account-page .project-form .owner-confirmation { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--glass-clear); }
.account-page .owner-confirmation input { margin-top: 2px; }
.account-page .form-actions { gap: 12px; }
.account-page .form-actions button { flex: 0 1 auto; }
.account-page .form-notice { line-height: 1.7; }
.account-page .form-notice[role=alert] { background: var(--warning-bg); color: var(--warning-text); }
.account-page .project-list li > a { font-weight: 600; }
.account-page .project-list li > span { display: inline-block; margin-left: 16px; }
.account-page > footer { padding-block: 24px 40px; margin-top: 32px; }
/* Override legacy account-wide buttons only for the shared appearance menu. */
.account-page .preference-option { display: flex; min-height: 44px; padding: 11px 12px; border: 0; background: transparent; color: var(--ink); font: 400 13px/1.5 var(--font-body); box-shadow: none; }
.account-page .preference-option[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (hover: hover) {
  .account-page button:hover { box-shadow: var(--shadow-lift); }
  .account-page .preference-option:hover { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
  .account-page .quiet-button:hover { background: var(--accent-soft); }
}
@media (max-width: 600px) {
  .account-page > header, .account-page > main, .account-page > footer { width: calc(100% - 32px); }
  .account-page .masthead { min-height: 68px; padding: 10px 14px; gap: 10px; }
  .account-page .wordmark { font-size: 23px; }
  .account-page .wordmark small { font-size: 10px; }
  .account-page .account-intro { padding: 24px 4px; }
  .account-navigation { gap: 4px 20px; margin-top: 16px; }
  .account-page main > article, .account-page main > section { padding: 24px 20px; border-radius: 28px; }
  .account-page .account-bar { padding: 12px 16px; gap: 8px 16px; }
  .account-page .form-actions { flex-direction: column; gap: 12px; margin-top: 24px; }
  .account-page .form-actions button { width: 100%; margin-top: 0; }
  .account-page .project-list li > span { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .account-page button, .account-page .project-form input, .account-page .project-form textarea, .account-page .project-form select { transition: none; }
  .account-page button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .account-page main > article, .account-page main > section, .account-page .account-bar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .account-page main > article, .account-page main > section, .account-page .account-bar, .account-page .project-form .owner-confirmation, .account-page .form-notice, .account-page .preference-option, .account-page .project-form input:not([type=hidden]), .account-page .project-form textarea, .account-page .project-form select { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .account-page .preference-option[aria-pressed=true] { color: HighlightText; background: Highlight; }
}

@media (max-width: 420px) {
  .account-page .wordmark img { width: 32px; height: 32px; }
  .account-page .wordmark small { display: none; }
  .account-page .wordmark { gap: 8px; font-size: 21px; }
  .account-header-actions { gap: 4px; }
  .account-page .masthead { padding-inline: 10px; }
}