/* Account entry and the private account sheet. */
.ac-brand-row { display:flex; align-items:center; gap:5px; min-width:0; }
.ac-brand-row .brand { min-width:0; }
.ac-brand-row:has(.ac-menu:not([hidden])) .brand { margin-inline-start:0; }
.ac-menu { flex:none; width:35px; height:35px; border-radius:11px; }
.ac-menu .icon { width:18px; height:18px; }
.ac-entry { display:flex; align-items:center; gap:7px; margin:17px 7px 0; }
.ac-entry button { min-height:34px; padding:6px 12px; font-size:.78rem; }
.ac-entry + .navigation { margin-top:24px; }
.ac-mobile-account { display:none; }
.ac-balance { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 24px; padding:15px clamp(16px,2.8vw,30px); }
.ac-balance .panel-title { gap:11px; }
.ac-balance .panel-title h2 { margin:0; font-size:1rem; letter-spacing:-.025em; }
.ac-balance-value { display:flex; align-items:baseline; gap:5px; font-variant-numeric:tabular-nums; }
.ac-balance-value strong { font-size:clamp(1.25rem,3vw,1.65rem); font-weight:630; letter-spacing:-.045em; }
.ac-balance-value span { font-size:.78rem; font-weight:600; color:var(--muted); }
.ac-balance small { display:block; color:var(--muted); padding-top:3px; font-size:.77rem; }
.ac-dialog {
  width:min(506px,calc(100vw - 24px)); max-width:100%; height:auto; max-height:min(820px,calc(100dvh - 32px));
  margin:auto; padding:0; border:1px solid #fffffff2; border-radius:25px;
  background:linear-gradient(145deg,#fffffff5,#f3f4f7f3 58%,#e9eaedf5); color:var(--ink);
  box-shadow:var(--glass-edge),0 25px 100px -12px #20212969; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
}
.ac-dialog[open] { animation:ac-open .22s var(--glass-spring); }
.ac-dialog::backdrop { background:#33353e55; -webkit-backdrop-filter:blur(9px); backdrop-filter:blur(9px); }
.ac-dialog.ac-drawer { margin:10px auto 10px max(10px, env(safe-area-inset-left)); width:min(426px,calc(100vw - 20px)); max-height:calc(100dvh - 20px); height:calc(100dvh - 20px); }
.ac-dialog.ac-drawer[open] { animation:ac-slide .25s var(--glass-spring); }
.ac-dialog.ac-mist { background:linear-gradient(130deg,#fffffff0,#f2f4f8e8 60%,#fdfdfddd); -webkit-backdrop-filter:blur(28px); backdrop-filter:blur(28px); }
.ac-dialog.ac-mist::backdrop { background:#31344066; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.ac-sheet { padding:clamp(22px,5vw,36px); min-width:0; }
.ac-sheet-top { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.ac-sheet-top .panel-glyph { width:37px; height:37px; border-radius:12px; }
.ac-close, .ac-back { min-width:38px; min-height:38px; }
.ac-back .icon { transform:rotate(180deg); }
.ac-dialog h2 { margin:19px 0 6px; font-size:clamp(1.45rem,4vw,1.85rem); color:#232429; }
.ac-dialog :is(h3,legend) { margin:0; font-size:.98rem; font-weight:650; letter-spacing:-.02em; }
.ac-subtitle,.ac-note { color:#555860; font-size:.86rem; line-height:1.55; }
.ac-subtitle { margin:0 0 19px; overflow-wrap:anywhere; }
.ac-note { margin:8px 0 0; }
.ac-form { display:grid; gap:19px; }
.ac-group { min-inline-size:0; padding:0; margin:0; border:0; display:grid; gap:12px; }
.ac-group legend { margin:3px 0 9px; padding:0; }
.ac-email-step .ac-note { margin:0; overflow-wrap:anywhere; }
.ac-email-step [data-email-status]:empty { display:none; }
.ac-email-step input[name="emailCode"] { max-width:13rem; font-variant-numeric:tabular-nums; letter-spacing:.21em; }
.ac-line { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ac-field,.ac-date { display:grid; align-content:start; gap:6px; min-width:0; }
.ac-field > span,.ac-date legend,.ac-label { color:#42454b; font-size:.8rem; font-weight:600; }
.ac-field small { color:var(--muted); font-size:.76rem; line-height:1.45; }
.ac-form :is(input,select,textarea) {
  display:block; width:100%; min-width:0; min-height:43px; padding:9px 11px;
  border:1px solid #aeb0b885; border-radius:11px; color:#202126; background:#ffffffbf; box-shadow:inset 0 1px 3px #454a5610,0 1px 1px #fff;
  font:inherit; font-size:1rem; line-height:1.3;
}
.ac-form select { padding-inline-end:5px; }
.ac-form textarea { resize:vertical; min-height:112px; }
.ac-form :is(input,select,textarea):focus-visible,.ac-choice:focus-visible { outline:2px solid #506d91; outline-offset:2px; }
.ac-form [aria-invalid="true"] { border-color:#a34848; }
.ac-date { margin:0; padding:0; border:0; }
.ac-date legend { margin:0 0 6px; padding:0; }
.ac-date-row { display:grid; grid-template-columns:1fr 1.3fr .86fr; gap:7px; }
.ac-actions,.ac-choice-row { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.ac-actions .primary,.ac-actions .secondary,.ac-sheet > .secondary { min-height:41px; padding:8px 16px; font-size:.86rem; }
.ac-challenge { padding:13px; border:1px solid var(--line); border-radius:14px; background:#ffffff68; }
.ac-challenge p { margin:0 0 9px; font-size:.83rem; font-weight:600; }
.ac-challenge .ac-note { margin:8px 0 0; font-weight:450; }
.ac-choice { min-height:40px; padding:6px 13px; border:1px solid var(--line); border-radius:10px; background:#ffffffa8; font-size:.83rem; }
.ac-choice[aria-pressed="true"] { background:#3e434c; color:white; }
.ac-status { margin:13px 0 0; padding:10px 12px; border-radius:10px; color:#533f38; background:#f7efed; font-size:.84rem; line-height:1.5; overflow-wrap:anywhere; }
.ac-status[data-tone="success"] { background:#e7efea; color:#294536; }
.ac-footnote { margin:16px 0 0; color:var(--muted); font-size:.85rem; }
.ac-link { padding:5px; border-radius:5px; background:transparent; color:#344b69; font-weight:620; text-decoration:underline; text-underline-offset:3px; }
.ac-drawer-nav { display:grid; gap:7px; margin:15px 0 26px; }
.ac-drawer-nav :is(button,a) { display:flex; align-items:center; gap:13px; width:100%; min-height:50px; padding:11px 12px; text-align:start; background:#ffffff8c; border:1px solid var(--line); border-radius:12px; color:inherit; text-decoration:none; font-weight:550; }
.ac-drawer-nav :is(button,a) > .icon:last-child { margin-inline-start:auto; width:15px; color:#787b82; }
[data-admin-entry][hidden] { display:none; }
[data-admin-entry] { text-decoration:none; }
.ac-payout-summary { padding:15px; border-radius:15px; background:#ffffff8c; border:1px solid var(--line); margin:0 0 18px; }
.ac-payout-summary strong { font-size:1.42rem; font-variant-numeric:tabular-nums; }
.ac-payout-summary progress { display:block; accent-color:#666e7f; width:100%; height:8px; margin:9px 0 0; }
.ac-payout-summary .ac-note { overflow-wrap:anywhere; }
.ac-wallet { border-top:1px solid var(--line); margin-top:20px; padding-top:18px; }
.ac-wallet code { display:block; margin:8px 0; overflow-wrap:anywhere; font-family:ui-monospace,monospace; font-size:.87rem; }
.ac-sheet button:disabled { opacity:.54; }
@keyframes ac-open { from { opacity:0; transform:translateY(6px) scale(.985); } }
@keyframes ac-slide { from { opacity:0; transform:translateX(-15px); } }
@media (max-width:960px) and (min-width:901px) {
  .ac-menu { width:28px; height:32px; }
  .ac-brand-row { gap:2px; }
  .ac-entry { margin-inline:0; gap:3px; }
  .ac-entry button { padding-inline:10px; }
}
@media (max-width:900px), (min-width:901px) and (max-width:1199px) and (pointer:coarse) {
  .ac-mobile-account { display:flex; align-items:center; gap:5px; }
  .ac-mobile-stack { display:grid; align-content:center; }
  .ac-mobile-stack .ac-entry { margin:3px 0 0; gap:9px; }
  .ac-mobile-stack .ac-entry button { min-height:25px; padding:2px 3px; border-radius:5px; background:none; border:0; box-shadow:none; color:#434a53; font-size:.78rem; font-weight:560; }
  .ac-mobile-stack .ac-entry button::after { display:none; }
  .ac-mobile-stack .ac-entry button:last-child { text-decoration:underline; text-underline-offset:2px; }
  .topbar:has(.ac-mobile-stack .ac-entry:not([hidden])) { min-height:75px; }
}
@media (max-width:430px) {
  .ac-dialog { max-height:calc(100dvh - 16px); border-radius:20px; }
  .ac-sheet { padding:20px 16px; }
  .ac-line { grid-template-columns:1fr; }
  .ac-dialog.ac-drawer { margin:6px; width:calc(100vw - 12px); height:calc(100dvh - 12px); max-height:calc(100dvh - 12px); }
  .ac-balance { gap:8px; }
}
@media (prefers-reduced-motion:reduce) { .ac-dialog[open],.ac-dialog.ac-drawer[open] { animation:none; } }

.ac-operations { margin:-12px 20px 22px clamp(16px,5vw,36px); }
.ac-gate { max-width:660px; margin:clamp(18px,8vh,75px) auto; padding:clamp(23px,5vw,44px); }
.ac-gate > .panel-glyph { width:46px; height:46px; border-radius:15px; }
.ac-gate h1 { margin:17px 0 7px; font-size:clamp(1.6rem,4vw,2.5rem); letter-spacing:-.05em; line-height:1.15; }
.ac-gate p { margin:0 0 20px; color:var(--muted); line-height:1.5; }
.ac-wallet > strong { display:block; margin-top:10px; }
.ac-wallet details { margin-top:14px; }
.ac-wallet summary { cursor:pointer; font-weight:600; font-size:.86rem; padding:9px 0; }
.ac-wallet summary:focus-visible { outline:2px solid #506d91; }
.ac-wallet details[open] .ac-form { margin-top:9px; }
.ac-wallet [data-confirm] { border:1px solid var(--line); background:#ffffffa8; border-radius:12px; padding:13px; }
.ac-wallet [data-confirm] .ac-note { margin:0 0 9px; overflow-wrap:anywhere; }
.ac-choice:has(img) { padding:4px; width:clamp(42px,14vw,68px); display:grid; place-items:center; background:#f8f9fa; border-radius:11px; }
.ac-choice img { width:100%; display:block; max-height:60px; object-fit:contain; }
.ac-choice[aria-pressed="true"]:has(img) { border:2px solid #465c79; padding:3px; }
.ac-choice:disabled[aria-pressed="true"] { opacity:1; }
.ac-gate { position:relative; isolation:isolate; overflow:hidden; max-width:880px; min-height:250px; background:linear-gradient(115deg,#fbfbfcef,#f0f0f3ed 60%,#e3e5eaf5); }
.ac-gate::before { content:""; position:absolute; inset:0 0 0 auto; width:45%; z-index:-1; pointer-events:none; background:url("/silver-glass.webp") 58% center/cover no-repeat; mask-image:linear-gradient(to right,transparent,#000 31%); -webkit-mask-image:linear-gradient(to right,transparent,#000 31%); }
.ac-gate > :is(h1,p,.ac-actions) { max-width:58%; }
@media (max-width:580px) {
  .ac-gate::before { width:47%; opacity:.72; mask-image:linear-gradient(115deg,transparent 5%,#000 95%); -webkit-mask-image:linear-gradient(115deg,transparent 5%,#000 95%); }
  .ac-gate > :is(h1,p,.ac-actions) { max-width:83%; }
}
