/* Account (SMESH prototype). The same pieces as the coach workspace Profile (ws.css: .hub, .hub-h, .pcard, .ed, .ed-h, .ed-acts, .opt.tall),
   copied here so both pages look alike: one column, a row opens its setting in place. */
.ac-page .wrap,.ac-page{max-width:100%}
#ac{max-width:720px;margin:0}
#ac h1:focus{outline:none}

/* Profile hub (Q65) */
.hub{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.hub a{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:4px 12px;align-items:center;min-height:64px;padding:12px 4px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none;transition:background-color .16s var(--ease)}
.hub a:active{background:rgba(242,245,238,.06)}
@media (hover:hover) and (pointer:fine){.hub a:hover{background:rgba(242,245,238,.04)}}
.hub b{font-weight:700}
.hub span.v{color:var(--muted);font-weight:600;font-size:15px;text-align:end;max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub .warn b{color:var(--err)}
.hub .chev{width:18px;height:18px;color:var(--muted)}
:dir(rtl) .hub .chev{transform:scaleX(-1)}
.hub-h{font-size:20px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--text);margin:28px 0 8px}
/* rows with a leading icon (the same on the workspace Profile list) */
.hub.ic a{grid-template-columns:20px minmax(0,1fr) auto 18px}
.hub .ri{width:20px;height:20px;color:var(--muted)}
.hub .ac-wideonly{display:none}
@media (min-width:761px){.hub .ac-wideonly{display:list-item}}
.pcard{display:grid;grid-template-columns:72px minmax(0,1fr);gap:4px 16px;align-items:center;padding:16px;margin-bottom:8px;border-radius:var(--r-l);background:var(--surface);border:1px solid var(--line-2)}
.pcard b{font-size:19px;font-weight:800;display:flex;align-items:center;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere;min-width:0}
.pcard p{color:var(--soft);margin:0}
.ac-av{grid-row:span 2;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line-2);color:rgba(242,245,238,.82)}
.ac-av .icon{width:32px;height:32px}
.ac-see{margin-top:4px}
.ac-acts{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 4px}
/* sign out: the plain last row (Airbnb, Instagram, iOS); an action, so no chevron and not red */
.ac-end{margin-top:28px}
.ac-signout{display:grid;gap:2px;justify-items:start;width:100%;min-height:64px;padding:12px 4px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);font:inherit;text-align:start;cursor:pointer;transition:background-color .16s var(--ease)}
.ac-signout b{font-weight:700}
.ac-signout span{color:var(--muted);font-size:15px;font-weight:600}
.ac-signout:active{background:rgba(242,245,238,.06)}
.ac-signout:focus-visible{outline:2px solid var(--lime);outline-offset:-2px}
@media (hover:hover) and (pointer:fine){.ac-signout:hover{background:rgba(242,245,238,.04)}}
.ac-ver{margin:16px 4px 0;color:var(--muted);font-size:14px}
.ac-letter{font:800 28px/1 'Manrope',sans-serif;color:var(--text)}

/* one setting (workspace editor) */
.ed{display:grid;gap:22px;max-width:640px}
.ed-h h1{font-size:40px}
.ed-h p{color:var(--soft);margin-top:8px;text-wrap:pretty}
.opt-d{display:grid;gap:2px}
.opt-d small{color:var(--muted);font-weight:600;font-size:15px}
.opt.tall{align-items:flex-start;padding:14px 16px;min-height:72px}
.opt.tall .ring{margin-top:3px}
.opt:has(input:checked) .opt-d > span:first-child{color:var(--lime)}
.ed-acts{position:sticky;bottom:0;z-index:6;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-inline:-4px;padding:12px 4px calc(12px + env(safe-area-inset-bottom));background:var(--page);border-top:1px solid var(--line-2)}
select.inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-inline-end:44px;color:var(--text)}

/* switch row: saves when flipped */
.ac-swrow{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:12px 4px;border-bottom:1px solid var(--line)}
.ac-swrow b{font-weight:700}
.ac-switch{position:relative;flex:none;width:56px;height:32px;border-radius:999px;border:0;padding:0;background:rgba(242,245,238,.18);cursor:pointer;transition:background-color .2s var(--ease)}
.ac-switch::before{content:"";position:absolute;inset:-6px}
.ac-switch .knob{position:absolute;top:3px;inset-inline-start:3px;width:26px;height:26px;border-radius:50%;background:#f2f5ee;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .2s var(--ease)}
.ac-switch[aria-checked="true"]{background:var(--lime)}
.ac-switch[aria-checked="true"] .knob{transform:translateX(24px);background:#141813}
:dir(rtl) .ac-switch[aria-checked="true"] .knob{transform:translateX(-24px)}
.ac-switch:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.ac-ok{display:flex;gap:8px;align-items:flex-start;margin:-10px 0 0;font-weight:700;font-size:16px}
.ac-ok:empty{display:none}
.ac-ok .icon{width:18px;height:18px;margin-top:2px;color:var(--lime);flex:none}
.ac-ok.bad,.ac-ok.bad .icon{color:var(--err)}
.note .icon{width:18px;height:18px;margin-top:3px;flex:none;color:var(--muted)}

/* blocks inside a setting */
.ac-blk{display:grid;gap:10px;padding-top:20px;border-top:1px solid var(--line)}
.ac-blk h2{font-size:20px;font-weight:700}
.ac-blk h2:focus{outline:none}
.ac-blk p{margin:0}
.ac-blk .hub{margin-top:4px}
.ac-on{display:flex;gap:8px;align-items:flex-start;font-weight:700}
.ac-on .icon{width:18px;height:18px;margin-top:3px;color:var(--lime);flex:none}
.ac-steps{margin:4px 0 0;padding-inline-start:22px;display:grid;gap:16px}
.ac-steps li::marker{font-weight:800}
.ac-steps p{margin:0 0 8px}
.ac-qr{display:block;width:180px;height:180px;border-radius:12px;margin:4px 0 10px;background:#f2f5ee;padding:8px;box-sizing:border-box}
.ac-steps code{font:700 16px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.04em;color:var(--text);white-space:nowrap}
#mf-form .field{max-width:280px}
.ac-what{margin:0;padding-inline-start:20px;display:grid;gap:8px}
.ed .hub-h{margin:0}
.ac-bk li > div{display:grid;gap:2px;padding:12px 4px;border-bottom:1px solid var(--line)}
.ac-bk b{font-variant-numeric:tabular-nums}
.ac-bk span{color:var(--muted);font-size:16px;overflow-wrap:anywhere}
.ac-fixed{color:var(--soft);font-size:16px;margin:0}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ac-spin .8s linear infinite;display:inline-block}
@keyframes ac-spin{to{transform:rotate(360deg)}}

@media (max-width:760px){
  .ed-h h1{font-size:32px}
  .ac-acts .btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){
  .ac-switch .knob{transition:none}
  .spin{animation-duration:1.6s}
}
.ac-wide{display:none}
@media (min-width:761px){.ac-wide{display:block}}
.hub .warn .ri{color:var(--err)}

/* round 3: delete pair */
#sheet .sh-acts{flex-wrap:nowrap}
#sheet .sh-acts .btn{flex:0 1 auto}
@media (max-width:760px){#sheet .sh-acts .btn{flex:1 1 auto}}
