/* Design tokens of the Xiding H5 prototype: colour, type and spacing, light and dark, per locale.
   Generated by tools/extract-prototype.ts from reference/prototype/xiding-app.html (artifact version 1794795084-6f6a). Do not edit; run pnpm extract.
   The prototype loads its fonts from Google Fonts; production self-hosts them (PLAN.md section 5). */

:root {
  --paper: #EEF2F1;
  --surface: #FFFFFF;
  --ink: #000000;
  --muted: #4E5A58;
  --line: #CDD6D4;
  --teal: #628F8A;
  --teal-text: #3D6560;
  --focus: #2F5B56;
  --brand-teal: #628F8A;
  --brand-black: #000000;
  --brand-white: #FFFFFF;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --font-sans: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-figure: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-display: var(--font-serif);
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-40: 40px;
  --space-72: 72px;
  --radius-sm: 3px;
  --radius-md: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --surface: #141B1A;
    --ink: #FFFFFF;
    --muted: #A9B6B3;
    --line: #2C3836;
    --teal: #7FA9A3;
    --teal-text: #9CC2BC;
    --focus: #9CC2BC;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #000000;
  --surface: #141B1A;
  --ink: #FFFFFF;
  --muted: #A9B6B3;
  --line: #2C3836;
  --teal: #7FA9A3;
  --teal-text: #9CC2BC;
  --focus: #9CC2BC;
  color-scheme: dark;
}

:root[lang="en"] {
  --font-display: var(--font-figure);
}

:root[lang="zh-Hant"] {
  --font-serif: "Noto Serif TC", "Noto Serif SC", "Songti TC", PMingLiU, serif;
  --font-sans: "Instrument Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --g: 20px;
  --tap: 44px;
  --r: 14px;
  --nav: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* The prototype's component styles, unchanged, for the screen-by-screen port. Requires tokens.css.
   Generated by tools/extract-prototype.ts from reference/prototype/xiding-app.html (artifact version 1794795084-6f6a). Do not edit; run pnpm extract.
   The prototype loads its fonts from Google Fonts; production self-hosts them (PLAN.md section 5). */

:root {
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}

[hidden] {
  display:none!important;
}

img {
  max-width:100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.xd-mark {
  display: block;
  height: 100%;
  width: auto;
}

.xd-brandrow {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .28em;
  white-space: nowrap;
}

.xd-brandrow > span:last-child {
  margin-right: -.28em;
}

.xd-pair {
  width: .6726em;
  height: .38em;
  margin: 0 1.164em 0 .884em;
  align-self: center;
  position: relative;
  top: -.04em;
  fill: currentColor;
  flex: none;
}

:root[lang="en"] .xd-brandrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .82em;
  text-transform: uppercase;
}

.xd-latin {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.xd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.xd-btn--primary {
  background: var(--ink);
  color: var(--surface);
}

.xd-btn:hover {
  background: var(--teal-text);
  border-color: var(--teal-text);
  color: var(--surface);
}

.xd-btn:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  cursor: default;
}

.xd-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.xd-lang button {
  position: relative;
  min-width: 40px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--font-sans);
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .15s;
}

.xd-lang button::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 1px;
  background: transparent;
  transition: background-color .15s;
}

.xd-lang button:hover {
  color: var(--ink);
}

.xd-lang button[aria-pressed="true"] {
  color: var(--ink);
}

.xd-lang button[aria-pressed="true"]::after {
  background: var(--ink);
}

.xd-lang button:focus-visible {
  outline-offset: -6px;
}

.xd-whisper {
  font: 500 11px/1.4 var(--font-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.xd-ink--mei {
  background: var(--brand-teal);
  color: var(--brand-white);
}

.xd-ink--zhi {
  background: var(--ink);
  color: var(--surface);
}

.xd-ink--li {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.xd-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
}

.xd-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--line);
  color: var(--muted);
}

.xd-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xd-photo .xd-mark {
  height: 46%;
  max-width: 60%;
  color: var(--paper);
}

.xd-photo figcaption {
  position: absolute;
  left: 1.6em;
  right: 1.6em;
  bottom: 1.4em;
  font: 500 10px/1.5 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.xd-photo--filled {
  background: var(--brand-black);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

.xd-export {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.xd-export__label {
  margin-right: 6px;
  font: 500 11px/1 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

:root[lang="zh-Hant"] .xd-export__label, :root[lang="zh-Hans"] .xd-export__label {
  font-size: 12.5px;
  letter-spacing: .2em;
}

.xd-export__btn {
  white-space: nowrap;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 var(--font-sans);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: text-decoration-color .15s, color .15s;
}

.xd-export__btn:hover {
  color: var(--teal-text);
  text-decoration-color: currentColor;
}

.xd-export__btn:disabled {
  color: var(--muted);
  cursor: default;
}

.xd-export__sep {
  color: var(--line);
}

.xd-lockup {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes xd-dot-in {
  from {
    opacity: 0;
    transform: scale(.2);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes xd-words-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.xd-lockup--assemble circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: xd-dot-in .45s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}

.xd-lockup--assemble .xd-lockup__words {
  animation: xd-words-in .9s ease-out .7s both;
}

@media (prefers-reduced-motion: reduce) {
  .xd-lockup--assemble circle, .xd-lockup--assemble .xd-lockup__words {
    animation: none;
  }
}

@media print {
  .xd-lockup--assemble circle, .xd-lockup--assemble .xd-lockup__words {
    animation: none;
  }
}

html, body {
  min-height: 100%;
  background: var(--paper);
}

@media (min-width: 520px) {
  html, body {
    background: var(--line);
  }
}

.programmes {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 440px;
  margin-inline: auto;
  background: var(--paper);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 520px) {
  .programmes {
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .12);
  }
}

:where(.programmes) :where(h1, h2, h3, p, dl, dd, figure, ol, ul) {
  margin: 0;
  padding: 0;
}

:where(.programmes) :where(ol, ul) {
  list-style: none;
}

:where(.programmes) a {
  color: inherit;
  text-decoration: none;
}

.ap-title:focus, .ap-h1:focus {
  outline: none;
}

.ap-main {
  flex: 1;
  padding-bottom: 28px;
}

.ap-pad {
  padding-inline: var(--g);
}

.ap-stack {
  display: grid;
  gap: 18px;
}

.ap-icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.ap-eyebrow {
  font: 500 11px/1.3 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

:root[lang^="zh"] .ap-eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
}

.ap-title {
  font: 600 32px/1.1 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-title {
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -.005em;
}

.ap-title small {
  margin-left: 8px;
  font: 500 15px/1 var(--font-figure);
  letter-spacing: .04em;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}

.ap-h1 {
  font: 600 26px/1.25 var(--font-display);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

:root[lang="en"] .ap-h1 {
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ap-h2 {
  font: 600 17px/1.3 var(--font-display);
  letter-spacing: .04em;
}

:root[lang="en"] .ap-h2 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0;
}

.ap-h3 {
  margin-top: 6px;
  font: 500 12px/1.3 var(--font-sans);
  letter-spacing: .12em;
  color: var(--muted);
}

.ap-lede {
  font: 400 15px/1.6 var(--font-serif);
  color: var(--muted);
}

:root[lang="en"] .ap-lede {
  font: italic 500 18px/1.35 var(--font-figure);
}

.ap-text {
  font: 400 15px/1.75 var(--font-serif);
}

:root[lang="en"] .ap-text {
  font: 500 17px/1.5 var(--font-figure);
}

.ap-note, .ap-about {
  font: 400 12.5px/1.55 var(--font-sans);
  color: var(--muted);
}

.ap-about {
  padding: 4px 4px 0;
  text-align: center;
}

.ap-kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font: 500 12px/1.3 var(--font-sans);
  letter-spacing: .08em;
  color: var(--muted);
}

.ap-kind span::before {
  content: "·";
  margin: 0 6px 0 2px;
}

.ap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.ap-large {
  display: grid;
  gap: 6px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--g) 18px;
}

.ap-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  height: calc(var(--nav) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  transition: background-color .2s, box-shadow .2s;
}

.ap-nav.is-over {
  margin-bottom: calc(-1 * (var(--nav) + env(safe-area-inset-top, 0px)));
}

.ap-nav.is-solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.ap-nav__title {
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 15px/1 var(--font-display);
  letter-spacing: .02em;
  transition: opacity .2s;
}

.ap-nav.is-over:not(.is-solid) .ap-nav__title {
  opacity: 0;
}

.ap-round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
}

.ap-nav.is-over:not(.is-solid) .ap-round {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ap-tabs {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 var(--line);
}

.ap-tabs a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 56px;
  color: var(--muted);
  font: 500 11px/1 var(--font-sans);
  letter-spacing: .04em;
}

:root[lang^="zh"] .ap-tabs a {
  font-size: 11.5px;
  letter-spacing: .12em;
}

.ap-tabs a[aria-current="page"] {
  color: var(--ink);
}

.ap-tabs a[aria-current="page"] .ap-icon {
  stroke-width: 2;
}

.ap-action {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--g) calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 var(--line);
}

.ap-action__info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ap-action__info:empty {
  display: none;
}

.ap-action__info b {
  font: 600 16px/1.2 var(--font-display);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[lang="en"] .ap-action__info b {
  font: 600 15px/1.2 var(--font-sans);
  letter-spacing: 0;
}

.ap-action__info > span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-action__info:empty + .ap-btn {
  flex: 1;
}

.ap-action__info > .ap-btn {
  min-height: 44px;
}

.ap-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 24px;
  background: var(--ink);
  color: var(--surface);
  font: 600 15px/1 var(--font-sans);
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .15s var(--ease), opacity .15s;
}

:root[lang^="zh"] .ap-btn {
  letter-spacing: .14em;
}

.ap-btn:active {
  transform: scale(.97);
}

.ap-btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.ap-btn--wide {
  width: 100%;
}

.ap-btn.is-off {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.ap-pill {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 12px;
  font: 500 12.5px/1 var(--font-sans);
}

.ap-pill::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  bottom: 7px;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.ap-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font: 500 11px/1 var(--font-sans);
  letter-spacing: .04em;
  white-space: nowrap;
  background: var(--paper);
  color: var(--muted);
}

.ap-chip--open {
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal-text);
}

.ap-chip--confirmed, .ap-chip--sent {
  background: var(--ink);
  color: var(--surface);
}

.ap-chip--waitlist, .ap-chip--waitlisted, .ap-chip--invitation {
  box-shadow: inset 0 0 0 1px var(--ink);
  background: transparent;
  color: var(--ink);
}

.ap-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--surface);
  font: normal 600 12px/22px var(--font-sans);
  text-align: center;
}

.ap-cal {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--g) 6px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.ap-cal__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.ap-cal__top .ap-title {
  margin-top: 4px;
  font-size: 28px;
}

:root[lang="en"] .ap-cal__top .ap-title {
  font-size: 32px;
}

.ap-cal__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ap-seg {
  display: inline-grid;
  grid-auto-flow: column;
  padding: 3px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.ap-seg a, .ap-seg button {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 500 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.ap-seg [aria-current="page"], .ap-seg [aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.ap-strip {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  margin-inline: -12px;
}

.ap-strip ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ap-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 64px;
  color: var(--muted);
}

.ap-day {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 4px 0;
}

.ap-day i {
  font: normal 500 11px/1 var(--font-sans);
  color: var(--muted);
}

.ap-day b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 500 19px/1 var(--font-figure);
  font-variant-numeric: lining-nums;
  transition: background-color .15s, color .15s;
}

.ap-day.is-today b, .ap-day.is-today i {
  color: var(--teal-text);
}

.ap-day[aria-current="date"] b {
  background: var(--ink);
  color: var(--surface);
}

.ap-day.is-today[aria-current="date"] b {
  background: var(--teal-text);
  color: var(--surface);
}

.ap-dots {
  display: flex;
  gap: 3px;
  height: 4px;
}

.ap-dots u {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.ap-dayline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--g) 4px;
  font: 400 12.5px/1.3 var(--font-sans);
  color: var(--muted);
}

.ap-dayline b {
  font: 600 16px/1.3 var(--font-display);
  letter-spacing: .02em;
  color: var(--ink);
}

:root[lang="en"] .ap-dayline b {
  font: 500 19px/1.2 var(--font-figure);
}

.ap-grid {
  --h: 64px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 12px var(--g) 0 0;
}

.ap-grid__hours {
  display: grid;
  grid-auto-rows: var(--h);
  margin-top: -6px;
}

.ap-grid__hours span {
  padding-right: 10px;
  text-align: right;
  font: 500 10.5px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.ap-grid__col {
  position: relative;
  height: calc(var(--hours) * var(--h));
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--h));
  border-bottom: 1px solid var(--line);
}

.ap-blk {
  position: absolute;
  top: calc(var(--s) * var(--h) + 2px);
  height: calc(var(--d) * var(--h) - 4px);
  left: calc(var(--lane) / var(--lanes) * 100% + 2px);
  width: calc(100% / var(--lanes) - 4px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  padding: 8px 10px 8px 14px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform .15s var(--ease);
}

.ap-blk:active {
  transform: scale(.98);
}

.ap-blk b {
  font: 600 15px/1.25 var(--font-display);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

:root[lang="en"] .ap-blk b {
  font: 500 17px/1.15 var(--font-figure);
}

.ap-blk span {
  font: 500 11.5px/1.3 var(--font-sans);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-blk.is-shared b {
  font-size: 13.5px;
}

.ap-blk.is-short {
  padding-block: 7px;
}

.ap-blk.is-short span + span {
  display: none;
}

.ap-blk.is-past {
  opacity: .5;
}

.ap-blk.is-mine {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.ap-now {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--s) * var(--h));
  z-index: 3;
  height: 2px;
  background: var(--teal-text);
  pointer-events: none;
}

.ap-now::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
}

.ap-now span {
  position: absolute;
  right: calc(100% + 8px);
  top: -8px;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--teal-text);
  color: var(--surface);
  font: 600 10px/1.2 var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.ap-acc--mei, .ap-acc--zhi, .ap-acc--li {
  position: relative;
  background: var(--surface);
}

.ap-acc--mei::before, .ap-acc--zhi::before, .ap-acc--li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.ap-acc--mei {
  background: color-mix(in srgb, var(--teal) 14%, var(--surface));
}

.ap-acc--mei::before {
  background: var(--teal);
}

.ap-acc--zhi::before {
  background: var(--ink);
}

.ap-acc--li::before {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.ap-week {
  display: grid;
  padding: 4px var(--g) 0;
}

.ap-agday {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
}

.ap-agday + .ap-agday {
  border-top: 1px solid var(--line);
}

.ap-agday__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  color: var(--ink);
}

.ap-agday__head b {
  font: 500 30px/1 var(--font-figure);
  font-variant-numeric: lining-nums;
}

.ap-agday__head span {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 14px/1 var(--font-sans);
}

.ap-agday__head span em {
  padding: 4px 7px;
  border-radius: 10px;
  background: var(--teal-text);
  color: var(--surface);
  font: normal 600 10.5px/1 var(--font-sans);
  letter-spacing: .06em;
}

.ap-agday__head i {
  font: normal 400 12px/1 var(--font-sans);
  color: var(--muted);
}

.ap-agday__head .ap-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.ap-agday.is-today .ap-agday__head b {
  color: var(--teal-text);
}

.ap-agday.is-empty {
  padding-bottom: 0;
}

.ap-agday.is-empty .ap-agday__head {
  min-height: 44px;
  color: var(--muted);
}

.ap-agday.is-empty .ap-agday__head b {
  font-size: 22px;
}

.ap-list {
  display: grid;
  gap: 8px;
}

.ap-ev {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  transition: transform .15s var(--ease);
}

.ap-ev:active {
  transform: scale(.985);
}

.ap-ev.is-past {
  opacity: .5;
}

.ap-ev__time {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-top: 13px;
}

.ap-ev__time b {
  font: 600 13px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.ap-ev__time i {
  font: normal 400 11.5px/1 var(--font-sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ap-ev__card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.ap-ev__kind {
  font: 500 11px/1.2 var(--font-sans);
  letter-spacing: .08em;
  color: var(--muted);
}

.ap-ev__title {
  font: 600 16px/1.3 var(--font-display);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

:root[lang="en"] .ap-ev__title {
  font: 500 18px/1.15 var(--font-figure);
}

.ap-ev__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 400 12px/1.3 var(--font-sans);
  color: var(--muted);
}

.ap-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 72px var(--g);
  text-align: center;
  color: var(--muted);
  font: 400 14px/1.5 var(--font-sans);
}

.ap-empty .ap-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.2;
}

.programmes .ap-hero {
  width: 100%;
}

.ap-sheet {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: -24px;
  padding: 22px var(--g) 8px;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
}

.ap-info {
  display: grid;
  margin-top: 4px;
  border-radius: var(--r);
  background: var(--surface);
}

.ap-info__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 16px;
}

.ap-info__row + .ap-info__row {
  box-shadow: inset 0 1px 0 var(--line);
}

.ap-info__row .ap-icon {
  color: var(--teal-text);
  margin-top: 1px;
}

.ap-info__row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ap-info__row b {
  font: 600 15px/1.35 var(--font-sans);
}

.ap-info__row i {
  font: normal 400 12.5px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.ap-meter u {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
}

.ap-sec {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.ap-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ap-prices div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
}

.ap-prices dt {
  font: 500 11.5px/1 var(--font-sans);
  letter-spacing: .08em;
  color: var(--muted);
}

.ap-prices dd {
  font: 600 17px/1.25 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-prices dd {
  font: 500 20px/1.1 var(--font-figure);
}

.ap-people {
  display: flex;
  gap: 10px;
  margin-inline: calc(-1 * var(--g));
  padding: 2px var(--g) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ap-people::-webkit-scrollbar {
  display: none;
}

.ap-person {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  flex: none;
  width: 148px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface);
  scroll-snap-align: start;
}

.ap-person .ap-avatar {
  margin-bottom: 6px;
}

.ap-person__role {
  font: 500 11px/1.2 var(--font-sans);
  letter-spacing: .1em;
  color: var(--teal-text);
}

.ap-person b {
  font: 600 16px/1.25 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-person b {
  font: 500 19px/1.1 var(--font-figure);
}

.ap-person__line {
  font: 400 12px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-person em {
  font: normal 500 10.5px/1.3 var(--font-sans);
  color: var(--muted);
}

.ap-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
  font: 600 17px/1 var(--font-display);
}

.ap-avatar--md {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.ap-avatar--lg {
  width: 96px;
  height: 96px;
  font-size: 40px;
  background: var(--surface);
}

.ap-group {
  display: grid;
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}

.ap-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 14px 8px 16px;
}

.ap-row + .ap-row, .ap-field + .ap-field, .ap-benefit + .ap-benefit {
  box-shadow: inset 0 1px 0 var(--line);
}

.ap-row .ap-icon:first-child {
  color: var(--teal-text);
}

.ap-row .ap-icon--chev {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.ap-row__label {
  display: grid;
  gap: 2px;
  font: 500 15px/1.3 var(--font-sans);
}

.ap-row__label i {
  font: normal 400 11.5px/1.2 var(--font-sans);
  color: var(--muted);
  letter-spacing: .04em;
}

.ap-row__end {
  display: flex;
  align-items: center;
}

.ap-row--lang {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

.ap-seg--lang button {
  min-width: 44px;
  min-height: 44px;
  font-size: 13.5px;
}

.ap-benefit {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
}

.ap-benefit b {
  font: 600 15px/1.35 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-benefit b {
  font: 500 18px/1.2 var(--font-figure);
}

.ap-benefit span {
  font: 400 12.5px/1.45 var(--font-sans);
  color: var(--muted);
}

.ap-outcomes {
  display: grid;
  border-radius: var(--r);
  background: var(--surface);
}

.ap-outcomes li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 13px 16px;
  font: 500 15px/1.45 var(--font-serif);
}

:root[lang="en"] .ap-outcomes li {
  font: 500 17px/1.3 var(--font-figure);
}

.ap-outcomes li + li {
  box-shadow: inset 0 1px 0 var(--line);
}

.ap-outcomes span {
  font: 500 20px/1 var(--font-figure);
  color: var(--teal-text);
}

.ap-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.ap-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font: 500 12.5px/1.35 var(--font-sans);
}

.ap-steps li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.ap-steps li:first-child::before {
  left: 50%;
}

.ap-steps li:last-child::before {
  right: 50%;
}

.ap-steps u {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ink);
  text-decoration: none;
  font: 500 14px/1 var(--font-figure);
}

.ap-steps li:first-child u {
  background: var(--ink);
  color: var(--surface);
}

.ap-bullets {
  display: grid;
  gap: 6px;
  padding-left: 1.1em;
  list-style: disc;
  font: 400 14.5px/1.6 var(--font-serif);
}

.ap-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ap-tags span {
  padding: 6px 10px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--surface);
  font: 500 12px/1 var(--font-sans);
}

.ap-tags span.is-soft {
  background: var(--surface);
  color: var(--ink);
}

.ap-profile {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 8px;
  text-align: center;
}

.ap-profile .ap-text {
  text-align: left;
  margin-top: 8px;
}

.programmes .ap-hero.ap-portrait {
  aspect-ratio: 5 / 4;
}

.ap-hero.ap-portrait .ap-art__glyph {
  font-size: 66cqw;
  right: 7cqw;
  bottom: -8cqw;
}

.ap-lecturer {
  gap: 12px;
}

.ap-lecturer .ap-lede {
  margin-top: -4px;
}

.ap-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  border-radius: var(--r);
  background: var(--surface);
}

.ap-stats div {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
}

.ap-stats div + div {
  box-shadow: inset 1px 0 0 var(--line);
}

.ap-stats dd {
  order: -1;
  font: 600 26px/1 var(--font-sans);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}

.ap-stats dt {
  font: 500 11.5px/1.2 var(--font-sans);
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
}

.ap-tags--start {
  justify-content: flex-start;
}

.ap-bio {
  font: 400 15.5px/1.75 var(--font-serif);
}

:root[lang="en"] .ap-bio {
  font: 400 18px/1.5 var(--font-figure);
}

.ap-note--self {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-text);
}

.ap-note--self .ap-icon {
  width: 16px;
  height: 16px;
}

.ap-rail--bleed {
  margin-inline: calc(-1 * var(--g));
}

.ap-courses.ap-courses--in {
  padding-inline: 0;
}

.ap-courses {
  display: grid;
  gap: 18px;
  padding-inline: var(--g);
}

.ap-course {
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: transform .15s var(--ease);
}

.ap-course:active {
  transform: scale(.985);
}

.programmes .ap-course__img {
  aspect-ratio: 16 / 9;
}

.ap-course__img .ap-art__glyph {
  font-size: 40cqw;
  bottom: -8cqw;
}

.ap-course__band {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.ap-course__band i {
  font: normal 500 11px/1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
}

.ap-course__band b {
  font: 600 22px/1.2 var(--font-display);
  letter-spacing: .04em;
}

:root[lang="en"] .ap-course__band b {
  font: 500 26px/1.05 var(--font-figure);
}

.ap-course__band.xd-ink--li {
  box-shadow: inset 0 -1px 0 var(--line);
}

.ap-course__body {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.ap-course__line {
  font: 400 14.5px/1.55 var(--font-serif);
}

:root[lang="en"] .ap-course__line {
  font: 500 16px/1.35 var(--font-figure);
}

.ap-course__meta {
  font: 400 12px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-pad > .ap-summary, .ap-pad > .ap-form, .ap-pad > .ap-h3, .ap-pad > .ap-bullets {
  margin-top: 16px;
}

.ap-pushed {
  padding-top: 8px;
}

.ap-summary {
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 20px;
  border-radius: var(--r);
  overflow: hidden;
}

.ap-summary b {
  font: 600 17px/1.3 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-summary b {
  font: 500 20px/1.15 var(--font-figure);
}

.ap-summary span {
  font: 400 12.5px/1.45 var(--font-sans);
  color: var(--muted);
}

.ap-form {
  display: grid;
  gap: 12px;
}

.ap-field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 16px;
}

.ap-field > span {
  font: 500 14px/1.3 var(--font-sans);
  color: var(--muted);
}

.ap-field input, .ap-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.4 var(--font-sans);
  outline: none;
}

.ap-field textarea {
  padding-block: 10px;
  resize: none;
}

.ap-field--area {
  align-items: start;
  padding-top: 14px;
}

.ap-field--area > span {
  padding-top: 2px;
}

.ap-field:focus-within {
  box-shadow: inset 3px 0 0 var(--teal-text);
}

.ap-field + .ap-field:focus-within {
  box-shadow: inset 0 1px 0 var(--line), inset 3px 0 0 var(--teal-text);
}

.ap-stepper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ap-stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.ap-stepper button:disabled {
  color: var(--line);
  cursor: default;
}

.ap-stepper output {
  min-width: 24px;
  text-align: center;
  font: 600 18px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.ap-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--ink);
  font: 500 14px/1.4 var(--font-sans);
}

.ap-done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px var(--g) 8px;
  text-align: center;
}

.ap-done:focus {
  outline: none;
}

.ap-done__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal-text);
  color: var(--surface);
  animation: ap-pop .45s var(--ease) both;
}

.ap-done__mark .ap-icon {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.ap-done__no {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1 var(--font-sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ap-done .ap-summary {
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

@keyframes ap-pop {
  from {
    transform: scale(.6);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-done__mark {
    animation: none;
  }
  .programmes * {
    transition: none !important;
  }
}

.ap-me {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-me div {
  display: grid;
  gap: 4px;
}

.ap-me b {
  font: 600 19px/1.2 var(--font-display);
  letter-spacing: .04em;
}

:root[lang="en"] .ap-me b {
  font: 500 22px/1.1 var(--font-figure);
}

.ap-me span {
  font: 400 12.5px/1.2 var(--font-sans);
  color: var(--muted);
}

.ap-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  aspect-ratio: 1.586;
  padding: 20px 22px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal), color-mix(in srgb, var(--brand-teal) 70%, #000));
  color: var(--brand-white);
  box-shadow: 0 14px 30px rgba(41, 72, 68, .28);
}

.ap-card .xd-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  height: 62%;
  color: rgba(255, 255, 255, .5);
}

.ap-card__name {
  font: 600 24px/1.2 var(--font-display);
  letter-spacing: .08em;
}

:root[lang="en"] .ap-card__name {
  font: 500 28px/1.05 var(--font-figure);
  letter-spacing: .01em;
}

.ap-card__tier {
  font: 500 12px/1.3 var(--font-sans);
  letter-spacing: .14em;
  opacity: .85;
}

.ap-card__status {
  position: absolute;
  top: 20px;
  left: 22px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  font: 500 11.5px/1 var(--font-sans);
  letter-spacing: .06em;
}

.programmes a:focus-visible, .programmes button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.ap-cover {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.ap-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-art {
  display: block;
}

.ap-art--mei {
  background: radial-gradient(120% 90% at 85% 100%, #4E7A75 0%, transparent 60%), linear-gradient(160deg, #6E9A95, #557F7A);
  color: #fff;
}

.ap-art--zhi {
  background: radial-gradient(110% 80% at 90% 100%, #22302E 0%, transparent 65%), linear-gradient(160deg, #1A1F1E, #000);
  color: #fff;
}

.ap-art--li {
  background: radial-gradient(120% 90% at 85% 100%, #E1E8E6 0%, transparent 60%), linear-gradient(160deg, #FFFFFF, #F1F5F4);
  color: #000;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ap-art .xd-mark {
  position: absolute;
  left: 7cqw;
  top: 9cqw;
  height: 46%;
  opacity: .32;
}

.ap-art--li .xd-mark {
  color: var(--teal-text);
  opacity: .45;
}

.ap-art__glyph {
  position: absolute;
  right: 4cqw;
  bottom: -10cqw;
  font: 600 62cqw/1 var(--font-serif);
  letter-spacing: 0;
  opacity: .94;
}

.ap-art__label {
  position: absolute;
  left: 7cqw;
  bottom: 8cqw;
  font: 500 max(10px, 3.2cqw)/1 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
}

:root[lang^="zh"] .ap-art__label {
  letter-spacing: .3em;
}

.programmes .ap-hero {
  aspect-ratio: 4 / 3;
}

.ap-hero .ap-art__glyph {
  font-size: 56cqw;
  bottom: -6cqw;
  right: 6cqw;
}

.ap-hero .ap-art__label {
  bottom: 16cqw;
}

.ap-next {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.ap-next .ap-h2 {
  padding-inline: var(--g);
}

.ap-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--g) 6px;
  scroll-padding-inline: var(--g);
  scrollbar-width: none;
}

.ap-rail::-webkit-scrollbar {
  display: none;
}

.ap-tile {
  display: grid;
  align-content: start;
  gap: 5px;
  flex: none;
  width: 148px;
  scroll-snap-align: start;
  transition: transform .15s var(--ease);
}

.ap-tile:active {
  transform: scale(.97);
}

.programmes .ap-tile__img {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  margin-bottom: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.ap-tile__when {
  font: 600 11.5px/1.3 var(--font-sans);
  color: var(--teal-text);
}

.ap-tile b {
  font: 600 15px/1.3 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-tile b {
  font: 500 17px/1.15 var(--font-figure);
}

.ap-tile__where {
  font: 400 12px/1.3 var(--font-sans);
  color: var(--muted);
}

.ap-solid--mei {
  background: linear-gradient(160deg, #6E9A95, #557F7A);
  color: #fff;
}

.ap-solid--zhi {
  background: linear-gradient(160deg, #1F2524, #000);
  color: #fff;
}

.ap-solid--li {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.ap-solid--mei span, .ap-solid--zhi span {
  color: rgba(255, 255, 255, .78);
}

.ap-blk {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.ap-blk__glyph {
  position: absolute;
  right: -2px;
  bottom: -14px;
  font: normal 600 64px/1 var(--font-serif);
  opacity: .16;
  pointer-events: none;
}

.ap-blk.is-mine {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--teal-text);
}

.ap-ev__card {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
}

.ap-ev__tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font: 600 21px/1 var(--font-serif);
}

.ap-ev__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ap-tiers {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--g) 14px;
  scroll-padding-inline: var(--g);
  scrollbar-width: none;
}

.ap-tiers::-webkit-scrollbar {
  display: none;
}

.ap-tier {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  flex: none;
  width: 84%;
  aspect-ratio: 1.586;
  padding: 18px 20px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
  transition: transform .2s var(--ease);
}

.ap-tier:active {
  transform: scale(.98);
}

.ap-tier .xd-mark {
  position: absolute;
  right: 16px;
  top: 16px;
  height: 64%;
  opacity: .45;
}

.ap-tier__rank {
  font: 500 22px/1 var(--font-figure);
  letter-spacing: .08em;
  opacity: .9;
}

.ap-tier__badge {
  position: absolute;
  left: 56px;
  top: 17px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  font: normal 600 11px/1 var(--font-sans);
  letter-spacing: .06em;
}

.ap-tier__foot {
  grid-row: 3;
  display: grid;
  gap: 6px;
}

.ap-tier__foot b {
  font: 600 25px/1.15 var(--font-display);
  letter-spacing: .08em;
}

:root[lang="en"] .ap-tier__foot b {
  font: 500 29px/1 var(--font-figure);
  letter-spacing: .01em;
}

.ap-tier__foot span {
  font: 500 11.5px/1.3 var(--font-sans);
  letter-spacing: .12em;
  opacity: .85;
}

.ap-tier--friend {
  background: linear-gradient(150deg, #FFFFFF, #EEF2F1);
  color: #000;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px rgba(0, 0, 0, .08);
}

.ap-tier--friend .xd-mark {
  color: var(--teal-text);
  opacity: .4;
}

.ap-tier--friend .ap-tier__badge {
  background: var(--ink);
  color: var(--surface);
}

.ap-tier--member {
  background: radial-gradient(120% 100% at 100% 0%, #7FA9A3 0%, transparent 55%), linear-gradient(150deg, #628F8A, #44706B);
}

.ap-tier--kindred {
  background: radial-gradient(120% 100% at 100% 0%, #2C4744 0%, transparent 60%), linear-gradient(150deg, #1A1F1E, #000);
}

.ap-tier--kindred .xd-mark {
  color: #7FA9A3;
  opacity: .6;
}

.ap-tier--legacy {
  background: radial-gradient(90% 70% at 100% 100%, #23403C 0%, transparent 70%), #000;
  box-shadow: inset 0 0 0 7px #000, inset 0 0 0 8px rgba(255, 255, 255, .38), 0 14px 28px rgba(0, 0, 0, .22);
}

.ap-tier--legacy .xd-mark {
  opacity: .32;
  height: 80%;
  top: 10%;
}

.ap-tier.is-current {
  outline: 2px solid var(--teal-text);
  outline-offset: 3px;
}

.ap-tierpage .ap-tier {
  width: 100%;
}

.ap-joincard {
  margin-top: 16px;
}

.ap-joincard .ap-tier {
  width: 100%;
}

.ap-done .ap-tier {
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

.ap-swatches {
  display: flex;
  gap: 4px;
}

.ap-sw {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}

.ap-sw--friend {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.ap-sw--member {
  background: var(--brand-teal);
}

.ap-sw--kindred {
  background: #000;
  box-shadow: inset 0 0 0 2px #2C4744;
}

.ap-sw--legacy {
  background: #000;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px rgba(255, 255, 255, .6);
}

.ap-ent {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.ap-ent + .ap-ent {
  box-shadow: inset 0 1px 0 var(--line);
}

.ap-ent > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ap-ent b {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1.3 var(--font-display);
  letter-spacing: .02em;
}

:root[lang="en"] .ap-ent b {
  font: 500 18px/1.15 var(--font-figure);
}

.ap-ent > span > span {
  font: 400 12.5px/1.45 var(--font-sans);
  color: var(--muted);
}

.ap-level {
  max-width: 9em;
  text-align: right;
  font: 600 12.5px/1.3 var(--font-sans);
}

.ap-yes {
  display: inline-grid;
  place-items: center;
  color: var(--teal-text);
}

.ap-yes .ap-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ap-no {
  color: var(--line);
}

.ap-new {
  padding: 3px 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  color: var(--teal-text);
  font: normal 600 10px/1 var(--font-sans);
  letter-spacing: .06em;
}

.ap-compare {
  padding: 12px 8px 8px 0;
}

.ap-compare table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font: 400 12px/1.35 var(--font-sans);
}

.ap-compare col.ap-compare__label {
  width: 92px;
}

.ap-compare th, .ap-compare td {
  padding: 11px 3px;
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.ap-compare thead th {
  background: var(--paper);
  font: 600 11.5px/1.25 var(--font-sans);
  vertical-align: bottom;
  border-bottom: 1px solid var(--ink);
}

.ap-compare thead th a {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.ap-compare tbody th {
  padding-left: var(--g);
  text-align: left;
  font: 500 12.5px/1.3 var(--font-sans);
}

.ap-compare td.is-current, .ap-compare th.is-current {
  background: color-mix(in srgb, var(--teal) 10%, var(--paper));
}

.ap-compare__group th {
  padding-top: 18px;
  padding-left: var(--g);
  border-bottom: 0;
  text-align: left;
  position: static;
}

.ap-compare__fee th, .ap-compare__fee td {
  font-weight: 600;
  border-bottom: 0;
}

.ap-main.is-enter > * {
  animation: ap-in .38s var(--ease) both;
}

.ap-main.is-enter > *:nth-child(2) {
  animation-delay: .04s;
}

.ap-main.is-enter > *:nth-child(3) {
  animation-delay: .08s;
}

.ap-main.is-enter > *:nth-child(n + 4) {
  animation-delay: .12s;
}

@keyframes ap-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-main.is-enter > * {
    animation: none;
  }
}

.ap-stick {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--g) 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.ap-stick .ap-cal__top .ap-title {
  font-size: 28px;
}

:root[lang="en"] .ap-stick .ap-cal__top .ap-title {
  font-size: 32px;
}

.ap-stick .ap-eyebrow {
  transition: opacity .25s var(--ease);
}

.ap-stick.is-compact .ap-eyebrow {
  opacity: .35;
}

.ap-modes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.ap-modes__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 11px;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transform: translateX(calc(var(--i, 1) * 100%));
  transition: transform .32s cubic-bezier(.3, .8, .2, 1);
}

.ap-modes a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 11px;
  color: var(--muted);
  font: 600 15px/1 var(--font-sans);
  letter-spacing: .08em;
  transition: color .25s;
}

:root[lang="en"] .ap-modes a {
  letter-spacing: .02em;
}

.ap-modes a[aria-current="page"] {
  color: var(--surface);
}

.ap-slimrail {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px var(--g) 10px;
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
  scrollbar-width: none;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s;
}

.ap-slimrail::-webkit-scrollbar {
  display: none;
}

.ap-stick.is-compact .ap-slimrail {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s;
}

.ap-slim {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  flex: none;
  width: 188px;
  min-height: 44px;
  padding: 5px 10px 5px 5px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.ap-slim__tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font: 600 17px/1 var(--font-serif);
}

.ap-slim__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ap-slim__text i {
  font: normal 600 10.5px/1.2 var(--font-sans);
  color: var(--teal-text);
}

.ap-slim__text b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 13.5px/1.3 var(--font-display);
}

:root[lang="en"] .ap-slim__text b {
  font: 500 15px/1.2 var(--font-figure);
}

.ap-types {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px var(--g) 2px;
  scrollbar-width: none;
}

.ap-types::-webkit-scrollbar {
  display: none;
}

.ap-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13.5px/1 var(--font-sans);
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.ap-type i {
  font: normal 600 15px/1 var(--font-serif);
  color: var(--teal-text);
}

.ap-type em {
  font: normal 500 11.5px/1 var(--font-sans);
  color: var(--muted);
}

.ap-type.is-on {
  background: var(--ink);
  color: var(--surface);
  box-shadow: none;
}

.ap-type.is-on i, .ap-type.is-on em {
  color: inherit;
  opacity: .8;
}

.ap-spaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ap-space {
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: transform .15s var(--ease);
}

.ap-space:active {
  transform: scale(.98);
}

.programmes .ap-space__img {
  aspect-ratio: 4 / 3;
}

.ap-space__img .ap-art__glyph {
  font-size: 58cqw;
}

.ap-space__text {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}

.ap-space__code {
  font: 600 10.5px/1 var(--font-sans);
  letter-spacing: .12em;
  color: var(--teal-text);
}

.ap-space b {
  font: 600 16px/1.25 var(--font-display);
  letter-spacing: .04em;
}

:root[lang="en"] .ap-space b {
  font: 500 18px/1.1 var(--font-figure);
}

.ap-space__use {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 400 12px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-space__facts {
  font: 500 11.5px/1.3 var(--font-sans);
}

.ap-space__facts em {
  font-style: normal;
  color: var(--teal-text);
}

.ap-source {
  padding-top: 18px;
  font: 400 12px/1.5 var(--font-sans);
  color: var(--muted);
  text-align: center;
}

.ap-inline {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.ap-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font: 500 12.5px/1.3 var(--font-sans);
  color: var(--teal-text);
}

.ap-seg--role {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.ap-seg--role button {
  min-height: 44px;
  font-size: 14px;
}

.ap-btn--grow {
  flex: 1;
}

.ap-btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.ap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 12%, var(--surface));
  color: var(--teal-text);
  font: 600 13.5px/1.4 var(--font-sans);
}

.ap-check::before {
  content: "✓";
}

.ap-check.is-bad {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--ink);
}

.ap-check.is-bad::before {
  content: "!";
}

.ap-field select {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.4 var(--font-sans);
  outline: none;
}

.ap-field input[type="date"], .ap-field input[type="number"] {
  -webkit-appearance: none;
  appearance: none;
}

.ap-setups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-setups span {
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  font: 600 18px/1 var(--font-figure);
  font-variant-numeric: lining-nums;
}

.ap-setups span b {
  font: 500 11.5px/1.2 var(--font-sans);
  color: var(--muted);
}

.ap-setups span.is-usual {
  box-shadow: inset 0 0 0 1.5px var(--teal-text);
}

.ap-row__label i {
  white-space: normal;
}

.ap-mine {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12.5px/1.3 var(--font-sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ap-radio {
  position: relative;
  display: grid;
}

.ap-radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.ap-radio span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 9px;
  color: var(--muted);
  font: 500 14px/1 var(--font-sans);
  transition: background-color .15s, color .15s;
}

.ap-radio input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.ap-radio input:focus-visible + span {
  outline: 2px solid var(--focus);
}

.ap-seg--role:has(.ap-radio) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#verify-form:has(input[value="partner"]:checked) label[for="f-person"],
#verify-form:has(input[value="lecturer"]:checked) label[for="f-org"] {
  display: none;
}

#verify-form:has(input[value="partner"]:checked) label[for="f-org"] {
  box-shadow: none;
}

.ap-field--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.ap-pre {
  white-space: pre-line;
}

.ap-fields {
  display: grid;
  border-radius: var(--r);
  background: var(--surface);
}

.ap-fields div {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
}

.ap-fields div + div {
  box-shadow: inset 0 1px 0 var(--line);
}

.ap-fields dt {
  font: 500 11.5px/1.2 var(--font-sans);
  letter-spacing: .08em;
  color: var(--muted);
}

.ap-fields dd {
  font: 400 15px/1.6 var(--font-serif);
}

.ap-consent {
  margin-top: 12px;
  text-align: center;
}

.ap-agreement {
  display: grid;
  gap: 14px;
}

.ap-clauses {
  display: grid;
  gap: 10px;
  padding-left: 1.2em !important;
  list-style: decimal !important;
  font: 400 14.5px/1.75 var(--font-serif);
}

:root[lang="en"] .ap-clauses {
  font: 500 16px/1.5 var(--font-figure);
}

.ap-clauses li::marker {
  color: var(--teal-text);
  font-family: var(--font-figure);
}

.ap-me--top {
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 0 6px;
}

.ap-me--top .ap-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
}

.ap-me--top .ap-title {
  font-size: 26px;
}

:root[lang="en"] .ap-me--top .ap-title {
  font-size: 30px;
}

.ap-filters {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-fd {
  position: static;
}

.ap-fd > summary {
  list-style: none;
}

.ap-fd > summary::-webkit-details-marker {
  display: none;
}

.ap-fpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13.5px/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}

.ap-fpill .ap-icon {
  width: 17px;
  height: 17px;
  color: var(--teal-text);
}

.ap-fpill span {
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-fpill em {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--teal-text);
  color: var(--surface);
  font: normal 600 11px/18px var(--font-sans);
  text-align: center;
}

.ap-fpill.is-on {
  background: var(--ink);
  color: var(--surface);
  box-shadow: none;
}

.ap-fpill.is-on .ap-icon, .ap-fpill.is-on .ap-fglyph {
  color: var(--surface);
}

.ap-fpill.is-on em {
  background: var(--surface);
  color: var(--ink);
}

.ap-fd[open] > .ap-fpill {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.ap-fd[open] > .ap-fpill.is-on {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink);
}

.ap-fglyph {
  font: normal 600 15px/1 var(--font-serif);
  color: var(--teal-text);
}

.ap-caret {
  width: 12px;
  height: 12px;
  opacity: .7;
  transition: transform .2s var(--ease);
}

.ap-fd[open] .ap-caret {
  transform: rotate(180deg);
}

.ap-fclear {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  color: var(--muted);
}

.ap-fclear .ap-icon {
  width: 18px;
  height: 18px;
}

.ap-fpanel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  max-height: min(56vh, 440px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18), 0 0 0 1px var(--line);
  animation: ap-drop .22s var(--ease) both;
}

@keyframes ap-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ap-fhead {
  padding: 8px 10px 6px;
  font: 500 11px/1.3 var(--font-sans);
  letter-spacing: .1em;
  color: var(--muted);
}

.ap-fopt {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 12px;
}

.ap-fopt:active {
  background: var(--paper);
}

.ap-fopt i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--paper);
  font: normal 600 16px/1 var(--font-serif);
}

.ap-fopt span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ap-fopt b {
  font: 600 14.5px/1.25 var(--font-display);
}

:root[lang="en"] .ap-fopt b {
  font: 500 17px/1.1 var(--font-figure);
}

.ap-fopt em {
  font: normal 400 11.5px/1.2 var(--font-sans);
  color: var(--muted);
}

.ap-fopt u {
  text-decoration: none;
  font: 600 12.5px/1 var(--font-sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ap-fopt.is-on {
  background: var(--ink);
  color: var(--surface);
}

.ap-fopt.is-on i {
  background: rgba(255, 255, 255, .15);
  color: var(--surface);
}

.ap-fopt.is-on em, .ap-fopt.is-on u {
  color: rgba(255, 255, 255, .7);
}

.ap-fall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  font: 500 13.5px/1 var(--font-sans);
  color: var(--teal-text);
}

.ap-fall .ap-icon {
  width: 16px;
  height: 16px;
}

.ap-count-inline {
  margin-left: 8px;
  font: 500 15px/1 var(--font-figure);
  color: var(--muted);
}

.ap-stick > * {
  min-width: 0;
}

.ap-filters {
  gap: 6px;
}

.ap-fd {
  flex: 0 1 auto;
  min-width: 0;
}

.ap-fd > .ap-fpill {
  max-width: 100%;
}

.ap-fpill {
  padding: 0 10px;
  min-width: 0;
}

.ap-fpill span {
  min-width: 0;
}

a.ap-fpill {
  flex: 0 1 auto;
}

.ap-fclear {
  flex: none;
  width: 36px;
}

.ap-fpill {
  min-height: 44px;
  border-radius: 22px;
}

.ap-fclear {
  height: 44px;
}

.ap-me .ap-me__phone {
  color: var(--teal-text);
  font-weight: 500;
}

.ap-btn--small {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13.5px;
}

.ap-devcode {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ap-devcode span {
  font: 400 12.5px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-devcode b {
  font: 600 26px/1 var(--font-sans);
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}

.ap-linkbtn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.ap-row--button {
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 22px minmax(0, 1fr);
}

.ap-row--button .ap-icon {
  color: var(--muted);
}

.ap-ticket {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08), inset 0 4px 0 var(--ticket-ink, var(--ink));
}

.ap-ticket--mei {
  --ticket-ink: #557F7A;
}

.ap-ticket--zhi {
  --ticket-ink: #000;
}

.ap-ticket--li {
  --ticket-ink: var(--teal-text);
}

.ap-ticket__head {
  display: grid;
  gap: 6px;
}

.ap-ticket__when {
  font: 600 15px/1.35 var(--font-sans);
}

.ap-ticket__where {
  font: 400 13px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-ticket__cut {
  height: 0;
  margin: 4px -20px;
  border-top: 2px dashed var(--line);
  position: relative;
}

.ap-ticket__cut::before, .ap-ticket__cut::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
}

.ap-ticket__cut::before {
  left: -10px;
}

.ap-ticket__cut::after {
  right: -10px;
}

.ap-ticket__qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.ap-ticket__qr .xd-qr {
  width: min(64vw, 240px);
  height: auto;
  border-radius: 12px;
}

.ap-ticket__qr figcaption {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.ap-ticket__qr code {
  font: 600 16px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}

.ap-ticket__qr figcaption span {
  font: 400 12.5px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-ticket__in {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 0 8px;
  text-align: center;
}

.ap-ticket__in b {
  font: 600 20px/1.3 var(--font-display);
  letter-spacing: .04em;
}

.ap-ticket__in span:last-child {
  font: 400 13px/1.4 var(--font-sans);
  color: var(--muted);
}

.ap-ticket__note {
  padding: 18px 0;
  text-align: center;
  font: 400 14px/1.6 var(--font-sans);
  color: var(--muted);
}

.ap-ticket__who {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.ap-ticket__who b {
  font: 600 17px/1.2 var(--font-display);
  letter-spacing: .04em;
}

.ap-ticket__who span {
  font: 400 13px/1.2 var(--font-sans);
  color: var(--muted);
}

.ap-ticket__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 400 11.5px/1 var(--font-sans);
  color: var(--muted);
}

.ap-door {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ap-door .ap-info {
  margin: 0;
  background: var(--paper);
}

.ap-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--r);
  background: var(--surface);
}

.ap-intro__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ap-intro h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 17px/1.25 var(--font-display);
  letter-spacing: .03em;
}

:root[lang="en"] .ap-intro h3 {
  font: 500 20px/1.1 var(--font-figure);
}

.ap-intro__you {
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font: normal 600 11px/1 var(--font-sans);
  letter-spacing: .06em;
}

.ap-intro__line {
  font: 400 13.5px/1.45 var(--font-sans);
  color: var(--muted);
}

.ap-intro .ap-text {
  margin-top: 2px;
}

.ap-intro .ap-tags span.is-soft {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ap-people__count {
  font: 600 13px/1.2 var(--font-sans);
  letter-spacing: .06em;
  color: var(--teal-text);
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
}

.ap-chips legend {
  width: 100%;
  margin-bottom: 8px;
  font: 500 12px/1.2 var(--font-sans);
  color: var(--muted);
}

.ap-chipbox {
  position: relative;
  display: inline-grid;
}

.ap-chipbox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ap-chipbox span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 13px/1 var(--font-sans);
}

.ap-chipbox input:checked + span {
  background: var(--ink);
  color: var(--surface);
  box-shadow: none;
}

.ap-chipbox input:focus-visible + span {
  outline: 2px solid var(--teal-text);
  outline-offset: 2px;
}

.ap-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.ap-switch input {
  appearance: none;
  flex: none;
  width: 52px;
  height: 32px;
  margin: 0;
  border-radius: 16px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.ap-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease);
}

.ap-switch input:checked {
  background: var(--teal-text);
}

.ap-switch input:checked::after {
  transform: translateX(20px);
}

.ap-banner {
  margin: 10px var(--g) 0;
}

.ap-strip button, .ap-day, .calendar-option, button.ap-fpill, button.ap-agday__head {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.ap-strip li > button, button.ap-agday__head { width: 100%; }
button.ap-agday__head, .calendar-option { text-align: start; }
button.ap-agday__head { padding-inline: 0; }
button.ap-arrow { color: var(--muted); }
button.ap-fpill { background: var(--surface); }
button.ap-fpill.is-on { background: var(--ink); color: var(--surface); }
.calendar-option { width: 100%; }
.calendar-option:hover { background: var(--paper); }
.calendar-option.is-on { background: var(--ink); color: var(--surface); }
.calendar-empty { color: var(--muted); font-size: 13px; }

.ap-course__band h2 {
  font: 600 22px/1.2 var(--font-display);
  letter-spacing: .04em;
}
:root[lang="en"] .ap-course__band h2 { font: 500 26px/1.05 var(--font-figure); }
.ap-seg.me-languages a { min-width: 44px; min-height: 44px; font-size: 13.5px; }
.ap-member-records { padding-bottom: 0; }
.ap-member-records:has(#member-dashboard[hidden]):has(#member-status:empty) { display: none; }
.ap-member-records #member-status:empty { display: none; }
