/* Automation 03 live demo: customer chat (website widget or WhatsApp), "Behind the scenes" log
   and support team inbox. Stage chrome, controls and the phone come from demo.css and
   phone.css; the widget from sup-widget.css. Every rule is scoped under #demo, every class
   invented here starts with sup-. Layout: chat | log | inbox at 1280px and up, chat | side
   with the two panels stacked from 901 to 1279px, chat on top and a Behind the scenes / Inbox
   carousel at 900px and below. */

#demo [hidden] {
  display: none !important;
}

#demo-stage {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

/* ---------- Tabs: four equal pills in one row; label and meta stacked in each pill ---------- */

#demo .sup-demo-bar {
  align-items: flex-start;
}

#demo .sup-demo-bar .tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

#demo .sup-demo-bar .tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  padding: 12px 20px;
  text-align: left;
}

#demo .sup-demo-bar .tab-n {
  grid-row: 1 / span 2;
}

#demo .sup-demo-bar .tab-l,
#demo .sup-demo-bar .tab-m {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#demo .sup-demo-bar .tab-l {
  grid-column: 2;
  grid-row: 1;
}

#demo .sup-demo-bar .tab-m {
  grid-column: 2;
  grid-row: 2;
}

#demo .sup-demo-bar .demo-note {
  margin-left: auto;
}

@media (max-width: 1099px) {
  #demo .sup-demo-bar .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #demo .sup-demo-bar .demo-note {
    margin-left: 0;
  }
}

@media (max-width: 639px) {
  #demo .sup-demo-bar .tab {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 0;
  }

  #demo .sup-demo-bar .tab-n {
    grid-row: auto;
  }

  #demo .sup-demo-bar .tab-l {
    grid-row: auto;
  }

  #demo .sup-demo-bar .tab-m {
    display: none;
  }

  #demo .sup-demo-bar .tab-l {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }
}

/* ---------- Grid: chat column, then the side area (log and inbox) ---------- */

#demo .sup-grid {
  --sup-chat-h: 520px;
  grid-template-columns: 340px minmax(0, 1fr);
}

#demo .sup-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: stretch;
  height: calc(var(--sup-chat-h) + 52px);
  min-width: 0;
}

/* Label row (40px, the channel switch sets it) + gap (12px) come first, so both panels end where the chat box ends */
#demo .sup-col-log,
#demo .sup-col-inbox {
  min-height: 0;
}

#demo .sup-label {
  min-height: 40px;
}

/* ---------- Customer column: channel switch, chat box, controls ---------- */

#demo .sup-channel {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 999px;
}

#demo .sup-channel button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ash);
  transition: color 0.2s, background-color 0.2s;
}

#demo .sup-channel button svg {
  flex: none;
  width: 13px;
  height: 13px;
}

#demo .sup-channel button:hover {
  color: var(--bone);
}

#demo .sup-channel button[aria-pressed="true"] {
  background: var(--bone);
  color: var(--ink);
}

/* The chat box is always the same size; the widget fills it, the phone is centred in it */
#demo .sup-chat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sup-chat-h);
  --phone-fs: 11.5px;
  --wg-fs: 13.5px;
}

#demo .sup-demo-wg {
  position: absolute;
  inset: 0;
}

#demo .sup-demo-phone {
  flex: none;
}

/* ---------- Panels: the log and the inbox share the look of the crm panels ---------- */

#demo .sup-log {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 10px 16px 12px;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#demo .sup-col-log {
  display: flex;
  flex-direction: column;
}

#demo .sup-col-inbox {
  display: flex;
  flex-direction: column;
}

/* ---------- Behind the scenes: one entry per step of the agent ---------- */

#demo .sup-log-e {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  animation: sup-log-in 0.35s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

#demo .sup-log-e:first-child {
  border-top: 0;
}

#demo .sup-log-e.is-new::before {
  content: "";
  position: absolute;
  inset: 4px -10px;
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: var(--r-lg);
  pointer-events: none;
  animation: sup-log-new 1.2s var(--ease-std) forwards;
}

#demo .sup-log-ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--elev);
  color: var(--ash);
}

#demo .sup-log-ic svg {
  width: 14px;
  height: 14px;
}

#demo .sup-log-b {
  min-width: 0;
}

#demo .sup-log-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#demo .sup-log-t {
  min-width: 0;
  margin: 0;
  padding-top: 1px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--bone);
  overflow-wrap: anywhere;
}

#demo .sup-log-tm {
  flex: none;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ash);
  white-space: nowrap;
}

#demo .sup-log-done {
  color: var(--ok);
}

/* Icon colours by kind: search and lookup are gold while they run, then green */
#demo .sup-log-e--intent .sup-log-ic,
#demo .sup-log-e--event .sup-log-ic,
#demo .sup-log-e--idle .sup-log-ic {
  color: var(--ash);
}

#demo .sup-log-e--search .sup-log-ic,
#demo .sup-log-e--lookup .sup-log-ic {
  color: var(--accent);
}

#demo .sup-log-e--search.is-done .sup-log-ic,
#demo .sup-log-e--lookup.is-done .sup-log-ic,
#demo .sup-log-e--found .sup-log-ic,
#demo .sup-log-e--answer .sup-log-ic,
#demo .sup-log-e--action .sup-log-ic {
  color: var(--ok);
}

#demo .sup-log-e--handoff .sup-log-ic,
#demo .sup-log-e--ticket .sup-log-ic {
  color: var(--danger);
}

#demo .sup-log-e--guard .sup-log-ic {
  color: var(--info);
}

#demo .sup-log-e--idle {
  padding-top: 0;
}

#demo .sup-log-e--idle .sup-log-t {
  color: var(--ash);
}

/* Pending: three dots after the text and a 2px gold shimmer under it */
#demo .sup-log-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

#demo .sup-log-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: sup-dot 1.2s ease-in-out infinite;
}

#demo .sup-log-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

#demo .sup-log-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

#demo .sup-log-shim {
  display: block;
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--accent) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: sup-shim 1.4s linear infinite;
}

/* Snippet card: the document the answer came from, or the order data the lookup found */
#demo .sup-doc,
#demo .sup-kv {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--elev);
  border-radius: 0 6px 6px 0;
}

#demo .sup-doc {
  border-left: 2px solid var(--accent);
}

#demo .sup-kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  align-items: baseline;
  border-left: 2px solid var(--line);
}

#demo .sup-doc-t,
#demo .sup-kv dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .sup-doc-t {
  margin-bottom: 6px;
}

#demo .sup-doc-l {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bone-70);
}

#demo .sup-doc-l + .sup-doc-l {
  margin-top: 4px;
}

#demo .sup-kv dd {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--bone);
  overflow-wrap: anywhere;
}

/* ---------- Support team inbox ---------- */

#demo .sup-inbox {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

#demo .sup-inbox-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

#demo .sup-count {
  min-width: 0;
}

#demo .sup-count-l {
  display: block;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ash);
}

#demo .sup-count-n {
  position: relative;
  display: inline-block;
  margin-top: 6px;
}

#demo .sup-roll {
  position: relative;
  display: block;
  height: 1.1em;
  overflow: hidden;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--bone);
}

#demo .sup-count--ai .sup-roll {
  font-size: 34px;
}

#demo .sup-count--team .sup-roll {
  font-size: 22px;
  color: var(--bone-70);
}

#demo .sup-roll-v {
  display: block;
}

#demo .sup-roll-v.is-out {
  position: absolute;
  left: 0;
  top: 0;
  animation: sup-roll-out 0.45s var(--ease-out) forwards;
}

#demo .sup-roll-v.is-in {
  animation: sup-roll-in 0.45s var(--ease-out) both;
}

#demo .sup-plus {
  position: absolute;
  left: calc(100% + 6px);
  top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent);
  pointer-events: none;
  animation: sup-plus-up 0.9s var(--ease-out) forwards;
}

#demo .sup-inbox-list {
  flex: 1 1 0;
  min-height: 0;
  padding: 6px 14px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#demo .sup-inbox-list.is-overflow {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
}

/* Rows: initial, title with who · tag underneath, ago and a state chip on the right */
#demo .sup-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -10px;
  padding: 12px 10px;
  border-top: 1px solid var(--line-soft);
}

#demo .sup-row:first-child {
  border-top: 0;
}

#demo .sup-row.is-new {
  animation: sup-row-in 0.5s var(--ease-out) both, sup-row-gold 1.6s ease-out both;
}

#demo .sup-row-av {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--elev);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--bone-70);
}

#demo .sup-row-main {
  min-width: 0;
}

#demo .sup-row-t {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  color: var(--bone);
}

#demo .sup-row-m {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ash);
}

#demo .sup-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#demo .sup-row-ago {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ash);
}

#demo .sup-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

#demo .sup-chip--ai {
  color: var(--ok);
  border-color: hsl(152 60% 48% / 0.4);
}

#demo .sup-chip--team {
  color: var(--info);
  border-color: hsl(214 85% 66% / 0.4);
}

/* Hand-off ticket: red left edge, priority chip, summary and suggested action */
#demo .sup-ticket {
  margin: 8px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-lg);
  background: hsl(0 70% 52% / 0.06);
  animation: sup-ticket-in 0.5s var(--ease-out) both;
}

#demo .sup-ticket.is-glow {
  animation: sup-ticket-in 0.5s var(--ease-out) both, sup-ticket-glow 1.6s ease-out both;
}

#demo .sup-ticket-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

#demo .sup-ticket-pri {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid hsl(0 70% 56% / 0.5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--danger);
}

#demo .sup-ticket-t {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--bone);
}

#demo .sup-ticket-who {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
  color: var(--ash);
  overflow-wrap: anywhere;
}

#demo .sup-ticket-f {
  margin-top: 12px;
}

#demo .sup-ticket-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .sup-ticket-v {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--bone);
}

#demo .sup-ticket-v--soft {
  color: var(--bone-70);
}

#demo .sup-ticket-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

#demo .sup-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
  color: var(--ash);
}

#demo .sup-attach svg {
  flex: none;
  width: 13px;
  height: 13px;
}

#demo .sup-assign {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--bone);
  cursor: default;
}

/* ---------- Caption under the stage (presale scenario only) ---------- */

#demo .sup-demo-caption {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
  color: var(--bone-70);
}

/* ---------- 1280px and up: the chat box and the panels are 560px tall ---------- */

@media (min-width: 1280px) {
  #demo .sup-chat {
    --phone-fs: 12.5px;
  }
}

/* ---------- 901 to 1279px: chat column, then the log above the inbox ---------- */

@media (max-width: 1279px) {
  #demo .sup-grid {
    --sup-chat-h: 520px;
  }

  #demo .sup-side {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }

  #demo .demo-status,
  #demo .demo-status-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 1279px) and (min-width: 901px) {
  #demo .sup-side > .demo-col {
    min-height: 0;
  }
}

/* ---------- 900px and below: chat on top, Behind the scenes / Inbox carousel under it ---------- */

@media (max-width: 900px) {
  #demo .sup-grid {
    grid-template-columns: minmax(0, 1fr);
    --sup-chat-h: 520px;
  }

  #demo .sup-side {
    display: flex;
    height: calc(var(--sup-chat-h) + 40px);
    gap: 0;
    overflow: hidden;
  }

  #demo .sup-side > .demo-col {
    flex: none;
    width: 100%;
    transition: transform 0.6s var(--ease-out), visibility 0.6s;
  }

  #demo .sup-side[data-show="inbox"] > .demo-col {
    transform: translateX(-100%);
  }

  #demo .sup-side[data-show="inbox"] > .sup-col-log,
  #demo .sup-side:not([data-show="inbox"]) > .sup-col-inbox {
    visibility: hidden;
  }

  #demo .sup-col-chat {
    --phone-fs: 11.5px;
  }
}

/* Phones: the channel switch drops under the label when there is no room beside it */
@media (max-width: 480px) {
  #demo .sup-label {
    flex-wrap: wrap;
    row-gap: 8px;
    min-height: 0;
  }

  #demo .sup-label > .sup-channel {
    max-width: 100%;
  }

  #demo .sup-chat {
    --wg-fs: 13px;
  }
}

/* Touch: bigger targets for the channel switch */
@media (pointer: coarse) {
  #demo .sup-channel button {
    min-height: 40px;
  }
}

/* Behind the scenes / Inbox switch (900px and below): same segmented look, same heights */
#demo .demo-side-nav {
  gap: 2px;
  padding: 3px;
  box-sizing: border-box;
}

#demo .demo-side-nav button {
  position: relative;
  min-height: 32px;
  height: auto;
  box-sizing: border-box;
  padding: 0 14px;
  line-height: 1.2;
}

#demo .demo-side-nav button.has-dot::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Presale caption: its space is always reserved; the text hides in other tabs */
#demo .sup-demo-caption {
  min-height: calc(1.5em * 2);
}

#demo .sup-demo-caption.is-off {
  visibility: hidden;
}

/* Mini status is a phone element; it stays out of the layout above 640px */
#demo .sup-mini {
  display: none;
}

/* ---------- Phones (640px and below) ---------- */

@media (max-width: 640px) {
  /* Chat area 400px; the carousel grows with its content, so nothing scrolls inside it */
  #demo .sup-grid {
    --sup-chat-h: 400px;
  }

  #demo .sup-side {
    height: auto;
  }

  #demo .sup-log {
    min-height: 400px;
  }

  #demo .sup-inbox,
  #demo .sup-inbox-list {
    flex: none;
    overflow: visible;
    overscroll-behavior: auto;
  }

  #demo .sup-inbox-list.is-overflow {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* A row: avatar and title on the first line, the state chip under the sub line */
  #demo .sup-row {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
  }

  #demo .sup-row-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
  }

  /* One-line status of the newest log entry, above the carousel */
  #demo .sup-mini {
    display: block;
    order: 2;
    margin: 0;
    padding: 0 2px 10px;
    min-width: 0;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ash);
  }

  #demo .sup-side {
    order: 3;
  }

  #demo .sup-channel button,
  #demo .demo-side-nav button {
    min-height: 40px;
  }

}

/* Workflow link under the stage: 44px tap target; the margin keeps the same visual gap */
#demo .demo-after {
  margin-top: 8px;
}

#demo .demo-after .link-mono {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
}

/* ---------- Keyframes ---------- */

@keyframes sup-log-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes sup-log-new {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes sup-dot {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes sup-shim {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@keyframes sup-roll-out {
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes sup-roll-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes sup-plus-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes sup-row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes sup-row-gold {
  from {
    box-shadow: inset 2px 0 0 0 var(--accent);
  }
  to {
    box-shadow: inset 2px 0 0 0 transparent;
  }
}

@keyframes sup-ticket-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes sup-ticket-glow {
  from {
    box-shadow: 0 0 0 1px hsl(0 70% 52% / 0.5), 0 0 28px -6px hsl(0 70% 52% / 0.45);
  }
  to {
    box-shadow: 0 0 0 1px hsl(0 70% 52% / 0), 0 0 28px -6px hsl(0 70% 52% / 0);
  }
}

/* ---------- Static (seeked finished state) and reduced motion: nothing animates ---------- */

#demo .sup-demo-stage.is-static *,
#demo .sup-demo-stage.is-static *::before,
#demo .sup-demo-stage.is-static *::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #demo .sup-demo-stage *,
  #demo .sup-demo-stage *::before,
  #demo .sup-demo-stage *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* The gold phrase of the heading moves to its own line as a whole */
#demo .sec-title .gold-i {
  display: inline-block;
}
