/* ═══ ACCOUNT SCREENS (Ren 2026-10-31, canvas boards X1–X7). Screens from
   acctx.js: Change password, Policies, policy page, My QR ID, Manage users.
   Plus the Under maintenance and Account on hold overlays (.axn) built in
   clientView.js. Colours are the --ag-* tokens (agreements.css), so dark
   mode follows. Above Settings pop-ups (10040), below Help (10045). ═══ */
body.ax-lock { overflow: hidden; }
.ax {
  position: fixed; inset: 0; z-index: 10042; display: flex; justify-content: center;
  background: var(--ag-page); color: var(--ag-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ax-in { width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; background: var(--ag-page); position: relative; overflow: hidden; }
.ax.ax-white .ax-in { background: var(--ag-card); }
@media (min-width: 901px) {
  .ax { background: rgba(10, 20, 14, .5); align-items: center; }
  .ax-in { height: min(860px, 92vh); border-radius: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
}
.ax button, .ax input { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.ax-top { min-height: 60px; padding: env(safe-area-inset-top, 0px) 12px 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ax.ax-white .ax-top { border-bottom: 1px solid var(--ag-line); }
.ax-ttl { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; display: flex; flex-direction: column; }
.ax-ttl small { font-size: 11px; font-weight: 800; color: var(--ag-purple); letter-spacing: .2px; }
body.dark-mode .ax-ttl small { color: #b9a4f0; }
.ax-ttl b { font-size: 18px; font-weight: 800; }
.ax-back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--ag-card); color: var(--ag-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.ax.ax-white .ax-back { background: var(--ag-page); }
.ax-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.ax-body > * { flex-shrink: 0; }
.ax-foot { padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; background: var(--ag-card); border-radius: 22px 22px 0 0; }
.ax-foot-row { display: flex; align-items: center; gap: 10px; border-radius: 0; border-top: 1px solid var(--ag-line); padding-top: 10px; }

/* text bits */
.ax-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ax-grow b { font-size: 15px; font-weight: 800; }
.ax-sub { font-size: 12px; color: var(--ag-label); line-height: 1.4; }
.ax-small { margin: 0; padding: 0 4px; font-size: 12px; line-height: 1.45; color: var(--ag-label); }
.ax-lead { margin: 0; padding: 0 4px; font-size: 14px; line-height: 1.5; color: var(--ag-muted); }
.ax-sec { font-size: 13px; font-weight: 800; color: var(--ag-label); padding: 4px 4px 0; }
.ax-center { text-align: center; }
.ax-empty { padding: 30px 10px; text-align: center; font-size: 14px; color: var(--ag-label); }

/* cards + rows */
.ax-card { background: var(--ag-card); border-radius: 20px; padding: 14px; box-sizing: border-box; }
.ax-row-card { display: flex; gap: 12px; align-items: center; font-size: 13px; line-height: 1.4; color: var(--ag-text); }
.ax-tap { width: 100%; border: 0; text-align: left; color: inherit; cursor: pointer; }
.ax-chev { color: #9aaa9e; display: flex; }
.ax-tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ax-tile.big { width: 52px; height: 52px; border-radius: 16px; }
.ax-ico { display: flex; flex-shrink: 0; }
.ax-tile.blue, .ax-ico.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ax-ico.blue, .ax-ico.orange { background: none; }
.ax-ico.orange { color: var(--ag-orange-ink); }
.ax-tile.green { background: var(--ag-green-bg); color: var(--ag-green-ink); }
.ax-tile.orange { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.ax-tile.pink { background: var(--ag-pink-bg); color: var(--ag-pink-ink); }
.ax-list { padding: 2px 14px; display: flex; flex-direction: column; }
.ax-li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ag-soft); background: none; color: inherit; text-align: left; cursor: pointer; }
.ax-li:last-child { border-bottom: 0; }
.ax-li .ax-grow b { font-size: 14px; font-weight: 700; }

/* buttons */
.ax-btn { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--ag-green); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.ax-btn:disabled { opacity: .45; cursor: default; }
.ax-btn.line { background: var(--ag-card); color: var(--ag-ink); border: 1.5px solid var(--ag-line); }
.ax-btn.pink { background: var(--ag-pink); }
.ax-sbtn { height: 36px; padding: 0 12px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.ax-sbtn:disabled { opacity: .6; }
.ax-sbtn.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ax-sbtn.green { height: 40px; background: var(--ag-green-bg); color: var(--ag-green-ink); font-size: 13px; }
.ax-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ax-two .ax-btn { height: 50px; font-size: 15px; }

/* X1 change password */
.ax-form { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px; }
.ax-field { display: flex; flex-direction: column; gap: 6px; }
.ax-lbl { font-size: 13px; font-weight: 700; color: var(--ag-label); }
.ax-pw { height: 50px; border: 1.5px solid var(--ag-line); border-radius: 12px; padding: 0 6px 0 14px; display: flex; align-items: center; gap: 8px; box-sizing: border-box; background: var(--ag-card); }
.ax-pw:focus-within { border-color: var(--ag-green); }
.ax-pw.on { border-color: var(--ag-green); }
.ax-pw input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; background: none; color: var(--ag-ink); height: 100%; }
.ax-eye { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ag-label); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ax-eye.on { color: var(--ag-green-ink); }
.ax-match { width: 40px; display: flex; align-items: center; justify-content: center; color: var(--ag-green); }
.ax-match[hidden] { display: none; }
.ax-str { display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.ax-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ax-bars span { height: 5px; border-radius: 3px; background: var(--ag-track); }
.ax-bars span.on.g { background: var(--ag-green); }
.ax-bars span.on.o { background: var(--ag-orange); }
.ax-bars span.on.r { background: var(--ag-pink); }
.ax-str-t { font-size: 12px; font-weight: 700; min-height: 15px; }
.ax-str-t.g { color: var(--ag-green-ink); }
.ax-str-t.o { color: var(--ag-orange-ink); }
.ax-str-t.r { color: var(--ag-pink-ink); }
.ax-rules { display: flex; flex-direction: column; gap: 6px; }
.ax-rules span { font-size: 13px; color: var(--ag-label); display: flex; align-items: center; gap: 8px; }
.ax-rules span.ok { color: var(--ag-green-ink); }
.ax-err { padding: 10px 12px; border-radius: 12px; background: var(--ag-pink-bg); color: var(--ag-pink-ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.ax-err[hidden] { display: none; }

/* X3 policy page */
.ax-docbody { padding: 16px 18px 20px; gap: 14px; }
.ax-upd { font-size: 12px; font-weight: 700; color: var(--ag-label); }
.ax-short { background: var(--ag-green-bg); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ax-short b { font-size: 14px; font-weight: 800; color: var(--ag-green-ink); }
.ax-short span { font-size: 14px; line-height: 1.5; color: var(--ag-ink); padding-left: 16px; position: relative; }
.ax-short span::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ag-green); }
.ax-short small { font-size: 12px; color: var(--ag-label); }
.ax-toc { display: flex; flex-direction: column; gap: 2px; }
.ax-toc[hidden] { display: none; }
.ax-toc .ax-sec { padding: 0 0 4px; font-size: 12px; }
.ax-toc-l { display: flex; flex-direction: column; }
.ax-toc-i { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ag-ink); background: none; border: 0; border-bottom: 1px solid var(--ag-soft); padding: 6px 0; text-align: left; cursor: pointer; }
.ax-toc-i svg { color: #9aaa9e; flex-shrink: 0; }
.ax-doc { display: flex; flex-direction: column; gap: 6px; }
.ax-doc section { padding-top: 4px; }
.ax-doc h2 { margin: 14px 0 8px; font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--ag-ink); }
.ax-doc h3, .ax-doc h4 { margin: 12px 0 6px; font-size: 15px; font-weight: 800; color: var(--ag-ink); }
.ax-doc p, .ax-doc li, .ax-doc td, .ax-doc th { font-size: 15px; line-height: 1.6; color: var(--ag-text); }
.ax-doc p { margin: 0 0 10px; }
.ax-doc ul, .ax-doc ol { margin: 0 0 10px; padding-left: 20px; }
.ax-doc li { margin-bottom: 6px; }
.ax-doc a { color: var(--ag-green-ink); font-weight: 700; word-break: break-word; }
.ax-doc table { width: 100%; border-collapse: collapse; margin: 0 0 12px; display: block; overflow-x: auto; }
.ax-doc td, .ax-doc th { border: 1px solid var(--ag-line); padding: 6px 8px; font-size: 13px; text-align: left; vertical-align: top; }
.ax-doc code { font-size: 13px; background: var(--ag-soft); padding: 1px 5px; border-radius: 6px; }
.ax-doc div { margin: 0 0 8px; }
.ax-doc .ax-card a { color: var(--ag-green-ink); }

/* X4 my QR ID */
.ax-qrbody { padding-top: 8px; align-items: stretch; gap: 16px; }
.ax-qrcard { border-radius: 24px; padding: 22px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ax-qrwho { display: flex; align-items: center; gap: 12px; align-self: stretch; }
.ax-qrwho .ax-grow b { font-size: 17px; }
.ax-av { width: 48px; height: 48px; border-radius: 50%; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ax-av.green { background: #cfe9d5; color: #1f6b30; }
.ax-av.blue { background: #dbe8fa; color: #174f96; }
.ax-av.lilac { background: #e7e0f7; color: #5b3aa8; }
.ax-av.teal { background: #cdeee8; color: #0a5c51; }
.ax-av.peach { background: #fbe3c8; color: #8a4a07; }
.ax-chip { align-self: flex-start; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ag-soft); color: var(--ag-label); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.ax-chip.green { background: var(--ag-green-bg); color: var(--ag-green-ink); }
.ax-qr { width: 232px; max-width: 70vw; aspect-ratio: 1; border-radius: 18px; border: 1.5px solid var(--ag-line); padding: 10px; box-sizing: border-box; background: #fff; }
.ax-qr svg { width: 100%; height: 100%; display: block; }
.ax-idbtn { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--ag-soft); color: var(--ag-ink); font-family: "SFMono-Regular", Menlo, monospace !important; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; max-width: 100%; overflow: hidden; }
.ax-idbtn svg { color: var(--ag-green); flex-shrink: 0; }
.ax-lockline { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* X7 manage users */
.ax-search { height: 46px; border-radius: 14px; background: var(--ag-card); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ag-label); }
.ax-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; color: var(--ag-ink); background: none; }
.ax-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ax-fchip { height: 34px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 999px; background: var(--ag-card); color: var(--ag-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.ax-fchip.on { border-color: var(--ag-green); background: var(--ag-green-bg); color: var(--ag-green-ink); font-weight: 800; }
.ax-ulist { display: flex; flex-direction: column; gap: 8px; }
.ax-urow { border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.ax-urow .ax-av { width: 42px; height: 42px; font-size: 14px; }
.ax-urow .ax-grow b { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-vf { width: 16px; height: 16px; border-radius: 50%; background: var(--ag-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ax-warn { font-size: 12px; font-weight: 700; color: var(--ag-orange-ink); }
.ax-del { height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ag-pink-bg); color: var(--ag-pink-ink); font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.ax-del:disabled { background: var(--ag-soft); color: var(--ag-label); cursor: default; }
.ax-gone { opacity: .78; }
.ax-urow-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.ax-restore { height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ag-green-bg, #e3f6ea); color: var(--ag-green-ink, #17803d); font-size: 13px; font-weight: 800; cursor: pointer; }
.ax-erase { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ag-pink-ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.ax-sheet-wrap { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; }
.ax-dim { position: absolute; inset: 0; background: rgba(16, 32, 22, .45); }
.ax-sheet { position: relative; width: 100%; background: var(--ag-card); border-radius: 24px 24px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.ax-grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--ag-track); }
.ax-sheet-t { font-size: 20px; font-weight: 800; }
.ax-sheet-p { font-size: 14px; line-height: 1.5; color: var(--ag-muted); }
.ax-in-text { height: 48px; border: 1.5px solid var(--ag-line); border-radius: 12px; padding: 0 14px; font-size: 15px; font-weight: 700; color: var(--ag-ink); background: var(--ag-card); outline: 0; }
.ax-in-text:focus { border-color: var(--ag-pink); }

/* ═══ X5 Under maintenance + X6 Account on hold (overlays from clientView.js) ═══ */
.axn {
  position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center;
  overflow-y: auto; background: var(--ag-page, #eef3ef); color: var(--ag-ink, #1a2b20);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.axn.axn-hold { z-index: 2147483601; }
.axn-in { width: 100%; max-width: 420px; padding: calc(32px + env(safe-area-inset-top, 0px)) 22px calc(28px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin: auto; }
.axn button { font-family: inherit; }
.axn-brand { margin-bottom: 14px; }   /* logo: wordmark.css (.cc-wm), 18px like everywhere (2026-11-02) */
.axn-tile { width: 96px; height: 96px; border-radius: 28px; display: flex; align-items: center; justify-content: center; }
.axn-tile.orange { background: var(--ag-orange-bg, #fdf0e1); color: var(--ag-orange-ink, #8a4a07); }
.axn-tile.pink { background: var(--ag-pink-bg, #fde8ee); color: var(--ag-pink-ink, #93203f); }
.axn h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.axn p { margin: 0; max-width: 310px; font-size: 15px; line-height: 1.55; color: var(--ag-muted, #3b4a40); }
.axn-card { width: 100%; background: var(--ag-card, #fff); border-radius: 18px; padding: 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.axn-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ag-muted, #3b4a40); }
.axn-line svg { flex-shrink: 0; margin-top: 1px; }
.axn-line svg.g { color: var(--ag-green-ink, #1f6b30); }
.axn-line svg.b { color: var(--ag-blue-ink, #174f96); }
.axn-rows { padding: 4px 14px; gap: 0; }
.axn-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ag-soft, #eef2ef); }
.axn-row:last-child { border-bottom: 0; }
.axn-row span { font-size: 13px; color: var(--ag-label, #4b5d52); flex-shrink: 0; }
.axn-row b { font-size: 13px; font-weight: 700; text-align: right; word-break: break-word; }
.axn-row b.red { color: var(--ag-pink-ink, #93203f); }
.axn-note { width: 100%; background: var(--ag-soft, #f6faf7); border: 1.5px dashed #c5d6ca; border-radius: 16px; padding: 12px 14px; box-sizing: border-box; font-size: 13px; line-height: 1.45; color: var(--ag-muted, #33473a); text-align: left; }
.axn-btn { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--ag-green, #1f8a3a); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.axn-link { height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ag-label, #4b5d52); font-size: 14px; font-weight: 700; cursor: pointer; }
.axn-link[hidden] { display: none; }
body.dark-mode .axn-note { border-color: var(--ag-line); }
/* Contact support from the hold screen opens above it. */
body.cc-held .hlp { z-index: 2147483602; }
body.cc-held .cc-toast { z-index: 2147483603; }
