/* Participant tasks use the same compact light/dark tokens as the shared UI. */
/* Task navigation is independent of the vertical sidebar's nav defaults. */
html[data-ko-theme] :is(.participant-account-navigation,.participant-booking-actions,.participant-family-actions,.participant-finance-views) {
  flex-direction:row;overflow:visible;
}
html[data-ko-theme] :is(.participant-account-navigation,.participant-booking-actions,.participant-family-actions,.participant-finance-views,.discovery-kinds)>button::before {
  content:none;display:none;
}
html[data-ko-theme] .participant-account-navigation {
  display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;
  max-width:1080px;margin:1.2rem 0 1rem;
}
html[data-ko-theme] .participant-account-navigation .account-back {
  width:auto;flex:0 1 auto;min-width:0;margin:0;font-size:.8rem;
  white-space:normal;text-align:left;
}
html[data-ko-theme] .participant-account-navigation>.field {
  width:min(100%,23rem);min-width:0;gap:.334rem;margin:0;font-size:.734rem;
}
html[data-ko-theme] .participant-account-navigation select {
  width:100%;min-width:0;max-width:100%;font-size:.867rem;
}
html[data-ko-theme] :is(.participant-booking-actions,.participant-family-actions) {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.534rem;
  overflow:visible;
}
html[data-ko-theme] .page-head:has(.participant-booking-actions) {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
}
html[data-ko-theme] .page-head>.participant-booking-actions {
  grid-column:2;grid-row:1 / span 2;justify-content:flex-end;
}
html[data-ko-theme] :is(.participant-booking-actions,.participant-family-actions)>button {
  flex:0 1 auto;min-width:0;max-width:100%;padding:.534rem .8rem;min-height:2.4rem;
  justify-content:center;text-align:center;border:1px solid var(--ko-line);
  border-radius:var(--ko-control);background:var(--ko-surface);color:var(--ko-ink);
  font-size:.8rem;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
}
html[data-ko-theme] :is(.participant-booking-actions,.participant-family-actions)>button:hover {
  background:var(--ko-soft);border-color:var(--ko-input);
}
html[data-ko-theme] .participant-family-actions {
  padding-block:.267rem 1.067rem;border-bottom:1px solid var(--ko-line);
  margin-block:1.067rem .534rem;
}
html[data-ko-theme] .participant-finance-views {
  display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;
  width:fit-content;max-width:100%;gap:.267rem;padding:.267rem;
  margin:0 0 1.334rem;border:1px solid var(--ko-line);
}
html[data-ko-theme] .participant-finance-views>button {
  display:flex;align-items:center;justify-content:center;flex:1 1 auto;
  min-width:0;max-width:100%;min-height:2.667rem;padding:.534rem .8rem;gap:.467rem;
  border:1px solid transparent;text-align:center;line-height:1.5;
  white-space:normal;overflow-wrap:anywhere;
}
html[data-ko-theme] .participant-finance-views>button[aria-pressed=true] {
  background:var(--ko-ink);border-color:var(--ko-ink);color:var(--ko-on-strong);
  font-weight:650;box-shadow:none;
}
html[data-ko-theme] .participant-finance-views>button[aria-pressed=false]:hover {
  color:var(--ko-ink);background:var(--ko-surface);
}

/* Keep discovery's three choices together; enlarged text may wrap the choices. */
html[data-ko-theme] .discovery-kinds {
  display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;
  width:fit-content;max-width:100%;gap:.267rem;padding:.267rem;
  border:1px solid var(--ko-line);margin:1.067rem 0;
}
html[data-ko-theme] .shell .discovery-kinds>button {
  display:flex;align-items:center;justify-content:center;gap:.467rem;
  flex:1 1 auto;min-width:0;max-width:100%;min-height:2.667rem;
  padding:.534rem .867rem;border:1px solid transparent;
  font-size:.867rem;line-height:1.5;text-align:center;white-space:normal;
}
html[data-ko-theme] .discovery-kinds>button>span:last-child {min-width:0;overflow-wrap:anywhere;}
html[data-ko-theme] .discovery-kind-icon {display:inline-flex;flex:0 0 20px;width:20px;height:20px;}
html[data-ko-theme] .discovery-kind-icon svg {display:block;width:100%;height:100%;}
html[data-ko-theme] .discovery-kinds>button[aria-pressed=true] {
  background:var(--ko-surface);border-color:var(--ko-input);color:var(--ko-accent);
  font-weight:650;box-shadow:0 1px 3px #25282c0a;
}
html[data-ko-theme] .discovery-kinds>button[aria-pressed=false]:hover {
  color:var(--ko-ink);background:var(--ko-surface);
}
html[data-ko-theme] .discovery-view-switch {flex-wrap:wrap;width:fit-content;max-width:100%;}
html[data-ko-theme] .discovery-view-switch>button {
  flex:1 1 auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}

/* wallet-balance is the card, while wallet-amount is its numeric value. */
html[data-ko-theme] .wallet-balance {
  max-width:60rem;margin-bottom:1.6rem;font-size:.867rem;line-height:1.5;
  font-weight:400;letter-spacing:0;
}
html[data-ko-theme] .wallet-balance>.small {margin:.267rem 0;}
html[data-ko-theme] .wallet-balance .wallet-amount {
  margin:.534rem 0 .8rem;font-size:2.267rem;line-height:1.2;font-weight:700;
  letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
html[data-ko-theme] .wallet-use-by {margin:1.067rem 0;padding-top:1.067rem;}
html[data-ko-theme] .wallet-use-by time {
  margin:.334rem 0 .534rem;font-size:1.334rem;line-height:1.4;
  letter-spacing:-.02em;overflow-wrap:anywhere;
}
html[data-ko-theme] .wallet-balance .enrollment-actions {
  align-items:center;gap:.534rem;margin-top:1.067rem;
}
html[data-ko-theme] .wallet-balance .enrollment-actions>button {
  min-width:0;max-width:100%;font-size:.8rem;line-height:1.5;
  padding:.534rem .8rem;white-space:normal;overflow-wrap:anywhere;
}
html[data-ko-theme] .wallet-entry {
  flex-wrap:wrap;gap:.534rem 1.067rem;padding:1.067rem 0;min-width:0;
}
html[data-ko-theme] .wallet-entry>div {flex:1 1 14rem;min-width:0;overflow-wrap:anywhere;}
html[data-ko-theme] .wallet-entry>strong {max-width:100%;overflow-wrap:anywhere;white-space:normal;}
html[data-ko-theme] .wallet-deadlines {margin:1.6rem 0;}
html[data-ko-theme] .participant-reservation-changes {
  border-top:1px solid var(--ko-line);padding-top:.8rem;margin-top:1.067rem;
}
html[data-ko-theme] .participant-reservation-changes>summary {
  width:fit-content;max-width:100%;padding-block:.267rem;font-size:.8rem;
  font-weight:600;line-height:1.5;overflow-wrap:anywhere;
}
html[data-ko-theme] .participant-reservation-changes .class-actions {
  margin-top:.8rem;gap:.534rem;
}
html[data-ko-theme] :is(.participant-reservation-primary,.participant-reservation-changes .class-actions)>button {
  flex:1 1 10rem;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
@media(max-width:1000px) {
  html[data-ko-theme] .page-head:has(.participant-booking-actions) {grid-template-columns:minmax(0,1fr);}
  html[data-ko-theme] .page-head>.participant-booking-actions {grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:.4rem;}
}
@media(max-width:800px) {
  html[data-ko-theme] .discovery-search-panel :is(input,select,textarea),
  html[data-ko-theme] .discovery-primary-filters :is(#search,#discipline,#resource-type,#discovery-date,#discovery-until,#discovery-location) {
    font-size:max(16px,1rem);height:auto;min-height:48px;line-height:1.5;
  }
}
@media(max-width:560px) {
  html[data-ko-theme] .participant-account-navigation {align-items:stretch;flex-direction:column;gap:.8rem;}
  html[data-ko-theme] .participant-account-navigation>.field {width:100%;}
  html[data-ko-theme] :is(.participant-booking-actions,.participant-family-actions)>button {flex:1 1 9rem;}
  html[data-ko-theme] .participant-finance-views {width:100%;}
  html[data-ko-theme] .discovery-kinds {width:100%;}
  html[data-ko-theme] .shell .discovery-kinds>button {flex:1 1 5.2rem;padding:.534rem .4rem;}
  html[data-ko-theme] .wallet-balance .enrollment-actions {align-items:stretch;}
}

/* Fit the card to its actual host: dialogs can be narrow on a wide screen. */
html[data-ko-theme] .account-card-layout {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));
  gap:1.334rem;max-width:100%;min-width:0;
}
html[data-ko-theme] :is(.account-card-layout,.device-card-page) .person-card {
  box-sizing:border-box;width:100%;max-width:min(360px,calc(100vw - 64px));min-width:0;
  justify-self:center;padding:20px;
}
html[data-ko-theme] .account-card-layout .person-card>img:not(.person-card-brand-logo) {
  width:100%;max-width:280px;height:auto;aspect-ratio:1;
}
html[data-ko-theme] .account-card-tools {min-width:0;padding-top:0;}
html[data-ko-theme] .account-card-tools>h2 {font-size:1.067rem;line-height:1.35;margin:0 0 .534rem;overflow-wrap:anywhere;}
html[data-ko-theme] .account-card-tools>p {font-size:.867rem;line-height:1.6;}
html[data-ko-theme] .account-card-tools>.contract-form-actions {
  flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:.6rem;margin-top:1.067rem;
}
html[data-ko-theme] .account-card-tools>.contract-form-actions>:is(a,button) {
  box-sizing:border-box;min-width:0;max-width:100%;margin:0;
  font-size:.867rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere;
}
html[data-ko-theme] .account-card-tools .card-phone-wallet>summary {
  font-size:.867rem;line-height:1.5;overflow-wrap:anywhere;
}
html[data-ko-theme] .card-person-choice {width:100%;max-width:100%;}

/* One payment decision: amount, context, terms, funding and one action. */
html[data-ko-theme] #detail.payment-review-dialog {width:min(38rem,calc(100vw - 24px));max-width:100%;}
html[data-ko-theme] .payment-review-dialog #detail-body {padding-top:.4rem;}
html[data-ko-theme] .payment-review-dialog .payment-review-label {margin:.8rem 0 .2rem;color:var(--ko-muted);}
html[data-ko-theme] .payment-review-dialog .payment-review-total {
  display:block;margin:0 0 .8rem;font-size:2.134rem;font-weight:700;
  letter-spacing:-.035em;line-height:1.2;font-variant-numeric:tabular-nums;
}
html[data-ko-theme] .payment-review-dialog .payment-review-context {font-size:.934rem;line-height:1.5;font-weight:600;margin:.8rem 0 .267rem;overflow-wrap:anywhere;}
html[data-ko-theme] .payment-review-dialog .payment-review-when {margin:.267rem 0;line-height:1.6;}
html[data-ko-theme] .payment-review-dialog .payment-review-deadline {font-size:.8rem;line-height:1.6;margin:.8rem 0;}
html[data-ko-theme] .payment-review-rules {border-block:1px solid var(--ko-line);padding:.8rem 0;margin:1.067rem 0 .534rem;}
html[data-ko-theme] .payment-review-rules h3 {margin:0 0 .4rem;font-size:.8rem;}
html[data-ko-theme] .payment-review-rules p {font-size:.8rem;line-height:1.6;margin:.267rem 0;}
html[data-ko-theme] .payment-review-effect {display:block;font-size:.867rem;line-height:1.6;font-weight:650;}
html[data-ko-theme] .payment-review-risk {color:var(--ko-danger);}
html[data-ko-theme] .payment-review-details {border-bottom:1px solid var(--ko-line);padding-bottom:.534rem;margin:.534rem 0 1.067rem;}
html[data-ko-theme] .payment-review-details>summary {padding:.4rem 0;font-size:.8rem;line-height:1.6;cursor:pointer;overflow-wrap:anywhere;}
html[data-ko-theme] .payment-review-details .booking-terms {border:0;background:transparent;padding:.667rem 0;margin:0;}
html[data-ko-theme] .payment-review-dialog .payment-review-method {display:flex;flex-direction:column;gap:.4rem;margin:1.067rem 0 .667rem;font-size:.8rem;}
html[data-ko-theme] .payment-review-dialog .payment-review-method select {width:100%;min-width:0;max-width:100%;font-size:.867rem;}
html[data-ko-theme] .payment-review-dialog .payment-review-wallet {min-width:0;margin:.8rem 0;}
html[data-ko-theme] .payment-review-wallet .wallet-payment-choice {font-size:.8rem;line-height:1.6;margin:.8rem 0 .4rem;}
html[data-ko-theme] .payment-review-method-note {line-height:1.6;margin:.8rem 0;}
html[data-ko-theme] .payment-review-dialog .payment-review-confirm {display:block;width:100%;max-width:100%;min-height:44px;padding:.734rem 1.067rem;font-size:.934rem;line-height:1.5;margin:1.067rem 0 0;white-space:normal;overflow-wrap:anywhere;}
html[data-ko-theme] .online-payment-status {overflow-wrap:anywhere;}
html[data-ko-theme] .online-payment-status>[data-checkout-fallback] {max-width:100%;white-space:normal;}

html[data-ko-theme] .participant-finance-views>button>svg {flex:none;width:20px;height:20px;}
html[data-ko-theme] .participant-finance-views>button>span {min-width:0;overflow-wrap:anywhere;}

html[data-ko-theme] .workspace-account-menu .workspace-account-menu-item {display:flex;align-items:center;gap:.667rem;text-decoration:none;}
html[data-ko-theme] .workspace-account-menu-item>.workspace-account-action-icon {display:inline-flex;flex:none;width:21px;height:21px;}
html[data-ko-theme] .workspace-account-menu-item>svg {flex:none;width:21px;height:21px;}
html[data-ko-theme] .role-choice-list {display:grid;border:1px solid var(--ko-line);border-radius:1rem;overflow:hidden;margin-top:1rem;}
html[data-ko-theme] dialog .role-choice-list>.zone-choice.role-choice {display:flex;align-items:center;gap:.8rem;width:100%;min-width:0;margin:0;padding:.934rem 1rem;border:0;border-radius:0;background:var(--ko-surface);text-align:left;color:var(--ko-ink);white-space:normal;}
html[data-ko-theme] dialog .role-choice-list>.zone-choice.role-choice+.role-choice {border-top:1px solid var(--ko-line);}
html[data-ko-theme] dialog .role-choice-list>.zone-choice.role-choice:hover,html[data-ko-theme] dialog .role-choice-list>.zone-choice.role-choice[aria-current=true] {background:var(--ko-soft);}
html[data-ko-theme] .role-choice-icon {display:flex;align-items:center;justify-content:center;flex:none;width:2.4rem;height:2.4rem;border-radius:.734rem;background:var(--ko-tint);color:var(--ko-accent);}
html[data-ko-theme] .role-choice-copy {display:grid;gap:.134rem;min-width:0;flex:1;overflow-wrap:anywhere;}
html[data-ko-theme] .role-choice-copy strong {font-size:.934rem;line-height:1.4;}
html[data-ko-theme] .role-choice-copy>span {font-size:.8rem;line-height:1.45;color:var(--ko-muted);font-weight:400;}
html[data-ko-theme] .role-choice-copy .role-choice-current {color:var(--ko-accent);font-weight:600;font-size:.734rem;}
html[data-ko-theme] .role-choice-chevron {flex:none;color:var(--ko-muted);font-size:1.4rem;font-weight:400;}

html[data-ko-theme] dialog .role-choice-list>.zone-choice.role-choice:focus-visible {outline-offset:-3px;position:relative;z-index:1;}

/* Keep lesson details and roster counts inside one attendance/list card. */
html[data-ko-theme] .teaching-lessons {display:grid;gap:.667rem;min-width:0;}
html[data-ko-theme] .teaching-lessons>.teaching-lesson-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.667rem 1rem;background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:.934rem;min-width:0;}
html[data-ko-theme] .teaching-lessons>.teaching-lesson-row>.ca-agenda-row {display:grid;grid-template-columns:4rem minmax(0,1fr);row-gap:.134rem;column-gap:.8rem;align-items:start;width:100%;min-width:0;margin:0;padding:.534rem 0;border:0;border-radius:.534rem;background:transparent;box-shadow:none;text-align:left;}
html[data-ko-theme] .teaching-lesson-row .ca-agenda-row>.ca-agenda-time {grid-column:1;grid-row:1;white-space:nowrap;}
html[data-ko-theme] .teaching-lesson-row .ca-agenda-row>.ca-agenda-end {grid-column:1;grid-row:2;max-width:none;white-space:nowrap;font-size:.8rem;color:var(--ko-muted);}
html[data-ko-theme] .teaching-lesson-row .ca-agenda-row>.ca-agenda-info {grid-column:2;grid-row:1 / span 2;min-width:0;overflow-wrap:anywhere;}
html[data-ko-theme] .teaching-lessons>.teaching-lesson-row>.ca-agenda-roster {margin:0;justify-self:end;max-width:7rem;}
html[data-ko-theme] .teaching-lessons>.teaching-lesson-row>.ca-agenda-row:focus-visible {outline-offset:0;}
@media(max-width:560px){
 html[data-ko-theme] .teaching-lessons>.teaching-lesson-row {grid-template-columns:minmax(0,1fr);gap:.267rem;padding:.667rem;}
 html[data-ko-theme] .teaching-lessons>.teaching-lesson-row>.ca-agenda-row {grid-column:1;grid-template-columns:minmax(0,1fr) auto;}
 html[data-ko-theme] .teaching-lesson-row .ca-agenda-row>.ca-agenda-end {grid-column:2;grid-row:1;}
 html[data-ko-theme] .teaching-lesson-row .ca-agenda-row>.ca-agenda-info {grid-column:1/-1;grid-row:2;}
 html[data-ko-theme] .teaching-lessons>.teaching-lesson-row>.ca-agenda-roster {grid-column:1;}
}

/* Payment history: quiet rows, explicit refund states, optional technical details. */
html[data-ko-theme] .financial-receipt {
 margin:.534rem 0;padding:.8rem 0;border:0;border-top:1px solid var(--ko-line);border-radius:0;background:transparent;color:var(--ko-ink);
}
html[data-ko-theme] .financial-receipt .receipt-heading {display:grid;grid-template-columns:1.867rem minmax(0,1fr) auto;gap:.667rem;align-items:start;}
html[data-ko-theme] .financial-receipt .receipt-icon {display:grid;place-items:center;width:1.867rem;height:1.867rem;border-radius:50%;background:var(--ko-soft);color:var(--ko-muted);font-size:1.2rem;line-height:1;}
html[data-ko-theme] .financial-receipt .receipt-copy {min-width:0;}
html[data-ko-theme] .financial-receipt .refund-status {display:block;font-size:.867rem;font-weight:650;line-height:1.5;letter-spacing:normal;text-transform:none;overflow-wrap:anywhere;}
html[data-ko-theme] .financial-receipt .refund-amount {margin:0;font-size:1.067rem;font-weight:650;line-height:1.5;letter-spacing:normal;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ko-ink);}
html[data-ko-theme] .financial-receipt .receipt-description {margin:.134rem 0 0;font-size:.8rem;line-height:1.5;color:var(--ko-muted);overflow-wrap:anywhere;}
html[data-ko-theme] .financial-receipt[data-receipt-kind=refund] :is(.refund-status,.refund-amount) {color:var(--ko-success);}
html[data-ko-theme] .financial-receipt[data-receipt-kind=refund] .receipt-icon {background:var(--ko-success-bg);color:var(--ko-success);}
html[data-ko-theme] .financial-receipt[data-receipt-kind=pending] .receipt-icon {background:var(--ko-warning-bg);color:var(--ko-warning);}
html[data-ko-theme] .financial-receipt .receipt-details {margin:.267rem 0 0 2.534rem;font-size:.8rem;}
html[data-ko-theme] .financial-receipt .receipt-details>summary {width:fit-content;max-width:100%;padding:.4rem 0;min-height:2.134rem;cursor:pointer;color:var(--ko-muted);line-height:1.4;overflow-wrap:anywhere;}
html[data-ko-theme] .financial-receipt .receipt-details>summary:focus-visible {outline:2px solid var(--ko-accent);outline-offset:2px;border-radius:.267rem;}
html[data-ko-theme] .financial-receipt .receipt-details-body {padding:.267rem .667rem;background:var(--ko-soft);border-radius:.534rem;overflow-wrap:anywhere;}
html[data-ko-theme] .financial-receipt .receipt-details-body p {margin:.4rem 0;font-size:.8rem;color:var(--ko-muted);}
html[data-ko-theme] .financial-receipt .refund-download {margin:.267rem 0;min-height:2.4rem;padding:.4rem .667rem;font-size:.8rem;}
html[data-ko-theme] .booking-payment-history>.receipt-booking-context {margin:.267rem 0;}
html[data-ko-theme] .booking-payment-history>.financial-receipt:last-child {margin-bottom:0;padding-bottom:0;}
@media(max-width:360px){
 html[data-ko-theme] .financial-receipt .receipt-heading {grid-template-columns:1.867rem minmax(0,1fr);}
 html[data-ko-theme] .financial-receipt .refund-amount {grid-column:2;}
}
html[data-ko-theme] .financial-receipt .receipt-financial-facts p {margin:.267rem 0 0;font-size:.8rem;line-height:1.5;color:var(--ko-muted);}

html[data-ko-theme] .payment-statement-download {margin-top:.667rem;padding-top:.4rem;border-top:1px solid var(--ko-line);}
html[data-ko-theme] .payment-statement-download .refund-download {margin:.267rem 0;min-height:2.4rem;padding:.4rem .8rem;font-size:.8rem;}

/* Finances: one selection total and compact, task-sized due rows. */
html[data-ko-theme] .payment-selection-summary {padding:.8rem 0 1.067rem;margin-bottom:.8rem;border-bottom:1px solid var(--ko-line);}
html[data-ko-theme] .payment-selection-heading,html[data-ko-theme] .payment-selection-tools {display:flex;align-items:center;justify-content:space-between;gap:.667rem;flex-wrap:wrap;}
html[data-ko-theme] .payment-selection-heading h2 {margin:0;font-size:1.067rem;}
html[data-ko-theme] .payment-selection-total {font-size:1.6rem;font-variant-numeric:tabular-nums;}
html[data-ko-theme] .payment-selection-tools {justify-content:flex-start;margin:.4rem 0;}
html[data-ko-theme] .payment-selection-tools button {font-size:.8rem;padding:.4rem .667rem;min-height:2.4rem;}
html[data-ko-theme] .payment-selection-pay {margin-top:.4rem;}
html[data-ko-theme] .payment-due-row {display:grid;grid-template-columns:2.4rem minmax(0,1fr) auto;column-gap:.8rem;row-gap:.267rem;padding:.8rem 1.067rem;margin:.533rem 0;border-radius:.8rem;box-shadow:none;}
html[data-ko-theme] .payment-due-row>h2,html[data-ko-theme] .payment-due-row>h3 {grid-column:2;grid-row:1;font-size:1rem;line-height:1.4;margin:0;}
html[data-ko-theme] .payment-due-row>p,html[data-ko-theme] .payment-due-row>details {grid-column:2/-1;margin:0;font-size:.8rem;line-height:1.5;}
html[data-ko-theme] .payment-due-row>strong {grid-column:3;grid-row:1;font-size:1.067rem;line-height:1.4;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums;}
html[data-ko-theme] .payment-due-choice {grid-column:1;grid-row:1/5;align-self:start;display:flex;min-width:2.4rem;min-height:2.4rem;align-items:center;justify-content:center;cursor:pointer;}
html[data-ko-theme] .payment-due-choice span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
html[data-ko-theme] .payment-due-choice input {width:1.067rem;height:1.067rem;margin:0;accent-color:var(--ko-accent);}
html[data-ko-theme] .payment-due-row>button {grid-column:2/-1;justify-self:start;margin:.267rem 0;}
html[data-ko-theme] .payment-due-expired .payment-due-state {color:var(--ko-muted);}
html[data-ko-theme] .payment-selection-review-item {padding:.8rem 0;border-bottom:1px solid var(--ko-line);}
html[data-ko-theme] .payment-selection-review-item p {margin:.267rem 0;}
@media(max-width:560px){html[data-ko-theme] .payment-due-row {padding:.667rem;column-gap:.4rem;}html[data-ko-theme] .payment-due-row>strong {font-size:1rem;}html[data-ko-theme] .payment-selection-pay {width:100%;}}

html[data-ko-theme] .shell .payment-due-row>p,html[data-ko-theme] .shell .payment-due-row>details,html[data-ko-theme] .shell .payment-due-row>.participant-disclosure {grid-column:2/-1;margin:0;font-size:.8rem;line-height:1.5;min-width:0;}
html[data-ko-theme] .shell .payment-due-row>strong {color:var(--ko-ink);align-self:start;}
html[data-ko-theme] .shell .payment-due-alternatives>summary {width:fit-content;max-width:100%;min-height:2.4rem;display:flex;align-items:center;cursor:pointer;color:var(--ko-muted);font-size:.8rem;}
html[data-ko-theme] .shell .payment-due-alternatives button {margin:.267rem 0;font-size:.8rem;}

html[data-ko-theme] .shell .payment-due-row>h2,html[data-ko-theme] .shell .payment-due-row>h3 {min-width:0;overflow-wrap:anywhere;}

html[data-ko-theme] .payment-history-summary {padding:1.067rem;}
html[data-ko-theme] .payment-history-summary-head {display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;}
html[data-ko-theme] .payment-history-summary-head h2 {font-size:1rem;margin:0;overflow-wrap:anywhere;}
html[data-ko-theme] .payment-history-summary-head>strong {font-size:1.067rem;white-space:nowrap;}
html[data-ko-theme] .shell .payment-history-summary>p {font-size:.8rem;margin:.267rem 0;}
html[data-ko-theme] .payment-history-refund-state {font-weight:650;color:var(--ko-success);}
html[data-ko-theme] .payment-history-lazy-details>summary {cursor:pointer;min-height:2.4rem;display:flex;align-items:center;font-size:.867rem;}
html[data-ko-theme] .payment-history-detail-item+.payment-history-detail-item {border-top:1px solid var(--ko-line);margin-top:.8rem;padding-top:.8rem;}
html[data-ko-theme] .payment-history-summary>.refund-download {font-size:.8rem;padding:.4rem .667rem;min-height:2.4rem;margin-top:.4rem;}

/* One compact history row across every payment method and wallet event. */
html[data-ko-theme] .finance-history-section {min-width:0;margin-block:1.067rem;}
html[data-ko-theme] .finance-history-heading {font-size:1rem;font-weight:600;line-height:1.4;margin:0 0 .533rem;}
html[data-ko-theme] .finance-history-list {min-width:0;background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:var(--ko-control);overflow:hidden;}
html[data-ko-theme] .finance-history-list:empty {display:none;}
html[data-ko-theme] .finance-history-list>.finance-history-item,
html[data-ko-theme] .finance-history-item.wallet-entry {display:block;min-width:0;max-width:100%;padding:0;margin:0;border:0;border-bottom:1px solid var(--ko-line);border-radius:0;background:var(--ko-surface);box-shadow:none;}
html[data-ko-theme] .finance-history-list>.finance-history-item:last-child {border-bottom:0;}
html[data-ko-theme] .finance-history-item>summary.finance-history-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.533rem 1.067rem;min-width:0;min-height:0;margin:0;padding:.8rem 1.067rem;list-style:none;cursor:pointer;color:var(--ko-ink);font:inherit;text-align:start;}
html[data-ko-theme] .finance-history-row::marker {content:'';}
html[data-ko-theme] .finance-history-row::-webkit-details-marker {display:none;}
html[data-ko-theme] .finance-history-row:active {background:var(--ko-soft);}
html[data-ko-theme] .finance-history-row:focus-visible {outline:2px solid var(--ko-accent);outline-offset:-3px;border-radius:var(--ko-control);}
html[data-ko-theme] .finance-history-copy {display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;min-width:0;}
html[data-ko-theme] .finance-history-title {font-size:.933rem;font-weight:600;line-height:1.4;letter-spacing:-.01em;overflow-wrap:anywhere;}
html[data-ko-theme] :is(.finance-history-context,.finance-history-meta,.finance-history-disclosure) {font-size:.8rem;font-weight:400;line-height:1.45;color:var(--ko-muted);overflow-wrap:anywhere;}
html[data-ko-theme] .finance-history-amount {font-size:.933rem;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:-.01em;text-align:end;max-inline-size:min(13ch,45vw);overflow-wrap:anywhere;color:var(--ko-ink);}
html[data-ko-theme] .finance-history-amount[data-direction=in],html[data-ko-theme] .finance-history-amount.wallet-credit {color:var(--ko-success);}
html[data-ko-theme] .finance-history-amount.wallet-debit {color:var(--ko-ink);}
html[data-ko-theme] .finance-history-disclosure {display:inline-flex;align-items:center;gap:.333rem;margin-top:.133rem;}
html[data-ko-theme] .finance-history-caret {display:inline-block;line-height:1;transition:transform 120ms ease-out;}
html[data-ko-theme] .finance-history-item[open]>.finance-history-row .finance-history-caret {transform:rotate(180deg);}
html[data-ko-theme] .finance-history-details {min-width:0;padding:0 1.067rem .8rem;color:var(--ko-ink);font-size:.867rem;overflow-wrap:anywhere;}
html[data-ko-theme] .finance-history-details>p {margin:.4rem 0;font-size:.8rem;line-height:1.5;}
html[data-ko-theme] .finance-history-details :is(.financial-receipt,.refund-receipt,.payment-receipt) {background:transparent;box-shadow:none;border:0;border-top:1px solid var(--ko-line);border-radius:0;padding:.667rem 0;margin:.533rem 0;color:var(--ko-ink);}
html[data-ko-theme] .finance-history-details :is(.receipt-label,.refund-status) {font-size:.8rem;letter-spacing:normal;text-transform:none;}
html[data-ko-theme] .finance-history-details :is(.finance-history-action,.refund-download) {display:inline-flex;align-items:center;justify-content:center;gap:.333rem;max-width:100%;min-height:2.133rem;margin:.4rem .4rem 0 0;padding:.333rem .667rem;border:1px solid var(--ko-line);border-radius:var(--ko-control);background:var(--ko-surface);color:var(--ko-ink);font:inherit;font-size:.8rem;line-height:1.4;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-shadow:none;}
html[data-ko-theme] .finance-history-state {font-size:.8rem;line-height:1.5;color:var(--ko-muted);margin:.533rem 0;}
html[data-ko-theme] .finance-history-more {margin-top:.533rem;font-size:.8rem;}
@media (hover:hover) {html[data-ko-theme] .finance-history-row:hover {background:var(--ko-soft);}}
@media (max-width:480px) {html[data-ko-theme] .finance-history-item>summary.finance-history-row {padding:.8rem;gap:.533rem;}html[data-ko-theme] .finance-history-details {padding-inline:.8rem;}}
@media (prefers-reduced-motion:reduce) {html[data-ko-theme] .finance-history-caret {transition:none;}}
html[data-ko-theme] .finance-history-details .receipt-heading {display:flex;align-items:flex-start;gap:.667rem;min-width:0;}
html[data-ko-theme] .finance-history-details .receipt-icon {display:none;}
html[data-ko-theme] .finance-history-details .receipt-copy {flex:1;min-width:0;}
html[data-ko-theme] .finance-history-details .refund-amount {font-size:.933rem;font-weight:600;font-variant-numeric:tabular-nums;max-width:45%;overflow-wrap:anywhere;}

html[data-ko-theme] .finance-history-caret {position:relative;width:.667rem;height:.667rem;}
html[data-ko-theme] .finance-history-caret::before {content:"";position:absolute;inset-inline-start:.133rem;inset-block-start:.067rem;width:.333rem;height:.333rem;border-inline-end:1.5px solid currentColor;border-block-end:1.5px solid currentColor;transform:rotate(45deg);}
html[data-ko-theme] .finance-history-details .refund-amount {margin:0;line-height:1.5;}

html[data-ko-theme] .finance-history-feed[aria-busy=true]>.finance-history-section>.finance-history-state {display:none;}
html[data-ko-theme] .finance-history-feed[aria-busy=true]>.finance-history-section:has(>.finance-history-list:empty) {display:none;}

/* Moje konto — wybrana sprawa w jednym oknie z zakładkami (23.11.2026).
   Strona z wyszukiwarką zostaje bez zmian; okno ma stały nagłówek, zakładki
   ustawień, przewijaną treść i przycisk zapisu zawsze w zasięgu. */
html[data-ko-theme] dialog.account-sheet.ca-dialog{position:fixed;left:calc(var(--ko-visible-left,0px) + var(--ko-visible-width,100vw)/2);top:calc(var(--ko-visible-top,0px) + var(--ko-visible-height,100dvh)/2);right:auto;bottom:auto;margin:0;width:min(640px,calc(var(--ko-visible-width,100vw) - 24px))!important;max-width:calc(var(--ko-visible-width,100vw) - 24px)!important;max-height:calc(var(--ko-visible-height,100dvh) - 24px);padding:0!important;transform:translate(-50%,-50%)!important;translate:none!important;overflow:hidden;border:1px solid var(--ko-line);border-radius:14px;background:var(--ko-bg);color:var(--ko-ink);box-shadow:0 18px 60px #0000002e;box-sizing:border-box}
html[data-ko-theme] dialog.account-sheet[open]{display:flex;flex-direction:column;min-height:min(560px,calc(var(--ko-visible-height,100dvh) - 24px))}
html[data-ko-theme] dialog.account-sheet[open]>.account-sheet-frame{flex:1 1 auto}
html[data-ko-theme] dialog.account-sheet>.ko-sheet-grip,html[data-ko-theme] dialog.account-sheet>.ko-dialog-close{display:none!important}
html[data-ko-theme] dialog.account-sheet .account-sheet-frame{display:flex;flex-direction:column;max-height:calc(var(--ko-visible-height,100dvh) - 26px);min-height:0}
html[data-ko-theme] dialog.account-sheet .account-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px 10px 20px;margin:0;background:var(--ko-surface);flex-shrink:0}
html[data-ko-theme] dialog.account-sheet .account-sheet-head:has(+.account-sheet-tabs[hidden]){border-bottom:1px solid var(--ko-line)}
html[data-ko-theme] dialog.account-sheet .account-sheet-titles{min-width:0}
html[data-ko-theme] dialog.account-sheet .account-sheet-eyebrow{margin:0 0 2px;font-size:11px;line-height:1.3;color:var(--ko-muted)}
html[data-ko-theme] dialog.account-sheet .account-sheet-head h2{font-size:19px!important;line-height:1.25;margin:0;font-weight:650;letter-spacing:-.02em;overflow-wrap:anywhere}
html[data-ko-theme] dialog.account-sheet .account-sheet-head h2:focus{outline:none}
html[data-ko-theme] dialog.account-sheet .account-sheet-done{flex-shrink:0;min-height:44px;padding:0 8px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ko-accent)!important;font-size:15px!important;font-weight:600}
html[data-ko-theme] dialog.account-sheet .account-sheet-done:hover{background:var(--ko-soft)!important}
html[data-ko-theme] dialog.account-sheet .account-sheet-tabs{padding:0 20px 12px;background:var(--ko-surface);border-bottom:1px solid var(--ko-line);flex-shrink:0}
html[data-ko-theme] dialog.account-sheet .account-sheet-tabs[hidden]{display:none}
html[data-ko-theme] dialog.account-sheet .account-sheet-tablist.ko-step-tabs[data-step-navigation]{margin:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
html[data-ko-theme] dialog.account-sheet .account-sheet-tablist::-webkit-scrollbar{display:none}
html[data-ko-theme] dialog.account-sheet .account-sheet-tablist.ko-step-tabs[data-step-navigation]>li{flex:1 0 auto}
html[data-ko-theme] dialog.account-sheet .account-sheet-tablist.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab{width:100%;min-height:32px;text-align:center;white-space:nowrap}
html[data-ko-theme] dialog.account-sheet .account-sheet-body{flex:1 1 auto;background:var(--ko-bg);overflow:auto;overscroll-behavior:contain;min-height:0;padding:14px 16px 18px}
/* Treść: lekkie, zgrupowane karty zamiast ciężkich ramek i długich odstępów. */
html[data-ko-theme] dialog.account-sheet .account-panel{max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
html[data-ko-theme] dialog.account-sheet .account-panel h1{display:none}
html[data-ko-theme] dialog.account-sheet .account-panel>p.muted,html[data-ko-theme] dialog.account-sheet .account-panel>.account-notification-settings>p.small{margin:0 4px 12px;font-size:13px;color:var(--ko-muted)}
html[data-ko-theme] dialog.account-sheet :is(.account-panel,.account-sheet-pane,.family-page,.account-notification-settings)>:is(section:not(.account-sheet-pane,.account-notification-settings),form,details,.account-club-list,.account-contract-sharing,.pairing-requests,.account-invitation-groups,.account-signature-editor){background:var(--ko-surface);border:0;border-radius:12px;padding:16px;margin:0 0 12px;box-shadow:none;max-width:none}
html[data-ko-theme] dialog.account-sheet .account-panel>.family-page,html[data-ko-theme] dialog.account-sheet .account-panel>.account-notification-settings{margin:0;padding:0;background:transparent;border:0}
html[data-ko-theme] dialog.account-sheet .account-panel :is(h2,h3){font-size:16px;line-height:1.3;margin:0 0 6px;letter-spacing:-.01em}
html[data-ko-theme] dialog.account-sheet .account-panel h4{font-size:14px;margin:12px 0 6px}
html[data-ko-theme] dialog.account-sheet .account-panel p{line-height:1.5;margin:4px 0 10px}
html[data-ko-theme] dialog.account-sheet .account-panel .account-task-section .account-task-section{margin:14px 0 0;padding:14px 0 0}
html[data-ko-theme] dialog.account-sheet .account-panel .account-form{max-width:none}
html[data-ko-theme] dialog.account-sheet .account-panel .account-fieldset{margin:0 0 14px}
html[data-ko-theme] dialog.account-sheet .account-panel .account-fieldset>legend{font-size:13px;font-weight:600;color:var(--ko-muted);margin-bottom:8px}
html[data-ko-theme] dialog.account-sheet .account-panel .field{margin:0 0 12px}
html[data-ko-theme] dialog.account-sheet .account-panel .field{font-size:12px;color:var(--ko-muted)}
html[data-ko-theme] dialog.account-sheet .account-panel .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:40px;padding:8px 12px;margin-top:5px;font-size:14px;color:var(--ko-ink);border-radius:9px}
html[data-ko-theme] dialog.account-sheet .account-panel :is(.password-change-form,.account-map-settings,.account-platform-settings){margin:0 0 12px;padding:16px;border:0}
html[data-ko-theme] dialog.account-sheet .account-panel .account-task-details{border-top:0;margin:0 0 12px}
html[data-ko-theme] dialog.account-sheet .account-panel .account-sheet-fixed>summary{list-style:none;pointer-events:none;font-size:16px;font-weight:650;margin:0 0 6px;padding:0}
html[data-ko-theme] dialog.account-sheet .account-panel .account-sheet-fixed>summary::-webkit-details-marker{display:none}
html[data-ko-theme] dialog.account-sheet .account-panel .account-security-actions{margin:12px 0 0}
html[data-ko-theme] dialog.account-sheet .account-panel .account-club-row:last-child{border-bottom:0}
/* Moje kluby: name and people first, actions below in one wrapping row (no squeezed name column). */
html[data-ko-theme] dialog.account-sheet .account-club-row{flex-direction:column;align-items:stretch;gap:12px}
html[data-ko-theme] dialog.account-sheet .account-club-row h3{margin:0 0 2px}
html[data-ko-theme] dialog.account-sheet .account-club-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}
html[data-ko-theme] dialog.account-sheet .account-club-actions button{margin:0}
html[data-ko-theme] dialog.account-sheet .account-panel .account-connect-more{border-top:0;padding-top:16px}
/* Zapis zostaje widoczny przy dłuższym formularzu. */
html[data-ko-theme] dialog.account-sheet .account-panel .account-form-footer{position:sticky;bottom:-18px;z-index:1;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;margin:4px -16px -16px;padding:12px 16px 16px;background:var(--ko-surface);border-top:1px solid var(--ko-line);border-radius:0 0 12px 12px}
html[data-ko-theme] dialog.account-sheet .account-panel .account-form-footer .form-message{flex:1 1 180px}
html[data-ko-theme] dialog.account-sheet .account-panel :is(.account-form-footer,form)>button[type=submit]{min-height:40px}
@media(max-width:600px){
 html[data-ko-theme] dialog.account-sheet.ca-dialog{width:calc(var(--ko-visible-width,100vw) - 16px)!important;max-width:calc(var(--ko-visible-width,100vw) - 16px)!important;max-height:calc(var(--ko-visible-height,100dvh) - 16px);border-radius:16px}
 html[data-ko-theme] dialog.account-sheet[open]{min-height:calc(var(--ko-visible-height,100dvh) - 16px)}
 html[data-ko-theme] dialog.account-sheet .account-panel .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:44px;font-size:16px}
 html[data-ko-theme] dialog.account-sheet .account-sheet-frame{max-height:calc(var(--ko-visible-height,100dvh) - 18px)}
 html[data-ko-theme] dialog.account-sheet .account-sheet-head{padding:12px 8px 8px 16px}
 html[data-ko-theme] dialog.account-sheet .account-sheet-tabs{padding:0 12px 10px}
 html[data-ko-theme] dialog.account-sheet .account-sheet-tablist.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab{min-height:36px}
 html[data-ko-theme] dialog.account-sheet .account-sheet-body{padding:12px 10px 14px}
 html[data-ko-theme] dialog.account-sheet .account-panel .account-form-footer{bottom:-14px}
 html[data-ko-theme] dialog.account-sheet .account-panel .account-form-footer>button{flex:1 1 100%}
}
/* Ustawienia dziecka: zakładki jak segmenty, zapis uprawnień zawsze pod ręką. */
html[data-ko-theme] dialog.family-settings-dialog .account-task-nav{gap:4px;padding:3px;margin:0 0 16px;background:var(--ko-soft);border:0;border-radius:var(--ko-control)}
html[data-ko-theme] dialog.family-settings-dialog .account-task-nav>button{flex:1 1 0;min-height:32px;padding:4px 8px;border:0!important;border-radius:calc(var(--ko-control) - 3px);background:transparent!important;color:var(--ko-muted)!important;box-shadow:none!important;font-size:12px;font-weight:500}
html[data-ko-theme] dialog.family-settings-dialog .account-task-nav>button[aria-pressed=true]{background:var(--ko-surface)!important;color:var(--ko-ink)!important;font-weight:600;box-shadow:0 1px 3px #25282c14!important}
html[data-ko-theme] dialog.family-settings-dialog .account-primary-action{position:sticky;bottom:0;z-index:1;display:block;width:100%;margin-top:12px;box-shadow:0 0 0 12px var(--ko-surface)!important}
html[data-ko-theme] dialog.family-settings-dialog [data-family-task=wallet]>:is(.account-primary-action,.account-primary-action+.form-message,.account-primary-action+.form-message+.form-message){display:none!important}
/* Komunikat nad otwartym oknem (warstwa górna). */
#toast:popover-open{position:fixed;inset:auto auto calc(22px + env(safe-area-inset-bottom)) 50%;margin:0;border:0;width:max-content;max-width:90vw;height:auto;overflow:visible}
