#account-panel{border:0;padding:0;background:transparent}
#account-panel>.account-form,#account-panel>.account-providers,#account-panel>.account-or,#account-panel>h2,#account-panel>.account-switch{max-width:36rem;margin-inline:auto}
#account-panel>.account-form{margin-top:1.5rem}#account-panel>.account-or{margin-block:1.5rem}
.account-dashboard{display:grid;grid-template-columns:240px minmax(0,1fr);gap:3rem;padding-top:1rem}
.account-sidebar{border-right:1px solid var(--border);padding-right:1.8rem;display:flex;flex-direction:column;align-self:stretch}
.profile-summary{display:flex;gap:.8rem;align-items:center;margin-bottom:2rem;min-width:0}
.profile-avatar{width:42px;height:42px;flex:none;border:1px solid var(--accent);color:var(--accent);background:var(--surface);border-radius:50%;display:grid;place-items:center;font-size:1rem;font-weight:600}
.profile-summary>div{min-width:0}.profile-name{display:block;overflow-wrap:anywhere;line-height:1.3;font-size:.95rem}
.profile-state{font-size:.8rem;color:var(--muted)}
.account-tabs{display:flex;flex-direction:column;gap:.4rem}
.account-tabs button{min-height:48px;text-align:left;padding:.65rem .9rem;border:1px solid transparent;background:transparent;color:var(--muted);font-weight:550;border-radius:3px}
.account-tabs button[aria-selected=true]{background:var(--surface);border-color:var(--border);color:var(--text)}
.account-tabs button:hover{color:var(--text);background:var(--surface)}
.quiet-button{margin-top:2rem;min-height:48px;align-self:flex-start;padding:.5rem 0;border:0;background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:.3em}
.quiet-button:hover{color:var(--text)}
.account-content{min-width:0;min-height:370px;padding-bottom:2rem}
.account-content h2{font-size:2rem}.account-eyebrow{text-transform:uppercase;font-size:.65rem;font-weight:600;letter-spacing:.16em;color:var(--muted);margin:0 0 .8rem}
.collection-empty{border:1px solid var(--border);padding:clamp(1.5rem,4vw,3rem);margin-top:1.8rem;background:var(--surface)}
.collection-empty svg{width:48px;height:48px;fill:none;stroke:var(--muted);stroke-width:1.3;margin-bottom:1.5rem}
.collection-empty h3{font-size:1.45rem}.collection-empty p{color:var(--muted);max-width:45ch;margin-bottom:1.5rem}
.profile-details{max-width:36rem;margin:2rem 0 .75rem}.profile-details>div+div{margin-top:1.5rem}.profile-details dt{color:var(--muted);font-size:.85rem}.profile-details dd{margin:.4rem 0 0;overflow-wrap:anywhere;font-weight:550}
.email-state{font-size:.75rem;border:1px solid var(--border);padding:.25rem .5rem;display:inline-block;color:var(--muted)}
.profile-preferences,.account-session{border-top:1px solid var(--border);margin-top:2rem;padding-top:2rem}
.profile-preferences p,.account-session p,.account-danger p{color:var(--muted)}
.profile-email-preferences .account-news{padding:0;border:0;background:transparent;margin:0}
.account-content .account-password{margin:1.8rem 0 0;padding:0;border:0}
.account-content .account-password form{margin-top:1rem}
.account-danger{margin-top:2.5rem;border-top:1px solid var(--border);padding-top:1.5rem}
.account-danger summary{min-height:44px;cursor:pointer;color:var(--muted);display:list-item;list-style:revert;margin-left:1rem;padding:.5rem 0}
.account-danger p{margin-top:1rem}.account-actions .account-delete{border-color:#bc7866;color:var(--text)}
.account-content [role=tabpanel]:focus-visible{outline-offset:8px}
.account-content #account-status{padding:1rem;border-left:2px solid var(--accent);background:var(--surface)}
@media(max-width:760px){
 .account-dashboard{grid-template-columns:1fr;gap:1.5rem}
 .account-sidebar{border:0;border-bottom:1px solid var(--border);padding:0 0 1rem;display:grid;grid-template-columns:1fr auto;gap:1rem}
 .profile-summary{margin:0}.account-tabs{grid-column:1/-1;grid-row:2;flex-direction:row;gap:.35rem}
 .account-tabs button{flex:1;text-align:center;padding:.55rem .5rem;font-size:.85rem;white-space:normal}
 .quiet-button{grid-column:2;grid-row:1;margin:0;align-self:center;font-size:.85rem}
 .account-content{min-height:0}.account-content h2{font-size:1.75rem}.collection-empty{margin-top:1rem}
}

.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.account-name{flex:1;min-width:0;overflow-wrap:anywhere}.profile-edit{background:transparent;color:var(--text);border:1px solid var(--border);border-radius:3px;flex:none;width:44px;height:44px;min-width:44px;padding:.65rem;display:grid;place-items:center}.profile-edit svg{width:22px;height:22px}.profile-edit-actions{display:flex;flex-wrap:wrap;gap:.75rem}.profile-name-form .profile-edit-actions button{width:auto;min-width:6rem}
@media(max-width:440px){.name-fields{grid-template-columns:1fr;gap:0}}

/* Shared customer details, BA-99. The page editor keeps related fields grouped on narrow screens. */
.customer-details{display:grid;gap:0;margin-top:1rem}.profile-detail-group{padding:1.25rem 0;border-top:1px solid var(--border)}
.profile-group-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.profile-group-heading h3{margin:0}
.profile-detail-value{white-space:pre-line;overflow-wrap:anywhere;margin:.65rem 0;line-height:1.6}
.profile-detail-form{margin-top:1rem}.profile-detail-form select,.signup-contact-details select{width:100%;min-height:44px;padding:.7rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font:inherit}
.signup-contact-details{padding:1rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.account-password>.profile-edit{margin-top:.5rem}

.profile-detail-form[hidden],#profile-password-editor[hidden],.account-password>.profile-edit[hidden]{display:none}

.customer-details{max-width:36rem}.profile-group-heading h3{font-size:1rem;font-weight:600}.personal-name-value{display:grid;grid-template-columns:1fr 1fr;gap:1rem;white-space:normal}.personal-name-value>div{display:grid;gap:.35rem;min-width:0}.profile-value-label{color:var(--muted);font-size:.85rem}.profile-detail-form select,.signup-contact-details select{min-height:48px;border-radius:0;background:var(--raised)}.profile-details>.profile-name-detail[hidden]{display:none}

.account-form input[type=tel]{display:block;width:100%;min-height:48px;padding:.75rem;border:1px solid var(--border);border-radius:0;background:var(--raised);color:var(--text);font:inherit;box-sizing:border-box}.account-form select{display:block;width:100%;height:48px;min-height:48px;padding:.7rem;border:1px solid var(--border);border-radius:0;background:var(--raised);color:var(--text);font:inherit;box-sizing:border-box}

/* Signup: one optional billing section, then a separate optional phone section. */
.create-account-form .name-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.create-account-form label{min-width:0}

.signup-address-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.signup-address-grid label{display:grid;align-content:start;gap:.4rem;margin:0}.signup-address-grid label:has([name=addressLine1]),.signup-address-grid label:has([name=addressLine2]),.signup-address-grid label:has([name=country]){grid-column:1/-1}
.account-form .account-create-cancel{width:100%;min-height:48px;margin-top:0;background:#a52b26;border:1px solid #a52b26;color:#fff;font:inherit;font-weight:650}.account-form .account-create-cancel:hover{background:#84231f;border-color:#84231f}.account-form .account-create-cancel:disabled{opacity:.6}
@media(max-width:350px){.signup-address-grid{grid-template-columns:1fr}}

.create-account-form fieldset.signup-contact-details{display:block;min-width:0;margin:0;padding:1rem 0;border:0;border-top:1px solid var(--border)}.signup-contact-details legend{font-weight:600;padding:0 .6rem 0 0}.signup-contact-details .field-help{margin:.2rem 0 1rem}.signup-address-grid label{align-content:stretch;grid-template-rows:1fr 48px}.signup-phone>label{display:grid;gap:.4rem;margin:.5rem 0 0}

.signup-address-grid select,.signup-address-grid input{min-width:0;max-width:100%}

.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.profile-heading h2{margin:0}
#profile-editor[hidden],#profile-read[hidden]{display:none}
.profile-edit-group{display:grid;gap:.75rem;border:0;border-top:1px solid var(--border);min-inline-size:0;margin:0;padding:.75rem 0 0}
.profile-edit-group legend{font-weight:600;padding:0 .55rem 0 0}
#profile-editor .profile-edit-actions{margin-top:.5rem}

.profile-email-resend{display:block;margin:.4rem 0 0;min-height:44px}.profile-email-resend[hidden]{display:none}
