/* Slack-style thread used by the homepage Jason card and the dataset pipeline section. */
/* Slack thread mockup. Every message is in the DOM from the start (hidden), so
   the figure keeps its final height and the page never jumps while it plays. */
.jm-slack { flex: 0 1 470px; min-width: 0; margin: 0 auto; font-family: var(--sans); border: 1px solid var(--ds-border); border-radius: var(--ds-r-md); background: #fff; box-shadow: 0 24px 48px -28px rgba(54, 30, 140, .35); font-size: 14px; line-height: 1.45; color: #1d1c1d; overflow: hidden; }
.jm-sl-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--ds-border); font-size: 14px; }
.jm-sl-bar img { width: 16px; height: 16px; }
.jm-sl-feed { list-style: none; margin: 0; padding: 14px 16px 4px; }
.jm-sl-msg { display: flex; gap: 10px; padding: 6px 0; }
.jm-sl-cont { padding-left: 46px; }
.jm-sl-av { flex: none; width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.jm-sl-text { min-width: 0; flex: 1; }
.jm-sl-who { display: flex; align-items: baseline; gap: 6px; }
.jm-sl-who b { font-weight: 700; }
.jm-sl-who time { font-family: inherit; color: #616061; font-size: 12px; }
.jm-sl-app { padding: 0 4px; border-radius: 3px; background: #ececec; color: #616061; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.jm-sl-at { padding: 0 2px; border-radius: 3px; background: #e8f5fa; color: #1264a3; }
.jm-sl-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; color: var(--ds-body); font-size: 13px; }
.jm-sl-steps li { display: flex; align-items: center; gap: 8px; }
.jm-sl-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ds-border-strong); border-top-color: var(--ds-primary); box-sizing: border-box; }
.jm-sl-steps li.is-in:not(.is-done)::before { animation: jm-spin .7s linear infinite; }
.jm-sl-steps li.is-done::before { border: 0; background: var(--ds-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.jm-sl-card { margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--ds-primary); border-radius: 0 4px 4px 0; background: var(--ds-surface-alt); font-size: 13px; }
.jm-sl-card p { display: flex; gap: 10px; padding: 2px 0; }
.jm-sl-card span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-sl-card b { font-weight: 600; font-variant-numeric: tabular-nums; }
.jm-sl-card em { width: 34px; text-align: right; color: var(--ds-alert); font-style: normal; font-variant-numeric: tabular-nums; }
.jm-sl-tag { margin-left: auto; padding: 1px 6px; border: 1px solid var(--ds-border); border-radius: 4px; color: var(--ds-muted); font-size: 11px; }
.jm-sl-steps time { margin-left: auto; font-family: inherit; padding-left: 8px; color: #8a8a8a; font-size: 11.5px; }
.jm-sl-gap { margin-top: 8px; }
.jm-sl-flag { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 4px; background: var(--ds-alert-soft); color: #c2271d; font-size: 12px; font-weight: 600; }
.jm-sl-flag-ok { background: var(--ds-success-soft); color: var(--ds-success); }
.jm-sl-day { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; color: #616061; font-size: 12px; font-weight: 600; }
.jm-sl-day::before, .jm-sl-day::after { content: ""; flex: 1; height: 1px; background: var(--ds-border); }
.jm-sl-day span { padding: 2px 10px; border: 1px solid var(--ds-border); border-radius: 999px; }
.jm-sl-compose { margin: 8px 16px 0; padding: 9px 12px; border: 1px solid #c4c4c4; border-radius: 8px; color: #8a8a8a; font-size: 13px; }
.jm-sl-typing { display: flex; align-items: center; gap: 3px; height: 26px; padding: 0 16px; color: #616061; font-size: 11.5px; opacity: 0; transition: opacity .2s; }
.jm-sl-typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: jm-dot 1s ease-in-out infinite; }
.jm-sl-typing i:nth-child(2) { animation-delay: .15s; }
.jm-sl-typing i:nth-child(3) { margin-right: 4px; animation-delay: .3s; }
.jm-slack.is-typing .jm-sl-typing { opacity: 1; }
/* Hidden until played; only when JS has armed it, so no-JS shows the thread. */
.jm-slack.is-armed [data-jm-step] { opacity: 0; translate: 0 6px; transition: opacity .35s, translate .35s cubic-bezier(.16, 1, .3, 1); }
.jm-slack.is-armed [data-jm-step].is-in { opacity: 1; translate: 0 0; }
@keyframes jm-spin { to { transform: rotate(360deg); } }
@keyframes jm-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
/* Generic avatar for a requester without a photo. */
.jm-sl-av-initial { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--ds-primary-soft); color: var(--ds-primary); font-weight: 700; font-size: 15px; }
@media (max-width: 520px) { .jm-sl-card span { white-space: normal; } }
.jm-sl-more { margin-top: 6px; }
