.account-nav {
  display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
  min-height: 44px; padding: .55rem .8rem; border: var(--jg-border);
  border-radius: var(--jg-radius-pill); background: var(--jg-white);
  color: var(--jg-ink); font: inherit; font-weight: 700; cursor: pointer;
}
.account-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.account-nav:focus-visible, .account-dialog :focus-visible, .account-page :focus-visible {
  outline: 3px solid var(--jg-green-deep); outline-offset: 3px;
}
.account-dialog {
  width: min(94vw, 440px); max-height: 90dvh; overflow-y: auto; border: 0; border-radius: var(--jg-radius-l);
  padding: 2rem; background: var(--jg-white); color: var(--jg-ink);
}
.account-dialog::backdrop { background: #121417aa; }
.account-dialog h2 { margin-top: 0; padding-right: 1.5rem; }
.account-dialog [hidden] { display: none !important; }
.account-channel-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  margin: 0 0 1.25rem; padding: 4px; border-radius: var(--jg-radius-pill);
  background: var(--jg-chalk);
}
.account-channel-tabs button {
  border: 0; border-radius: var(--jg-radius-pill); background: transparent;
  color: var(--jg-ink); font: var(--jg-btn-font); cursor: pointer;
}
.account-channel-tabs button[aria-selected="true"] { background: var(--jg-green); }
.account-dialog form { display: grid; gap: .65rem; }
.account-dialog form > label, .account-new label { font-weight: 700; }
.account-dialog input, .account-page input {
  box-sizing: border-box; width: 100%; min-height: 48px; border: 1px solid var(--jg-steel);
  border-radius: var(--jg-radius-s); padding: .7rem; font: inherit;
}
.account-dialog button { min-height: 44px; }
.account-dialog form > .jg-button { margin-top: .35rem; }
.account-new summary { width: fit-content; color: var(--jg-green-deep); font-weight: 700; cursor: pointer; }
.account-new__fields { display: grid; gap: .55rem; padding-top: .75rem; }
.account-dialog [data-account-resend], .account-dialog [data-account-sms-fallback],
.account-dialog [data-account-back] {
  border: var(--jg-border); border-radius: var(--jg-radius-pill);
  background: var(--jg-white); color: var(--jg-ink); font: var(--jg-btn-font);
  cursor: pointer;
}
.account-dialog [data-account-resend]:disabled, .account-dialog [data-account-sms-fallback]:disabled {
  color: var(--jg-steel); cursor: wait;
}
.account-close {
  position: absolute; right: 1rem; top: .8rem; border: 0;
  background: transparent; font-size: 2rem; cursor: pointer;
}
.account-status { min-height: 1.5em; margin-bottom: 0; }

main:has(.account-page) { background: var(--jg-chalk); }
.account-page {
  padding-block: 32px 110px; color: var(--jg-ink);
  overflow-wrap: anywhere;
}
.account-page *, .account-page *::before, .account-page *::after { box-sizing: border-box; }
.account-page [hidden] { display: none !important; }
.account-page__heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 24px;
}
.account-page__heading h1 { font-size: clamp(36px, 3.5vw, 50px); }
.account-page__heading p { margin: 3px 0 0; color: var(--jg-steel); font-size: 16px; }
.account-page__heading .jg-button { flex: none; }
.account-page [data-account-action-status]:empty { display: none; }
.account-page [data-account-action-status]:not(:empty) {
  padding: 14px 18px; border-radius: var(--jg-radius-s); background: var(--jg-mint);
  margin: 0 0 24px;
}
.account-loading, .account-anonymous {
  min-height: 300px; padding: 36px; border: var(--jg-border); border-radius: var(--jg-radius-l);
  background: var(--jg-white);
}
.account-loading { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-weight: 700; }
.account-loading__shape {
  width: 92px; height: 112px; flex: none; border-radius: 20px;
  background: var(--jg-mint);
}
.account-anonymous h2 { font-size: clamp(28px, 4vw, 42px); }
.account-anonymous p { max-width: 45ch; margin: 14px 0 22px; }
.account-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start; gap: 18px;
}
.account-grid__main, .account-grid__side {
  display: grid; align-content: start; gap: 18px; min-width: 0;
}
.account-section {
  min-width: 0; padding: 24px; border: var(--jg-border);
  border-radius: var(--jg-radius-l); background: var(--jg-white);
}
.account-section h2 { font-size: clamp(25px, 2.2vw, 32px); }
.account-section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin-bottom: 16px;
}
.account-section__head a {
  display: inline-flex; align-items: center; min-height: 44px;
  flex: none; font-size: 14px; font-weight: 700; color: var(--jg-green-deep);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.account-section--lessons { padding: 24px; }
.account-next {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); min-height: 224px;
  border-radius: var(--jg-radius); overflow: hidden;
  background: var(--jg-ink); color: var(--jg-white);
}
.account-next__date {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 18px 10px; background: var(--jg-green); color: var(--jg-ink);
  text-align: center;
}
.account-next__weekday { font-size: 15px; font-weight: 700; text-transform: capitalize; }
.account-next__day {
  font: 800 clamp(62px, 5.8vw, 82px)/.95 var(--jg-font-display);
  letter-spacing: -.06em; white-space: nowrap; overflow-wrap: normal;
}
.account-next__month { font: 800 21px/1.2 var(--jg-font-display); }
.account-next__content {
  align-self: center; min-width: 0; padding: 20px 24px;
}
.account-next__eyebrow { margin: 0 0 10px !important; color: var(--jg-mint); font-weight: 700; }
.account-next h3 {
  margin-bottom: 12px; font-size: clamp(25px, 2.5vw, 36px); font-weight: 800;
}
.account-next p { margin: 6px 0; }
.account-next .account-row__date { font-size: 18px; font-weight: 700; }
.account-booking-list { margin-top: 6px; }
.account-booking-list .account-row p { display: inline; margin-right: .6rem; }
.account-booking-list .account-row h3 { margin-bottom: 5px; }
.account-row {
  padding: 11px 0; border-bottom: var(--jg-border);
}
.account-row:last-child { border-bottom: 0; }
.account-row h3 { font-size: 18px; line-height: 1.2; font-weight: 750; }
.account-row p { margin: 4px 0; color: var(--jg-steel); font-size: 14px; }
.account-row a, .account-attention__row a, .account-empty a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--jg-green-deep); font-weight: 800; text-underline-offset: 3px;
}
.account-more {
  min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none;
  color: var(--jg-green-deep); font: 700 15px var(--jg-font-text);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.account-holding {
  padding: 14px 16px; margin-top: 8px; border-radius: var(--jg-radius);
  background: var(--jg-mint); min-width: 0;
}
.account-holding:first-child { margin-top: 0; }
.account-holding[data-holding-status="paused"],
.account-holding[data-holding-status="scheduled"],
.account-holding[data-holding-status="review"],
.account-holding[data-holding-status="unknown"] { background: var(--jg-chalk); }
.account-holding__head {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px;
  justify-content: space-between;
}
.account-holding h3 { max-width: 100%; font-size: 17px; line-height: 1.2; }
.account-badge {
  padding: 6px 10px; border-radius: var(--jg-radius-pill);
  background: var(--jg-white); color: var(--jg-green-deep);
  font-size: 12px; line-height: 1.2; font-weight: 800;
}
.account-holding:not([data-holding-status="active"]) .account-badge { color: var(--jg-steel); }
.account-holding__count { margin-top: 7px; }
.account-holding__count strong {
  display: block; font: 800 clamp(20px, 2vw, 25px)/1.12 var(--jg-font-display);
  letter-spacing: -.03em;
}
.account-holding__count p, .account-holding__expiry { margin: 4px 0 0; font-size: 13px; }
.account-holding__expiry { color: var(--jg-steel); }
.account-holding__details { margin-top: 1px; }
.account-holding__details summary, .account-points__history summary, .account-row__conditions summary {
  display: flex; align-items: center; min-height: 44px; width: fit-content;
  max-width: 100%; color: var(--jg-green-deep); font-size: 14px;
  font-weight: 800; cursor: pointer;
}
.account-holding__more { padding: 0 0 5px; }
.account-holding__more p { margin: 5px 0; font-size: 14px; }
.account-holding__more a { display: inline-flex; min-height: 44px; align-items: center; color: var(--jg-green-deep); }
.account-holding-fold {
  margin-top: 8px; border: var(--jg-border); border-radius: var(--jg-radius-s);
  background: var(--jg-chalk); min-width: 0;
}
.account-holding-fold > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px;
  align-items: center; min-height: 62px; padding: 9px 14px; cursor: pointer;
  list-style: none;
}
.account-holding-fold > summary::-webkit-details-marker { display: none; }
.account-holding-fold > summary::after {
  content: "+"; grid-column: 2; grid-row: 2; justify-self: end;
  color: var(--jg-green-deep); font: 700 22px/1 var(--jg-font-display);
}
.account-holding-fold[open] > summary::after { content: "−"; }
.account-holding-fold__title { min-width: 0; font: 800 15px/1.2 var(--jg-font-display); }
.account-holding-fold__quantity { grid-column: 1; color: var(--jg-steel); font-size: 13px; }
.account-holding-fold .account-badge { color: var(--jg-steel); }
.account-holding-fold .account-holding {
  margin: 0; padding: 0 14px 12px; background: transparent;
}
.account-holding-fold .account-holding__head,
.account-holding-fold .account-holding__count strong { display: none; }
.account-holding-fold .account-holding__count { margin: 0; }
.account-section--loyalty { background: var(--jg-mint); border-color: var(--jg-mint); }
.account-section--loyalty h2 { font-size: 24px; }
.account-points { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.account-points strong { font: 800 54px/.95 var(--jg-font-display); letter-spacing: -.05em; }
.account-points span { font: 700 19px var(--jg-font-display); }
.account-section--loyalty p { margin: 7px 0; font-size: 14px; }
.account-section--loyalty .account-points__reward {
  color: var(--jg-green-deep); font-weight: 800;
}
.account-small { color: var(--jg-steel); font-size: 13px !important; }
.account-points__history { margin-top: 8px; }
.account-points__history ul { padding-left: 20px; margin: 0; font-size: 14px; }
.account-points__history li { margin-bottom: 8px; }
.account-empty { padding: 18px; border-radius: var(--jg-radius); background: var(--jg-chalk); }
.account-empty p { margin: 0 0 8px; }

.account-attention { border-color: var(--jg-coral); }
.account-attention h2 { margin-bottom: 8px; }
.account-attention__row { padding: 10px 0; border-bottom: var(--jg-border); }
.account-attention__row:last-child { border-bottom: 0; padding-bottom: 0; }
.account-attention__row h3 { font-size: 17px; }
.account-attention__row p { margin: 4px 0; font-size: 14px; }
.account-attention__row a { font-size: 14px; }
.account-section--archive { margin-top: 24px; }
.account-section--archive h2 { margin-bottom: 14px; }
.account-disclosure { border-bottom: var(--jg-border); min-width: 0; }
.account-disclosure:last-child { border-bottom: 0; }
.account-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 54px; padding: 10px 0;
  font: 700 17px/1.25 var(--jg-font-display); cursor: pointer; list-style: none;
}
.account-disclosure > summary::-webkit-details-marker { display: none; }
.account-disclosure > summary::after {
  content: "+"; flex: none; color: var(--jg-green-deep); font-size: 26px; line-height: 1;
}
.account-disclosure[open] > summary::after { content: "−"; }
.account-disclosure > div:not(.account-holding) { padding-bottom: 12px; }
.account-settings {
  margin-top: 24px; padding: 4px 28px; border: var(--jg-border);
  border-radius: var(--jg-radius-l); background: var(--jg-white);
}
.account-settings__body { padding: 4px 0 24px !important; }
.account-settings form { display: grid; gap: 14px; max-width: 480px; }
.account-settings form label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.account-settings form .jg-button { justify-self: start; }
.account-settings__email { margin: 0; color: var(--jg-steel); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.account-actions button {
  min-height: 44px; padding: 8px 18px; border: var(--jg-border);
  border-radius: var(--jg-radius-pill); background: var(--jg-white);
  color: var(--jg-ink); font: 700 14px var(--jg-font-text); cursor: pointer;
}
.account-actions button:hover { background: var(--jg-chalk); }
@media (max-width: 900px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .account-page { padding-block: 26px 132px; }
  .account-page__heading { align-items: center; margin-bottom: 22px; }
  .account-page__heading h1 { font-size: 36px; }
  .account-page__heading p { font-size: 15px; }
  .account-page__heading .jg-button { min-height: 44px; padding-inline: 17px; font-size: 14px; }
  .account-grid__main, .account-grid__side, .account-grid { gap: 12px; }
  .account-section { padding: 20px; border-radius: var(--jg-radius); }
  .account-section__head { flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
  .account-section__head h2 { font-size: 27px; }
  .account-next { grid-template-columns: 90px minmax(0, 1fr); min-height: 192px; }
  .account-next__content { padding: 14px; }
  .account-next__day { font-size: 58px; }
  .account-next__month { font-size: 17px; }
  .account-next h3 { font-size: 23px; }
  .account-next p { font-size: 13px; }
  .account-next .account-row__date { font-size: 15px; }
  .account-settings { padding-inline: 20px; }
  .account-holding { padding: 12px 14px; }
  .account-holding__count strong { font-size: 21px; }
  .account-dialog {
    margin: auto auto 0; width: 100%; max-width: 100%;
    border-radius: 22px 22px 0 0; padding: 1.5rem;
  }
  .account-nav span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:has(.account-page [data-account-settings][open]) .bottom-nav { display: none; }
}
@media (max-width: 360px) {
  .account-page__heading h1 { font-size: 32px; }
  .account-section { padding: 16px; }
  .account-next { grid-template-columns: 78px minmax(0, 1fr); }
  .account-next__date { padding-inline: 5px; }
  .account-next__weekday { font-size: 12px; }
  .account-next__day { font-size: 58px; }
  .account-next__content { padding: 14px; }
  .account-next h3 { font-size: 22px; }
}

.account-pay { margin: 8px 0 2px; }
.account-pay__button { min-height: 44px; padding: 0 20px; }
.account-pay__panel { margin-top: 10px; padding: 14px 16px; background: #f1f7ef; border-radius: 14px; }
.account-pay__panel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.account-pay__panel dt { color: var(--jg-steel); font-size: 14px; }
.account-pay__panel dd { margin: 0; font-weight: 800; font-size: 16px; color: var(--jg-ink, #121417); }
.account-pay__qr { display: block; width: 180px; height: 180px; margin: 12px 0 4px; background: #fff; border-radius: 12px; }
.account-cancel { margin: 6px 0 2px; }
.account-cancel__button {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--jg-steel); font: 700 15px var(--jg-font-text); text-decoration: underline; text-underline-offset: 4px;
}
.account-cancel__button:disabled { opacity: .6; cursor: default; }
