/* AminoStudy account pages: login, sign-up, account, privacy. Scoped to .acct-*; tokens only. */

/* ------------------------------------------------------------------ layout */
.acct { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 104px); }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 88px); align-items: center; min-height: min(680px, calc(100vh - 200px)); }
.acct-intro { display: grid; gap: 22px; align-content: center; min-width: 0; }
.acct-h { font-size: clamp(44px, 6.4vw, 80px); }
.acct-intro .lede { max-width: 46ch; }

.acct-perks { display: grid; gap: 10px; margin-top: 10px; max-width: 470px; }
.acct-perks li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 16px;
  background: rgb(255 255 255 / .46); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), var(--ring); animation: acctRise .8s var(--expo) both; animation-delay: calc(240ms + var(--i, 0) * 90ms); }
.acct-perks b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.acct-perks div > span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.acct-perk-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-3), var(--brand) 55%, oklch(0.62 0.13 210)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 10px 20px -10px rgb(36 71 216 / .7); }
.acct-perk-ico .ico { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ card */
.acct-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); min-width: 0;
  background: linear-gradient(rgb(255 255 255 / .84), rgb(255 255 255 / .64)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgb(255 255 255 / .5), var(--ring), var(--drop-lg);
  animation: acctCard .9s var(--expo) both .08s; }
.acct-grid > .acct-card { justify-self: end; width: 100%; }
.acct-card-wide { max-width: 560px; }
.acct-card-h { display: grid; gap: 8px; margin-bottom: 22px; }
.acct-title { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.acct-sub { font-size: 15px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.acct-sub b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.acct-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.acct-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; color: var(--ink-3); }
.acct-alt a { font-weight: 600; }
.acct-view.acct-enter { animation: acctView .55s var(--expo) both; }

/* ------------------------------------------------------------------ fields */
.acct-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.acct-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.acct-label { font-size: 13.5px; font-weight: 560; letter-spacing: -0.005em; color: var(--ink-2); }
.acct-control { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 16px; border-radius: 15px; isolation: isolate;
  background: rgb(255 255 255 / .72); box-shadow: inset 0 1px 2px rgb(10 22 48 / .07), 0 0 0 1px rgb(10 22 48 / .09);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), translate .3s var(--ease); }
.acct-control::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--brand), var(--aqua)); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: transform .6s var(--expo), opacity .3s var(--ease); }
.acct-control:hover { background: rgb(255 255 255 / .9); }
.acct-control:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 12px 28px -14px rgb(36 71 216 / .55); translate: 0 -1px; }
.acct-control:focus-within::after { transform: scaleX(1); opacity: 1; }
.acct-ico { width: 18px; height: 18px; color: var(--ink-4); flex: none; transition: color .3s var(--ease), transform .4s var(--spring); }
.acct-control:focus-within .acct-ico { color: var(--brand); transform: scale(1.08); }
.acct-control input { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.acct-control input::placeholder { color: var(--ink-4); opacity: 1; }
.acct-control input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.acct-control input:focus-visible { outline: 0; }
.is-readonly .acct-control { background: rgb(10 22 48 / .04); box-shadow: inset 0 0 0 1px rgb(10 22 48 / .06); }
.is-readonly .acct-control input { color: var(--ink-3); }
.is-readonly .acct-control:focus-within { box-shadow: 0 0 0 2px var(--line); translate: none; }
.is-readonly .acct-control::after { display: none; }

.acct-ok { width: 26px; height: 26px; margin-right: 6px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok);
  opacity: 0; transform: scale(.4); transition: opacity .25s var(--ease), transform .45s var(--spring); }
.acct-ok .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.is-valid .acct-ok { opacity: 1; transform: none; }

.acct-reveal { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--ink-3); transition: background .2s var(--ease), color .2s; }
.acct-reveal:hover { background: rgb(10 22 48 / .06); color: var(--ink); }
.acct-reveal .ico { width: 19px; height: 19px; transition: transform .35s var(--spring), opacity .2s; }
.acct-reveal .acct-eye-off, .acct-reveal[aria-pressed="true"] .acct-eye { display: none; }
.acct-reveal[aria-pressed="true"] .acct-eye-off { display: block; }

.acct-field.is-invalid .acct-control { box-shadow: inset 0 1px 2px rgb(10 22 48 / .07), 0 0 0 1.5px var(--bad); background: color-mix(in oklab, var(--bad-bg) 30%, #fff); }
.acct-field.is-invalid .acct-control:focus-within { box-shadow: 0 0 0 2px var(--bad), 0 12px 28px -16px rgb(179 38 30 / .45); }
.acct-field.is-invalid .acct-control::after { background: var(--bad); }
.acct-field.is-invalid .acct-ico { color: var(--bad); }
.acct-msg { font-size: 13px; line-height: 1.4; color: var(--bad); font-weight: 500; }
.acct-msg:empty { display: none; }
.acct-msg:not(:empty) { animation: acctMsg .4s var(--expo); }
.acct-hint { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }

.acct-link { font-size: 13px; font-weight: 560; color: var(--brand); border-radius: 6px; }
.acct-link:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }

/* country code + number */
.acct-control.has-prefix { padding-left: 0; }
.acct-cc { position: relative; align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; margin-right: 2px; border-radius: 15px 0 0 15px; flex: none;
  border-right: 1px solid var(--line); color: var(--ink); transition: background .2s var(--ease); }
.acct-cc:hover { background: rgb(10 22 48 / .035); }
.acct-cc:focus-within { background: var(--info-bg); }
.acct-cc-out { font-size: 15px; font-weight: 520; min-width: 2.2ch; }
.acct-cc-chev { width: 10px; height: 6px; color: var(--ink-3); }
.acct-cc select { position: absolute; inset: 0; width: 100%; max-width: 100%; min-width: 0; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }

/* strength meter */
.acct-meter { display: flex; align-items: center; gap: 12px; --c: var(--ink-4); }
.acct-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.acct-bars i { height: 5px; border-radius: 4px; background: rgb(10 22 48 / .08); overflow: hidden; position: relative; }
.acct-bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--expo), background .3s var(--ease); }
.acct-meter-label { flex: none; min-width: 8.5em; text-align: right; font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--ink-3); transition: color .3s; }
.acct-meter[data-score="0"], .acct-meter[data-score="1"] { --c: var(--bad); }
.acct-meter[data-score="2"] { --c: var(--warn); }
.acct-meter[data-score="3"] { --c: oklch(0.62 0.12 200); }
.acct-meter[data-score="4"] { --c: var(--ok); }
.acct-meter[data-score]:not([data-score=""]) .acct-meter-label { color: var(--c); }
.acct-meter[data-score] .acct-bars i:nth-child(-n+1)::after { transform: scaleX(1); }
.acct-meter[data-score=""] .acct-bars i::after { transform: scaleX(0) !important; }
.acct-meter[data-score="2"] .acct-bars i:nth-child(-n+2)::after,
.acct-meter[data-score="3"] .acct-bars i:nth-child(-n+3)::after,
.acct-meter[data-score="4"] .acct-bars i:nth-child(-n+4)::after { transform: scaleX(1); }
.acct-bars i:nth-child(2)::after { transition-delay: 40ms; } .acct-bars i:nth-child(3)::after { transition-delay: 80ms; } .acct-bars i:nth-child(4)::after { transition-delay: 120ms; }

/* checkboxes */
.acct-checks { display: grid; gap: 10px; padding: 4px 0 2px; }
.acct-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.acct-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.acct-box { position: relative; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: #fff;
  box-shadow: inset 0 1px 2px rgb(10 22 48 / .08), 0 0 0 1.5px rgb(10 22 48 / .2); transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .3s var(--spring); }
.acct-box .ico { width: 15px; height: 15px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--expo) .05s; }
.acct-check:hover .acct-box { box-shadow: inset 0 1px 2px rgb(10 22 48 / .08), 0 0 0 1.5px var(--brand-3); }
.acct-check input:checked + .acct-box { background: linear-gradient(180deg, var(--brand-3), var(--brand)); box-shadow: 0 0 0 1px var(--brand-2), 0 6px 14px -6px rgb(36 71 216 / .7); }
.acct-check input:checked + .acct-box .ico { stroke-dashoffset: 0; }
.acct-check input:active + .acct-box { transform: scale(.9); }
.acct-check input:focus-visible + .acct-box { outline: 2px solid var(--brand); outline-offset: 3px; }
.acct-check a { font-weight: 560; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.acct-optional { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 1px; }
.acct-field-check.is-invalid .acct-box { box-shadow: 0 0 0 1.5px var(--bad); }
.acct-field-check .acct-msg { padding-left: 34px; }

/* submit */
.acct-submit { width: 100%; height: 54px; margin-top: 6px; font-size: 15.5px; }
.acct-submit-go { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.acct-submit:hover .acct-submit-go { transform: translateX(3px); }
.acct-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: acctSpin .7s linear infinite; }
.btn-ghost .acct-spin { border-color: rgb(10 22 48 / .15); border-top-color: var(--ink); }
.is-loading .acct-spin { display: block; }
.is-loading .acct-submit-go, .is-loading > .ico { display: none; }
.acct-submit:disabled, .btn:disabled { cursor: progress; translate: none; }
.acct-submit.is-loading { filter: saturate(.85); }
.acct-save { width: auto; justify-self: start; padding: 0 24px; }
.acct-save.is-done { background: linear-gradient(180deg, oklch(0.62 0.13 160), var(--ok)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 0 0 1px var(--ok); }

/* alerts + notes */
.acct-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; font-size: 14px; line-height: 1.45; font-weight: 500;
  background: var(--tb, var(--bad-bg)); color: var(--tc, var(--bad)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tc, var(--bad)) 14%, transparent); animation: acctMsg .45s var(--expo); }
.acct-alert::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 20%, transparent); }
.acct-alert[hidden] { display: none; }
.acct-card > .acct-alert, .acct-card > noscript .acct-alert { margin-bottom: 16px; }
.acct-demo { display: flex; align-items: center; gap: 9px; margin-top: 20px; padding: 10px 12px; border-radius: 11px; font: 500 11.5px/1.35 var(--mono); letter-spacing: .02em; color: var(--ink-3);
  background: rgb(10 22 48 / .04); box-shadow: inset 0 0 0 1px rgb(10 22 48 / .04); }
.acct-demo i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.acct-demo[hidden] { display: none; }
.acct-page > .acct-demo { margin: 0 0 18px; width: fit-content; }

.acct-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-bottom: 6px; font-size: 13.5px; font-weight: 560; color: var(--ink-3); border-radius: 8px; transition: color .2s; }
.acct-back .ico { width: 16px; height: 16px; transition: transform .35s var(--spring); }
.acct-back:hover { color: var(--ink); }
.acct-back:hover .ico { transform: translateX(-3px); }

.acct-done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 12px 0 4px; }
.acct-done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; color: #fff;
  background: linear-gradient(140deg, var(--brand-3), var(--brand) 60%, oklch(0.62 0.13 210)); box-shadow: 0 0 0 8px rgb(36 71 216 / .1), 0 16px 32px -14px rgb(36 71 216 / .75); animation: acctPop .7s var(--spring) both .1s; }
.acct-done-ico .ico { width: 28px; height: 28px; stroke-width: 2; }
.acct-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* ------------------------------------------------------------------ account page */
.acct-page { padding-top: clamp(36px, 6vw, 76px); padding-bottom: clamp(56px, 8vw, 104px); }
.acct-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 32px); align-items: center; margin-bottom: clamp(24px, 4vw, 40px); }
.acct-head-t { display: grid; gap: 12px; min-width: 0; }
.acct-head .acct-h { font-size: clamp(40px, 5.6vw, 72px); }
.acct-head .lede b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.acct-avatar { position: relative; width: clamp(76px, 9vw, 108px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font: 600 clamp(26px, 3vw, 38px)/1 var(--font); letter-spacing: -0.04em;
  background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / .45), transparent 45%), linear-gradient(145deg, var(--brand-3), var(--brand) 50%, var(--aqua-ink));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 20px 40px -18px rgb(36 71 216 / .8); animation: acctPop .8s var(--spring) both; }
.acct-avatar::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--acct-a, 0deg), var(--aqua), transparent 30%, var(--violet) 55%, transparent 80%, var(--aqua));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: acctOrbit 9s linear infinite; opacity: .8; }
@property --acct-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.acct-signout .ico, .acct-signout-sm .ico { width: 17px; height: 17px; }

.acct-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; }
.acct-sec { display: grid; gap: 18px; grid-column: span 6; border-radius: var(--r-lg); animation-delay: calc(.1s + var(--k, 0) * 80ms); }
.acct-board > :nth-child(1) { grid-column: span 7; grid-row: span 2; --k: 0; }
.acct-board > :nth-child(2) { grid-column: span 5; --k: 1; }
.acct-board > :nth-child(3) { grid-column: span 5; --k: 2; }
.acct-board > :nth-child(4) { grid-column: span 12; --k: 3; }
.acct-sec-h { display: grid; gap: 12px; }
.acct-count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px; margin-left: 6px; vertical-align: 4px; border-radius: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0;
  background: var(--info-bg); color: var(--brand-ink); }
.acct-count:empty { display: none; }
.acct-sec-link { justify-self: start; }
.acct-sec-data { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; column-gap: clamp(20px, 4vw, 48px); }
.acct-sec-data .acct-sec-h, .acct-sec-data > .acct-p { grid-column: 1; }
.acct-sec-data .acct-delete { grid-column: 2; grid-row: 1 / span 3; }
.acct-sec-data .acct-signout-sm { grid-column: 1; justify-self: start; align-self: start; }
.acct-sec-data { grid-template-rows: auto auto 1fr; }
.acct-p { font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.acct-p b { color: var(--ink); font-weight: 600; }
.acct-h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.acct-delete { display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; background: rgb(10 22 48 / .035); box-shadow: inset 0 0 0 1px rgb(10 22 48 / .05); }

.acct-list { display: grid; gap: 8px; }
.acct-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 14px; color: var(--ink);
  background: rgb(255 255 255 / .66); box-shadow: inset 0 1px 0 #fff, var(--ring); animation: acctRise .6s var(--expo) both; animation-delay: calc(var(--i, 0) * 60ms); }
li > .acct-item { animation: none; }
.acct-list > li { animation: acctRise .6s var(--expo) both; animation-delay: calc(var(--i, 0) * 60ms); }
.acct-item-n { font-size: 12px; color: var(--ink-3); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgb(10 22 48 / .05); }
.acct-item-b { display: grid; gap: 3px; min-width: 0; }
.acct-item-b b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.acct-item-b small { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.acct-item-b small i { font-style: normal; margin: 0 7px; color: var(--ink-4); }
.acct-item-b small .mono { color: var(--ink); font-size: 12.5px; }
.acct-item-b .chip { justify-self: start; margin-top: 4px; }
.acct-item-v { font-size: 12px; font-weight: 500; color: var(--brand-ink); margin-left: 4px; }
.acct-item-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(36 71 216 / .14); }
.acct-item-link { transition: translate .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.acct-item-link:hover { color: var(--ink); background: #fff; translate: 0 -1px; box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop); }
.acct-go { width: 17px; height: 17px; color: var(--ink-3); transition: transform .35s var(--spring), color .2s; }
.acct-item-link:hover .acct-go { transform: translate(2px, -2px); color: var(--brand); }
.acct-empty { padding: 22px 20px; border-radius: 16px; text-align: center; display: grid; gap: 4px; font-size: 14px; color: var(--ink-3);
  background: rgb(10 22 48 / .025); box-shadow: inset 0 0 0 1.5px rgb(10 22 48 / .07); border: 0; }
.acct-empty b { color: var(--ink); font-weight: 600; }
.acct-skel { display: grid; gap: 8px; }
.acct-skel i { position: relative; overflow: hidden; height: 56px; border-radius: 14px; background: rgb(10 22 48 / .045); }
.acct-skel i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .7) 50%, transparent 80%); transform: translateX(-100%); animation: acctSkel 1.6s var(--ease) infinite; }
.acct-skel i:nth-child(3) { width: 70%; }
.acct-sec-profile .acct-form { gap: 18px; }

/* ------------------------------------------------------------------ privacy */
.acct-legal { max-width: 820px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); border-radius: var(--r-xl); display: grid; gap: 16px; animation: acctCard .9s var(--expo) both; }
.acct-legal-h { display: grid; gap: 16px; margin-bottom: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.acct-legal .acct-h3 { margin-top: 18px; font-size: 19px; }
.acct-legal .acct-p { font-size: 16px; max-width: 66ch; }
.acct-table { display: grid; border-radius: 16px; overflow: hidden; box-shadow: var(--ring); background: rgb(255 255 255 / .6); }
.acct-table > div { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.acct-table > div:last-child { border-bottom: 0; }
.acct-table dt { font: 500 11.5px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); padding-top: 2px; }
.acct-table dd { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.acct-legal-foot { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px !important; color: var(--ink-3); }

/* ------------------------------------------------------------------ sign-up code ("Check your email") */
.acct-verify-ico { position: relative; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-3), var(--brand) 55%, oklch(0.62 0.13 210));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 0 0 6px rgb(36 71 216 / .08), 0 16px 28px -12px rgb(36 71 216 / .75); animation: acctPop .7s var(--spring) both .05s; }
.acct-verify-ico .ico { width: 25px; height: 25px; stroke-width: 1.8; }
.acct-verify-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 23px; box-shadow: 0 0 0 1.5px rgb(36 71 216 / .45); opacity: 0; pointer-events: none;
  animation: acctPing 2.6s var(--ease) infinite 1s; }
.acct-verify-note { margin-bottom: 16px; }
.acct-verify .acct-form { gap: 14px; }

.acct-otp { position: relative; isolation: isolate; }
.acct-otp-cells { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 10px); }
.acct-otp-cell { position: relative; flex: 1 1 0; min-width: 0; height: 68px; border-radius: 17px; display: grid; place-items: center;
  font: 540 30px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink);
  background: rgb(255 255 255 / .72); box-shadow: inset 0 1px 2px rgb(10 22 48 / .07), 0 0 0 1px rgb(10 22 48 / .09);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), translate .35s var(--spring), color .3s; }
.acct-otp:hover .acct-otp-cell:not(.is-filled) { background: rgb(255 255 255 / .9); }
.acct-otp-cell.is-filled { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(10 22 48 / .15), 0 10px 20px -14px rgb(10 22 48 / .4); }
.acct-otp-cell b { font-weight: inherit; animation: acctDigit .42s var(--spring) both; }
.acct-otp-cell::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9px; height: 2px; border-radius: 2px; background: rgb(10 22 48 / .12); transition: opacity .25s, background .3s; }
.acct-otp-cell.is-filled::before { opacity: 0; }
.acct-otp-cell.is-active { background: #fff; translate: 0 -2px; box-shadow: 0 0 0 2px var(--brand), 0 14px 28px -14px rgb(36 71 216 / .6); }
.acct-otp-cell.is-active::before { background: linear-gradient(90deg, var(--brand), var(--aqua)); }
.acct-otp-cell.is-active:not(.is-filled)::after { content: ""; width: 2px; height: 28px; border-radius: 2px; background: var(--brand); animation: acctCaret 1.1s steps(1) infinite; }
.acct-otp-sep { flex: none; width: 10px; height: 2px; border-radius: 2px; background: var(--ink-4); opacity: .55; }
/* the real input covers the cells: transparent text and caret, so the cells are what people see */
.acct-otp input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; border-radius: 17px;
  background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; cursor: text; }
.acct-otp input::selection { background: transparent; }
.acct-otp input:focus-visible { outline: 0; }
.acct-otp input:-webkit-autofill { -webkit-box-shadow: 0 0 0 80px transparent inset; transition: background-color 600000s 0s; }
.acct-field-otp.is-invalid .acct-otp-cell { color: var(--bad); background: color-mix(in oklab, var(--bad-bg) 35%, #fff); box-shadow: inset 0 1px 2px rgb(10 22 48 / .07), 0 0 0 1.5px var(--bad); }
.acct-field-otp.is-invalid .acct-otp-cell.is-active { box-shadow: 0 0 0 2px var(--bad), 0 14px 28px -16px rgb(179 38 30 / .5); }
.acct-field-otp.is-invalid .acct-otp-cell::before, .acct-field-otp.is-invalid .acct-otp-cell::after { background: var(--bad); }
.acct-otp.is-ok .acct-otp-cell { color: var(--ok); translate: 0 0; background: color-mix(in oklab, var(--ok-bg) 70%, #fff); box-shadow: 0 0 0 1.5px var(--ok), 0 12px 22px -16px rgb(15 122 85 / .6);
  animation: acctOtpOk .6s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms); }
.acct-otp.is-ok .acct-otp-cell::before, .acct-otp.is-ok .acct-otp-cell::after { opacity: 0; }
.acct-demo-hint { margin-top: -4px; }
.acct-demo-hint[hidden] { display: none; }

.acct-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding: 10px 10px 10px 16px; border-radius: 17px;
  background: rgb(10 22 48 / .035); box-shadow: inset 0 0 0 1px rgb(10 22 48 / .05); }
.acct-resend-q { flex: 1 1 190px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.acct-resend-btn { position: relative; overflow: hidden; isolation: isolate; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: var(--pill);
  font-size: 14px; font-weight: 560; letter-spacing: -0.01em; color: var(--brand); background: #fff; box-shadow: inset 0 1px 0 #fff, var(--ring), 0 8px 16px -12px rgb(10 22 48 / .45);
  transition: color .2s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease); }
.acct-resend-btn:hover { color: var(--brand-2); translate: 0 -1px; box-shadow: inset 0 1px 0 #fff, var(--ring), 0 12px 22px -12px rgb(36 71 216 / .45); }
.acct-resend-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--info-bg), oklch(0.93 0.05 200)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; transition: transform .25s linear, opacity .3s; }
.acct-resend-btn.is-cooling { color: var(--ink-3); cursor: default; translate: none; box-shadow: inset 0 1px 0 #fff, var(--ring); }
.acct-resend-btn.is-cooling::before { opacity: 1; }
.acct-resend-ico { width: 16px; height: 16px; transition: transform .6s var(--spring); }
.acct-resend-btn:not(.is-cooling):hover .acct-resend-ico { transform: rotate(150deg); }
.acct-resend-btn .acct-spin { width: 16px; height: 16px; border-color: rgb(36 71 216 / .2); border-top-color: var(--brand); }
.acct-resend-btn.is-loading .acct-resend-ico { display: none; }
.acct-resend-t { font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.acct-resend-t:empty { display: none; }

/* ------------------------------------------------------------------ account deletion */
.acct-delete { align-content: start; }
.acct-danger-ghost { justify-self: start; height: 44px; margin-top: 6px; padding: 0 18px; color: var(--bad); background: rgb(255 255 255 / .78);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in oklab, var(--bad) 28%, transparent), 0 10px 22px -16px rgb(179 38 30 / .55); transition: color .2s, background .25s var(--ease), box-shadow .3s var(--ease), translate .3s var(--ease); }
.acct-danger-ghost:hover { color: #fff; background: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 14px 26px -14px rgb(179 38 30 / .7); }
.acct-danger-ghost .ico, .acct-danger .ico { width: 17px; height: 17px; }
.acct-danger { color: #fff; background: linear-gradient(180deg, oklch(0.6 0.19 27), var(--bad) 60%, oklch(0.45 0.16 27));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 0 0 1px oklch(0.45 0.16 27), 0 14px 28px -12px rgb(179 38 30 / .65); transition: filter .3s, box-shadow .3s var(--ease), background .3s, translate .3s var(--ease); }
.acct-danger:hover { color: #fff; }
.acct-danger:disabled:not(.is-loading) { cursor: not-allowed; color: rgb(255 255 255 / .92); filter: grayscale(.75) opacity(.55); box-shadow: 0 0 0 1px rgb(10 22 48 / .1); }
.acct-del-panel { display: grid; gap: 14px; margin-top: 6px; padding: 18px; border-radius: 16px; background: color-mix(in oklab, var(--bad-bg) 38%, #fff);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px color-mix(in oklab, var(--bad) 22%, transparent), 0 18px 32px -24px rgb(179 38 30 / .5); }
.acct-del-panel.acct-enter { animation: acctView .5s var(--expo) both; }
.acct-del-h { display: flex; align-items: center; gap: 10px; font-size: 15.5px; letter-spacing: -0.015em; color: var(--ink); }
.acct-del-h b { font-weight: 600; }
.acct-del-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 14%, transparent); }
.acct-del-ico .ico { width: 18px; height: 18px; }
.acct-del-panel .acct-label b { font: 600 12px/1 var(--mono); letter-spacing: .08em; padding: 3px 6px; border-radius: 6px; color: var(--bad); background: var(--bad-bg); }
.acct-del-panel .acct-control:focus-within { box-shadow: 0 0 0 2px var(--bad), 0 12px 28px -16px rgb(179 38 30 / .45); }
.acct-del-panel .acct-control::after { background: linear-gradient(90deg, var(--bad), oklch(0.7 0.15 45)); }
.acct-del-panel .acct-control:focus-within .acct-ico { color: var(--bad); }
.acct-del-panel input { font-family: var(--mono); letter-spacing: .08em; }
.acct-del-panel input::placeholder { letter-spacing: .08em; color: rgb(10 22 48 / .22); }
.acct-del-panel.is-armed .acct-ico { color: var(--bad); }
.acct-del-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.acct-del-actions .btn { height: 46px; }
.acct-del-actions .acct-submit { width: auto; margin-top: 0; padding: 0 22px; font-size: 15px; }

/* ------------------------------------------------------------------ contact */
.acct-mail { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; max-width: 470px; margin-top: 6px; padding: 12px 16px 12px 12px; border-radius: 18px; color: var(--ink);
  background: rgb(255 255 255 / .55); box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), var(--ring), var(--drop); animation: acctRise .8s var(--expo) both .24s;
  transition: background .3s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease); }
.acct-mail:hover { color: var(--ink); background: #fff; translate: 0 -2px; box-shadow: inset 0 1px 0 #fff, var(--ring), var(--drop-lg); }
.acct-mail-t { display: grid; gap: 2px; min-width: 0; }
.acct-mail-t small { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.acct-mail-t b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.acct-mail:hover .acct-go { transform: translate(2px, -2px); color: var(--brand); }
.acct-select select { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0 26px 0 0; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; cursor: pointer;
  -webkit-appearance: none; appearance: none; }
.acct-select select:focus-visible { outline: 0; }
.acct-chev { position: absolute; right: 16px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; transition: transform .35s var(--spring), color .2s; }
.acct-select:focus-within .acct-chev { color: var(--brand); transform: translateY(1px); }
.acct-area { height: auto; align-items: stretch; padding: 0; }
.acct-area textarea { flex: 1; width: 100%; min-height: 148px; max-height: 420px; resize: vertical; border: 0; outline: 0; background: none; padding: 14px 16px 16px; border-radius: 15px;
  font: 16px/1.5 var(--font); letter-spacing: -0.01em; color: var(--ink); }
.acct-area textarea::placeholder { color: var(--ink-4); opacity: 1; }
.acct-area textarea:focus-visible { outline: 0; }
.acct-chars { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color .25s; }
.acct-chars.is-low { color: var(--warn); }
.acct-chars.is-near { color: var(--bad); }
.acct-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.acct-contact .acct-form :disabled { cursor: progress; }
.acct-contact .acct-form .acct-control:has(:disabled) { opacity: .7; }
[data-acct-contact-error] a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-acct-contact-error]:focus { outline: 0; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 14%, transparent), 0 0 0 2px var(--bad); }

/* ------------------------------------------------------------------ motion */
.acct-shake { animation: acctShake .5s var(--ease); }
@keyframes acctShake { 15%, 55% { translate: -7px 0; } 35%, 75% { translate: 6px 0; } 90% { translate: -2px 0; } }
@keyframes acctSpin { to { transform: rotate(360deg); } }
@keyframes acctMsg { from { opacity: 0; transform: translateY(-4px); } }
@keyframes acctView { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@keyframes acctCard { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } }
@keyframes acctRise { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } }
@keyframes acctPop { from { opacity: 0; transform: scale(.6); } }
@keyframes acctSkel { to { transform: translateX(100%); } }
@keyframes acctOrbit { to { --acct-a: 360deg; } }
@keyframes acctPing { 0% { opacity: .9; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.22); } }
@keyframes acctDigit { from { opacity: 0; transform: translateY(9px) scale(.6); filter: blur(3px); } }
@keyframes acctCaret { 50% { opacity: 0; } }
@keyframes acctOtpOk { 40% { transform: translateY(-5px) scale(1.04); } }
.acct-sec { animation: acctCard .85s var(--expo) both; animation-delay: calc(.08s + var(--k, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .acct-card, .acct-sec, .acct-legal, .acct-perks li, .acct-list > li, .acct-item, .acct-view.acct-enter, .acct-alert, .acct-msg:not(:empty),
  .acct-done-ico, .acct-avatar, .acct-avatar::before, .acct-shake, .acct-skel i::after,
  .acct-verify-ico, .acct-verify-ico::after, .acct-otp-cell, .acct-otp-cell b, .acct-otp.is-ok .acct-otp-cell, .acct-del-panel.acct-enter { animation: none !important; }
  .acct-verify-ico::after { display: none; }
  .acct-otp-cell.is-active:not(.is-filled)::after { animation: none !important; }
  .acct-control, .acct-control::after, .acct-ico, .acct-ok, .acct-box, .acct-box .ico, .acct-bars i::after, .acct-item-link, .acct-go, .acct-submit-go,
  .acct-otp-cell, .acct-resend-btn, .acct-resend-btn::before, .acct-resend-ico, .acct-danger-ghost, .acct-danger, .acct-mail, .acct-chev { transition: none !important; }
  .acct-mail { animation: none !important; }
  .acct-mail:hover { translate: none; }
  .acct-control:focus-within, .acct-otp-cell.is-active, .acct-resend-btn:hover { translate: none; }
  .acct-spin { animation-duration: 1.6s; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
  .acct-grid > .acct-card { justify-self: stretch; max-width: 600px; margin-inline: auto; }
  .acct-intro { max-width: 600px; margin-inline: auto; width: 100%; gap: 16px; }
  .acct-perks { display: none; }
  .acct-board > * { grid-column: span 12 !important; grid-row: auto !important; }
  .acct-sec-data { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .acct-sec-data .acct-delete { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .acct { padding-top: 24px; }
  .acct-h { font-size: clamp(40px, 12vw, 54px); }
  .acct-intro .lede.lg { font-size: 16.5px; }
  .acct-card { padding: 20px 18px 22px; border-radius: var(--r-lg); }
  .acct-head { grid-template-columns: auto minmax(0, 1fr); }
  .acct-head .acct-signout { grid-column: 1 / -1; justify-self: start; height: 42px; }
  .acct-head .acct-h { font-size: clamp(34px, 10vw, 48px); }
  .acct-avatar { width: 64px; font-size: 22px; align-self: start; margin-top: 4px; }
  .acct-table > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .acct-meter-label { min-width: 0; }
  .acct-otp-cell { height: 58px; border-radius: 14px; font-size: 25px; }
  .acct-otp-cell::before { bottom: 8px; }
  .acct-otp input { border-radius: 14px; }
  .acct-otp-sep { width: 7px; }
  .acct-verify-ico { width: 48px; height: 48px; border-radius: 15px; }
  .acct-resend { padding: 12px; }
  .acct-resend-btn { width: 100%; justify-content: center; }
  .acct-del-panel { padding: 16px 14px; }
  .acct-del-actions { flex-direction: column-reverse; }
  .acct-del-actions .btn { width: 100%; }
}
@media (max-width: 400px) {
  .acct-otp-cells { gap: 6px; }
  .acct-otp-cell { height: 54px; font-size: 23px; border-radius: 13px; }
}
@media (forced-colors: active) {
  .acct-otp-cell { border: 1px solid CanvasText; }
  .acct-otp-cell.is-active { outline: 2px solid Highlight; outline-offset: 2px; }
  .acct-otp-cell.is-active:not(.is-filled)::after { background: CanvasText; }
}

/* sign-up: the address already has an account */
.acct-exists { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: color-mix(in oklab, var(--brand, #2447D8) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand, #2447D8) 22%, transparent); outline: none; }
.acct-exists[hidden] { display: none; }
.acct-exists-t { display: grid; gap: 4px; margin: 0; font-size: 14px; line-height: 1.5; }
.acct-exists-t > strong { font-size: 16px; letter-spacing: -.01em; }
.acct-exists-t span b { overflow-wrap: anywhere; }
.acct-exists-go { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-exists-go .btn { flex: 1 1 140px; justify-content: center; }

/* Cloudflare Turnstile: takes no space unless it has to ask for a click */
.acct-captcha { min-height: 0; }
.acct-captcha:empty { display: none; }
.acct-captcha.is-asking { margin: 2px 0 4px; }
