/* Tailend API preview. Everything is scoped under .te-apiprev. */
.te-apiprev {
  /* Tokens follow the host page's palette when it defines one (tailend.dev does);
     the fallbacks are the v2 brand, so the widget still stands alone. */
  --te-brand: var(--lead, #635bff);
  --te-brand-hover: var(--lead-hover, #544bf0);
  --te-on-brand: var(--on-lead, #fff);
  --te-brand-ink: var(--lead-ink, #4f46e5);
  --te-brand-soft: var(--lead-soft, #f3f2ff);
  --te-accent: var(--accent, #3ddc97);
  --te-accent-ink: var(--accent-ink, #0f7a4f);
  --te-ink: var(--ink, #17212b);
  --te-ink-2: var(--ink-2, #3a4652);
  --te-muted: var(--muted, #5f6b78);
  --te-line: var(--line, #e7ebef);
  --te-line-2: var(--line-2, #cfd6dd);
  --te-soft: var(--soft, #f7f8fa);
  --te-surface: var(--surface, #fff);
  --te-paper: var(--bg, #fff);
  --te-deep: var(--deep, #0d1117);
  --te-deep-2: var(--deep-2, #161b22);
  --te-deep-line: var(--deep-line, #1f2731);
  --te-code: var(--deep-text, #e6edf3);
  --te-code-muted: var(--deep-muted, #8b949e);
  --te-code-k: var(--code-k, #a5a0ff);
  --te-code-s: var(--code-s, #3ddc97);
  --te-code-n: var(--code-n, #79c0ff);
  --te-art-filter: var(--art-filter, none);
  --te-shadow-rgb: var(--shadow-rgb, 23, 33, 43);
  --te-display: "Libre Franklin", "Instrument Sans", system-ui, sans-serif;
  --te-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --te-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --te-radius: 18px;

  box-sizing: border-box;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--te-radius);
  background: var(--te-surface);
  color: var(--te-ink);
  font: 16px/1.55 var(--te-text);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--te-line), 0 2px 6px rgba(var(--te-shadow-rgb), .05), 0 26px 50px -24px rgba(var(--te-shadow-rgb), .26);
}
.te-apiprev *, .te-apiprev *::before, .te-apiprev *::after { box-sizing: border-box; }
.te-apiprev [hidden] { display: none !important; }
.te-apiprev .te-ap-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.te-apiprev button { font: inherit; color: inherit; }
.te-apiprev :focus-visible { outline: 2px solid var(--te-brand); outline-offset: 2px; border-radius: 8px; }

/* ---------- request bar ---------- */
.te-apiprev .te-ap-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px;
  border-bottom: 1px solid var(--te-line); background: var(--te-surface);
}
.te-apiprev .te-ap-type { position: relative; flex: none; }
.te-apiprev .te-ap-select {
  appearance: none; -webkit-appearance: none; margin: 0;
  font: 600 14px/1 var(--te-text); color: var(--te-ink);
  background: var(--te-soft); border: 1px solid var(--te-line); border-radius: 10px;
  padding: 11px 32px 11px 12px; cursor: pointer; min-height: 40px;
}
.te-apiprev .te-ap-select:hover { border-color: var(--te-line-2); }
.te-apiprev .te-ap-chev {
  position: absolute; right: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  fill: none; stroke: var(--te-ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.te-apiprev .te-ap-route {
  flex: 1; min-width: 0; display: block; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  font: 13px/40px var(--te-mono); color: var(--te-ink-2);
  background: var(--te-paper); border: 1px solid var(--te-line); border-radius: 10px; padding: 0 12px; height: 40px;
}
.te-apiprev .te-ap-route::-webkit-scrollbar { display: none; }
.te-apiprev .te-ap-method { font-weight: 500; color: var(--te-accent-ink); margin-right: 2px; }
.te-apiprev .te-ap-path b { font-weight: 500; color: var(--te-brand-ink); }
.te-apiprev .te-ap-query { color: var(--te-muted); }
.te-apiprev .te-ap-run {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px;
  border: 0; border-radius: 10px; background: var(--te-brand); color: var(--te-on-brand); cursor: pointer;
  font: 600 15px/1 var(--te-text); transition: background .15s, transform .15s;
}
.te-apiprev .te-ap-run:hover { background: var(--te-brand-hover); }
.te-apiprev .te-ap-run:active { transform: translateY(1px); }
.te-apiprev .te-ap-run svg { width: 15px; height: 15px; fill: currentColor; }
.te-apiprev .te-ap-run[aria-busy="true"] { background: var(--te-brand-hover); cursor: progress; }
.te-apiprev .te-ap-run[aria-busy="true"] svg { animation: te-ap-pulse 1s ease-in-out infinite; }
@keyframes te-ap-pulse { 50% { opacity: .35; } }

/* ---------- stage (the street) ---------- */
.te-apiprev .te-ap-stage { /* plain paper, no grid */
  position: relative; aspect-ratio: 10 / 3; overflow: hidden;
  background: linear-gradient(180deg, var(--te-soft) 0%, var(--te-paper) 70%);
}
.te-apiprev .te-ap-canvas, .te-apiprev .te-ap-still, .te-apiprev .te-ap-still svg {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* The street is drawn on white: multiply lets the paper through; the filter keys its colours to the palette. */
.te-apiprev .te-ap-canvas, .te-apiprev .te-ap-still { mix-blend-mode: multiply; filter: var(--te-art-filter); }
.te-apiprev .te-ap-skip {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font: 500 12px/1 var(--te-mono); color: var(--te-ink-2); background: var(--te-surface);
  border: 1px solid var(--te-line); border-radius: 999px; padding: 7px 11px; cursor: pointer;
}
.te-apiprev .te-ap-skip:hover { color: var(--te-ink); border-color: var(--te-line-2); }

/* CSS fallback when the Rive runtime is unavailable */
.te-apiprev .te-ap-still #te-street, .te-apiprev .te-ap-still #te-front { transition: transform 1.5s cubic-bezier(.45, 0, .12, 1); }
.te-apiprev .te-ap-still #te-lit { transition: opacity .45s ease .1s; }
.te-apiprev .te-ap-still.is-away #te-street { transform: translateX(660px); }
.te-apiprev .te-ap-still.is-away #te-front { transform: translateX(891px); }
.te-apiprev .te-ap-still.is-dark #te-lit { opacity: 0; }

/* ---------- response window ---------- */
.te-apiprev .te-ap-window { background: var(--te-deep); color: var(--te-code); }
.te-apiprev .te-ap-winbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--te-deep-line);
}
.te-apiprev .te-ap-dots { display: inline-flex; gap: 6px; }
.te-apiprev .te-ap-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--te-deep-line); display: block; }
.te-apiprev .te-ap-title { font: 500 12px/1 var(--te-mono); color: var(--te-code-muted); }
.te-apiprev .te-ap-status { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--te-mono); color: var(--te-code); }
.te-apiprev .te-ap-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--te-accent); }
.te-apiprev .te-ap-views {
  margin-left: auto; display: inline-flex; padding: 2px; border: 1px solid var(--te-deep-line); border-radius: 8px; background: var(--te-deep-2);
}
.te-apiprev .te-ap-views button {
  border: 0; background: transparent; color: var(--te-code-muted); font: 500 12px/1 var(--te-mono);
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.te-apiprev .te-ap-views button[aria-pressed="true"] { background: var(--te-deep-line); color: var(--te-code); }
/* Fixed height in every state (empty, loading skeleton, results): the panel never grows, so nothing below it
   moves when the demo auto-plays, and smooth-scroll anchors (e.g. #coverage) land where they should. */
.te-apiprev .te-ap-body {
  display: grid; height: 420px; overflow: auto; overscroll-behavior: auto; /* chain to the page at the ends so wheel/trackpad never feels stuck */
}
.te-apiprev .te-ap-body.is-empty { overflow: hidden; align-content: center; }
.te-apiprev .te-ap-body:focus-visible { outline-offset: -2px; border-radius: 0; }
.te-apiprev .te-ap-empty { margin: 0; padding: 20px 16px; font: 13px/1.5 var(--te-mono); color: var(--te-code-muted); }
.te-apiprev .te-ap-empty b { color: var(--te-code); font-weight: 500; }

/* JSON view */
.te-apiprev .te-ap-json {
  margin: 0; padding: 14px 16px 20px; color: var(--te-code); font: 12.5px/1.65 var(--te-mono); tab-size: 2;
  white-space: pre; overflow-x: auto;
}
.te-apiprev .te-ap-json .k { color: var(--te-code-k); }
.te-apiprev .te-ap-json .s { color: var(--te-code-s); }
.te-apiprev .te-ap-json .n { color: var(--te-code-n); }
.te-apiprev .te-ap-json .b { color: #f0b37e; }
.te-apiprev .te-ap-json .z { color: var(--te-code-muted); }
.te-apiprev .te-ap-json .ln { display: block; }
.te-apiprev.is-animating .te-ap-json .ln { animation: te-ap-line .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes te-ap-line { from { opacity: 0; transform: translateY(4px); } }

/* Cards view */
.te-apiprev .te-ap-cards { list-style: none; margin: 0; padding: 12px; display: grid; gap: 10px; }
.te-apiprev .te-ap-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  padding: 14px; border: 1px solid var(--te-deep-line); border-radius: 12px; background: var(--te-deep-2);
}
.te-apiprev.is-animating .te-ap-card { animation: te-ap-card .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes te-ap-card { from { opacity: 0; transform: translateY(10px); } }
.te-apiprev .te-ap-when {
  display: grid; place-items: center; align-content: center; height: 52px; border-radius: 10px;
  background: color-mix(in srgb, var(--te-code-k) 12%, var(--te-deep)); border: 1px solid color-mix(in srgb, var(--te-code-k) 26%, var(--te-deep)); color: var(--te-code-k); text-align: center;
  font: 500 10.5px/1.15 var(--te-mono); letter-spacing: .04em; text-transform: uppercase;
}
.te-apiprev .te-ap-when b { display: block; font: 700 19px/1.05 var(--te-display); letter-spacing: -0.02em; color: var(--te-code); text-transform: none; }
.te-apiprev .te-ap-card h3 {
  margin: 0; font: 700 16px/1.3 var(--te-display); letter-spacing: -0.01em; color: var(--te-code);
}
.te-apiprev .te-ap-sub { margin: 3px 0 0; font-size: 14px; color: var(--te-code-muted); }
.te-apiprev .te-ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.te-apiprev .te-ap-chip {
  display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--te-mono);
  padding: 5px 8px; border-radius: 999px; border: 1px solid var(--te-deep-line); color: var(--te-code); white-space: nowrap;
}
.te-apiprev .te-ap-chip.is-free { border-color: color-mix(in srgb, var(--te-code-s) 45%, transparent); color: var(--te-code-s); }
.te-apiprev .te-ap-chip.is-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--te-accent); }
.te-apiprev .te-ap-meta {
  margin: 0; padding: 4px 16px 14px; font: 12px/1.5 var(--te-mono); color: var(--te-code-muted);
}
.te-apiprev .te-ap-meta code { color: var(--te-code); font: inherit; }

.te-apiprev .te-ap-note {
  margin: 0; padding: 10px 16px; font: 12px/1.5 var(--te-mono); color: var(--te-muted);
  background: var(--te-surface); border-top: 1px solid var(--te-line);
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .te-apiprev .te-ap-bar { flex-wrap: wrap; }
  .te-apiprev .te-ap-route { order: 3; flex-basis: 100%; }
  .te-apiprev .te-ap-type { flex: 1; }
  .te-apiprev .te-ap-select { width: 100%; }
  .te-apiprev .te-ap-stage { aspect-ratio: 16 / 7; }
  .te-apiprev .te-ap-card { grid-template-columns: 1fr; gap: 10px; }
  .te-apiprev .te-ap-when { grid-auto-flow: column; justify-content: start; gap: 6px; height: auto; padding: 6px 9px; width: max-content; }
  .te-apiprev .te-ap-when b { font-size: 14px; }
  .te-apiprev .te-ap-body { height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  .te-apiprev *, .te-apiprev *::before, .te-apiprev *::after {
    animation: none !important; transition: none !important;
  }
}

/* ---- Ink street: per-type scenes (generated by street-src/build.py; do not hand-edit) ---- */
.te-apiprev .te-ap-stage { container-type: inline-size; aspect-ratio: 2.7 / 1; }
.te-apiprev .te-ap-still .strip { position: absolute; left: 0; bottom: 0; height: 100%; aspect-ratio: 6.5362; will-change: transform; }
.te-apiprev .te-ap-still .strip > img { display: block; width: 100%; height: 100%; }
.te-apiprev .te-ap-still .fx { position: absolute; display: block; pointer-events: none; }
.te-apiprev .te-ap-still { --te-lead: var(--lead, #4f48c4); }
.te-ap-still .spr { overflow: hidden; opacity: 0; }
.te-ap-still .spr img { display: block; height: 100%; max-width: none; }

/* events: the lantern comes on (warm glass + soft halo, multiplied so the ink shows through) */
.te-ap-still .lamp { overflow: visible; mix-blend-mode: multiply; }
.te-ap-still .lamp .halo, .te-ap-still .lamp .glass { opacity: 0; }
.te-ap-still.play-events .lamp .halo, .te-ap-still.play-events .lamp .glass { opacity: 1; }

/* classes: the cafe window shows a pottery studio (8-frame loop, clipped to the arch) */
.te-ap-still.play-classes .win { opacity: 1; }

/* camps: bunting unfurls between the trees, then flutters */
.te-ap-still .bun { overflow: visible; opacity: 0; }
.te-ap-still .bun .rope { stroke-dasharray: 1; stroke-dashoffset: 0; }
.te-ap-still.play-camps .bun { opacity: 1; }

/* places: a squirrel climbs, then sits and flicks its tail (frame strips) */
.te-ap-still .sq { opacity: 0; }
.te-ap-still.play-places .sq-sit { opacity: 1; }
.te-ap-still.play-places .sq-climb { opacity: 0; }

/* changes: a bus pulls in; one rider gets off (new), one gets on (removed), the sign changes */
.te-ap-still .stopsign { opacity: 0; overflow: visible; }
.te-ap-still.play-changes .stopsign { opacity: 1; }
.te-ap-still.play-changes .bus { opacity: 1; }
.te-ap-still.play-changes .rd-off { opacity: 1; transform: translateX(150%); }
.te-ap-still .bus img { transform: translateX(-75%); }

/* activity: string lights across the street (lit bulbs = score), people pass both ways, birds drift */
.te-ap-still .lights { opacity: 0; overflow: visible; }
.te-ap-still .lights .wire { stroke-dasharray: 1; stroke-dashoffset: 0; }
.te-ap-still .lights .halo { opacity: 0; }
.te-ap-still.play-activity .lights { opacity: 1; }
.te-ap-still.play-activity .lights .on .fill { fill: var(--te-accent); }
.te-ap-still.play-activity .lights .on .halo { opacity: .38; }
.te-ap-still.play-activity .pp { opacity: 1; transform: translateX(var(--rest)) scaleX(var(--dir)); }

@media (prefers-reduced-motion: no-preference) {
  .te-ap-still.play-events .lamp .glass { animation: te-flicker 1.2s steps(1, end) both; }
  .te-ap-still.play-events .lamp .halo { animation: te-bloom 1.9s ease-out both; }
  .te-ap-still.play-classes .win { animation: te-warm .7s ease-out both; }
  .te-ap-still.play-classes .win img { animation: te-frames 1.2s steps(8) .4s infinite; }
  .te-ap-still.play-camps .bun .rope { animation: te-rope .5s ease-out both; }
  .te-ap-still.play-camps .bun .fl { animation: te-flag .35s cubic-bezier(.3, 1.5, .5, 1) calc(.18s + var(--i) * .06s) both, te-wave 2.4s ease-in-out calc(1s + var(--i) * .12s) infinite alternate; }

  /* sprites: frame strips advance with steps(); the wrappers move */
  .te-ap-still.play-places .sq-climb { opacity: 1; animation: te-sq-climb 2.9s cubic-bezier(.4, .1, .55, 1) both; }
  .te-ap-still.play-places .sq-climb img { animation: te-frames .72s steps(8) infinite; }
  .te-ap-still.play-places .sq-sit { opacity: 0; animation: te-sq-sit 2.9s step-end both; }
  .te-ap-still.play-places .sq-sit img { animation: te-frames 2s steps(6) 2.9s infinite; }

  .te-ap-still.play-changes .stopsign { animation: te-fadein .5s ease-out both; }
  .te-ap-still.play-changes .bus { animation: te-bus-in 1.5s cubic-bezier(.15, .75, .25, 1) both; }
  .te-ap-still.play-changes .bus img { transform: none; animation: te-bus-frames 4.6s steps(1, end) 1.5s both; }
  .te-ap-still.play-changes .rd-off { opacity: 0; transform: none; animation: te-off 3.4s ease-out 2.2s both; }
  .te-ap-still.play-changes .rd-off img { animation: te-frames .62s steps(8) 2.2s infinite; }
  .te-ap-still.play-changes .rd-on { animation: te-on 2.6s linear 2.4s both; }
  .te-ap-still.play-changes .rd-on img { animation: te-frames .5s steps(8) 2.4s infinite; }

  .te-ap-still.play-activity .lights .wire { animation: te-wire .9s ease-out both; }
  .te-ap-still.play-activity .lights .on .fill { animation: te-bulb-fill .45s ease-out calc(.55s + var(--i) * .075s) both; }
  .te-ap-still.play-activity .lights .on .halo { animation: te-bulb-halo .6s ease-out calc(.55s + var(--i) * .075s) both, te-twinkle 3.2s ease-in-out calc(2.6s + var(--i) * .17s) infinite alternate; }
  .te-ap-still.play-activity .pp { opacity: 0; transform: scaleX(var(--dir)); animation: te-pass var(--dur) linear var(--dl) both; }
  .te-ap-still.play-activity .spr-adult img { animation: te-frames .62s steps(8) var(--dl) infinite; }
  .te-ap-still.play-activity .spr-kid img { animation: te-frames .5s steps(8) var(--dl) infinite; }
  .te-ap-still.play-activity .spr-cyc img { animation: te-frames .5s steps(6) var(--dl) infinite; }
  .te-ap-still.play-activity .spr-bird img { animation: te-frames .45s steps(6) var(--dl) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .te-ap-still.play-places .sq-sit img { transform: none; }
  .te-ap-still.play-activity .pp { transform: translateX(var(--rest)) scaleX(var(--dir)); }
}
@keyframes te-frames { to { transform: translateX(-100%); } }
@keyframes te-flicker { 0% { opacity: 0; } 12% { opacity: 1; } 22% { opacity: .1; } 36% { opacity: .9; } 44% { opacity: .05; } 60%, 100% { opacity: 1; } }
@keyframes te-bloom { 0% { opacity: 0; } 14% { opacity: 1; } 24% { opacity: .1; } 38% { opacity: .9; } 46% { opacity: .05; } 62%, 100% { opacity: 1; } }
@keyframes te-warm { from { opacity: 0; } to { opacity: 1; } }
@keyframes te-rope { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes te-flag { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes te-wave { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes te-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes te-sq-climb { 0% { transform: translateY(0); opacity: 1; } 93% { opacity: 1; } 100% { transform: translateY(-223%); opacity: 0; } }
@keyframes te-sq-sit { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes te-bus-in { from { transform: translateX(-250%); opacity: 1; } 70% { transform: translateX(-3%); } 85% { transform: translateX(0); } to { transform: none; opacity: 1; } }
@keyframes te-bus-frames { 0% { transform: translateX(0); } 24% { transform: translateX(-25%); } 30% { transform: translateX(-50%); } 70% { transform: translateX(-25%); } 76% { transform: translateX(0); } 90%, 100% { transform: translateX(-75%); } }
@keyframes te-off { 0% { opacity: 0; transform: translateX(-30%); } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(300%); } }
@keyframes te-on { 0% { opacity: 0; transform: translateX(380%) scaleX(-1); } 12% { opacity: 1; transform: translateX(340%) scaleX(-1); } 82% { opacity: 1; transform: translateX(-10%) scaleX(-1); } 100% { opacity: 0; transform: translateX(-40%) scaleX(-1); } }
@keyframes te-pass { 0% { opacity: 0; transform: translateX(0) scaleX(var(--dir)); } 6% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--dir) * 108cqw)) scaleX(var(--dir)); } }
@keyframes te-wire { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes te-bulb-fill { from { fill: #fff; } to { fill: var(--te-accent); } }
@keyframes te-bulb-halo { from { opacity: 0; } to { opacity: .38; } }
@keyframes te-twinkle { from { opacity: .38; } to { opacity: .2; } }

/* changes as a timeline */
.te-ap-timeline { list-style: none; margin: 0; padding: 4px 2px 6px; position: relative; }
.te-ap-timeline .tl-day { font: 500 11px/1 var(--te-mono); color: var(--te-code-muted); letter-spacing: .04em; text-transform: uppercase; padding: 4px 0 10px 80px; }
.te-ap-timeline .tl { display: grid; grid-template-columns: 62px 16px minmax(0, 1fr); gap: 0 10px; position: relative; padding-bottom: 18px; }
.te-ap-timeline .tl:last-of-type { padding-bottom: 6px; }
.te-ap-timeline .tl time { font: 500 12px/1.5 var(--te-mono); color: var(--te-code-muted); text-align: right; padding-top: 2px; }
.te-ap-timeline .tl .dot { position: relative; z-index: 1; width: 11px; height: 11px; margin: 5px 0 0 2px; border-radius: 50%; border: 2px solid var(--te-accent); background: transparent; box-sizing: border-box; }
.te-ap-timeline .tl::before { content: ""; position: absolute; left: 76px; top: 18px; bottom: -2px; width: 2px; background: color-mix(in srgb, var(--te-code-muted) 35%, transparent); }
.te-ap-timeline .tl:last-of-type::before { display: none; }
.te-apiprev .te-ap-timeline .tl h3 { margin: 0; font: 700 15px/1.3 var(--te-display); letter-spacing: -0.01em; color: var(--te-code); }
.te-ap-timeline .tl-created .dot { background: var(--te-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--te-accent) 25%, transparent); }
.te-ap-timeline .tl-archived .dot { border-color: var(--te-code-muted); background: repeating-linear-gradient(45deg, var(--te-code-muted) 0 2px, transparent 2px 4px); }
.te-ap-timeline .tl-archived h3 { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--te-code-muted) 70%, transparent); }
.te-ap-timeline .tl-date_changed .dot { border-radius: 3px; transform: rotate(45deg); }
.te-ap-timeline .tl-price_changed .dot { border-color: var(--lead, #8b84ff); }

/* skeleton loaders: placeholder street while the art loads, placeholder cards while a request runs */
.te-ap-still .skel-street { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 1.6%; padding: 0 3% 7%; transition: opacity .45s ease; z-index: 1; }
.te-ap-still .skel-street i { display: block; flex: none; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--te-line-2, #d8d2c8) 55%, transparent); }
.te-ap-still .skel-street i.tree { border-radius: 50% 50% 14% 14%; }
.te-ap-still .skel-street b { position: absolute; left: 3%; right: 3%; bottom: 5.5%; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--te-line-2, #d8d2c8) 70%, transparent); }
.te-ap-still:not(.is-loading) .skel-street { opacity: 0; pointer-events: none; }
.te-ap-still .strip > img { transition: opacity .5s ease; }
.te-ap-still.is-loading .strip > img { opacity: 0; }
.te-ap-timeline { list-style: none; }
.te-ap-card.is-skel i, .te-ap-skel-json i { display: block; border-radius: 6px; background: rgba(255, 255, 255, .09); }
.te-ap-card.is-skel .te-ap-when { background: rgba(255, 255, 255, .08); border-color: transparent; }
.te-ap-card.is-skel .s1 { height: 16px; width: 62%; margin: 3px 0 9px; }
.te-ap-card.is-skel .s2 { height: 12px; width: 84%; margin: 0 0 12px; }
.te-ap-card.is-skel .c { height: 22px; width: 74px; border-radius: 999px; }
.te-ap-card.is-skel .c.w { width: 108px; }
.te-ap-skel-json { padding: 4px 2px; }
.te-ap-skel-json i { height: 12px; margin: 0 0 11px; }
@media (prefers-reduced-motion: no-preference) {
  .te-ap-still .skel-street i, .te-ap-still .skel-street b { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); background-size: 220% 100%; animation: te-shimmer 1.4s ease-in-out infinite; }
  .te-ap-card.is-skel i, .te-ap-card.is-skel .te-ap-when, .te-ap-skel-json i { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .13) 50%, transparent 70%); background-size: 220% 100%; animation: te-shimmer 1.4s ease-in-out infinite; }
  .te-ap-card.is-skel { animation: none; opacity: 1; }
}
@keyframes te-shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
/* phones: a taller stage so the street stays legible */
@media (max-width: 640px) { .te-apiprev .te-ap-stage { aspect-ratio: 2 / 1; } }
