/* Member account pages (account.php). */
.account-page{background:#f7f5f9}
.acct-main{--ink:var(--brand-text,#1d1a21);--muted:var(--brand-muted,#6b6570);--line:var(--brand-line,#e6e2ea);--soft:var(--brand-surface,#f4f1f7);--purple:var(--brand-primary,#241236);min-height:60vh;padding:40px max(20px,calc((100% - 1100px*var(--brand-width,1))/2)) 80px;color:var(--ink);font-family:var(--brand-font-body,"DM Sans",Raleway,Arial,sans-serif)}
.acct-main *{box-sizing:border-box}
.acct-main h1{margin:0 0 20px;font-family:inherit;font-size:clamp(28px,3vw,38px);font-weight:700;letter-spacing:-.5px;text-transform:none;color:var(--ink)}
.acct-main h2{margin:0 0 14px;font-family:inherit;font-size:19px;font-weight:700;text-transform:none;color:var(--ink)}
.acct-main a{color:var(--purple)}
.acct-flash{max-width:1100px;margin:0 0 20px;padding:12px 16px;border-radius:12px;font-size:15px;font-weight:500}
.acct-flash--ok{background:#e3f3ea;color:#17623d}
.acct-flash--err{background:#fdecee;color:#a22434}

/* Cards, fields, buttons */
.acct-card{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--brand-bg,#fff)}
.acct-form{display:grid;gap:14px}
.acct-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.acct-row--end{grid-template-columns:1fr 1fr auto;align-items:end}
.acct-field{display:grid;gap:6px;font-size:14px;font-weight:600}
.acct-field em{font-style:normal;font-weight:400;color:var(--muted)}
.acct-field input{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--brand-bg,#fff);font:inherit;font-size:16px;font-weight:400;color:var(--ink)}
.acct-field input:focus{outline:0;border-color:var(--purple);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary,#241236) 13.3%,transparent)}
.acct-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border:1px solid var(--line);border-radius:12px;background:var(--brand-bg,#fff);color:var(--ink)!important;font:inherit;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .2s,transform .15s}
.acct-btn:hover{background:var(--soft)}
.acct-btn:active{transform:scale(.98)}
.acct-btn--dark{background:var(--purple);border-color:var(--purple);color:#fff!important}
.acct-btn--dark:hover{background:var(--brand-primary-2,#3a1f55)}
.acct-btn--ghost{background:transparent}
.acct-help{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}
.acct-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.acct-link{padding:0;border:0;background:none;color:var(--purple);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.acct-link:disabled{color:var(--muted);text-decoration:none;cursor:default}
.acct-inline{display:inline;margin-left:6px}
/* Sign-in steps: email → code → (first time) name */
.acct-step{display:grid;gap:16px;align-content:start}
.acct-step h2{margin:0;font-size:24px;letter-spacing:-.3px}
.acct-step-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--soft);color:var(--purple)}
.acct-step-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acct-step-icon--ok{background:#e3f3ea;color:#17623d}
.acct-sent{margin:-4px 0 0;color:var(--muted);font-size:15px;line-height:1.6}
.acct-sent strong{color:var(--ink);word-break:break-all}
.acct-resend{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:0;color:var(--muted);font-size:14px}
.acct-row--email{grid-template-columns:1fr auto}
.acct-details{grid-template-columns:1fr 1fr 1fr auto;align-items:end}
.acct-details h2{grid-column:1/-1;margin:0}
.acct-details .acct-row{grid-column:span 2}
@media(max-width:760px){.acct-details{grid-template-columns:1fr}.acct-details .acct-row{grid-column:auto}}
.acct-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.acct-pill{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}
.acct-pill--good{background:#e3f3ea;color:#17623d}.acct-pill--info{background:#e8eefc;color:#1d4ed8}.acct-pill--warn{background:#fff3d6;color:var(--brand-accent-ink,#8a6510)}.acct-pill--muted{background:var(--soft);color:var(--muted)}
.acct-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d42f2f;vertical-align:middle}

/* Sign in / sign up */
.acct-auth{display:grid;grid-template-columns:1fr minmax(0,460px);gap:56px;align-items:center;max-width:1000px;margin:0 auto}
.acct-auth-intro p{font-size:18px;line-height:1.6;color:var(--muted);margin:0 0 18px}
.acct-perks{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.acct-perks li{position:relative;padding-left:30px;font-size:16px}
.acct-perks li::before{content:"";position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;background:#e3f3ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317623d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat}
.acct-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;margin-bottom:20px;border-radius:12px;background:var(--soft)}
.acct-switch a{display:grid;place-items:center;min-height:42px;border-radius:9px;color:var(--muted)!important;font-weight:600;text-decoration:none}
.acct-switch a[aria-selected=true]{background:var(--brand-bg,#fff);color:var(--ink)!important;box-shadow:0 1px 3px color-mix(in srgb,var(--brand-text,#1d1a21) 12.2%,transparent)}

/* Signed-in shell */
.acct-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:start;max-width:1100px;margin:0 auto}
.acct-side{position:sticky;top:calc(var(--mm-chrome,125px) + 20px);display:grid;gap:14px}
.acct-me{display:flex;align-items:center;gap:12px;padding:6px}
.acct-me span:last-child{display:grid;min-width:0}
.acct-me strong{font-size:16px}
.acct-me small{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-avatar{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:50%;background:var(--purple);color:#fff;font-size:18px;font-weight:700}
.acct-tabs{display:grid;gap:2px}
.acct-tabs a{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 14px;border-radius:12px;color:var(--ink)!important;font-weight:500;text-decoration:none}
.acct-tabs a:hover{background:var(--brand-bg,#fff)}
.acct-tabs a[aria-current=page]{background:var(--brand-bg,#fff);font-weight:700;box-shadow:inset 3px 0 0 var(--purple),0 1px 3px color-mix(in srgb,var(--brand-text,#1d1a21) 7.8%,transparent)}
.acct-signout button{width:100%;min-height:44px;border:0;border-radius:12px;background:none;color:var(--muted);font:inherit;font-weight:600;text-align:left;padding:0 14px;cursor:pointer}
.acct-signout button:hover{background:var(--brand-bg,#fff);color:var(--ink)}
.acct-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.acct-card--wide{grid-column:1/-1}
.acct-email-now{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;font-size:17px}
.acct-note{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 16px;border-radius:12px;background:#fff7e0;color:#5c4510}
.acct-note p{margin:0;flex:1 1 300px}
.acct-email-change summary{display:inline-flex;min-height:44px;align-items:center;font-weight:700;color:var(--purple);cursor:pointer}
.acct-email-change[open] summary{margin-bottom:6px}
.acct-email-change .acct-form{margin-top:12px}
.acct-lead{max-width:640px;margin:-6px 0 18px;font-size:16px;line-height:1.6;color:var(--muted)}
.acct-status{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.acct-stat{display:grid;gap:8px;align-content:start}
.acct-stat-k{font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.acct-stat strong{font-size:21px}
.acct-stat .acct-pill{justify-self:start}
.acct-stat small{font-size:14px;color:var(--muted);line-height:1.5}
.acct-list{display:grid;gap:12px;margin:20px 0 0;padding:0;list-style:none}
.acct-prayer-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.acct-prayer-top time{font-size:14px;font-weight:600;color:var(--muted);margin-right:auto}
.acct-prayer p{margin:0;font-size:16px;line-height:1.65}
.acct-prayer small{display:block;margin-top:10px;color:#17623d;font-weight:600}
.acct-event{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px}
.acct-event.is-past{opacity:.6}
.acct-date{display:grid;place-items:center;width:60px;height:60px;border-radius:14px;background:var(--soft);font-size:22px;font-weight:700;line-height:1}
.acct-date b{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#d42f2f;margin-bottom:2px}
.acct-event-text{display:grid;gap:3px;color:var(--ink)!important;text-decoration:none}
.acct-event-text strong{font-size:18px}
.acct-event-text span,.acct-event-text small{color:var(--muted);font-size:14px}
.acct-event-text:hover strong{text-decoration:underline;text-underline-offset:3px}
.acct-icon{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:var(--soft);color:var(--purple);cursor:pointer}
.acct-icon svg{width:20px;height:20px;fill:currentColor;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.acct-icon:hover{background:#ece6f2}
.acct-empty{display:grid;justify-items:center;gap:10px;margin-top:20px;padding:48px 20px;border:1px dashed var(--line);border-radius:18px;text-align:center;color:var(--muted);background:var(--brand-bg,#fff)}
.acct-empty p{margin:0;font-size:18px;font-weight:700;color:var(--ink)}

@media(max-width:860px){
.acct-auth{grid-template-columns:1fr;gap:24px}
.acct-auth-intro h1{font-size:28px}.acct-perks{display:none}
.acct-shell{grid-template-columns:1fr;gap:18px}
.acct-side{position:static}
.acct-tabs{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none;margin:0 -20px;padding:0 20px}
.acct-tabs::-webkit-scrollbar{display:none}
.acct-tabs a{flex:none;min-height:40px;border:1px solid var(--line);background:var(--brand-bg,#fff);border-radius:20px}
.acct-tabs a[aria-current=page]{background:var(--purple);color:#fff!important;box-shadow:none;border-color:var(--purple)}
.acct-signout{display:none}
.acct-grid{grid-template-columns:1fr}
.acct-row,.acct-row--end{grid-template-columns:1fr}
.acct-main{padding-top:24px}
.acct-card{padding:20px}
}

/* Password sign-in, sign-up and "awaiting approval" (after Mobbin: Emergent's centred status page,
   Calendly's Pending users, and a stepped timeline). */
.acct-method{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:var(--soft)}
.acct-method a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:11px;color:var(--muted)!important;font-size:14px;font-weight:600;text-decoration:none;transition:background .18s,color .18s,box-shadow .18s}
.acct-method a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.acct-method a:hover{color:var(--ink)!important}
.acct-method a[aria-current=page]{background:var(--brand-bg,#fff);color:var(--purple)!important;box-shadow:0 1px 2px color-mix(in srgb,var(--brand-text,#1d1a21) 7.8%,transparent),0 2px 8px color-mix(in srgb,var(--brand-text,#1d1a21) 5.1%,transparent)}
.acct-pw{position:relative;display:block}
.acct-pw input{padding-right:52px}
.acct-pw-eye{position:absolute;top:50%;right:6px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:none;color:var(--muted);transform:translateY(-50%);cursor:pointer}
.acct-pw-eye:hover{background:var(--soft);color:var(--ink)}
.acct-pw-eye svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.acct-pw-eye[aria-pressed=true]{color:var(--purple)}
.acct-hint{font-size:13px;font-weight:400;line-height:1.45;color:var(--muted);min-height:1em}
.acct-hint.is-bad{color:#a22434}.acct-hint.is-good{color:#17623d}
.acct-field input:user-invalid{border-color:#e5a0a8}
.acct-meter{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:2px}
.acct-meter i{height:4px;border-radius:4px;background:var(--line);transition:background .25s}
.acct-meter[data-score="1"] i:nth-child(-n+1){background:#d0505e}
.acct-meter[data-score="2"] i:nth-child(-n+2){background:var(--brand-accent,#d9b24c)}
.acct-meter[data-score="3"] i:nth-child(-n+3){background:#5aa772}
.acct-meter[data-score="4"] i{background:#17623d}
.acct-switch{margin:0;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.acct-back{display:inline-flex;align-items:center;gap:4px;justify-self:start;color:var(--muted)!important;font-size:14px;font-weight:600;text-decoration:none}
.acct-back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.acct-back:hover{color:var(--ink)!important}
.acct-step-icon--wait{background:#fbf3dc;color:#8a6a12}
.acct-step-icon--wait svg{animation:acctTick 6s linear infinite;transform-origin:50% 50%}
.acct-step-icon--warn{background:#fdecee;color:#a22434}
@keyframes acctTick{to{transform:rotate(360deg)}}
.acct-steps{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:0}
.acct-steps li{position:relative;display:grid;grid-template-columns:28px 1fr;gap:12px;padding:0 0 18px}
.acct-steps li:not(:last-child)::before{content:"";position:absolute;left:13px;top:28px;bottom:2px;width:2px;background:var(--line)}
.acct-steps li.is-done::before{background:var(--brand-primary,#241236)}
.acct-steps b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--line);background:var(--brand-bg,#fff)}
.acct-steps b svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.acct-steps .is-done b{border-color:var(--brand-primary,#241236);background:var(--brand-primary,#241236)}
.acct-steps .is-now b{border-color:var(--brand-accent,#d9b24c);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-accent,#d9b24c) 20%,transparent)}
.acct-steps .is-now b::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand-accent,#d9b24c);animation:acctPulse 1.6s ease-in-out infinite}
@keyframes acctPulse{50%{transform:scale(.55);opacity:.5}}
.acct-steps span{display:grid;gap:2px;padding-top:3px}
.acct-steps strong{font-size:15px}
.acct-steps small{font-size:13px;color:var(--muted)}
.acct-steps li:not(.is-done):not(.is-now) strong{color:var(--muted);font-weight:600}
.acct-btn--ghost{background:var(--brand-bg,#fff)}
.acct-avatar--img{object-fit:cover;border-radius:12px;width:52px;height:52px}
.acct-switch-profile{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:12px;color:var(--muted)!important;font-weight:600;text-decoration:none}
.acct-switch-profile svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.acct-switch-profile:hover{background:var(--brand-bg,#fff);color:var(--ink)!important}
@media(prefers-reduced-motion:reduce){.acct-step-icon--wait svg,.acct-steps .is-now b::after{animation:none}}

/* Admin access (Account Status): the admin user linked to this account, its role and what it opens. */
.acct-access{margin-top:16px;display:grid;gap:14px}
.acct-access-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.acct-access-head h2{margin:6px 0 4px;font-size:24px}
.acct-access-head p{margin:0;max-width:560px;color:var(--muted);line-height:1.55}
.acct-access .acct-help{margin:0;font-size:14px;color:var(--muted);line-height:1.55}
.acct-access-k{margin:0;font-size:13px;font-weight:700;color:var(--ink)}
.acct-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.acct-chips li{padding:6px 12px;border-radius:999px;background:var(--soft);font-size:14px;font-weight:600}
.acct-chips--extra li{background:#fff7e0;color:#5c4510}
.acct-access-perms summary{display:inline-flex;min-height:44px;align-items:center;font-weight:700;color:var(--purple);cursor:pointer}
.acct-access-group{display:grid;grid-template-columns:minmax(140px,200px) 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.5}
.acct-access-group span{color:var(--muted)}
@media(max-width:600px){.acct-access-group{grid-template-columns:1fr;gap:2px}.acct-access-head .acct-btn{width:100%}}
