/* Local Account preparation. Existing member modules keep their session/access guards. */
.account-shell-active [data-account-pane][hidden],.account-workspace-nav[hidden],.account-workspace-waiting[hidden]{display:none!important}
.account-workspace-nav{padding-block:0 1.1rem}
.account-view-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.45rem}
.account-view-button,.account-option,.account-back{min-height:44px;min-width:44px;padding:.7rem 1rem;border:1px solid #d8d8cc;border-radius:7px;background:#fffdf8;color:#193e53;font:600 .9rem/1.4 var(--lt-sans);cursor:pointer;overflow-wrap:anywhere}
.account-view-button[aria-pressed=true]{background:#153b51;color:#fffdf8;border-color:#153b51;box-shadow:inset 0 -3px #c9a75c}
.account-view-button:hover,.account-option:hover,.account-back:hover{border-color:#8d713c}
.account-view-button:focus-visible,.account-option:focus-visible,.account-back:focus-visible,.account-current-title:focus-visible{outline:3px solid #23728e;outline-offset:4px}
.account-context{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.8rem}
.account-current-title{font:400 1.35rem/1.35 var(--lt-serif);color:#193e53;margin:0}
.account-back{font-size:.8rem;background:transparent}
.account-shell-active .book-library,.account-shell-active .shop-orders{padding-top:.7rem}
.account-shell-active .member-side::before{background:radial-gradient(ellipse at 74% 65%,#c6dcd3 0,transparent 58%),radial-gradient(circle at 20% 30%,#ead8aa 0,transparent 42%),linear-gradient(150deg,#dce9e4,#f3efe3 56%,#bfd8df)}
.account-shell-active .account-profile{padding:clamp(1.15rem,2.5vw,2.5rem);border:1px solid #d8d8cc;border-top:3px solid #b6944e;background:#fffdf8;border-radius:12px;box-shadow:0 16px 44px -25px #13283f24}
.account-profile h2{font:400 clamp(1.6rem,2.6vw,2.4rem)/1.2 var(--lt-serif);margin:0 0 1rem}
.account-profile h3{font:400 1.45rem/1.3 var(--lt-serif);margin:1.6rem 0 .8rem}
.account-profile-facts{display:grid;grid-template-columns:minmax(8rem,.35fr) minmax(0,1fr);gap:.75rem 1.2rem;padding:1rem 0;margin:0;border-block:1px solid #e4e2d8}
.account-profile-facts dt{font-weight:650;color:#52616d}
.account-profile-facts dd{margin:0;overflow-wrap:anywhere;color:#193e53}
.account-profile-email{font-size:1.1rem}
.account-profile-note{font-size:.85rem;line-height:1.6;max-width:70ch;color:#52616d}
.account-preference-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.account-option[aria-pressed=true]{background:#e4eee6;border-color:#8bab9b;box-shadow:inset 0 -3px #8bab9b}
.account-workspace-waiting{padding:1rem;border-left:3px solid #b6944e;background:#f2f3e9;color:#355665}
.account-larger-text :is(p,li,dt,dd,label,input,select,textarea,button,a){font-size:1.12rem!important;line-height:1.65}
@media(max-width:600px){.account-view-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.account-view-button:last-child:nth-child(odd){grid-column:1/-1}.account-profile-facts{grid-template-columns:minmax(0,1fr);gap:.3rem}.account-profile-facts dd{margin-bottom:.8rem}.account-context{align-items:flex-start}.account-current-title{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){.account-shell-active *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Real module review: wrapping a Shop section in its existing flex parent must not retain min-content width. */
.account-shell-active .account-pane:not(.wrap){min-width:0;width:100%;max-width:100%}
.account-shell-active .shop-pages{flex-wrap:wrap;gap:.5rem}
