/* Home v2 UI pieces — generated by scripts/home-v2.py from scripts/home-v2-ui/*.css. Edit those, not this. */

/* ---- b2m-checkins.css ---- */
/* b2match Entrance app: live check-ins at one checkpoint. A row slides in on top every 2 s, the counter follows.
   Four rows share one keyframe set, each a step (a quarter cycle) apart: wait above → slot 0 → 1 → 2 → out.
   Two check-ins then two check-outs, so the count goes 74 → 75 → 76 → 75 → 74 and the loop closes. */
.ui-b2m-checkins {
  --teal: #00a6a6;
  --navy: #082530;
  --h: 2.7em;
  --cycle: 8s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.ui-b2m-checkins-card {
  width: 18.5em;
  padding: 0.95em 1.05em 0.35em;
  border-radius: 0.9em;
  background: var(--color-white);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 0 0 / 0.25);
}

.ui-b2m-checkins-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  padding-bottom: 0.7em;
  white-space: nowrap;
}
.ui-b2m-checkins-place {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78em;
  font-weight: 600;
}
.ui-b2m-checkins-place svg { width: 1.2em; height: 1.2em; }

.ui-b2m-checkins-count {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.72em;
  line-height: 1.3;
  color: var(--color-grey-550);
}
.ui-b2m-checkins-num {
  height: 1.3em;
  overflow: hidden;
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.ui-b2m-checkins-digits {
  display: flex;
  flex-direction: column;
  line-height: 1.3em;
  transform: translateY(-2.6em);
  animation: ui-b2m-checkins-count var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}

.ui-b2m-checkins-list {
  position: relative;
  height: calc(var(--h) * 3);
  overflow: hidden;
}

.ui-b2m-checkins-row {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65em;
  height: var(--h);
  box-sizing: border-box;
  border-top: 0.07em solid var(--color-grey-100);
  transform: translateY(calc(var(--s) * var(--h)));
  animation: ui-b2m-checkins-row var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
  animation-delay: calc(var(--k) * var(--cycle) / -4);
}

.ui-b2m-checkins-avatar {
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: 50%;
  background: var(--navy);
  color: var(--color-white);
  font-size: 0.64em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ui-b2m-checkins-who { display: grid; min-width: 0; }
.ui-b2m-checkins-name {
  overflow: hidden;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ui-b2m-checkins-when { display: grid; font-size: 0.66em; color: var(--color-grey-525); white-space: nowrap; }
.ui-b2m-checkins-when > span {
  grid-area: 1 / 1;
  opacity: clamp(0, 1 - (var(--s) - var(--j)) * (var(--s) - var(--j)), 1);
  animation: var(--cycle) linear infinite;
  animation-delay: inherit;
}
.ui-b2m-checkins-when > span:nth-child(1) { animation-name: ui-b2m-checkins-t0; }
.ui-b2m-checkins-when > span:nth-child(2) { animation-name: ui-b2m-checkins-t1; }
.ui-b2m-checkins-when > span:nth-child(3) { animation-name: ui-b2m-checkins-t2; }
.ui-b2m-checkins-who, .ui-b2m-checkins-when { animation-delay: inherit; }

.ui-b2m-checkins-badge {
  padding: 0.35em 0.75em;
  border-radius: 99em;
  background: var(--teal);
  color: var(--color-white);
  font-size: 0.6em;
  font-weight: 600;
  white-space: nowrap;
}
.ui-b2m-checkins-out .ui-b2m-checkins-badge {
  background: var(--color-grey-50);
  color: var(--color-grey-600);
}
/* the participants' own photos, cropped from the app's participant list */
.ui-b2m-checkins-avatar { overflow: hidden; }
.ui-b2m-checkins-photo { width: 100%; height: 100%; object-fit: cover; }
.ui-b2m-checkins-out .ui-b2m-checkins-avatar { background: color-mix(in srgb, var(--navy) 35%, var(--color-white)); }

/* one row's life: wait above → slot 0 → slot 1 → slot 2 → slide out under the card's edge */
@keyframes ui-b2m-checkins-row {
  0%, 5% { transform: translateY(calc(var(--h) * -1)); opacity: 0; }
  14%, 30% { transform: translateY(0); opacity: 1; }
  39%, 55% { transform: translateY(var(--h)); opacity: 1; }
  64%, 80% { transform: translateY(calc(var(--h) * 2)); opacity: 1; }
  89% { transform: translateY(calc(var(--h) * 3)); opacity: 0; }
  90%, 100% { transform: translateY(calc(var(--h) * -1)); opacity: 0; }
}
@keyframes ui-b2m-checkins-t0 {
  0%, 32% { opacity: 1; }
  35%, 89% { opacity: 0; }
  90%, 100% { opacity: 1; }
}
@keyframes ui-b2m-checkins-t1 {
  0%, 32% { opacity: 0; }
  35%, 57% { opacity: 1; }
  60%, 100% { opacity: 0; }
}
@keyframes ui-b2m-checkins-t2 {
  0%, 57% { opacity: 0; }
  60%, 89% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* the counter rolls with each arrival: 74 → 75 → 76 → 75 → 74 */
@keyframes ui-b2m-checkins-count {
  0%, 7% { transform: translateY(0); }
  13%, 32% { transform: translateY(-1.3em); }
  38%, 57% { transform: translateY(-2.6em); }
  63%, 82% { transform: translateY(-3.9em); }
  88%, 100% { transform: translateY(-5.2em); }
}

/* short tile: two rows */
@container (max-height: 190px) {
  .ui-b2m-checkins-list { height: calc(var(--h) * 2); }
}


/* ---- b2m-switch.css ---- */
/* b2match Entrance app: the scanner's Find | Check in | Check out switch, clicked through by a cursor */
.ui-b2m-switch {
  --teal: #00a6a6;
  --navy: #082530;
  --seg: 5.3em;
  --x0: calc(0.25em + var(--seg) * 0.5);
  --x1: calc(0.25em + var(--seg) * 1.5);
  --x2: calc(0.25em + var(--seg) * 2.5);
  --y: 1.55em;
  --cycle: 7.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  color: var(--navy);
}

.ui-b2m-switch-place {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.86em;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.ui-b2m-switch-pin { width: 1.15em; height: 1.15em; }
.ui-b2m-switch-chev { width: 1em; height: 1em; opacity: 0.7; }

.ui-b2m-switch-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, var(--seg));
  padding: 0.25em;
  border-radius: 99em;
  background: var(--color-white);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 0 0 / 0.25);
}

.ui-b2m-switch-pill {
  position: absolute;
  top: 0.25em;
  bottom: 0.25em;
  left: 0.25em;
  width: var(--seg);
  border-radius: 99em;
  background: var(--teal);
  transform: translateX(var(--seg));
  animation: ui-b2m-switch-pill var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}

/* two label rows: muted underneath, white on top clipped to the pill, so the colour follows the pill exactly */
.ui-b2m-switch-row {
  grid-area: 1 / 1 / 2 / 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, var(--seg));
  color: color-mix(in srgb, var(--navy) 62%, transparent);
}
.ui-b2m-switch-row > span {
  display: grid;
  place-items: center;
  height: 2.45em;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}
.ui-b2m-switch-on {
  color: var(--color-white);
  clip-path: inset(0 var(--seg) 0 var(--seg) round 99em);
  animation: ui-b2m-switch-clip var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}

.ui-b2m-switch-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.05em;
  height: 1.45em;
  color: var(--color-grey-950);
  transform-origin: 0.1em 0.1em;
  transform: translate(var(--x1), var(--y));
  filter: drop-shadow(0 0.1em 0.15em rgb(0 0 0 / 0.25));
  animation: ui-b2m-switch-cursor var(--cycle) cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.ui-b2m-switch-cursor path { fill: currentColor; stroke: var(--color-white); }

/* pill: Check in → Check out → Find → Check in */
@keyframes ui-b2m-switch-pill {
  0%, 22% { transform: translateX(var(--seg)); }
  32%, 56% { transform: translateX(calc(var(--seg) * 2)); }
  66%, 88% { transform: translateX(0); }
  98%, 100% { transform: translateX(var(--seg)); }
}

/* cursor travels to each segment, then presses */
@keyframes ui-b2m-switch-cursor {
  0%, 6% { transform: translate(var(--x1), var(--y)) scale(1); }
  20% { transform: translate(var(--x2), var(--y)) scale(1); }
  22% { transform: translate(var(--x2), var(--y)) scale(0.84); }
  25%, 40% { transform: translate(var(--x2), var(--y)) scale(1); }
  54% { transform: translate(var(--x0), var(--y)) scale(1); }
  56% { transform: translate(var(--x0), var(--y)) scale(0.84); }
  59%, 72% { transform: translate(var(--x0), var(--y)) scale(1); }
  86% { transform: translate(var(--x1), var(--y)) scale(1); }
  88% { transform: translate(var(--x1), var(--y)) scale(0.84); }
  91%, 100% { transform: translate(var(--x1), var(--y)) scale(1); }
}

@keyframes ui-b2m-switch-clip {
  0%, 22% { clip-path: inset(0 var(--seg) 0 var(--seg) round 99em); }
  32%, 56% { clip-path: inset(0 0 0 calc(var(--seg) * 2) round 99em); }
  66%, 88% { clip-path: inset(0 calc(var(--seg) * 2) 0 0 round 99em); }
  98%, 100% { clip-path: inset(0 var(--seg) 0 var(--seg) round 99em); }
}

/* smallest tile: a touch smaller so the switch keeps its margins */
@container (max-width: 200px) {
  .ui-b2m-switch { font-size: 0.92em; }
}


/* ---- cp-player.css ---- */
/* Cultural Places — the media guide's mini audio player.
   Plays one track from 0:00 to 1:59, stops at the end and springs back. 7 s loop. */
@property --cp-player-p { syntax: '<number>'; inherits: true; initial-value: 0.353; }
@property --cp-player-m { syntax: '<integer>'; inherits: true; initial-value: 0; }
@property --cp-player-s { syntax: '<integer>'; inherits: true; initial-value: 42; }

.ui-cp-player {
  --cp-dark: var(--color-grey-800);
  --cp-track: var(--color-grey-100);
  --cp-muted: var(--color-grey-375);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-cp-player-card {
  box-sizing: border-box;
  width: 15em;
  padding: 1em 1.1em 0.9em;
  border-radius: 1.25em;
  background: var(--color-white);
  color: var(--color-grey-875);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / .06), 0 0.8em 2em -0.6em rgb(0 0 0 / .25);
}

/* artwork + title */
.ui-cp-player-head {
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.ui-cp-player-art {
  flex: none;
  width: 3.1em;
  height: 3.1em;
  border-radius: 0.6em;
  background-color: var(--color-grey-100);
background-image: url('/assets/img/cultural-places/cultural-places-birth-of-venus-artwork.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ui-cp-player-meta { min-width: 0; }
.ui-cp-player-title {
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ui-cp-player-artist {
  margin-top: 0.3em;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--cp-muted);
  white-space: nowrap;
}

/* progress */
.ui-cp-player-bar {
  position: relative;
  height: 0.22em;
  margin: 1.15em 0.3em 0;
  border-radius: 1em;
  background: var(--cp-track);
  --cp-player-p: 0.353;
  animation: ui-cp-player-progress 7s infinite;
}
.ui-cp-player-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cp-dark);
  transform-origin: left center;
  transform: scaleX(var(--cp-player-p));
}
.ui-cp-player-knob {
  position: absolute;
  top: 50%;
  left: calc(var(--cp-player-p) * 100%);
  width: 0.72em;
  height: 0.72em;
  margin: -0.36em 0 0 -0.36em;
  border-radius: 50%;
  background: var(--cp-dark);
}

/* time + controls */
.ui-cp-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55em;
}
.ui-cp-player-time {
  width: 2.6em;
  font-size: 0.68em;
  font-weight: 500;
  color: var(--cp-muted);
  font-variant-numeric: tabular-nums;
}
.ui-cp-player-time:last-child { text-align: right; }
.ui-cp-player-elapsed {
  --cp-player-m: 0;
  --cp-player-s: 42;
  animation: ui-cp-player-clock 7s infinite;
}
.ui-cp-player-elapsed::before {
  counter-reset: cpm var(--cp-player-m) cps var(--cp-player-s);
  content: counter(cpm) ":" counter(cps, decimal-leading-zero);
}
.ui-cp-player-skip {
  width: 1.05em;
  height: 1.05em;
  fill: var(--cp-dark);
  stroke: var(--cp-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-cp-player-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  margin: 0 0.15em;
  border-radius: 50%;
  background: var(--cp-dark);
  animation: ui-cp-player-press 7s infinite;
}
.ui-cp-player-play svg {
  grid-area: 1 / 1;
  width: 1.2em;
  height: 1.2em;
  fill: var(--color-white);
}
.ui-cp-player-icon-play { margin-left: 0.12em; animation: ui-cp-player-show-play 7s infinite; }
.ui-cp-player-icon-pause { opacity: 0; animation: ui-cp-player-show-pause 7s infinite; }
.ui-cp-player-tap {
  position: absolute;
  inset: -0.35em;
  border-radius: 50%;
  background: var(--cp-dark);
  opacity: 0;
  animation: ui-cp-player-tap 7s infinite;
}

/* smallest tile: a little narrower, skip buttons go */
@container (max-width: 200px) {
  .ui-cp-player-card { width: 14.6em; }
  .ui-cp-player-skip { display: none; }
}

/* 0–12 rest at 0:00 · 12 tap play · 15–85 plays to 1:59 · 86 stops · 88–95 springs back */
@keyframes ui-cp-player-progress {
  0%, 15% { --cp-player-p: 0; animation-timing-function: linear; }
  85%, 88% { --cp-player-p: 1; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
  96%, 100% { --cp-player-p: 0; }
}
@keyframes ui-cp-player-clock {
  0%, 15% { --cp-player-m: 0; --cp-player-s: 0; animation-timing-function: linear; }
  50.2% { --cp-player-m: 0; --cp-player-s: 59; animation-timing-function: step-end; }
  50.3% { --cp-player-m: 1; --cp-player-s: 0; animation-timing-function: linear; }
  85% { --cp-player-m: 1; --cp-player-s: 59; animation-timing-function: step-end; }
  89%, 100% { --cp-player-m: 0; --cp-player-s: 0; }
}
@keyframes ui-cp-player-press {
  0%, 11%, 15.5%, 100% { transform: scale(1); }
  12.5% { transform: scale(0.9); }
}
@keyframes ui-cp-player-tap {
  0%, 11.5% { opacity: 0; transform: scale(0.7); }
  12.5% { opacity: 0.16; transform: scale(0.85); }
  18%, 100% { opacity: 0; transform: scale(1.25); }
}
@keyframes ui-cp-player-show-play {
  0%, 12.5% { opacity: 1; transform: scale(1); }
  14%, 85.5% { opacity: 0; transform: scale(0.6); }
  87%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes ui-cp-player-show-pause {
  0%, 12.5% { opacity: 0; transform: scale(0.6); }
  14%, 85.5% { opacity: 1; transform: scale(1); }
  87%, 100% { opacity: 0; transform: scale(0.6); }
}


/* ---- cp-route.css ---- */
/* Cultural Places — a walking tour on the outdoor map (Stadtpark, Vienna).
   The route draws itself from you to the stops, the pins drop in, the next stop slides up. 8 s loop. */
.ui-cp-route {
  --cp-land: #e3dedb;
  --cp-park: #b6e4a0;
  --cp-park-ink: #5f9a4c;
  --cp-water: #79cfec;
  --cp-route: #2477e5;
  --cp-amber: #f9ab28;
  --cp-pin: var(--color-grey-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-cp-route-map {
  position: relative;
  flex: none;
  width: 18em;
  height: 11.25em;
  overflow: hidden;
  border-radius: 1.1em;
  /* the app's own Stadtpark map, with its museum pin: the route ends on the pin's tip */
  background: var(--cp-land) url('/assets/img/cultural-places/cultural-places-stadtpark-map.webp') 0 50% / 100% auto no-repeat;
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / .06), 0 0.8em 2em -0.6em rgb(0 0 0 / .25);
}
.ui-cp-route-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 18em;
  height: 11.25em;
}

/* the map: soft and quiet so the route reads */
.ui-cp-route-park { fill: var(--cp-park); }
.ui-cp-route-pond { fill: var(--cp-water); }
.ui-cp-route-river { fill: none; stroke: var(--cp-water); stroke-width: 11; stroke-linecap: round; }
.ui-cp-route-road { fill: none; stroke: var(--color-white); stroke-width: 7; }
.ui-cp-route-lane { fill: none; stroke: var(--color-white); stroke-width: 3.5; }
.ui-cp-route-walk {
  fill: none;
  stroke: var(--color-white);
  stroke-width: 1.1;
  stroke-dasharray: 2.4 2.2;
  stroke-linecap: round;
  opacity: 0.85;
}
.ui-cp-route-label {
  font-size: 6.2px;
  font-weight: 500;
  fill: var(--cp-park-ink);
}

/* the route */
.ui-cp-route-line {
  fill: none;
  stroke: var(--cp-route);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
  animation: ui-cp-route-draw 8s infinite;
}
.ui-cp-route-casing { stroke: var(--color-white); stroke-width: 5.2; }

/* you are here */
.ui-cp-route-you {
  position: absolute;
  left: 4.06em;
  top: 6em;
  width: 0.72em;
  height: 0.72em;
  margin: -0.36em 0 0 -0.36em;
  box-sizing: border-box;
  border: 0.14em solid var(--color-white);
  border-radius: 50%;
  background: var(--cp-route);
  box-shadow: 0 0 0 0.45em color-mix(in srgb, var(--cp-route) 22%, transparent), 0 0.1em 0.25em rgb(0 0 0 / .2);
}

/* stop pins: the tip sits on the route */
.ui-cp-route-pin {
  position: absolute;
  left: calc(var(--x) * 1em);
  top: calc(var(--y) * 1em);
  width: 1.45em;
  height: 1.45em;
  margin: -1.95em 0 0 -0.725em;
  transform-origin: 50% 1.95em;
}
.ui-cp-route-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  background: var(--cp-pin);
  transform: rotate(-45deg);
  box-shadow: 0 0.1em 0.25em rgb(0 0 0 / .18);
}
.ui-cp-route-pin b {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--color-white);
}
.ui-cp-route-pin-2, .ui-cp-route-pin-3 { --cp-pin: var(--color-grey-525); }
.ui-cp-route-pin-1 { animation: ui-cp-route-pin-1 8s infinite; }
.ui-cp-route-pin-2 { animation: ui-cp-route-pin-2 8s infinite; }
.ui-cp-route-pin-3 { animation: ui-cp-route-pin-3 8s infinite; }

/* next stop */
.ui-cp-route-card {
  position: absolute;
  left: 0.55em;
  right: 0.55em;
  bottom: 0.55em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em;
  border-radius: 0.8em;
  background: var(--color-white);
  color: var(--color-grey-875);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / .06), 0 0.6em 1.4em -0.6em rgb(0 0 0 / .3);
  animation: ui-cp-route-card 8s infinite;
}
.ui-cp-route-photo {
  flex: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.5em;
  background-color: var(--cp-park);
background-image: url('/assets/img/cultural-places/cultural-places-waltz-king-monument.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ui-cp-route-info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}
.ui-cp-route-eta {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.68em;
  font-weight: 600;
  white-space: nowrap;
}
.ui-cp-route-eta svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: var(--cp-amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-cp-route-eta circle { fill: var(--cp-amber); stroke: none; }
.ui-cp-route-eta i { font-style: normal; font-weight: 500; color: var(--color-grey-450); }
.ui-cp-route-name {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 0–6 rest · 6–40 route draws, pins drop as it reaches them · 44–52 card slides up · 88–95 all clears */
@keyframes ui-cp-route-draw {
  0%, 6% { stroke-dashoffset: 100; opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  40%, 88% { stroke-dashoffset: 0; opacity: 1; }
  94% { stroke-dashoffset: 0; opacity: 0; }
  95% { stroke-dashoffset: 100; opacity: 0; }
  96%, 100% { stroke-dashoffset: 100; opacity: 1; }
}
@keyframes ui-cp-route-pin-1 {
  0%, 16% { opacity: 0; transform: translateY(-0.9em) scale(0.6); animation-timing-function: cubic-bezier(.34, 1.5, .64, 1); }
  20%, 88% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  94%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes ui-cp-route-pin-2 {
  0%, 21% { opacity: 0; transform: translateY(-0.9em) scale(0.6); animation-timing-function: cubic-bezier(.34, 1.5, .64, 1); }
  25%, 88% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  94%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes ui-cp-route-pin-3 {
  0%, 35% { opacity: 0; transform: translateY(-0.9em) scale(0.6); animation-timing-function: cubic-bezier(.34, 1.5, .64, 1); }
  39%, 88% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  94%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes ui-cp-route-card {
  0%, 45% { transform: translateY(4.5em); animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
  53%, 87% { transform: none; animation-timing-function: cubic-bezier(.3, 0, .8, .15); }
  94%, 100% { transform: translateY(4.5em); }
}


/* ---- gluware-flow.css ---- */
/* Gluware · Workflow editor: three task nodes joined by connectors. A pulse runs down each connector,
   the node it reaches spins, then gets a check. Task names from the Workflow Activity task panel. */
.ui-gluware-flow {
  --gw-ink: #1d2124;
  --gw-line: #c3cbd0;
  --gw-border: #dbe4e7;
  --gw-cyan: #23ade5;
  --gw-cyan-bg: #e5f4fa;
  --gw-green: #63ad5a;
  --gw-wait: #b7c2c9;
  --gw-float: 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.2);
  --gw-rest: 0 0 0 0.07em var(--gw-border), var(--gw-float);
  --gw-on: 0 0 0 0.1em var(--gw-cyan), 0 0 0 0.4em color-mix(in srgb, var(--gw-cyan) 14%, transparent), var(--gw-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 13em;
  max-width: 100%;
}
.ui-gluware-flow-node {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.65em 0.55em 0.55em;
  background: var(--color-white);
  border-radius: 0.45em;
  box-shadow: var(--gw-rest);
}
.ui-gluware-flow-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.4em;
  background: var(--gw-cyan-bg);
  color: var(--gw-cyan);
}
.ui-gluware-flow-icon svg { width: 1em; height: 1em; }
.ui-gluware-flow-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--gw-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the node's state: waiting ring, spinner, check — stacked, one shown */
.ui-gluware-flow-state {
  flex: none;
  display: grid;
  width: 1.1em;
  height: 1.1em;
}
.ui-gluware-flow-state > i {
  grid-area: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  opacity: 0;
}
.ui-gluware-flow-wait { border: 0.12em dashed var(--gw-wait); }
.ui-gluware-flow-run {
  border: 0.14em solid color-mix(in srgb, var(--gw-cyan) 22%, transparent);
  border-top-color: var(--gw-cyan);
  animation: ui-gluware-flow-spin 0.9s linear infinite;
}
.ui-gluware-flow-done {
  display: grid;
  place-items: center;
  background: var(--gw-green);
  color: var(--color-white);
}
.ui-gluware-flow-done svg { width: 0.85em; height: 0.85em; }

/* connector: a grey line, a cyan fill that grows down it, and the pulse riding its front */
.ui-gluware-flow-link {
  position: relative;
  width: 0.1em;
  height: 1.7em;
  background: var(--gw-line);
}
.ui-gluware-flow-fill {
  position: absolute;
  inset: 0;
  background: var(--gw-cyan);
  transform-origin: top;
  transform: scaleY(0);
}
.ui-gluware-flow-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.55em;
  height: 0.55em;
  margin: -0.275em 0 0 -0.275em;
  border-radius: 50%;
  background: var(--gw-cyan);
  box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--gw-cyan) 22%, transparent);
  opacity: 0;
}

/* the still frame: Filter Targets done, Select Targets running, Email notification waiting */
.ui-gluware-flow-node--a .ui-gluware-flow-done,
.ui-gluware-flow-node--b .ui-gluware-flow-run,
.ui-gluware-flow-node--c .ui-gluware-flow-wait { opacity: 1; }
.ui-gluware-flow-node--b { box-shadow: var(--gw-on); }
.ui-gluware-flow-link--a .ui-gluware-flow-fill { transform: none; }

/* 8 s: run 1 → pulse → run 2 → pulse → run 3 → all done, hold → reset */
.ui-gluware-flow-node--a { animation: ui-gluware-flow-on-a 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--b { animation: ui-gluware-flow-on-b 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--c { animation: ui-gluware-flow-on-c 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--a .ui-gluware-flow-run { animation: ui-gluware-flow-spin 0.9s linear infinite, ui-gluware-flow-a-run 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--a .ui-gluware-flow-done { animation: ui-gluware-flow-a-done 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--b .ui-gluware-flow-wait { animation: ui-gluware-flow-b-wait 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--b .ui-gluware-flow-run { animation: ui-gluware-flow-spin 0.9s linear infinite, ui-gluware-flow-b-run 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--b .ui-gluware-flow-done { animation: ui-gluware-flow-b-done 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--c .ui-gluware-flow-wait { animation: ui-gluware-flow-c-wait 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--c .ui-gluware-flow-run { animation: ui-gluware-flow-spin 0.9s linear infinite, ui-gluware-flow-c-run 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-node--c .ui-gluware-flow-done { animation: ui-gluware-flow-c-done 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-flow-link--a .ui-gluware-flow-fill { animation: ui-gluware-flow-fill-a 8s cubic-bezier(.4, 0, .2, 1) infinite; }
.ui-gluware-flow-link--a .ui-gluware-flow-pulse { animation: ui-gluware-flow-pulse-a 8s cubic-bezier(.4, 0, .2, 1) infinite; }
.ui-gluware-flow-link--b .ui-gluware-flow-fill { animation: ui-gluware-flow-fill-b 8s cubic-bezier(.4, 0, .2, 1) infinite; }
.ui-gluware-flow-link--b .ui-gluware-flow-pulse { animation: ui-gluware-flow-pulse-b 8s cubic-bezier(.4, 0, .2, 1) infinite; }

@keyframes ui-gluware-flow-spin { to { transform: rotate(1turn); } }

/* node outlines while running */
@keyframes ui-gluware-flow-on-a {
  0%, 9% { box-shadow: var(--gw-on); }
  12%, 88% { box-shadow: var(--gw-rest); }
  91%, 100% { box-shadow: var(--gw-on); }
}
@keyframes ui-gluware-flow-on-b {
  0%, 22% { box-shadow: var(--gw-rest); }
  25%, 43% { box-shadow: var(--gw-on); }
  46%, 100% { box-shadow: var(--gw-rest); }
}
@keyframes ui-gluware-flow-on-c {
  0%, 56% { box-shadow: var(--gw-rest); }
  59%, 68% { box-shadow: var(--gw-on); }
  71%, 100% { box-shadow: var(--gw-rest); }
}

/* states */
@keyframes ui-gluware-flow-a-run {
  0%, 9% { opacity: 1; }
  12%, 88% { opacity: 0; }
  91%, 100% { opacity: 1; }
}
@keyframes ui-gluware-flow-a-done {
  0%, 9% { opacity: 0; scale: 0.6; }
  12%, 88% { opacity: 1; scale: 1; }
  91%, 100% { opacity: 0; scale: 0.6; }
}
@keyframes ui-gluware-flow-b-wait {
  0%, 22% { opacity: 1; }
  25%, 88% { opacity: 0; }
  91%, 100% { opacity: 1; }
}
@keyframes ui-gluware-flow-b-run {
  0%, 22% { opacity: 0; }
  25%, 43% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes ui-gluware-flow-b-done {
  0%, 43% { opacity: 0; scale: 0.6; }
  46%, 88% { opacity: 1; scale: 1; }
  91%, 100% { opacity: 0; scale: 0.6; }
}
@keyframes ui-gluware-flow-c-wait {
  0%, 56% { opacity: 1; }
  59%, 88% { opacity: 0; }
  91%, 100% { opacity: 1; }
}
@keyframes ui-gluware-flow-c-run {
  0%, 56% { opacity: 0; }
  59%, 68% { opacity: 1; }
  71%, 100% { opacity: 0; }
}
@keyframes ui-gluware-flow-c-done {
  0%, 68% { opacity: 0; scale: 0.6; }
  71%, 88% { opacity: 1; scale: 1; }
  91%, 100% { opacity: 0; scale: 0.6; }
}

/* connectors: fill and pulse travel together, then the fill fades out on reset */
@keyframes ui-gluware-flow-fill-a {
  0%, 11% { transform: scaleY(0); opacity: 1; }
  23%, 88% { transform: scaleY(1); opacity: 1; }
  91% { transform: scaleY(1); opacity: 0; }
  92% { transform: scaleY(0); opacity: 0; }
  94%, 100% { transform: scaleY(0); opacity: 1; }
}
@keyframes ui-gluware-flow-pulse-a {
  0%, 11% { top: 0; opacity: 0; }
  12.5% { top: 0; opacity: 1; }
  22% { top: 100%; opacity: 1; }
  24%, 100% { top: 100%; opacity: 0; }
}
@keyframes ui-gluware-flow-fill-b {
  0%, 45% { transform: scaleY(0); opacity: 1; }
  57%, 88% { transform: scaleY(1); opacity: 1; }
  91% { transform: scaleY(1); opacity: 0; }
  92% { transform: scaleY(0); opacity: 0; }
  94%, 100% { transform: scaleY(0); opacity: 1; }
}
@keyframes ui-gluware-flow-pulse-b {
  0%, 45% { top: 0; opacity: 0; }
  46.5% { top: 0; opacity: 1; }
  56% { top: 100%; opacity: 1; }
  58%, 100% { top: 100%; opacity: 0; }
}


/* ---- gluware-status.css ---- */
/* Gluware · Workflow Activity: three workflow rows, their state chip moves Scheduled → Running → Completed,
   one row at a time. Colours sampled from the Workflow Library / Workflow Activity screens. */
.ui-gluware-status {
  --gw-ink: #1d2124;
  --gw-muted: #6b7a87;
  --gw-border: #dbe4e7;
  --gw-cyan: #23ade5;
  --gw-cyan-ink: #1795c9;
  --gw-cyan-bg: #e5f4fa;
  --gw-green: #63ad5a;
  --gw-green-ink: #4a8f43;
  --gw-green-bg: #e9f6e5;
  --gw-grey-ink: #5d6f80;
  --gw-grey-bg: #edf2f5;
  --gw-purple: #6c71c4;
  --gw-purple-bg: #efeefa;
  width: 17em;
  max-width: 100%;
}
.ui-gluware-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}
.ui-gluware-status-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.6em 0.7em 0.6em 0.6em;
  background: var(--color-white);
  border-radius: 0.5em;
  box-shadow: 0 0 0 0.07em var(--gw-border), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18);
}
/* the running row is outlined, like the open row in Workflow Activity */
.ui-gluware-status-row--b {
  box-shadow: 0 0 0 0.1em var(--gw-cyan), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18);
}
.ui-gluware-status-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.45em;
  background: var(--gw-purple-bg);
  color: var(--gw-purple);
}
.ui-gluware-status-icon svg { width: 1.15em; height: 1.15em; }
.ui-gluware-status-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.ui-gluware-status-name {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--gw-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-gluware-status-meta {
  font-size: 0.62em;
  color: var(--gw-muted);
  white-space: nowrap;
}

/* chips: the three states sit on top of each other, one is shown */
.ui-gluware-status-chips {
  flex: none;
  display: grid;
}
.ui-gluware-status-chip {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.38em 0.6em;
  border-radius: 0.35em;
  font-size: 0.66em;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
}
.ui-gluware-status-chip--scheduled { background: var(--gw-grey-bg); color: var(--gw-grey-ink); }
.ui-gluware-status-chip--running { background: var(--gw-cyan-bg); color: var(--gw-cyan-ink); }
.ui-gluware-status-chip--completed { background: var(--gw-green-bg); color: var(--gw-green-ink); }
.ui-gluware-status-dot {
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}
.ui-gluware-status-chip--scheduled .ui-gluware-status-dot { background: none; box-shadow: inset 0 0 0 0.15em currentColor; }
.ui-gluware-status-chip--completed .ui-gluware-status-dot { background: var(--gw-green); }
.ui-gluware-status-spin {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  box-sizing: border-box;
  border-radius: 50%;
  border: 0.16em solid color-mix(in srgb, var(--gw-cyan) 25%, transparent);
  border-top-color: var(--gw-cyan);
  animation: ui-gluware-status-spin 0.9s linear infinite;
}

/* the still frame: a done row, a running row, a waiting row */
.ui-gluware-status-row--a .ui-gluware-status-chip--completed,
.ui-gluware-status-row--b .ui-gluware-status-chip--running,
.ui-gluware-status-row--c .ui-gluware-status-chip--scheduled { opacity: 1; }

/* 8 s: Filter targets completes → Send email starts → it completes → both are queued again */
.ui-gluware-status-row--b { animation: ui-gluware-status-ring-b 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-status-row--c { animation: ui-gluware-status-ring-c 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-status-row--b .ui-gluware-status-chip--running { animation: ui-gluware-status-b-run 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-status-row--b .ui-gluware-status-chip--completed { animation: ui-gluware-status-b-done 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-status-row--c .ui-gluware-status-chip--scheduled { animation: ui-gluware-status-c-sched 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-status-row--c .ui-gluware-status-chip--running { animation: ui-gluware-status-c-run 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-gluware-status-row--c .ui-gluware-status-chip--completed { animation: ui-gluware-status-c-done 8s cubic-bezier(.2, 0, 0, 1) infinite; }

@keyframes ui-gluware-status-spin { to { transform: rotate(1turn); } }

@keyframes ui-gluware-status-b-run {
  0%, 18% { opacity: 1; transform: none; }
  21%, 79% { opacity: 0; transform: scale(0.92); }
  82%, 100% { opacity: 1; transform: none; }
}
@keyframes ui-gluware-status-b-done {
  0%, 18% { opacity: 0; transform: scale(0.92); }
  21%, 79% { opacity: 1; transform: none; }
  82%, 100% { opacity: 0; transform: scale(0.92); }
}
@keyframes ui-gluware-status-c-sched {
  0%, 31% { opacity: 1; transform: none; }
  34%, 88% { opacity: 0; transform: scale(0.92); }
  91%, 100% { opacity: 1; transform: none; }
}
@keyframes ui-gluware-status-c-run {
  0%, 31% { opacity: 0; transform: scale(0.92); }
  34%, 56% { opacity: 1; transform: none; }
  59%, 100% { opacity: 0; transform: scale(0.92); }
}
@keyframes ui-gluware-status-c-done {
  0%, 56% { opacity: 0; transform: scale(0.92); }
  59%, 88% { opacity: 1; transform: none; }
  91%, 100% { opacity: 0; transform: scale(0.92); }
}
@keyframes ui-gluware-status-ring-b {
  0%, 18% { box-shadow: 0 0 0 0.1em var(--gw-cyan), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18); }
  21%, 79% { box-shadow: 0 0 0 0.07em var(--gw-border), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18); }
  82%, 100% { box-shadow: 0 0 0 0.1em var(--gw-cyan), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18); }
}
@keyframes ui-gluware-status-ring-c {
  0%, 31% { box-shadow: 0 0 0 0.07em var(--gw-border), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18); }
  34%, 56% { box-shadow: 0 0 0 0.1em var(--gw-cyan), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18); }
  59%, 100% { box-shadow: 0 0 0 0.07em var(--gw-border), 0 0.1em 0.2em rgb(0 0 0 / 0.04), 0 0.8em 2em -0.8em rgb(0 0 0 / 0.18); }
}

/* the smallest tile: drop the byline and the type icon */
@container (max-width: 200px) {
  .ui-gluware-status-meta,
  .ui-gluware-status-icon { display: none; }
  .ui-gluware-status-row { padding: 0.75em 0.7em 0.75em 0.85em; }
}


/* ---- gourban-booking.css ---- */
/* ÖBB Rail&Drive: rental dates. Clear → tap 5 → drag to 7; the summary fills in, Next wakes up and is pressed.
   The black range is one row of white dates on ink, clipped to the selection, so the numbers flip colour exactly. */
.ui-gourban-booking {
  --g-ink: #0b0e14;
  --g-muted: #707884;
  --g-faint: #a7afb9;
  --g-line: #dce1e6;
  --c: 2.35em;
  --cycle: 8s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g-ink);
}

.ui-gourban-booking-card {
  display: grid;
  gap: 0.75em;
  padding: 0.95em 1.1em 1em;
  border-radius: 0.8em;
  background: var(--color-white);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 0 0 / 0.25);
}

.ui-gourban-booking-pick { display: grid; gap: 0.4em; }
.ui-gourban-booking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
}
.ui-gourban-booking-month { font-size: 0.86em; color: var(--g-muted); font-weight: 400; }

.ui-gourban-booking-dow,
.ui-gourban-booking-row {
  display: grid;
  grid-template-columns: repeat(7, var(--c));
}
.ui-gourban-booking-dow > span {
  text-align: center;
  font-size: 0.54em;
  font-weight: 500;
  color: var(--g-faint);
}

.ui-gourban-booking-days { position: relative; height: 1.95em; }
.ui-gourban-booking-row { position: absolute; inset: 0; }
.ui-gourban-booking-row > span {
  display: grid;
  place-items: center;
  font-size: 0.74em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ui-gourban-booking-sel {
  background: var(--g-ink);
  color: var(--color-white);
  clip-path: inset(0 calc(var(--c) * 2) 0 calc(var(--c) * 2) round 0.4em);
  animation: ui-gourban-booking-sel var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}

.ui-gourban-booking-sum {
  display: grid;
  gap: 0.65em;
  padding-top: 0.75em;
  border-top: 0.07em solid var(--g-line);
}
.ui-gourban-booking-trip { display: grid; gap: 0.3em; }
.ui-gourban-booking-station,
.ui-gourban-booking-dates {
  display: flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}
.ui-gourban-booking-station { font-size: 0.76em; font-weight: 500; }
.ui-gourban-booking-dates { font-size: 0.66em; color: var(--g-muted); }
.ui-gourban-booking-station svg,
.ui-gourban-booking-dates svg { flex: none; width: 1.15em; height: 1.15em; color: var(--g-faint); }
.ui-gourban-booking-dates svg { width: 1.25em; height: 1.25em; }
circle.ui-gourban-booking-hole { fill: var(--color-white); }
path.ui-gourban-booking-hole { stroke: var(--color-white); }

.ui-gourban-booking-swap { display: grid; }
.ui-gourban-booking-swap > span { grid-area: 1 / 1; animation: var(--cycle) linear infinite; }
.ui-gourban-booking-swap > .ui-gourban-booking-s0 { opacity: 0; animation-name: ui-gourban-booking-s0; }
.ui-gourban-booking-swap > .ui-gourban-booking-s1 { opacity: 0; animation-name: ui-gourban-booking-s1; }
.ui-gourban-booking-swap > .ui-gourban-booking-s2 { color: var(--g-ink); animation-name: ui-gourban-booking-s2; }

.ui-gourban-booking-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.ui-gourban-booking-total {
  display: grid;
  white-space: nowrap;
  animation: ui-gourban-booking-total var(--cycle) linear infinite;
}
.ui-gourban-booking-label { font-size: 0.58em; color: var(--g-muted); }
.ui-gourban-booking-price { font-size: 0.9em; font-weight: 600; font-variant-numeric: tabular-nums; }

.ui-gourban-booking-next {
  padding: 0.62em 1.6em;
  border-radius: 0.4em;
  background: var(--g-ink);
  color: var(--color-white);
  font-size: 0.72em;
  font-weight: 500;
  animation: ui-gourban-booking-next var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}

/* range: 5–7 → cleared → 5 → dragged to 7 */
@keyframes ui-gourban-booking-sel {
  0%, 18% { clip-path: inset(0 calc(var(--c) * 2) 0 calc(var(--c) * 2) round 0.4em); opacity: 1; }
  23% { clip-path: inset(0 calc(var(--c) * 2) 0 calc(var(--c) * 2) round 0.4em); opacity: 0; }
  24%, 30% { clip-path: inset(0.25em calc(var(--c) * 4 + 0.2em) 0.25em calc(var(--c) * 2 + 0.2em) round 0.4em); opacity: 0; }
  34%, 46% { clip-path: inset(0 calc(var(--c) * 4) 0 calc(var(--c) * 2) round 0.4em); opacity: 1; }
  60%, 100% { clip-path: inset(0 calc(var(--c) * 2) 0 calc(var(--c) * 2) round 0.4em); opacity: 1; }
}
/* date line: one label fades out before the next fades in, so they never overlap */
@keyframes ui-gourban-booking-s0 {
  0%, 20% { opacity: 0; }
  22.5%, 30% { opacity: 1; }
  31.5%, 100% { opacity: 0; }
}
@keyframes ui-gourban-booking-s1 {
  0%, 31.5% { opacity: 0; }
  34%, 58% { opacity: 1; }
  59.5%, 100% { opacity: 0; }
}
@keyframes ui-gourban-booking-s2 {
  0%, 18% { opacity: 1; }
  20%, 59.5% { opacity: 0; }
  62%, 100% { opacity: 1; }
}
@keyframes ui-gourban-booking-total {
  0%, 18% { opacity: 1; }
  22%, 58% { opacity: 0.25; }
  62%, 100% { opacity: 1; }
}
@keyframes ui-gourban-booking-next {
  0%, 18% { background: var(--g-ink); color: var(--color-white); transform: none; }
  22%, 58% { background: var(--g-line); color: var(--g-muted); transform: none; }
  62%, 73% { background: var(--g-ink); color: var(--color-white); transform: none; }
  75% { transform: scale(0.94); }
  79%, 100% { background: var(--g-ink); color: var(--color-white); transform: none; }
}

/* short, wide tile: calendar and summary side by side */
@container (max-height: 200px) {
  .ui-gourban-booking { --c: 2.1em; }
  .ui-gourban-booking-card { grid-template-columns: auto auto; gap: 1.2em; align-items: center; }
  .ui-gourban-booking-sum { padding: 0 0 0 1.2em; border-top: 0; border-left: 0.07em solid var(--g-line); }
}


/* ---- gourban-vehicle.css ---- */
/* ÖBB Rail&Drive: Choose Vehicle Category. The selection moves Renault Zoe → Klasse 3 PKW → back. */
.ui-gourban-vehicle {
  --g-ink: #0b0e14;
  --g-muted: #707884;
  --g-line: #dce1e6;
  --g-bolt: #98a9b9;
  --cycle: 7s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g-ink);
}

.ui-gourban-vehicle-list {
  display: grid;
  gap: 0.55em;
  width: 16.4em;
}

.ui-gourban-vehicle-title {
  margin: 0 0 0.15em 0.1em;
  font-size: 0.82em;
  font-weight: 500;
}

.ui-gourban-vehicle-opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75em;
  padding: 0.55em 0.85em 0.55em 0.55em;
  border: 0.07em solid var(--g-line);
  border-radius: 0.6em;
  background: var(--color-white);
  box-shadow: 0 0 0 0 var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18);
  animation: var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}
.ui-gourban-vehicle-a {
  border-color: var(--g-ink);
  box-shadow: 0 0 0 0.05em var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18);
  animation-name: ui-gourban-vehicle-a;
}
.ui-gourban-vehicle-b { animation-name: ui-gourban-vehicle-b; }

/* The cars are the app's own photos, cropped from the Rail&Drive screen (on white; multiply drops
   their near-white ground into the card) */
.ui-gourban-vehicle-thumb {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 2.7em;
}
.ui-gourban-vehicle-photo { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.ui-gourban-vehicle-info { display: grid; gap: 0.15em; min-width: 0; }
.ui-gourban-vehicle-name {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
}
.ui-gourban-vehicle-bolt { width: 0.95em; height: 0.95em; color: var(--g-bolt); }
.ui-gourban-vehicle-price { font-size: 0.68em; color: var(--g-muted); white-space: nowrap; }
/* radio: grey ring, or ink ring with an ink dot */
.ui-gourban-vehicle-radio {
  position: relative;
  width: 1.1em;
  height: 1.1em;
  box-sizing: border-box;
  border-radius: 50%;
  border: 0.09em solid var(--color-grey-200);
  animation: var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}
.ui-gourban-vehicle-radio::after {
  content: "";
  position: absolute;
  inset: 0.2em;
  border-radius: 50%;
  background: var(--g-ink);
  transform: scale(0);
  animation: var(--cycle) cubic-bezier(0.2, 0, 0, 1) infinite;
}
.ui-gourban-vehicle-a .ui-gourban-vehicle-radio { border-color: var(--g-ink); animation-name: ui-gourban-vehicle-ring-a; }
.ui-gourban-vehicle-a .ui-gourban-vehicle-radio::after { transform: scale(1); animation-name: ui-gourban-vehicle-dot-a; }
.ui-gourban-vehicle-b .ui-gourban-vehicle-radio { animation-name: ui-gourban-vehicle-ring-b; }
.ui-gourban-vehicle-b .ui-gourban-vehicle-radio::after { animation-name: ui-gourban-vehicle-dot-b; }

/* A is picked 0–38 %, B is tapped at 38 % and kept until A is tapped again at 82 % */
@keyframes ui-gourban-vehicle-a {
  0%, 38% { border-color: var(--g-ink); box-shadow: 0 0 0 0.05em var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18); transform: none; }
  44%, 80% { border-color: var(--g-line); box-shadow: 0 0 0 0 var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18); transform: none; }
  83% { transform: scale(0.975); }
  88%, 100% { border-color: var(--g-ink); box-shadow: 0 0 0 0.05em var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18); transform: none; }
}
@keyframes ui-gourban-vehicle-b {
  0%, 36% { border-color: var(--g-line); box-shadow: 0 0 0 0 var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18); transform: none; }
  39% { transform: scale(0.975); }
  44%, 82% { border-color: var(--g-ink); box-shadow: 0 0 0 0.05em var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18); transform: none; }
  88%, 100% { border-color: var(--g-line); box-shadow: 0 0 0 0 var(--g-ink), 0 0.6em 1.4em -0.8em rgb(0 0 0 / 0.18); }
}
@keyframes ui-gourban-vehicle-ring-a {
  0%, 38% { border-color: var(--g-ink); }
  44%, 82% { border-color: var(--color-grey-200); }
  88%, 100% { border-color: var(--g-ink); }
}
@keyframes ui-gourban-vehicle-ring-b {
  0%, 38% { border-color: var(--color-grey-200); }
  44%, 82% { border-color: var(--g-ink); }
  88%, 100% { border-color: var(--color-grey-200); }
}
@keyframes ui-gourban-vehicle-dot-a {
  0%, 38% { transform: scale(1); }
  43%, 82% { transform: scale(0); }
  88%, 100% { transform: scale(1); }
}
@keyframes ui-gourban-vehicle-dot-b {
  0%, 38% { transform: scale(0); }
  44%, 82% { transform: scale(1); }
  87%, 100% { transform: scale(0); }
}


/* ---- htec-buttons.css ---- */
/* HTEC design system · Components: the segmented buttons and the dialog's outline + filled buttons.
   A cursor clicks along the segments, presses the filled button, then goes back to the first segment. */
.ui-htec-buttons {
  --htec-blue: #0040ff;
  --htec-blue-hover: #0034d1;
  --htec-blue-press: #0029a6;
  --htec-track: #e4ebfd;
  --htec-label: #8f96a8;
  --htec-ink: #000417;
  --htec-seg: 3.9em;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8em;
  padding: 1.5em 1.4em;
  border-radius: 1.1em;
  background: var(--color-white);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 20 120 / 0.28);
}

/* segmented buttons */
.ui-htec-buttons-seg {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.3em;
  border-radius: 0.8em;
  background: var(--htec-track);
  box-shadow: inset 0 0 0 0.07em rgb(0 40 160 / 0.05);
}
.ui-htec-buttons-pill {
  position: absolute;
  left: 0.3em;
  top: 0.3em;
  width: var(--htec-seg);
  height: 2.1em;
  border-radius: 0.55em;
  background: var(--color-white);
  box-shadow: 0 0.05em 0.15em rgb(0 0 0 / 0.08), 0 0.3em 0.8em -0.2em rgb(0 20 120 / 0.2);
}
.ui-htec-buttons-opt {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--htec-seg) / 0.8);
  height: calc(2.1em / 0.8);
  font-size: 0.8em;
  color: var(--htec-label);
}
.ui-htec-buttons-opt--1 { color: var(--htec-ink); }
.ui-htec-buttons-more {
  display: grid;
  place-items: center;
  width: 1.5em;
  color: var(--htec-ink);
}
.ui-htec-buttons-more svg { width: 1.15em; height: 1.15em; }

/* dialog buttons */
.ui-htec-buttons-row {
  display: flex;
  gap: 0.8em;
}
.ui-htec-buttons-btn {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border-radius: 0.4em;
  font-size: 0.72em;
  width: calc(6em / 0.72);
  height: calc(2.6em / 0.72);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ui-htec-buttons-btn--outline {
  border: 0.1em solid var(--htec-blue);
  color: var(--htec-blue);
  background: var(--color-white);
}
.ui-htec-buttons-btn--filled {
  background: var(--htec-blue);
  color: var(--color-white);
  box-shadow: 0 0.6em 1.4em -0.6em rgb(0 64 255 / 0.6);
}

/* cursor: its tip sits on the point it's moved to */
.ui-htec-buttons-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.05em;
  height: 1.35em;
  color: var(--htec-ink);
  filter: drop-shadow(0 0.1em 0.15em rgb(0 0 0 / 0.25));
  transform-origin: 0.1em 0.1em;
  transform: translate(4em, 3.25em);
}
.ui-htec-buttons-cursor path {
  stroke: var(--color-white);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

/* 8 s: click 2 → click 3 → press the filled button → back to 1 */
.ui-htec-buttons-cursor { animation: ui-htec-buttons-cursor 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-htec-buttons-pill { animation: ui-htec-buttons-pill 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-htec-buttons-opt--1 { animation: ui-htec-buttons-opt-1 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-htec-buttons-opt--2 { animation: ui-htec-buttons-opt-2 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-htec-buttons-opt--3 { animation: ui-htec-buttons-opt-3 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-htec-buttons-btn--filled { animation: ui-htec-buttons-press 8s cubic-bezier(.2, 0, 0, 1) infinite; }

@keyframes ui-htec-buttons-cursor {
  0%, 8% { transform: translate(4em, 3.25em); }
  18% { transform: translate(7.8em, 3.1em); }
  19.5% { transform: translate(7.8em, 3.1em) scale(0.82); }
  21%, 28% { transform: translate(7.8em, 3.1em); }
  38% { transform: translate(11.7em, 3.1em); }
  39.5% { transform: translate(11.7em, 3.1em) scale(0.82); }
  41%, 48% { transform: translate(11.7em, 3.1em); }
  58%, 63% { transform: translate(12em, 7.5em); }
  65% { transform: translate(12em, 7.5em) scale(0.82); }
  68%, 76% { transform: translate(12em, 7.5em); }
  88% { transform: translate(4em, 3.1em); }
  89.5% { transform: translate(4em, 3.1em) scale(0.82); }
  91% { transform: translate(4em, 3.1em); }
  100% { transform: translate(4em, 3.25em); }
}
@keyframes ui-htec-buttons-pill {
  0%, 20% { transform: none; }
  27%, 40% { transform: translateX(var(--htec-seg)); }
  47%, 90% { transform: translateX(calc(var(--htec-seg) * 2)); }
  98%, 100% { transform: none; }
}
@keyframes ui-htec-buttons-opt-1 {
  0%, 20% { color: var(--htec-ink); }
  24%, 91% { color: var(--htec-label); }
  96%, 100% { color: var(--htec-ink); }
}
@keyframes ui-htec-buttons-opt-2 {
  0%, 21% { color: var(--htec-label); }
  25%, 41% { color: var(--htec-ink); }
  45%, 100% { color: var(--htec-label); }
}
@keyframes ui-htec-buttons-opt-3 {
  0%, 41% { color: var(--htec-label); }
  45%, 90% { color: var(--htec-ink); }
  94%, 100% { color: var(--htec-label); }
}
/* default → hover → pressed → hover → default */
@keyframes ui-htec-buttons-press {
  0%, 54% { background: var(--htec-blue); transform: none; }
  57%, 63.5% { background: var(--htec-blue-hover); transform: none; }
  65%, 67% { background: var(--htec-blue-press); transform: scale(0.96); box-shadow: 0 0.3em 0.8em -0.5em rgb(0 64 255 / 0.6); }
  70%, 76% { background: var(--htec-blue-hover); transform: none; }
  80%, 100% { background: var(--htec-blue); transform: none; }
}


/* ---- htec-scale.css ---- */
/* HTEC design system · Foundations: the blue colour ramp (#0040FF at 10 / 20 / 40 / 60 / 100 %), sampled
   from htec-blue-color-scale. A highlight walks down the ramp and back up, the step it's on opens up. */
.ui-htec-scale {
  --htec-10: #e5ecff;
  --htec-20: #ccd9ff;
  --htec-40: #99b3ff;
  --htec-60: #668cff;
  --htec-100: #0040ff;
  --htec-rest: 1.55em;
  --htec-open: 2.75em;
  width: 11em;
  max-width: 100%;
}
.ui-htec-scale-card {
  padding: 0.5em;
  border-radius: 1.1em;
  background: var(--color-white);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 20 120 / 0.28);
}
.ui-htec-scale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3em 0.45em 0.55em;
}
.ui-htec-scale-head span {
  font-size: 0.78em;
  font-weight: 500;
  color: var(--color-grey-875);
}
.ui-htec-scale-head i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--htec-100);
}
.ui-htec-scale-ramp {
  display: flex;
  flex-direction: column;
  border-radius: 0.65em;
  overflow: hidden;
  background: var(--htec-100);
}
.ui-htec-scale-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--htec-rest);
  padding: 0 0.8em;
  box-sizing: border-box;
  color: var(--htec-100);
  font-size: 1em;
  letter-spacing: 0.01em;
}
.ui-htec-scale-step b,
.ui-htec-scale-step span {
  font-size: 0.66em;
  line-height: 1;
  white-space: nowrap;
}
.ui-htec-scale-step b { font-weight: 600; }
.ui-htec-scale-step span { font-weight: 400; font-variant-numeric: tabular-nums; opacity: 0.85; }
.ui-htec-scale-step--1 { background: var(--htec-10); }
.ui-htec-scale-step--2 { background: var(--htec-20); }
.ui-htec-scale-step--3 { background: var(--htec-40); }
.ui-htec-scale-step--4 { background: var(--htec-60); color: var(--color-white); }
.ui-htec-scale-step--5 { background: var(--htec-100); color: var(--color-white); }

/* the still frame: the brand blue is open */
.ui-htec-scale-step--5 { height: var(--htec-open); }

/* 8 s, one step a second: 10 → 20 → 40 → 60 → 100 → 60 → 40 → 20 → (10) */
.ui-htec-scale-step { animation: 8s cubic-bezier(.2, 0, 0, 1) infinite; }
.ui-htec-scale-step--1 { animation-name: ui-htec-scale-1; }
.ui-htec-scale-step--2 { animation-name: ui-htec-scale-2; }
.ui-htec-scale-step--3 { animation-name: ui-htec-scale-3; }
.ui-htec-scale-step--4 { animation-name: ui-htec-scale-4; }
.ui-htec-scale-step--5 { animation-name: ui-htec-scale-5; }

@keyframes ui-htec-scale-1 {
  0% { height: var(--htec-rest); }
  5%, 12.5% { height: var(--htec-open); }
  17.5%, 100% { height: var(--htec-rest); }
}
@keyframes ui-htec-scale-2 {
  0% { height: var(--htec-open); }
  5%, 12.5% { height: var(--htec-rest); }
  17.5%, 25% { height: var(--htec-open); }
  30%, 87.5% { height: var(--htec-rest); }
  92.5%, 100% { height: var(--htec-open); }
}
@keyframes ui-htec-scale-3 {
  0%, 25% { height: var(--htec-rest); }
  30%, 37.5% { height: var(--htec-open); }
  42.5%, 75% { height: var(--htec-rest); }
  80%, 87.5% { height: var(--htec-open); }
  92.5%, 100% { height: var(--htec-rest); }
}
@keyframes ui-htec-scale-4 {
  0%, 37.5% { height: var(--htec-rest); }
  42.5%, 50% { height: var(--htec-open); }
  55%, 62.5% { height: var(--htec-rest); }
  67.5%, 75% { height: var(--htec-open); }
  80%, 100% { height: var(--htec-rest); }
}
@keyframes ui-htec-scale-5 {
  0%, 50% { height: var(--htec-rest); }
  55%, 62.5% { height: var(--htec-open); }
  67.5%, 100% { height: var(--htec-rest); }
}


/* ---- oroundo-rate.css ---- */
/* Oroundo · Rate the Tate: one thumb rates a look on three dimensions, one after the other */
@property --ui-oroundo-rate-x {
  syntax: '<number>';
  inherits: true;
  initial-value: 8;
}
@property --ui-oroundo-rate-n {
  syntax: '<integer>';
  inherits: true;
  initial-value: 8;
}
.ui-oroundo-rate {
  --track: 13em;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ui-oroundo-rate-value 7.5s cubic-bezier(0.2, 0, 0, 1) infinite;
}
.ui-oroundo-rate-tabs {
  display: flex;
  gap: 1.3em;
  margin-bottom: 4.7em;
}
.ui-oroundo-rate-tab {
  padding-bottom: 0.6em;
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.38;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 0.14em no-repeat;
}
.ui-oroundo-rate-tab-1 { opacity: 1; background-size: 100% 0.14em; }

.ui-oroundo-rate-slider {
  position: relative;
  width: var(--track);
  height: 0.1em;
  margin-bottom: 0.65em;
  border-radius: 0.1em;
  background: rgb(255 255 255 / 0.22);
}
.ui-oroundo-rate-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(var(--ui-oroundo-rate-x) * var(--track) / 10);
  border-radius: inherit;
  background: var(--color-white);
}
.ui-oroundo-rate-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.3em;
  height: 1.3em;
  margin: -0.65em 0 0 -0.65em;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 0.24em var(--color-grey-450), 0 0.4em 1em -0.3em rgb(0 0 0 / 0.6);
  transform: translateX(calc(var(--ui-oroundo-rate-x) * var(--track) / 10));
}
.ui-oroundo-rate-value {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 0.4em;
  font-size: 2.1em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.ui-oroundo-rate-value::after {
  counter-reset: ui-oroundo-rate-n var(--ui-oroundo-rate-n);
  content: counter(ui-oroundo-rate-n);
}
/* 7.5 s, three turns: Creativity 8 → Realization 6 → Like It 9; the thumb returns to 0 between them */
.ui-oroundo-rate-tab-1 { animation: ui-oroundo-rate-tab-1 7.5s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-oroundo-rate-tab-2 { animation: ui-oroundo-rate-tab-2 7.5s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-oroundo-rate-tab-3 { animation: ui-oroundo-rate-tab-3 7.5s cubic-bezier(0.2, 0, 0, 1) infinite; }

@keyframes ui-oroundo-rate-value {
  0%, 4%      { --ui-oroundo-rate-x: 0; --ui-oroundo-rate-n: 0; }
  17%, 28%    { --ui-oroundo-rate-x: 8; --ui-oroundo-rate-n: 8; }
  33.3%, 37.3% { --ui-oroundo-rate-x: 0; --ui-oroundo-rate-n: 0; }
  50.3%, 61.3% { --ui-oroundo-rate-x: 6; --ui-oroundo-rate-n: 6; }
  66.6%, 70.6% { --ui-oroundo-rate-x: 0; --ui-oroundo-rate-n: 0; }
  83.6%, 94.6% { --ui-oroundo-rate-x: 9; --ui-oroundo-rate-n: 9; }
  100%        { --ui-oroundo-rate-x: 0; --ui-oroundo-rate-n: 0; }
}
@keyframes ui-oroundo-rate-tab-1 {
  0%, 29%   { opacity: 1; background-size: 100% 0.14em; }
  33%, 96%  { opacity: 0.38; background-size: 0 0.14em; }
  100%      { opacity: 1; background-size: 100% 0.14em; }
}
@keyframes ui-oroundo-rate-tab-2 {
  0%, 29%   { opacity: 0.38; background-size: 0 0.14em; }
  33%, 62%  { opacity: 1; background-size: 100% 0.14em; }
  66%, 100% { opacity: 0.38; background-size: 0 0.14em; }
}
@keyframes ui-oroundo-rate-tab-3 {
  0%, 62%   { opacity: 0.38; background-size: 0 0.14em; }
  66%, 96%  { opacity: 1; background-size: 100% 0.14em; }
  100%      { opacity: 0.38; background-size: 0 0.14em; }
}


/* ---- oroundo-ticket.css ---- */
/* Oroundo · Cultural Places back office: a museum ticket is scanned and validated */
.ui-oroundo-ticket {
  --blue: #4a90e2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
}
.ui-oroundo-ticket-card {
  position: relative;
  display: flex;
  width: 17.8em;
  border-radius: 0.6em;
  background: var(--color-white);
  color: var(--color-grey-875);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 0 0 / 0.5);
}
.ui-oroundo-ticket-main {
  flex: 1;
  min-width: 0;
  padding: 0.95em 1em 0.9em;
}
.ui-oroundo-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8em;
}
.ui-oroundo-ticket-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border: 0.1em solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.8em;
  letter-spacing: -0.04em;
}
.ui-oroundo-ticket-price {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ui-oroundo-ticket-title,
.ui-oroundo-ticket-date { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-oroundo-ticket-title { font-size: 0.9em; font-weight: 600; line-height: 1.3; }
.ui-oroundo-ticket-date { margin-top: 0.15em; font-size: 0.68em; line-height: 1.4; }
.ui-oroundo-ticket-label { color: var(--color-grey-550); }

/* the stub: torn along a perforation, with a notch top and bottom */
.ui-oroundo-ticket-stub {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 5.6em;
  border-left: 0.12em dashed var(--color-grey-300);
}
.ui-oroundo-ticket-stub::before,
.ui-oroundo-ticket-stub::after {
  content: '';
  position: absolute;
  left: -0.56em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: var(--panel);
}
.ui-oroundo-ticket-stub::before { top: -0.5em; }
.ui-oroundo-ticket-stub::after { bottom: -0.5em; }

.ui-oroundo-ticket-frame {
  position: relative;
  display: block;
  width: 3.6em;
  height: 3.6em;
}
/* scanner corners */
.ui-oroundo-ticket-frame::before {
  content: '';
  position: absolute;
  inset: -0.4em;
  border-radius: 0.3em;
  --c: var(--blue);
  background:
    linear-gradient(var(--c), var(--c)) top left / 0.9em 0.12em,
    linear-gradient(var(--c), var(--c)) top left / 0.12em 0.9em,
    linear-gradient(var(--c), var(--c)) top right / 0.9em 0.12em,
    linear-gradient(var(--c), var(--c)) top right / 0.12em 0.9em,
    linear-gradient(var(--c), var(--c)) bottom left / 0.9em 0.12em,
    linear-gradient(var(--c), var(--c)) bottom left / 0.12em 0.9em,
    linear-gradient(var(--c), var(--c)) bottom right / 0.9em 0.12em,
    linear-gradient(var(--c), var(--c)) bottom right / 0.12em 0.9em;
  background-repeat: no-repeat;
}
.ui-oroundo-ticket-qr {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--color-grey-950);
  opacity: 0.18;
}
.ui-oroundo-ticket-line {
  position: absolute;
  left: -0.25em;
  right: -0.25em;
  top: 0;
  height: 0.12em;
  border-radius: 0.1em;
  background: var(--blue);
  box-shadow: 0 0 0.6em 0.1em color-mix(in srgb, var(--blue) 60%, transparent);
  opacity: 0;
}
.ui-oroundo-ticket-ok {
  position: absolute;
  inset: 0.55em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--color-white);
  box-shadow: 0 0.5em 1em -0.4em color-mix(in srgb, var(--blue) 70%, transparent);
}
.ui-oroundo-ticket-ok svg { width: 1.5em; height: 1.5em; }

/* status under the ticket: Scan Voucher → Ticket validated */
.ui-oroundo-ticket-status {
  display: grid;
  font-size: 0.82em;
  font-weight: 500;
}
.ui-oroundo-ticket-state {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  white-space: nowrap;
}
.ui-oroundo-ticket-state svg { width: 1.35em; height: 1.35em; flex: none; }
.ui-oroundo-ticket-scan { opacity: 0; color: rgb(255 255 255 / 0.65); }
.ui-oroundo-ticket-valid svg { color: var(--blue); }

/* 7 s: idle, the scan line passes down (8–35%), the check lands (40%), hold, then back to unscanned */
.ui-oroundo-ticket-line { animation: ui-oroundo-ticket-line 7s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.ui-oroundo-ticket-qr { animation: ui-oroundo-ticket-qr 7s ease infinite; }
.ui-oroundo-ticket-ok { animation: ui-oroundo-ticket-ok 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-oroundo-ticket-scan { animation: ui-oroundo-ticket-scan 7s ease infinite; }
.ui-oroundo-ticket-valid { animation: ui-oroundo-ticket-valid 7s ease infinite; }

@keyframes ui-oroundo-ticket-line {
  0%, 8%    { opacity: 0; transform: translateY(0); }
  11%       { opacity: 1; transform: translateY(0); }
  32%       { opacity: 1; transform: translateY(3.5em); }
  35%, 100% { opacity: 0; transform: translateY(3.5em); }
}
@keyframes ui-oroundo-ticket-qr {
  0%, 35%   { opacity: 1; }
  40%, 86%  { opacity: 0.18; }
  93%, 100% { opacity: 1; }
}
@keyframes ui-oroundo-ticket-ok {
  0%, 35%   { opacity: 0; transform: scale(0.4); }
  40%       { opacity: 1; transform: scale(1.12); }
  44%, 86%  { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes ui-oroundo-ticket-scan {
  0%, 35%   { opacity: 1; transform: translateY(0); }
  40%, 88%  { opacity: 0; transform: translateY(-0.4em); }
  94%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes ui-oroundo-ticket-valid {
  0%, 36%   { opacity: 0; transform: translateY(0.4em); }
  42%, 86%  { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(0.4em); }
}


/* ---- vivant-aromas.css ---- */
/* Vivant · Interactive Tasting Method, Aromas: the picks land on the list one by one */
.ui-vivant-aromas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ui-vivant-aromas-eyebrow {
  margin: 0 0 0.35em;
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.ui-vivant-aromas-title {
  margin: 0 0 0.85em;
  font-size: 1.45em;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ui-vivant-aromas-slots {
  display: grid;
  grid-template-columns: repeat(4, 2.9em);
  gap: 0.65em;
}
.ui-vivant-aromas-slot {
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 0.22em rgb(255 255 255 / 0.28), 0 0.6em 1.2em -0.5em rgb(0 0 0 / 0.5);
}
.ui-vivant-aromas-slot:not(:has(.ui-vivant-aromas-pick)) {
  background: rgb(255 255 255 / 0.09);
  box-shadow: none;
}
/* the app's own aroma artwork (cropped from its aromas screen) */
.ui-vivant-aromas-pick {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.ui-vivant-aromas-slot-1 { animation: ui-vivant-aromas-plate-1 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-aromas-slot-2 { animation: ui-vivant-aromas-plate-2 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-aromas-slot-3 { animation: ui-vivant-aromas-plate-3 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-aromas-slot-1 .ui-vivant-aromas-pick { animation: ui-vivant-aromas-pick-1 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-aromas-slot-2 .ui-vivant-aromas-pick { animation: ui-vivant-aromas-pick-2 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-aromas-slot-3 .ui-vivant-aromas-pick { animation: ui-vivant-aromas-pick-3 7s cubic-bezier(0.2, 0, 0, 1) infinite; }

/* empty plate → white plate, one after the other; all clear together at the end */
@keyframes ui-vivant-aromas-plate-1 {
  0%, 10%   { background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
  15%, 86%  { background: var(--color-white); box-shadow: 0 0 0 0.22em rgb(255 255 255 / 0.28), 0 0.6em 1.2em -0.5em rgb(0 0 0 / 0.5); }
  93%, 100% { background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
}
@keyframes ui-vivant-aromas-plate-2 {
  0%, 30%   { background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
  35%, 86%  { background: var(--color-white); box-shadow: 0 0 0 0.22em rgb(255 255 255 / 0.28), 0 0.6em 1.2em -0.5em rgb(0 0 0 / 0.5); }
  93%, 100% { background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
}
@keyframes ui-vivant-aromas-plate-3 {
  0%, 50%   { background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
  55%, 86%  { background: var(--color-white); box-shadow: 0 0 0 0.22em rgb(255 255 255 / 0.28), 0 0.6em 1.2em -0.5em rgb(0 0 0 / 0.5); }
  93%, 100% { background: rgb(255 255 255 / 0.09); box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
}
@keyframes ui-vivant-aromas-pick-1 {
  0%, 11%   { transform: scale(0.3); opacity: 0; }
  16%       { transform: scale(1.12); opacity: 1; }
  20%, 86%  { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0.6); opacity: 0; }
}
@keyframes ui-vivant-aromas-pick-2 {
  0%, 31%   { transform: scale(0.3); opacity: 0; }
  36%       { transform: scale(1.12); opacity: 1; }
  40%, 86%  { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0.6); opacity: 0; }
}
@keyframes ui-vivant-aromas-pick-3 {
  0%, 51%   { transform: scale(0.3); opacity: 0; }
  56%       { transform: scale(1.12); opacity: 1; }
  60%, 86%  { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0.6); opacity: 0; }
}


/* ---- vivant-leaderboard.css ---- */
/* Vivant · live session leaderboard: Julie answers right, +20, and passes Nicole */
@property --ui-vivant-leaderboard-n {
  syntax: '<integer>';
  inherits: true;
  initial-value: 100;
}
.ui-vivant-leaderboard {
  --gold: #e2a94b;
  --green: #7ad65a;
  --hi: color-mix(in srgb, var(--panel) 82%, var(--color-white));
  --hi-off: rgb(255 255 255 / 0);
  width: 17em;
  max-width: 100%;
  padding: 0.85em 0.6em 0.55em;
  box-sizing: border-box;
  border-radius: 0.9em;
  background: rgb(255 255 255 / 0.08);
  border: 0.07em solid rgb(255 255 255 / 0.1);
  box-shadow: 0 0.1em 0.2em rgb(0 0 0 / 0.06), 0 0.8em 2em -0.6em rgb(0 0 0 / 0.35);
}
.ui-vivant-leaderboard-head {
  margin: 0 0 0.35em 0.6em;
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ui-vivant-leaderboard-list { position: relative; }
.ui-vivant-leaderboard-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75em;
  height: 3.1em;
  padding: 0 0.6em;
  border-radius: 0.6em;
}
.ui-vivant-leaderboard-avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.92);
}
/* the advisors' own photos, cropped from the app's leaderboard */
.ui-vivant-leaderboard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.ui-vivant-leaderboard-nicole .ui-vivant-leaderboard-avatar {
  background: linear-gradient(135deg, var(--color-violet-350), var(--color-purple-700));
  box-shadow: 0 0 0 0.14em var(--gold);
}
.ui-vivant-leaderboard-julie .ui-vivant-leaderboard-avatar {
  background: linear-gradient(135deg, var(--color-red-250), var(--color-red-500));
}
.ui-vivant-leaderboard-john .ui-vivant-leaderboard-avatar {
  background: linear-gradient(135deg, var(--color-sky-300), var(--color-sky-550));
}
.ui-vivant-leaderboard-rank {
  position: absolute;
  left: -0.25em;
  bottom: -0.25em;
  display: grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--color-white);
  color: var(--color-grey-900);
}
.ui-vivant-leaderboard-rank.is-gold { background: var(--gold); color: var(--color-white); }
.ui-vivant-leaderboard-rank.is-next { opacity: 0; }
.ui-vivant-leaderboard-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.ui-vivant-leaderboard-name { font-size: 0.92em; font-weight: 600; line-height: 1.25; }
.ui-vivant-leaderboard-city {
  font-size: 0.72em;
  line-height: 1.35;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-vivant-leaderboard-pts {
  position: relative;
  font-size: 1.3em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.ui-vivant-leaderboard-count::after {
  counter-reset: ui-vivant-leaderboard-n var(--ui-vivant-leaderboard-n);
  content: counter(ui-vivant-leaderboard-n);
}
.ui-vivant-leaderboard-plus {
  position: absolute;
  right: 100%;
  top: 50%;
  margin-right: 0.45em;
  padding: 0.15em 0.45em;
  border-radius: 1em;
  font-size: 0.55em;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--green);
  color: var(--color-grey-900);
  transform: translateY(-50%);
  opacity: 0;
}

/* timeline, 7 s: +20 pops (15%), points count up (18–32%), Julie passes Nicole (38–50%),
   hold, then the list dips and comes back as it started (86–98%) */
.ui-vivant-leaderboard-list { animation: ui-vivant-leaderboard-dip 7s ease-in-out infinite; }
.ui-vivant-leaderboard-julie { animation: ui-vivant-leaderboard-up 7s cubic-bezier(0.2, 0, 0, 1) infinite; z-index: 1; }
.ui-vivant-leaderboard-nicole { animation: ui-vivant-leaderboard-down 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-leaderboard-plus { animation: ui-vivant-leaderboard-plus 7s cubic-bezier(0.2, 0, 0, 1) infinite; }
.ui-vivant-leaderboard-count { animation: ui-vivant-leaderboard-count 7s linear infinite; }
.ui-vivant-leaderboard-rank { animation: ui-vivant-leaderboard-old 7s ease infinite; }
.ui-vivant-leaderboard-rank.is-next { animation-name: ui-vivant-leaderboard-new; }
.ui-vivant-leaderboard-julie .ui-vivant-leaderboard-avatar { animation: ui-vivant-leaderboard-ring-in 7s ease infinite; }
.ui-vivant-leaderboard-nicole .ui-vivant-leaderboard-avatar { animation: ui-vivant-leaderboard-ring-out 7s ease infinite; }
.ui-vivant-leaderboard-john .ui-vivant-leaderboard-rank { animation: none; }

@keyframes ui-vivant-leaderboard-plus {
  0%, 13%  { opacity: 0; transform: translateY(-50%) scale(0.6); }
  17%      { opacity: 1; transform: translateY(-50%) scale(1.08); }
  20%, 30% { opacity: 1; transform: translateY(-50%) scale(1); }
  36%, 100% { opacity: 0; transform: translateY(-140%) scale(1); }
}
@keyframes ui-vivant-leaderboard-count {
  0%, 18%   { --ui-vivant-leaderboard-n: 100; }
  32%, 88%  { --ui-vivant-leaderboard-n: 120; }
  89%, 100% { --ui-vivant-leaderboard-n: 100; }
}
@keyframes ui-vivant-leaderboard-up {
  0%, 14%   { transform: translateY(0); background: var(--hi-off); }
  20%, 36%  { transform: translateY(0); background: var(--hi); }
  50%, 70%  { transform: translateY(-100%); background: var(--hi); }
  80%, 88%  { transform: translateY(-100%); background: var(--hi-off); }
  89%, 100% { transform: translateY(0); background: var(--hi-off); }
}
@keyframes ui-vivant-leaderboard-down {
  0%, 38%   { transform: translateY(0); }
  50%, 88%  { transform: translateY(100%); }
  89%, 100% { transform: translateY(0); }
}
@keyframes ui-vivant-leaderboard-old {
  0%, 42%   { opacity: 1; }
  48%, 88%  { opacity: 0; }
  89%, 100% { opacity: 1; }
}
@keyframes ui-vivant-leaderboard-new {
  0%, 42%   { opacity: 0; }
  48%, 88%  { opacity: 1; }
  89%, 100% { opacity: 0; }
}
@keyframes ui-vivant-leaderboard-ring-in {
  0%, 42%   { box-shadow: 0 0 0 0 var(--gold); }
  48%, 88%  { box-shadow: 0 0 0 0.14em var(--gold); }
  89%, 100% { box-shadow: 0 0 0 0 var(--gold); }
}
@keyframes ui-vivant-leaderboard-ring-out {
  0%, 42%   { box-shadow: 0 0 0 0.14em var(--gold); }
  48%, 88%  { box-shadow: 0 0 0 0 var(--gold); }
  89%, 100% { box-shadow: 0 0 0 0.14em var(--gold); }
}
@keyframes ui-vivant-leaderboard-dip {
  0%, 84%   { opacity: 1; }
  88%, 89%  { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@container (max-height: 190px) {
  .ui-vivant-leaderboard-head { display: none; }
  .ui-vivant-leaderboard { padding-top: 0.55em; }
}
