html:has(.acct-dialog[open]) { overflow: hidden; }
.acct-dialog {
  width: min(var(--store-dialog-standard), var(--store-dialog-available));
  max-width: none;
  max-height: min(760px, calc(100dvh - 52px)); margin: auto; padding: 0;
  overflow: hidden; border: 1px solid #dddde2; border-radius: 24px;
  background: #fff; color: #1d1d1f; box-shadow: 0 25px 90px #11111a33;
  font: inherit; font-size: 14px; line-height: 1.5;
  --acct-pad: clamp(20px, 3vw, 32px);
}
.acct-dialog:has(.acct-scroll:is([data-view=auth],[data-view=loading],[data-view=reset],[data-view=verify])) {
  width:min(480px,var(--store-dialog-available));
}
.acct-dialog:has(.acct-scroll[data-view=auth]) {max-height:min(800px,calc(100dvh - 52px))}
.acct-dialog:has(.acct-scroll:is([data-view=auth],[data-view=reset],[data-view=verify])) .acct-bar {
  background:#fafafb;border-bottom-color:#ececf0;
}
.acct-dialog[open] { display: flex; flex-direction: column; animation: acct-arrive .22s cubic-bezier(.22,.75,.21,1); }
.acct-dialog::backdrop { background: rgb(20 20 26 / 36%); backdrop-filter: blur(5px); }
@keyframes acct-arrive { from { opacity: 0; transform: translateY(8px) scale(.988); } }
.acct-dialog *, .acct-dialog *::before, .acct-dialog *::after { box-sizing: border-box; }
.acct-bar { display: flex; align-items: center; gap: 8px; min-height: 55px; padding: 5px 12px 5px var(--acct-pad); border-bottom: 1px solid #e6e6eb; flex-shrink: 0; }
.acct-bar>span { flex: 1; font-weight: 580; font-size: 13px; }
.acct-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #44444a; }
.acct-bar [data-act=close] { background: #f1f1f4; width: 32px; height: 32px; margin-right: 5px; }
.acct-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px var(--acct-pad) 28px; }
.acct-dialog h2 { margin: 0; font-size: clamp(27px, 3vw, 33px); line-height: 1.18; font-weight: 650; letter-spacing: -.045em; }
.acct-dialog h2:focus { outline: none; }
.acct-dialog h3 { margin: 0; font-size: 16px; font-weight: 610; }
.acct-dialog button { touch-action: manipulation; }
.acct-dialog :is(button,input,select,summary,textarea,.acct-google-button):focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.acct-dialog button:disabled { opacity: .48; cursor: default; }
.acct-dialog :is(.acct-primary,.acct-stat-actions>button:first-child,.acct-line-button,.acct-icon,.acct-switch button) {
  transition: transform .14s ease, background-color .16s ease, box-shadow .16s ease;
}
.acct-dialog button:not(:disabled):active { transform: scale(.98); }
.acct-note,.acct-email,.acct-stat>p { color:#68686d; font-size:13px; line-height:1.65; }
.acct-note,.acct-email { margin: 9px 0 14px; overflow-wrap: anywhere; }
.acct-activity { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px; }
.acct-orders { display:flex;align-items:center;gap:7px;width:100%;min-height:48px;padding:8px 10px;border:1px solid #e7e7eb;border-radius:13px;text-align:start;font-weight:560;transition:background-color .16s; }
.acct-orders span { flex:1; }
.acct-orders svg { flex:none; }
.acct-orders svg:last-child { width:14px;color:#606066; }
.acct-coupon-entry { grid-column: 1 / -1; }
.acct-switch {
  display:grid;grid-template-columns:1fr 1fr;position:relative;
  margin:20px 0 16px;border-bottom:1px solid #e2e4e8;
}
.acct-switch::before {
  content:'';position:absolute;inset:auto auto -1px 0;width:50%;height:2px;
  background:#202126;border-radius:2px;pointer-events:none;
  transition:transform .23s cubic-bezier(.24,.86,.27,1);
}
[data-auth-mode=register] .acct-switch::before {transform:translateX(100%)}
.acct-switch button {border-radius:8px;min-height:42px;font-size:14px;color:#62626a}
.acct-switch button[aria-pressed=true] {color:#151519;font-weight:650}
.acct-google-button {
  display:grid;grid-template-columns:18px minmax(0,1fr) 18px;align-items:center;gap:10px;
  min-height:44px;padding:5px 12px;border:1px solid #747775;border-radius:999px;
  background:#fff;color:#1f1f1f;font:500 14px/20px "Google Sans",system-ui,sans-serif;text-align:center;
  touch-action:manipulation;transition:background-color .16s;
}
.acct-google-button img {display:block;width:18px;height:18px;object-fit:contain}
.acct-google-entry {margin-top:20px}
.acct-google-entry .acct-google-button {display:flex;justify-content:center;gap:9px;border-color:#d4d7dd}
.acct-google-divider {display:flex;align-items:center;gap:12px;margin:14px 0 2px;color:#626269;font-size:12px}
.acct-google-divider::before,.acct-google-divider::after {content:'';flex:1;border-top:1px solid #e5e6ea}
.acct-google-entry:not([hidden])+.acct-switch {margin-top:4px}
.acct-google-settings {padding-block:8px;border-bottom:1px solid #e8e8eb}
.acct-google-linked {margin:0;padding:6px 0}
.acct-feedback.acct-google-feedback:not(:empty) {margin:10px 0 12px}
.acct-form { display:grid; gap:14px; }
.acct-form label,.acct-registration-invite:not([hidden]) { display:grid; gap:6px; font-size:13px; font-weight:560; color:#444448; }
.acct-form :is(input,select),.acct-registration-invite input {
  width:100%; min-height:46px; padding: 9px 12px; font:inherit; font-size:16px; font-weight:400;
  border:1px solid #c8c8cc; border-radius:11px; background:#fff; color:#202023;
}
.acct-registration-invite {margin:0 0 13px}
.acct-scroll:is([data-view=auth],[data-view=reset],[data-view=verify]) > * {
  max-inline-size:400px;margin-inline:auto;
}
.acct-scroll[data-view=withdraw] > * {
  max-inline-size:460px; margin-inline:auto;
}
.acct-form[data-auth] {gap:0}
.acct-form[data-auth]>.acct-password-field {margin-top:13px}
.acct-form[data-auth]>.acct-primary {margin-top:18px}
.acct-password-field {display:grid;gap:6px;min-width:0}
.acct-password-caption {display:flex;align-items:center;justify-content:space-between;gap:12px}
.acct-password-input {position:relative}
.acct-password-input input {padding-inline-end:49px}
.acct-password-input input::-ms-reveal {display:none}
.acct-password-input button {position:absolute;inset:1px 1px 1px auto;display:grid;place-items:center;width:44px;border-radius:10px;color:#63636b}
.acct-dialog .acct-password-input button:focus-visible {outline-offset:-4px}
.acct-password-input svg {width:20px;height:20px}
.acct-password-error {font-size:12px;color:#a8322b}
.acct-password-error:empty {display:none}
.acct-signup-fields {display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .24s ease,opacity .18s ease,visibility 0s .24s}
.acct-signup-inner {display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-inline:4px;margin-inline:-4px}
.acct-signup-inner> * {flex-shrink:0;margin-top:13px}
[data-auth-mode=register] .acct-signup-fields {grid-template-rows:1fr;opacity:1;visibility:visible;transition-delay:0s}
.acct-challenge,.acct-code-entry {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.acct-challenge>button {display:flex;align-items:center;justify-content:center;gap:5px;min-inline-size:112px;min-block-size:46px;padding-inline:7px;border:1px solid #c8c8cc;border-radius:11px;color:#515158;background:#f6f6f8;font-size:12px}
.acct-challenge img {width:72px;height:35px;object-fit:contain}
.acct-challenge button:has(img:not([hidden])) span {font-size:11px;white-space:nowrap}
.acct-challenge input,.acct-code-entry input {font-variant-numeric:tabular-nums;letter-spacing:.055em}
.acct-code-entry .acct-line-button {min-block-size:46px;white-space:nowrap}
.acct-form input[readonly] {background:#f5f5f7;color:#56565b}
.acct-verify-note {overflow-wrap:anywhere}
.acct-password-caption .acct-forgot {min-height:30px;margin-block:-5px;text-decoration:underline;text-underline-offset:3px}
.acct-session-actions {display:flex;align-items:center;justify-content:space-between;gap:10px}
.acct-dialog .acct-form[data-auth]>.acct-primary {
  transition:translate .27s cubic-bezier(.22,.8,.25,1),background-color .17s,box-shadow .17s,transform .14s;
}
.acct-scroll:is([data-view=auth],[data-view=reset],[data-view=verify]) input:not([readonly]) {
  border-color:#d8dbe1;background:#f9fafb;
  transition:border-color .17s,background-color .17s,box-shadow .17s;
}
.acct-scroll:is([data-view=auth],[data-view=reset],[data-view=verify]) input:not([readonly]):focus {
  outline:0;border-color:#467bb7;box-shadow:0 0 0 3px #3478bd20;background:#fff;
}
.acct-form[data-auth] input[aria-invalid=true] {border-color:#b55249}
.acct-scroll[data-view=auth] .acct-feedback:not(:empty) {margin-top:10px}
.acct-primary { width:100%; min-height:45px; padding:8px 16px; border-radius:999px; color:white; background:#1d1d1f; font-weight:570; margin-top:5px; }
.acct-scroll:is([data-view=auth],[data-view=reset],[data-view=verify]) .acct-primary {min-height:46px;border-radius:12px}
.acct-feedback { color:#156141; font-size:13px; line-height:1.6; margin:12px 0 0; }
.acct-feedback:empty { margin:0; }
.acct-feedback.is-error { color:#a8322b; }
.acct-stat { padding:20px; background:#f3f4f6; border:1px solid #e7e7eb; border-radius:18px; margin-top:18px; }
.acct-stat>span { display:flex; gap:7px; align-items:center; font-size:12px; color:#606066; }
.acct-stat>strong { display:block; margin-top:4px; font-size:37px; line-height:1.2; font-weight:620; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.acct-stat>strong small { font-size:19px; margin-right:3px; }
.acct-stat>p { margin:6px 0 0; }
.acct-stat-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:14px; }
.acct-stat-actions>button:first-child,.acct-line-button { min-height:40px; border:1px solid #cfcfd4; border-radius:999px; padding:6px 16px; background:#fff; font-size:13px; }
.acct-plain-link { display:inline-flex; align-items:center; gap:1px; min-height:40px; font-size:13px; color:#0066bb; }
.acct-plain-link svg { width:13px; }
.acct-profile { margin-top:18px; padding-top:18px; border-top:1px solid #e8e8eb; }
.acct-logout { min-height:44px; color:#66666a; font-size:13px; padding:3px 0; }
.acct-ledger h3 { margin-top:26px; }
.acct-ledger p,.acct-ledger li small { color:#66666a; font-size:12px; }
.acct-ledger ul { list-style:none; margin:6px 0; padding:0; }
.acct-ledger li { padding:14px 0; border-bottom:1px solid #e8e8eb; }
.acct-ledger-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:4px 16px; }
.acct-ledger-meta {
  grid-column:1 / -1;
  display:flex; flex-wrap:wrap; gap:3px 12px;
  overflow-wrap:anywhere;
}
.acct-ledger-meta span { min-width:0; }
.acct-ledger-amount { justify-self:end; font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.acct-ledger .acct-history-status { margin:4px 0 0; }
.acct-ledger .acct-history-status:empty { margin:0; }
.acct-ledger [data-act=more-history] { margin-top:6px; }
.acct-ledger .acct-credit { color:#14704d; }
.acct-withdrawal-balance {
  display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap;
  margin-top:18px; padding:12px 14px; border-radius:12px; background:#f3f4f6;
}
.acct-withdrawal-balance span { color:#56565d; font-size:13px; }
.acct-withdrawal-balance strong { font-size:20px; font-weight:620; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.acct-withdrawal-amount { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; }
.acct-withdrawal-amount button { min-height:46px; padding-inline:12px; white-space:nowrap; }
.acct-withdrawal-toolbar {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 18px;
  margin:12px 0 20px;
}
.acct-withdrawal-toolbar .acct-note { margin:0; }
.acct-withdrawal-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; }
.acct-scroll[data-view=withdrawals] { min-block-size:min(365px, 55dvh); }
.acct-withdrawal-records { padding:clamp(14px, 2.5vw, 24px); border:1px solid #e7e7eb; border-radius:16px; }
.acct-withdrawal-records h3 { margin:0 0 6px; }
.acct-withdrawal-records li:last-child { border-bottom:0; }
.acct-withdrawal-state {
  display:grid; place-items:center; align-content:center; gap:10px; min-block-size:136px;
  padding:16px; border-radius:12px; background:#f5f5f7; text-align:center;
}
.acct-withdrawal-state p { margin:0; color:#68686d; font-size:14px; }
.acct-scroll > .acct-withdrawal-state { margin-top:20px; }
.acct-ledger .acct-withdrawal { display:grid; align-items:start; gap:4px; }
.acct-withdrawal-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.acct-withdrawal-status { padding:2px 8px; border-radius:999px; background:#fbf4e7; color:#805417; font-size:12px; font-weight:560; }
.acct-withdrawal-status[data-status=paid] { background:#e7f3ea; color:#176548; }
.acct-withdrawal-status[data-status=rejected] { background:#f9eeeb; color:#a8322b; }
.acct-withdrawal small,.acct-withdrawal-retry { overflow-wrap:anywhere; }
.acct-withdrawal-retry { margin-top:6px; padding:9px 11px; border-radius:10px; background:#fbf5f3; }
.acct-ledger .acct-withdrawal-retry p { margin:0 0 6px; }
.acct-stat .acct-pending-rebate { color:#7d541b; }
.acct-coupon-summary {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:12px 0 18px;
}
.acct-coupon-summary .acct-note { margin:0; }
.acct-coupon-summary strong { color:#9d2638; font-size:13px; font-weight:600; white-space:nowrap; }
.acct-coupon-list { list-style:none; display:grid; gap:9px; padding:0; margin:0; }
.acct-coupon {
  display:grid; grid-template-columns:minmax(85px,.85fr) minmax(0,1.5fr);
  border:1px solid #e5e5e9; border-radius:14px;
}
.acct-coupon-value {
  display:grid; align-content:center; gap:3px; min-width:0; padding:12px;
  border-inline-end:1px dashed #dedee4; background:#f5f5f7;
  border-start-start-radius:inherit; border-end-start-radius:inherit;
}
.acct-coupon-value strong {
  font-size:22px; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.15; overflow-wrap:anywhere;
}
.acct-coupon-value strong small { font-size:13px; margin-inline-end:3px; }
.acct-coupon-value span,.acct-coupon-info { color:#616169; font-size:12px; }
.acct-coupon-info { display:grid; align-content:center; justify-items:start; gap:3px; min-width:0; padding:10px 12px; overflow-wrap:anywhere; }
.acct-dialog .acct-coupon-deduction { color:#9d2638; font-weight:700; }
.acct-coupon-status { padding:2px 8px; border-radius:999px; background:#f1f1f4; color:#53535a; font-weight:560; }
.acct-coupon[data-coupon-status=available] { border-color:#edc3c9; }
.acct-coupon[data-coupon-status=available] .acct-coupon-value { background:#fff5f6; border-color:#edc3c9; color:#9d2638; }
.acct-coupon[data-coupon-status=available] .acct-coupon-status { background:#fce5e8; color:#9d2638; }
.acct-coupon[data-coupon-status=reserved] .acct-coupon-status { background:#fbf4e7; color:#805417; }
.acct-coupon-empty { margin:0; padding:24px 16px; text-align:center; color:#616169; background:#f5f5f7; border-radius:14px; }
.acct-coupon-pages { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:14px; }
.acct-coupon-pages span { color:#616169; font-size:12px; }
.acct-coupon-pages button { padding-inline:10px; }
@media(hover:hover) and (pointer:fine) {
  .acct-google-button:hover { background:#f3f6fa; }
  .acct-orders:hover { background:#f5f5f7; }
  .acct-password-input button:hover {background:#f2f2f5;color:#1d1d1f}
  .acct-icon:hover,.acct-dialog .acct-line-button:hover,.acct-stat-actions>button:first-child:not(:disabled):hover { background:#ebebef; }
  .acct-primary:not(:disabled):hover {background:#313137;box-shadow:0 3px 10px #19191f25}
  .acct-switch button[aria-pressed=false]:hover {color:#1d1d1f}
  .acct-form[data-auth] input:not(:focus):hover {border-color:#9d9da5}
  .acct-plain-link:hover,.acct-logout:hover { text-decoration:underline; text-underline-offset:3px; }
}
@media(max-width: 700px) {
  .acct-dialog { inset:auto 0 0; margin:0; width:100%; max-height:calc(100dvh - 14px); border-radius:22px 22px 0 0; }
  .acct-dialog:has(.acct-scroll[data-view=auth]) {max-height:calc(100dvh - 14px)}
  .acct-dialog[open] { animation-name:acct-sheet; }
  .acct-scroll { padding-bottom:calc(20px + env(safe-area-inset-bottom)); }
  .acct-scroll:is([data-view=auth],[data-view=reset],[data-view=verify]) {padding-top:20px}
  .acct-password-caption .acct-forgot {min-height:44px;margin-block:-11px}
  .acct-dialog .acct-icon,.acct-stat-actions>button:first-child,.acct-switch button,.acct-line-button,.acct-plain-link { min-height:44px; }
  .acct-dialog .acct-icon { width:44px; height:44px; }
  .acct-bar [data-act=close] { background:transparent; margin:0; }
  @keyframes acct-sheet { from { opacity:.65; transform: translateY(24px); } }
}
@supports (transition-behavior:allow-discrete) {
  @media(prefers-reduced-motion:no-preference) {
    .acct-dialog {
      --acct-offset:translateY(8px) scale(.988);
      opacity:0;transform:var(--acct-offset);
      transition:opacity .16s ease,transform .22s cubic-bezier(.22,.75,.21,1),overlay .22s allow-discrete,display .22s allow-discrete;
    }
    .acct-dialog[open] {opacity:1;transform:none;animation:none}
    .acct-dialog::backdrop {opacity:0;transition:opacity .16s ease,overlay .22s allow-discrete,display .22s allow-discrete}
    .acct-dialog[open]::backdrop {opacity:1}
    @starting-style {
      .acct-dialog[open] {opacity:0;transform:var(--acct-offset)}
      .acct-dialog[open]::backdrop {opacity:0}
    }
  }
  @media(max-width:700px) { .acct-dialog {--acct-offset:translateY(22px)} }
}
@media(prefers-reduced-motion:reduce) { .acct-dialog[open] { animation:none; } .acct-dialog *, .acct-dialog *::before { transition:none!important; } }

.acct-dialog :is(h2,h3,.acct-note,.acct-stat p,.acct-feedback) { text-wrap: balance; }
