.activity-section { margin: 28px 0; }
.activity-section > h2, .activity-history > summary { font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; margin: 0 0 16px; }
.activity-history { border-top: 1px solid var(--line, #d8e0e9); padding-top: 22px; }
.activity-history > summary { cursor: pointer; padding-block: 9px; }
.activity-empty { margin-block: 14px; }
.activity-card { overflow: hidden; border: 1px solid var(--line, #d8e0e9); border-radius: 10px; margin-bottom: 18px; }
.activity-card:has(.hero) { border: 0; }
.activity-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #f4f7fb; border-radius: 9px; padding: clamp(18px, 3vw, 36px); }
.activity-hero:not(:has(.activity-hero-art)) { grid-template-columns: minmax(0, 1fr); }
.activity-card .activity-hero { border-radius: 0; }
.activity-hero h1, .activity-hero h3 { margin: 0; }
.activity-hero h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; }
.activity-hero-copy { min-width: 0; overflow-wrap: anywhere; }
.activity-state, .activity-participation { color: #204780; font-size: 15px; font-weight: 650; }
.activity-state { margin: 0 0 8px; }
.activity-intro { line-height: 1.65; margin-block: 12px 0; }
.activity-hero-art img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.activity-hero + .actions { margin-block: 20px; }
.activity-card-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding: 12px 18px; }
.activity-card, .activity-prose#event-details { scroll-margin-top: 110px; }
.activity-card .activity-return-heading:focus { outline: none; }
.activity-detail-link { text-decoration: none; }
.activity-detail-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.activity-detail-nav .crumb { min-width: 0; margin: 0; }
.activity-detail-nav .crumb a { flex: none; }
.activity-detail-nav .crumb span:last-child { min-width: 0; overflow-wrap: anywhere; }
.activity-list-return { justify-self: end; padding-inline: clamp(10px, 2vw, 23px); white-space: nowrap; }
.activity-detail-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(6px, 1.5vw, 16px);
  margin-top: 32px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #d8e0e9);
}
.activity-detail-pagination > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--blue, #2458a8);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.activity-detail-pagination > :first-child { justify-self: start; }
.activity-detail-pagination > :last-child { justify-self: end; }
.activity-detail-pagination > :first-child .activity-pagination-arrow { margin-inline-end: 5px; }
.activity-detail-pagination > :last-child .activity-pagination-arrow { margin-inline-start: 5px; }
.activity-detail-pagination > [aria-disabled="true"] { color: #737e8c; }
.activity-detail-pagination > a:hover { text-decoration: underline; }
.activity-detail-pagination > a:focus-visible { outline-offset: 2px; }
.activity-prose { max-width: 78ch; overflow-wrap: anywhere; line-height: 1.7; }
.activity-prose :is(h2,h3,h4,h5,h6) { margin: 24px 0 10px; line-height: 1.35; }
.activity-prose :is(p,blockquote,ul,ol,pre) { margin-block: 12px; }
.activity-prose :is(img,video) { display: block; max-width: 100%; max-height: 480px; border-radius: 6px; height: auto; margin-block: 12px; }
.activity-prose a { color: var(--blue, #2458a8); text-decoration: underline; text-underline-offset: 2px; }
.activity-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 16px; }
.activity-prose table { border-collapse: collapse; }
.activity-prose :is(td,th) { padding: 8px 12px; border: 1px solid var(--line, #d8e0e9); text-align: start; }
.activity-prose th { background: #f4f7fb; }
.activity-prose pre { white-space: pre-wrap; background: #f4f7fb; padding: 12px; }
.activity-question { margin-block: 0 18px; }
.forms fieldset.choice-question { margin-bottom: 18px; padding-bottom: 0; border: 0; }
.activity-question legend { font: inherit; font-weight: 650; margin-bottom: 6px; }
.activity-question .note { margin: 0; }
.activity-apply-form fieldset > .note { margin-bottom: 14px; }
.activity-policy-links { margin: 6px 0 14px 25px; font-size: 14px; }
.activity-apply-form .status { margin-block: 16px; }
.account-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: clamp(18px, 4vw, 48px); }
.account-navigation { position: sticky; top: 100px; min-width: 0; display: grid; gap: 8px; }
.account-navigation .quiet { display: flex; justify-content: flex-start; }
.account-navigation [aria-current=page] { color: #204780; border-color: #afc6ea; background: #edf3fd; }
.account-pane { min-width: 0; }
.account-pane > h2 { font-size: clamp(21px, 3vw, 28px); margin: 4px 0 18px; }
.account-pane > .actions { margin-top: 24px; }
.points-summary { padding: 16px; background: #f5f8fc; border: 1px solid var(--line, #d8e0e9); border-radius: 8px; }
.points-summary h3 { margin: 0 0 8px; }
.points-total { margin: 0; font-size: clamp(22px, 4vw, 32px); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.points-meta { margin: 5px 0 0; }
.points-meta:empty { display: none; }
.points-controls {
  position: sticky;
  top: var(--points-header-height, 0px);
  z-index: 2;
  padding-top: 8px;
  background: var(--bg, #fff);
}
.points-tabs { display: flex; gap: 8px; margin-top: 12px; border-bottom: 1px solid var(--line, #d8e0e9); }
.points-tab {
  min-height: 44px;
  padding: 8px 12px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted, #526173);
  font: inherit;
  cursor: pointer;
}
.points-tab[aria-selected="true"] { border-bottom-color: #204780; color: #204780; font-weight: 650; }
.points-tab:focus-visible { outline: 2px solid #3563a4; outline-offset: -3px; }
.points-tab-panel { margin-top: 16px; }
.points-tab-panel, .points-tab-panel button, .points-tab-panel summary, .points-tab-panel a {
  scroll-margin-top: var(--points-scroll-clearance, 0px);
}
.points-exchange p { margin: 0; }
.points-entries { margin: 12px 0; padding: 0; list-style: none; }
.points-entry { padding: 14px 0; border-bottom: 1px solid var(--line, #d8e0e9); overflow-wrap: anywhere; }
.points-entry-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.points-entry dt { color: var(--muted, #526173); font-size: .875em; }
.points-entry dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.points-entry-ids { margin-top: 8px; font-size: .875em; }
.points-entry-ids summary { cursor: pointer; }
.points-entry-ids dl { margin: 4px 0 0; }
.points-entry-ids dd + dt { margin-top: 6px; }
.points-pager { align-items: center; margin: 12px 0; }
.profile-avatar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 20px; }
.profile-avatar > img, .profile-initial { display: grid; place-items: center; width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }
.profile-initial { color: #fff; background: #24364c; font-size: 24px; }
.profile-facts, .receipt-facts { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 10px; margin: 12px 0; }
.profile-facts dt, .receipt-facts dt { color: var(--muted, #53647a); }
.profile-facts dd, .receipt-facts dd { margin: 0; overflow-wrap: anywhere; }
.profile-facts dd.private-profile-field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.private-profile-field button { max-width: 100%; min-height: 44px; padding-inline: 12px; }
.private-profile-value { min-width: 0; }
.private-profile-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.private-profile-dialog[open] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: fit-content;
  display: flex;
  flex-direction: column;
}
.private-profile-dialog h2 { margin: 0 0 16px; flex-shrink: 0; }
.private-profile-scroll {
  min-height: 0;
  /* Let the 2px outline and its 6px offset paint inside the scroll area. */
  margin: -8px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 12px 8px;
}
.private-profile-dialog > .auth-dialog-actions { flex-wrap: wrap; flex-shrink: 0; margin-top: 12px; }
.private-profile-dialog button { max-width: 100%; padding-inline: 12px; }
.private-profile-dialog .field textarea {
  box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--line, #d8e0e9);
  border-radius: 6px; font: inherit; resize: vertical;
}
.private-profile-note, .private-address-count { margin-top: 0; }
.private-profile-status { margin: 8px 0 0; overflow-wrap: anywhere; }
.private-profile-status:empty { display: none; }
.private-address-list { list-style: none; padding: 0; margin: 0; }
.private-address-entry { border-top: 1px solid var(--line, #d8e0e9); padding: 12px 0; }
.private-address-caption, .private-address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.private-address-caption > * { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.private-address-text { overflow-wrap: anywhere; }
.private-address-summary { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.private-address-text p, .private-address-review p { margin: 4px 0; }
.private-address-actions { margin-top: 10px; }
.private-address-badge { padding: 2px 8px; border-radius: 4px; background: #edf3fd; color: #204780; font-size: 14px; }
.private-address-recipient-fields, .private-address-region-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.private-address-regions { border: 0; margin: 0; padding: 0; min-width: 0; }
.private-address-regions legend { margin-bottom: 6px; font-weight: 600; }
.private-address-form .field { min-width: 0; }
.private-address-form .field > input, .private-address-form .field > select, .private-address-form .field > textarea {
  box-sizing: border-box; min-width: 0; width: 100%;
}
.private-address-form [aria-invalid=true] { border-color: #b54749; }
.private-address-region-status { margin: 6px 0 0; overflow-wrap: anywhere; }
.private-address-region-status:empty { display: none; }
.private-address-review { padding: 10px 12px; border: 1px solid var(--line, #d8e0e9); border-radius: 6px; overflow-wrap: anywhere; }
.private-address-default { display: inline-flex; gap: 8px; align-items: center; min-width: 0; min-height: 44px; }
.private-address-default > span { overflow-wrap: anywhere; min-width: 0; }
.private-address-default input { flex: none; accent-color: var(--blue, #2458a8); }
.private-address-replacements { display: grid; padding: 0; margin: 0; border: 0; min-width: 0; }
.receipt-facts { margin-bottom: 18px; }
.receipt-heading .progress-title { margin-bottom: 4px; }
.receipt-heading .checkin-intro { margin-top: 10px; }
.avatar-preview { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 50%; margin-block: 8px 14px; }
.receipt-actions { position: sticky; bottom: -2px; background: #fff; padding: 8px 0; }
.avatar-choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(56px,1fr)); gap: 9px; border: 0; padding: 0; margin: 0; }
.avatar-choices legend { margin-bottom: 10px; }
.avatar-choice { position: relative; display: grid; justify-items: center; gap: 4px; border: 1px solid #d0d9e7; padding: 7px; border-radius: 6px; cursor: pointer; }
.avatar-choice:has(:checked) { background: #edf3fd; border-color: #4b72b3; }
.avatar-choice:focus-within { outline: 2px solid #3563a4; outline-offset: 2px; }
.avatar-choice img { width: min(50px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.avatar-choice input { accent-color: #2458a8; }
.my-activity-list { display: grid; gap: 12px; padding: 0; margin: 14px 0; list-style: none; }
.my-activity-row { display: flex; justify-content: space-between; align-items: start; gap: 14px; border: 1px solid var(--line, #d8e0e9); padding: 15px 16px; border-radius: 8px; overflow-wrap: anywhere; }
.my-activity-row h3 { margin: 0; }
.my-activity-row p { margin: 5px 0 0; }
.my-activity-row button { flex: none; }
.activity-dialog .my-activity-row { font-size: 14px; }
.activity-dialog .my-activity-row button { font-size: 14px; }
.activity-dialog > button + button { margin-inline-start: 8px; }
.activity-dialog > .actions { margin-top: 16px; }
.account-activity-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: clamp(18px, 3vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.account-activity-dialog .application-code-block > :first-child { min-width: 0; }
.account-activity-dialog .checkin-message .copycode { white-space: normal; }
.account-activity-dialog[data-receipt][open] { display: flex; flex-direction: column; }
.account-activity-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.account-activity-dialog > .receipt-actions {
  position: static;
  flex-shrink: 0;
  border-top: 1px solid var(--line, #d8e0e9);
  padding-bottom: 0;
}
@media (max-width: 760px) {
  .activity-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .activity-hero-art img { max-height: 230px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .account-navigation { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-navigation .quiet { justify-content: center; text-align: center; padding-inline: 8px; overflow-wrap: anywhere; }
  .points-entry-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .points-entry dd { font-size: .9em; }
  .private-address-actions .private-address-default { flex-basis: 100%; }
  .private-address-recipient-fields, .private-address-region-fields { grid-template-columns: minmax(0, 1fr); }
  .my-activity-row { flex-direction: column; }
  .profile-facts, .receipt-facts { gap: 8px; font-size: 14px; }
  .activity-card-toolbar { padding-inline: 12px; }
  .application-code { white-space: normal; overflow-wrap: anywhere; }
}
