.account-main { min-height: 65vh; padding-block: clamp(35px, 7vw, 85px); }
.account-lead { color: var(--muted); margin-top: 10px; }
#account-status:not(:empty) { margin-top: 16px; padding: 10px 14px; background: var(--sand); border-radius: 7px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px; align-items: start; margin-top: 28px; }
.account-panel, .account-order { border: 1px solid var(--border); border-radius: 10px; background: #fffdf6; padding: clamp(17px, 3vw, 26px); }
.account-panel p { margin-top: 9px; }
.account-panel h2, .account-heading h2 { font-size: 30px; }
.account-panel hr { border: 0; border-top: 1px solid var(--border); margin: 23px 0; }
.account-panel form { margin-top: 13px; }
.account-panel label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.account-panel input { width: 100%; min-width: 0; border: 1px solid #aaa28b; padding: 8px 10px; border-radius: 5px; background: var(--cream); font: inherit; }
.account-panel button { margin-top: 10px; }
.account-actions, .account-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.account-heading { justify-content: space-between; margin-bottom: 16px; }
.account-period { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.account-period select { border: 1px solid #aaa28b; border-radius: 5px; background: #fffdf6; padding: 5px 8px; color: var(--ink); font: inherit; }
.account-actions { margin-top: 15px; }
.account-actions .button[hidden] { display: none; }
/* Signed out: a single centred log-in column replaces the account heading and two-column layout. */
.account-main--signin .account-intro { display: none; }
.account-main--signin .account-layout { grid-template-columns: minmax(0, 360px); justify-content: center; margin-top: 0; }
.account-main--signin #account-status { max-width: 360px; margin-inline: auto; text-align: center; }
.account-main--signin #account-status:not(:empty) { margin-bottom: 22px; }
.account-login { text-align: center; }
.account-login h1 { font-size: clamp(34px, 5vw, 42px); }
.account-login p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.account-email { display: grid; gap: 12px; margin-top: 26px; }
.account-email input { width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid #aaa28b; border-radius: 10px; background: #fffdf6; color: var(--ink); font: 16px/1.4 var(--sans); }
.account-email input::placeholder { color: #6f786c; }
.account-email .button { width: 100%; min-height: 48px; font-size: 15px; }
.account-or { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.account-or::before, .account-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.account-providers { display: grid; gap: 12px; margin-top: 26px; }
.account-or:not([hidden]) + .account-providers { margin-top: 22px; }
.account-providers[hidden], .account-provider[hidden], .account-email[hidden], .account-or[hidden] { display: none; }
.account-provider { gap: 10px; width: 100%; min-height: 48px; background: #fffdf6; border-color: #aaa28b; color: var(--ink); font-size: 15px; }
.account-provider:hover { background: #fff; border-color: var(--green); }
.account-provider svg { flex: none; }
#signin-note { margin-top: 28px; color: var(--ink); font-size: 16px; }
#signin-switch { color: var(--green); font-weight: 600; text-decoration: none; }
#signin-switch:hover { text-decoration: underline; text-underline-offset: .3em; }
.account-guest { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.account-guest a { color: var(--ink); text-underline-offset: .3em; text-decoration-color: var(--gold-text); }
.account-order + .account-order { margin-top: 12px; }
.account-order ul { margin: 10px 0; padding-left: 20px; }
.account-order h3 { overflow-wrap: anywhere; }
.account-meta { color: var(--muted); font-size: 14px; margin-top: 5px; }
.account-meta + .account-meta { margin-top: 4px; }
#account-email { overflow-wrap: anywhere; }
@media (max-width: 760px) { .account-layout { grid-template-columns: minmax(0, 1fr); } }
