.account-page .page::before { left: 0; }
.account-page .page::after { right: 0; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 72px; padding: 28px 0 64px; }
.account-intro { padding-top: 22px; }
.account-intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.15; letter-spacing: -0.055em; margin: 18px 0 24px; }
.account-intro .lede { font-size: 1.1rem; line-height: 1.8; }
.account-intro-note { margin-top: 44px; border-top: 1px solid var(--stroke); padding-top: 26px; max-width: 420px; }
.account-intro-note h2 { font-size: 1.15rem; margin: 12px 0; }
.account-intro-note p:not(.eyebrow) { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-top: 12px; word-break: keep-all; }
.account-card { min-width: 0; padding: 32px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.account-tabs { display: flex; padding: 5px; gap: 6px; border-radius: 14px; background: #f0ede7; margin-bottom: 30px; }
.account-tabs a { flex: 1; text-align: center; padding: 12px 8px; border-radius: 10px; font-weight: 700; }
.account-tabs a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: 0 4px 8px #00000012; }
.account-card h2 { font-size: 1.6rem; letter-spacing: -0.04em; margin: 0 0 12px; }
.form-description { font-size: 0.93rem; color: var(--muted); line-height: 1.7; margin-bottom: 26px; word-break: keep-all; }
.account-card form > label { display: block; font-size: 0.9rem; font-weight: 700; margin: 18px 0 8px; }
.account-card input:not([type="checkbox"]) { display: block; width: 100%; min-height: 50px; border: 1px solid #c9c6be; background: #fcfbf8; border-radius: 10px; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 1rem; }
.account-card input:focus { border-color: var(--accent-dark); outline: 3px solid #c7ff3d66; outline-offset: 2px; }
.password-field { position: relative; }
.account-card .password-field input { padding-right: 68px; }
.password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: 0.85rem; cursor: pointer; }
.field-help { margin-top: 8px; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.account-submit { width: 100%; justify-content: center; margin-top: 26px; min-height: 52px; font: inherit; font-weight: 700; cursor: pointer; }
.account-card button:disabled { opacity: 0.55; cursor: wait; }
.account-help { margin-top: 18px; font-size: 0.83rem; color: var(--muted); line-height: 1.7; text-align: center; word-break: keep-all; }
.account-help a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.account-agreements { margin-top: 26px; border: 0; border-top: 1px solid var(--stroke); padding-top: 18px; }
.account-agreements legend { font-size: 0.9rem; font-weight: 700; padding-right: 12px; }
.account-agreements > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 0.84rem; }
.account-agreements label { display: flex; align-items: center; gap: 9px; }
.account-agreements input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #425b04; }
.account-agreements a { flex-shrink: 0; padding: 6px 0 6px 6px; text-decoration: underline; }
.account-status { padding: 14px 16px; margin-bottom: 20px; border-radius: 12px; color: #37490c; background: #edf4d6; font-size: 0.9rem; line-height: 1.7; overflow-wrap: anywhere; }
.account-status[data-error="true"] { background: #fff0eb; color: #98320c; }
.account-status:empty { display: none; }
.member-panel { padding: 10px 0; }
.member-panel h2 { margin: 18px 0 12px; font-size: 2rem; line-height: 1.35; overflow-wrap: anywhere; }
.member-email { font-weight: 600; overflow-wrap: anywhere; margin-bottom: 24px; }
.member-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.member-panel .btn + .btn { margin-top: 12px; }
.logout-button { display: block; margin: 28px auto 0; padding: 8px 12px; border: 0; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.account-footer { margin-top: 12px; }
.account-footer p { line-height: 1.8; }
.account-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 0.9rem; }
.account-page a:focus-visible, .account-page button:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
.account-page [hidden] { display: none !important; }
.account-policy { max-width: 780px; margin: 20px auto 64px; }
.account-policy h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 12px 0 24px; }
.account-policy .policy-content { padding: 32px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--surface); white-space: pre-wrap; font: inherit; font-size: 0.95rem; line-height: 1.9; overflow-wrap: anywhere; }
.account-policy .policy-note { margin-bottom: 20px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .account-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .account-card { padding: 24px; }
}
@media (max-width: 680px) {
  .account-page .site-header { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-bottom: 26px; }
  .account-page .site-header .nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; font-size: 0.9rem; }
  .account-page .site-header > .btn { grid-column: 2; grid-row: 1; padding: 10px 16px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; }
  .account-intro { padding-top: 0; grid-row: 2; }
  .account-intro h1 { font-size: 2.5rem; }
  .account-intro-note { margin-top: 24px; padding-top: 20px; }
  .account-card { padding: 24px 20px; grid-row: 1; }
  .account-card h2 { font-size: 1.45rem; }
  .account-policy .policy-content { padding: 20px; }
}
