/* A320 Knowledge: the account pages' own styles (signup, login, reset and account.html load this after site.css;
   no other page needs them, so the flight deck and the rest never fetch them). The tokens, the buttons and
   the header are site.css's. */
/* ---------- the account pages: sign up, log in, a new password (main.auth), and Your account (main.acct) ----------
   A card holding the form beside a photograph of the flight deck with what an account gives (a list under the card
   below 900 px); Your account is its plan, its progress, the profile, signing in and out, and deleting it. The
   fields are the subscribe form's: a quiet box that brightens on focus, 16 px text so iOS never zooms. */
.auth { padding-block: clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: stretch; }
.auth-solo .auth-wrap { grid-template-columns: minmax(0, 500px); justify-content: center; }
.auth-card { position: relative; min-width: 0; padding: clamp(24px, 3.6vw, 44px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, var(--shadow); }
.auth-open { display: block; }
.auth-k { display: block; margin-bottom: 14px; color: var(--ok); }
.auth-title { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem); font-weight: 700; letter-spacing: -0.025em; }
.auth-title:focus { outline: none; }
.auth-lede { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--fg-2); }
.auth-lede b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.auth-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--fg);
  background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.auth-alts { display: grid; gap: 10px; margin-top: 26px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease, opacity .25s ease; -webkit-tap-highlight-color: transparent; }
.auth-google:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.auth-google:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.auth-google svg { flex: none; }
.auth-google.is-busy { opacity: 0.6; pointer-events: none; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 18px; margin-top: 16px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field-row > label, .field > legend { padding: 0; font-size: 0.8125rem; font-weight: 600; color: var(--fg); }
.field > legend { margin-bottom: 10px; }
.field-opt { margin-left: 6px; font-weight: 500; color: var(--muted); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-link { font-size: 0.8125rem; font-weight: 600; color: var(--fg-2); text-underline-offset: 3px; }
.field-link:hover { color: var(--fg); }
/* on a touch screen the small links take a full-size touch (44 px) without moving anything */
@media (pointer: coarse) {
  .field-link, .auth-closed-link { position: relative; }
  .field-link::after { content: ""; position: absolute; inset: -13px -6px -10px; }
  .auth-closed-link::after { content: ""; position: absolute; inset: -10px -6px; }
}
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"] {
  width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; outline: 0; -webkit-appearance: none; appearance: none;
  background: var(--bg); border: 1px solid var(--line-strong); font: 500 1rem var(--font-body); color: var(--fg);
  transition: border-color .25s ease, box-shadow .25s ease; }
.field input[type="date"] { display: block; line-height: 50px; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input:focus { border-color: color-mix(in srgb, var(--fg) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 8%, transparent); }
.field input::placeholder { color: var(--muted); }
.field.is-error input { border-color: var(--warn); }
.field-hint { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
/* a password: shown or hidden by the eye, and how strong a new one is, in four steps */
.pw { position: relative; }
.pw input[type] { padding-right: 56px; }
.pw-eye { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--muted); cursor: pointer; transition: color .2s ease; }
.pw-eye:hover { color: var(--fg); }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye .eye-off, .pw-eye[aria-pressed="true"] .eye-on { display: none; }
.pw-eye[aria-pressed="true"] .eye-off { display: block; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 4px; }
.pw-meter i { border-radius: 2px; background: var(--line-strong); transition: background-color .3s ease; }
.pw-meter[data-level="1"] i:nth-child(1) { background: var(--warn); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--caution); }
.pw-meter[data-level="3"] i:nth-child(-n+3), .pw-meter[data-level="4"] i { background: var(--ok); }
/* a tick box drawn like the rest: a rounded square that fills */
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-block: 2px; font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); cursor: pointer; }
.check input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check-box { flex: none; position: relative; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--bg);
  display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.check-box::after { content: ""; width: 10px; height: 5px; border: solid var(--invert-fg); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease-out); }
.check input:checked + .check-box { background: var(--invert-bg); border-color: var(--invert-bg); }
.check input:checked + .check-box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--steel); outline-offset: 2px; }
.auth-msg { display: none; font-size: 0.875rem; line-height: 1.5; color: var(--warn); }
.auth-msg.is-on { display: block; }
.auth-msg.is-good { color: var(--ok); }
.auth-msg a { color: inherit; font-weight: 600; }
.auth-go { width: 100%; min-height: 54px; margin-top: 4px; font-size: 1rem; }
.auth-go[aria-busy="true"] { cursor: progress; opacity: 1; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 0.9375rem; color: var(--fg-2); }
.auth-switch a { font-weight: 600; color: var(--fg); text-underline-offset: 4px; }
.auth-privacy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.auth-privacy a { color: var(--fg-2); }
.auth-badge { width: 52px; height: 52px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--ok);
  background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.auth-badge svg { width: 24px; height: 24px; }
.auth-fine { margin-top: 14px; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.auth-fine .linklike { color: var(--fg-2); font-weight: 600; }
.auth-open > .btn.auth-go { margin-top: 26px; }
.auth-closed-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.auth-closed-link { font-size: 0.9375rem; font-weight: 600; color: var(--fg-2); text-underline-offset: 4px; }
.auth-closed-link:hover { color: var(--fg); }
/* beside the card: the flight deck at night, and what an account gives, on the deck's dark ground in either theme;
   it stays in view beside a long form, never taller than the window */
.auth-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; isolation: isolate; overflow: hidden; min-width: 0;
  height: clamp(520px, calc(100vh - var(--header-h) - 48px), 760px); height: clamp(520px, calc(100dvh - var(--header-h) - 48px), 760px); display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 26px; background: #0E1012; color: #F2F3F5; border: 1px solid var(--line); }
.auth-photo { position: absolute; inset: 0; z-index: -1; }
.auth-photo picture, .auth-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 11, 0.1) 0%, rgba(10, 12, 11, 0.5) 42%, rgba(10, 12, 11, 0.94) 100%); }
.auth-aside-in { padding: clamp(28px, 3.4vw, 44px); }
.auth-aside-k { display: block; margin-bottom: 18px; color: #3FE07F; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.auth-points li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9375rem; line-height: 1.5; color: rgba(242, 243, 245, 0.72); }
.auth-points b { display: block; margin-bottom: 2px; font-weight: 600; color: #F2F3F5; }
.auth-pt-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #3FE07F; background: rgba(63, 224, 127, 0.12); border: 1px solid rgba(63, 224, 127, 0.25); }
.auth-pt-ic svg { width: 18px; height: 18px; }
/* arriving: the card, then the photograph, rise into place */
.js .auth-card, .js .auth-aside { animation: auth-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.js .auth-aside { animation-delay: 80ms; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 28px; }
  .auth-aside { position: static; height: auto; background: none; border: 0; color: var(--fg); overflow: visible; }
  .auth-photo { display: none; }
  .auth-aside-in { padding: 0 4px; }
  .auth-aside-k { color: var(--ok); }
  .auth-points li { color: var(--fg-2); }
  .auth-points b { color: var(--fg); }
  .auth-pt-ic { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
}
@media (max-width: 600px) {
  .auth { padding-top: 12px; }
  .auth-card { padding: 26px 20px 24px; border-radius: 22px; }
}

/* Your account */
.acct-head { border-bottom: 1px solid var(--line); background: radial-gradient(110% 160% at 100% 0%, color-mix(in srgb, var(--ok) 7%, var(--bg)) 0%, var(--bg) 62%); }
.acct-head-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 26px); padding-block: clamp(28px, 5.5vw, 60px) clamp(24px, 4vw, 40px); }
.acct-avatar { flex: none; width: clamp(56px, 8vw, 76px); height: clamp(56px, 8vw, 76px); display: grid; place-items: center; border-radius: 50%;
  font: 700 clamp(1.375rem, 1rem + 1.4vw, 1.875rem)/1 var(--font-display); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg) 4%, transparent); }
.acct-avatar:empty::after { content: var(--me-i, ""); }
html[data-me="plus"] .acct-avatar { border-color: color-mix(in srgb, var(--ok) 55%, transparent); box-shadow: 0 0 0 5px var(--ok-soft); }
.acct-who { min-width: 0; }
.acct-k { display: block; margin-bottom: 8px; }
.acct-title { font-size: clamp(1.875rem, 1.35rem + 2.2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.acct-email { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); overflow-wrap: anywhere; min-height: 1.6em; }
/* while the account loads, its body holds the screen: nothing below jumps when the plan and profile arrive */
.acct-body[aria-busy="true"] { min-height: 100vh; min-height: 100dvh; }
.acct-body { padding-block: clamp(20px, 3.5vw, 36px) clamp(56px, 8vw, 96px); min-height: 50vh; }
.acct-notes { display: grid; gap: 12px; }
.acct-notes:not(:empty) { margin-bottom: 20px; }
.acct-note { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  animation: auth-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.acct-note > div { flex: 1; min-width: 200px; }
.acct-note b { font-weight: 600; }
.acct-note p { margin-top: 4px; font-size: 0.875rem; line-height: 1.55; color: var(--fg-2); }
.acct-note p b { color: var(--fg); overflow-wrap: anywhere; }
.acct-note-ic { flex: none; color: var(--steel); }
.acct-note-ic svg { display: block; width: 22px; height: 22px; }
.acct-note-good { background: linear-gradient(var(--ok-soft), var(--ok-soft)), var(--surface); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.acct-note-good .acct-note-ic { color: var(--ok); }
.acct-note-go { align-self: center; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.acct-grid.is-in > .acct-col { animation: auth-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.acct-grid.is-in > .acct-col + .acct-col { animation-delay: 70ms; }
.acct-col { display: grid; gap: 20px; min-width: 0; }
.acct-card { min-width: 0; padding: clamp(22px, 2.8vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.acct-card-k { display: block; margin-bottom: 12px; }
.acct-h { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.acct-sub { margin-top: 8px; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-2); }
.acct-msg { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); }
.acct-msg:empty { display: none; }
.acct-msg.is-good { color: var(--ok); }
.acct-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.9375rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.acct-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* the way to Your progress: a full button, the card's one action */
.acct-prog-go { margin-top: 22px; align-self: flex-start; }
/* the plan: Free plainly; A320 Knowledge+ on the deck's dark ground with its green, as on the pricing page */
.acct-plan-name { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.acct-plus { color: #3FE07F; }
.acct-plan-src { display: inline-flex; margin-top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-soft); }
.acct-plan-line { margin-top: 12px; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-2); }
.acct-plan-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.acct-plan-act:empty { display: none; }
.acct-plan-act .acct-link { margin-top: 0; }
.acct-plan .acct-msg { margin-top: 14px; }
.acct-plan.is-plus { color: #F2F3F5; background: radial-gradient(120% 90% at 0% 0%, rgba(63, 224, 127, 0.14), transparent 60%), #0A0C0B; border-color: rgba(63, 224, 127, 0.35);
  box-shadow: 0 0 50px rgba(63, 224, 127, 0.1); }
.acct-plan.is-plus .acct-card-k { color: rgba(242, 243, 245, 0.6); }
.acct-plan.is-plus .acct-plan-line, .acct-plan.is-plus .acct-msg { color: rgba(242, 243, 245, 0.75); }
.acct-plan.is-plus .acct-plan-src { color: #3FE07F; background: rgba(63, 224, 127, 0.14); }
.acct-plan.is-plus .btn-ghost { --pb-bg: #F2F3F5; --pb-fg: #0A0C0B; }
.acct-plan.is-plus .acct-link { color: #F2F3F5; }
.acct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.acct-stats div { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
/* the figures sit on one line across the cards, however their labels wrap */
.acct-stats dd { margin-top: auto !important; padding-top: 4px; }
.acct-stats dt { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.acct-stats dd { margin: 4px 0 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* the profile: the role and the fleet as pills, one chosen */
.acct-form { display: grid; gap: 20px; margin-top: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.875rem; font-weight: 600; color: var(--fg-2); transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.pill:hover span { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.pill input:checked + span { color: var(--invert-fg); background: var(--invert-bg); border-color: var(--invert-bg); }
.pill input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.acct-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.acct-rows { display: grid; margin-top: 10px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.acct-rows > .acct-row:first-child { border-top: 0; }
.acct-row b { font-size: 0.9375rem; font-weight: 600; }
.acct-row p { margin-top: 3px; font-size: 0.875rem; color: var(--muted); }
.acct-row .btn { flex: none; }
.acct-rows > .acct-msg { padding-bottom: 12px; }
.acct-danger { background: none; border-style: dashed; }
.acct-danger .acct-h { font-size: 1.0625rem; }
.acct-danger > .linklike { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; }
.acct-del { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.acct-del-go { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.acct-del-go:not([disabled]):hover, .acct-del-go:not([disabled]):focus-visible { color: #fff; background: var(--warn); border-color: var(--warn); }
.acct-del .linklike { min-height: 44px; font-weight: 600; color: var(--fg-2); }
.acct-gate { max-width: 560px; margin-inline: auto; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; } }
@media (max-width: 600px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .acct-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .auth-card, .js .auth-aside, .acct-note, .acct-grid.is-in > .acct-col { animation: none; }
  .pw-meter i, .check-box, .check-box::after, .pill span { transition: none; }
}
/* accounts not open yet: the card says so, and the list of what an account gives steps aside */
.auth.is-closed .auth-aside-in { display: none; }
@media (max-width: 900px) { .auth.is-closed .auth-aside { display: none; } }
/* Your account, signed out (or just deleted): the panel alone, under the bar */
.acct.is-gated .acct-head { display: none; }
.acct.is-gated .acct-body { padding-top: clamp(20px, 5vw, 64px); }

/* ---------- a founder whose email isn't confirmed yet: the plan card says Founding member, calmly waiting ---------- */
.acct-plan.is-pending { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ok) 9%, transparent), transparent 62%), var(--surface);
  border: 1px dashed color-mix(in srgb, var(--ok) 50%, transparent); }
.acct-plan.is-pending .acct-plan-src { color: var(--caution); background: var(--caution-soft); }
.acct-plan.is-pending .acct-plan-line b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
html[data-me="pending"] .acct-avatar { border-style: dashed; border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
/* what happens next, under the plan: a switch waiting, a cancel, a pass to follow; and its undo */
.acct-plan-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  font-size: 0.875rem; line-height: 1.5; color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1px solid var(--line); }
.acct-plan-next[hidden] { display: none; }
.acct-plan-next > span:nth-child(2) { flex: 1 1 200px; }
.acct-plan-next-ic { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--caution); transform: translateY(-1px); }
.acct-undo { font-weight: 600; min-height: 32px; }
.acct-plan.is-plus .acct-plan-next { color: #F2F3F5; background: rgba(242, 243, 245, 0.06); border-color: rgba(242, 243, 245, 0.12); }
.acct-plan.is-plus .acct-plan-next-ic { background: #F2A53A; }
.acct-plan.is-plus .acct-undo { color: #F2F3F5; text-decoration-color: rgba(242, 243, 245, 0.4); }

/* ---------- Change plan: the three plans as rows, the current one marked; a row opens its confirm step in place ---------- */
.chg-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.chg-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 16px 18px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line); transition: opacity .3s ease, border-color .3s ease, box-shadow .3s ease; }
.chg-opt.is-current { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: linear-gradient(var(--ok-soft), var(--ok-soft)), var(--bg); }
.chg-opt.is-scheduled { border-style: dashed; border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.chg-opt.is-open { border-color: color-mix(in srgb, var(--fg) 35%, transparent); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12); }
.chg-list.has-open .chg-opt:not(.is-open) { opacity: 0.5; }
.chg-main { min-width: 0; }
.chg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.chg-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.chg-tag { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-soft); }
.chg-tag.is-next { color: var(--steel); background: color-mix(in srgb, var(--steel) 14%, transparent); }
.chg-price { margin-top: 4px; font-size: 0.9375rem; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.chg-what { margin-top: 4px; font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); }
.chg-what:empty { display: none; }
/* the launch offer (account.js): its line above the plans, and a code on yearly */
.acct-offer { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 0.875rem; line-height: 1.55; color: var(--fg); text-wrap: pretty;
  background: color-mix(in srgb, var(--ok) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.acct-offer[hidden] { display: none; }
.acct-offer b { letter-spacing: 0.04em; white-space: nowrap; }
.chg-code { margin-top: 6px; }
.chg-code-t { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--fg-2); }
.chg-code-f { display: flex; gap: 8px; margin-top: 2px; }
.chg-code-f[hidden] { display: none; }
.chg-code-f input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--fg); font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.chg-code-f input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.chg-code-f input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.chg-code-f .btn { flex: none; min-height: 44px; }
.chg-code-msg { margin-top: 6px; }
.chg-opt.is-blocked .chg-what { color: var(--muted); }
.chg-go { align-self: center; }
.chg-confirm { grid-column: 1 / -1; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.chg-confirm.is-in { animation: auth-rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.chg-head { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.chg-head:focus { outline: none; }
.chg-sum { margin: 10px 0 0; padding: 0; display: grid; }
/* a receipt: what is taken today, large, then each line of what follows, its label above it */
.chg-sum > div { display: grid; gap: 3px; padding: 11px 0; border-top: 1px solid var(--line); }
.chg-sum > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 0; padding-top: 6px; }
.chg-sum dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.chg-sum dd { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: var(--fg); font-variant-numeric: tabular-nums; }
.chg-sum > div:first-child dt { font-size: 0.875rem; color: var(--fg-2); }
.chg-sum > div:first-child dd { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; }
.chg-warn { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 11px 14px; border-radius: 12px; font-size: 0.875rem; font-weight: 600; line-height: 1.45;
  color: var(--fg); background: var(--caution-soft); border: 1px solid color-mix(in srgb, var(--caution) 40%, transparent); }
.chg-warn > span { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 0.75rem; font-weight: 800; color: #17181B; background: var(--caution); }
.chg-text { margin-top: 12px; font-size: 0.875rem; line-height: 1.55; color: var(--fg-2); }
.chg-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.chg-yes { min-height: 48px; }
.chg-yes[aria-busy="true"] { cursor: progress; }
.chg-act .linklike { min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--fg-2); }
.chg-confirm .acct-msg { margin-top: 12px; }
.chg-confirm .acct-msg a { color: var(--fg); font-weight: 600; }
.chg-foot { margin-top: 14px; }
.chg-foot:empty { display: none; }
.chg-cancel { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--fg-2); }
.chg-cancel-box { margin-top: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
/* "Can we ask why?" at Cancel: optional, the answers as pills, a short note for two of them */
.chg-why { margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.chg-why legend { padding: 0; margin-bottom: 10px; font-size: 0.875rem; font-weight: 700; color: var(--fg); }
.chg-opt-t { font-weight: 500; color: var(--muted); }
.chg-why .pill span { min-height: 40px; padding: 0 14px; font-size: 0.8125rem; }
.chg-why-note { display: grid; gap: 6px; margin-top: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--fg); }
.chg-why-note[hidden] { display: none; }
.chg-why-note textarea { width: 100%; min-width: 0; resize: vertical; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg);
  padding: 10px 12px; font: 400 0.9375rem/1.5 var(--font-body); }
.chg-why-note textarea:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
@media (max-width: 640px) { .chg-why-note textarea { font-size: 16px; } }
.chg-danger { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.chg-danger:not([disabled]):hover, .chg-danger:not([disabled]):focus-visible { color: #fff; background: var(--warn); border-color: var(--warn); }
.chg-blocked { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--fg-2); }
.acct-change > .acct-msg { margin-top: 14px; }
@media (max-width: 600px) {
  .chg-opt { grid-template-columns: minmax(0, 1fr); padding: 15px 16px; }
  .chg-go { justify-self: start; }
  .chg-yes { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .chg-confirm.is-in { animation: none; } .chg-opt { transition: none; } }
/* "Set your password": an account made for them, offered at sign-up or log-in */
.auth-msg .auth-setpw { margin-top: 12px; }
.auth-for { overflow-wrap: anywhere; }
