Salesforce Lightning
JS behaviour
Welcome Mat
A checklist-onboarding card with an illustration and progress ticks — the first hello of every new Lightning app.
Real scenarios
The component as it is used in a product — not a specimen grid.
The first hello of a new app
Tick the two remaining steps and the mat flips to its green all-set state; the ✕ dismisses it and leaves a way back.
Welcome to Nabu Sales
Four small steps and your team is selling — the tour takes about three minutes.
All set — happy selling!
The mat is dismissed for good.
The three faces of the mat
With or without the illustration split, and the completed state that fades its checklist to green.
split
no-info-split
complete
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| split | layout | 'info · steps' | An intro/illustration column beside a column of checklist steps; stacked on mobile. |
| progress | counter | 'n of m' | Each tick advances the counter: «2 of 4 completed». |
| complete | state | 'done' | Complete every step and the mat flips to the green all-set state. |
| dismiss | event | 'x' | The ✕ on the card dismisses the mat for good. |
Snippet
<section class="sflx-mat">
<button class="sflx-mat-x" aria-label="Dismiss">✕</button>
<figure class="sflx-mat-info">
<span class="sflx-mat-art"></span>
<figcaption>Welcome to Nabu Sales</figcaption>
</figure>
<ol class="sflx-mat-steps">
<li><button aria-pressed="true">✓ Complete your profile</button></li>
<li><button aria-pressed="false">Create your first opportunity</button></li>
</ol>
</section>
<style>
.sflx-mat { position: relative; display: grid; grid-template-columns: 1fr 1fr;
border: 1px solid #DDDBDA; border-radius: .25rem; background: #fff; }
.sflx-mat-info { background: linear-gradient(135deg, #0B5CAB, #0176D3); color: #fff; }
.sflx-mat-steps li button { inline-size: 100%; text-align: start; padding: .75rem 1rem; }
.sflx-mat-steps li[aria-pressed='true'] button { color: #04844B; }
</style>
// resources/js/pages/Onboarding.tsx — an Inertia page (React flavor).
// Inertia mounts this component for /onboarding (e.g. after registration);
// the mat itself is the WelcomeMat component from the React snippet. Register
// the route with Route::inertia('/onboarding', 'Onboarding') on the backend.
import WelcomeMat from '@/components/WelcomeMat';
export default function Onboarding() {
return <WelcomeMat />;
}
// WelcomeMat.tsx — the Lightning Welcome Mat: an illustrated info split
// beside a four-step checklist with progress meter, the green all-set state
// and the dismissable card. The markup mirrors the playground partial.
import { type CSSProperties, useState } from 'react';
import '@nabuxai/ui-react/css';
const STEPS = [
{ label: 'Complete your company profile', hint: 'Logo, size and industry' },
{ label: 'Invite your teammates', hint: 'At least two sales folks' },
{ label: 'Create your first opportunity', hint: 'e.g. a customer annual license' },
{ label: 'Try the mobile app', hint: 'Same data, your pocket' },
];
const CHECK = 'M4.5 12.5l5 5L19.5 6.5';
const PLAY = 'M7 5l12 7-12 7z';
export default function WelcomeMat() {
const [gone, setGone] = useState(false);
const [done, setDone] = useState([true, true, false, false]);
const count = done.filter(Boolean).length;
const tick = (i: number) => setDone(done.map((d, j) => (j === i ? !d : d)));
if (gone) {
return (
<div className="slw-root">
<div className="slw-gone">
<span>The mat is dismissed for good.</span>
<button type="button" onClick={() => setGone(false)}>Show it again</button>
</div>
<style>{css}</style>
</div>
);
}
return (
<div className="slw-root">
<section className="slw-card" aria-label="Welcome mat">
<button type="button" className="slw-close" aria-label="Dismiss the welcome mat"
onClick={() => setGone(true)}>✕</button>
<figure className="slw-info">
<span className="slw-art" aria-hidden="true"><i /><i /><i /></span>
<h3>Welcome to Nabu Sales</h3>
<p>Four small steps and your team is selling — the tour takes about three minutes.</p>
<button type="button" className="slw-play">
<svg className="nx-icon" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><path d={PLAY} /></svg>
Watch the tour
</button>
</figure>
<div>
<ol className="slw-steps">
{STEPS.map((s, i) => (
<li key={s.label}>
<button type="button" className="slw-check" aria-pressed={done[i]}
aria-label={(done[i] ? 'Done: ' : 'To do: ') + s.label} onClick={() => tick(i)}>
<svg className="nx-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor"
strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d={CHECK} /></svg>
</button>
<button type="button" className="slw-step-text" onClick={() => tick(i)}>
<span>{s.label}</span>
<small>{s.hint}</small>
</button>
<span className="slw-step-num" aria-hidden="true">{i + 1}</span>
</li>
))}
</ol>
<div className="slw-progress">
<div className="slw-meter" role="progressbar" aria-valuenow={count} aria-valuemin={0}
aria-valuemax={4} style={{ '--slw-done': count } as CSSProperties}><i /></div>
<b>{count} of 4 completed</b>
</div>
{count === STEPS.length && <p className="slw-set">✓ All set — happy selling!</p>}
</div>
</section>
<style>{css}</style>
</div>
);
}
const css = `
.slw-root { font-family: 'Salesforce Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; color: #181818;
--slw-green: #04844B; --slw-muted: #706E6B; --slw-border: #DDDBDA; --slw-card: #FFFFFF; --slw-blue: #0176D3; }
@media (prefers-color-scheme: dark) { .slw-root { color: #F3F3F3;
--slw-green: #0E9E5B; --slw-muted: #A5A5A5; --slw-border: #474747; --slw-card: #232323; --slw-blue: #0D9DDA; } }
.slw-card { position: relative; max-inline-size: 46rem; margin-inline: auto; display: grid;
grid-template-columns: minmax(11rem, 1fr) minmax(0, 1.2fr); border: 1px solid var(--slw-border);
border-radius: .25rem; background: var(--slw-card); overflow: clip; }
@media (max-width: 540px) { .slw-card { grid-template-columns: 1fr; } }
.slw-close { position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; z-index: 2;
inline-size: 1.75rem; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: .25rem;
background: transparent; color: var(--slw-muted); cursor: pointer; font-size: .95rem; }
.slw-info { position: relative; display: grid; align-content: end; gap: .4rem; min-block-size: 15rem;
margin: 0; padding: 1.25rem 1.1rem;
background: linear-gradient(160deg, #0B5CAB, #0176D3 62%, #0E9E5B 130%); color: #FFFFFF; }
.slw-art { position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 55%; pointer-events: none; }
.slw-art i { position: absolute; border-radius: 50%; background: color-mix(in srgb, #FFFFFF 16%, transparent); }
.slw-art i:nth-child(1) { inline-size: 5.5rem; aspect-ratio: 1; inset-block-start: 14%; inset-inline-start: 12%; }
.slw-art i:nth-child(2) { inline-size: 2.2rem; aspect-ratio: 1; inset-block-start: 48%; inset-inline-start: 58%; opacity: .7; }
.slw-art i:nth-child(3) { inline-size: 3.4rem; aspect-ratio: 1; inset-block-start: 8%; inset-inline-start: 66%; opacity: .5; }
.slw-info h3 { position: relative; margin: 0; font-size: 1.15rem; font-weight: 700; }
.slw-info p { position: relative; margin: 0; font-size: .84rem; opacity: .92; }
.slw-play { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: .45rem;
margin-block-start: .5rem; padding: .45rem .95rem; border: 1px solid color-mix(in srgb, #FFFFFF 55%, transparent);
border-radius: .25rem; background: color-mix(in srgb, #FFFFFF 16%, transparent); color: #FFFFFF;
font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.slw-steps { display: grid; gap: 0; align-content: start; margin: 0; padding: .35rem .9rem .9rem; list-style: none; }
.slw-steps li { display: flex; align-items: center; gap: .75rem; padding: .15rem 0; }
.slw-check { position: relative; flex: none; inline-size: 1.35rem; aspect-ratio: 1; border-radius: 50%;
border: 1px solid var(--slw-border); background: var(--slw-card); color: transparent;
display: grid; place-items: center; cursor: pointer; }
.slw-check .nx-icon { inline-size: .8em; block-size: .8em; }
.slw-check[aria-pressed='true'] { background: var(--slw-green); border-color: var(--slw-green); color: #FFFFFF; }
.slw-step-text { flex: 1; min-inline-size: 0; border: 0; background: transparent; color: inherit;
font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: start; padding: .35rem 0; }
.slw-step-text small { display: block; font-weight: 400; font-size: .74rem; color: var(--slw-muted); }
.slw-step-num { flex: none; font-size: .72rem; font-weight: 700; color: var(--slw-muted); }
.slw-progress { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem .8rem; }
.slw-meter { flex: 1; block-size: 4px; border-radius: 999px; background: var(--slw-border); overflow: clip; }
.slw-meter i { display: block; block-size: 100%; border-radius: inherit; background: var(--slw-green);
inline-size: calc(var(--slw-done, 0) / 4 * 100%); transition: inline-size .25s ease; }
.slw-progress b { font-size: .78rem; color: var(--slw-muted); white-space: nowrap; }
.slw-set { display: flex; align-items: center; gap: .5rem; margin: 0 .9rem .9rem; padding: .55rem .75rem;
border-radius: .25rem; background: color-mix(in srgb, var(--slw-green) 12%, var(--slw-card));
color: var(--slw-green); font-size: .8rem; font-weight: 700; }
.slw-gone { display: grid; place-items: center; gap: .5rem; max-inline-size: 46rem; margin-inline: auto;
min-block-size: 9rem; border: 1px dashed var(--slw-border); border-radius: .25rem;
color: var(--slw-muted); font-size: .85rem; text-align: center; padding: 1rem; }
.slw-gone button { border: 0; background: transparent; color: var(--slw-blue); font: inherit;
font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
`;
<!-- WelcomeMat.vue — the Lightning Welcome Mat: an illustrated info split
beside a four-step checklist with progress meter, the green all-set
state and the dismissable card. Mirrors the playground partial. -->
<script setup lang="ts">
import { computed, ref } from 'vue';
const steps = [
{ label: 'Complete your company profile', hint: 'Logo, size and industry' },
{ label: 'Invite your teammates', hint: 'At least two sales folks' },
{ label: 'Create your first opportunity', hint: 'e.g. a customer annual license' },
{ label: 'Try the mobile app', hint: 'Same data, your pocket' },
];
const gone = ref(false);
const done = ref([true, true, false, false]);
const count = computed(() => done.value.filter(Boolean).length);
const tick = (i: number) => { done.value = done.value.map((d, j) => (j === i ? !d : d)); };
</script>
<template>
<div class="slw-root">
<section v-if="!gone" class="slw-card" aria-label="Welcome mat">
<button type="button" class="slw-close" aria-label="Dismiss the welcome mat" @click="gone = true">✕</button>
<figure class="slw-info">
<span class="slw-art" aria-hidden="true"><i /><i /><i /></span>
<h3>Welcome to Nabu Sales</h3>
<p>Four small steps and your team is selling — the tour takes about three minutes.</p>
<button type="button" class="slw-play">Watch the tour ▸</button>
</figure>
<div>
<ol class="slw-steps">
<li v-for="(s, i) in steps" :key="s.label">
<button type="button" class="slw-check" :aria-pressed="done[i]"
:aria-label="(done[i] ? 'Done: ' : 'To do: ') + s.label" @click="tick(i)">✓</button>
<button type="button" class="slw-step-text" @click="tick(i)">
<span>{{ s.label }}</span>
<small>{{ s.hint }}</small>
</button>
<span class="slw-step-num" aria-hidden="true">{{ i + 1 }}</span>
</li>
</ol>
<div class="slw-progress">
<div class="slw-meter" role="progressbar" :aria-valuenow="count" aria-valuemin="0" aria-valuemax="4"
:style="{ '--slw-done': count }"><i /></div>
<b>{{ count }} of 4 completed</b>
</div>
<p v-if="count === steps.length" class="slw-set">✓ All set — happy selling!</p>
</div>
</section>
<div v-else class="slw-gone">
<span>The mat is dismissed for good.</span>
<button type="button" @click="gone = false">Show it again</button>
</div>
</div>
</template>
<style scoped>
.slw-root { font-family: 'Salesforce Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; color: #181818;
--slw-green: #04844B; --slw-muted: #706E6B; --slw-border: #DDDBDA; --slw-card: #FFFFFF; --slw-blue: #0176D3; }
@media (prefers-color-scheme: dark) { .slw-root { color: #F3F3F3;
--slw-green: #0E9E5B; --slw-muted: #A5A5A5; --slw-border: #474747; --slw-card: #232323; --slw-blue: #0D9DDA; } }
.slw-card { position: relative; max-inline-size: 46rem; margin-inline: auto; display: grid;
grid-template-columns: minmax(11rem, 1fr) minmax(0, 1.2fr); border: 1px solid var(--slw-border);
border-radius: .25rem; background: var(--slw-card); overflow: clip; }
@media (max-width: 540px) { .slw-card { grid-template-columns: 1fr; } }
.slw-close { position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; z-index: 2;
inline-size: 1.75rem; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: .25rem;
background: transparent; color: var(--slw-muted); cursor: pointer; font-size: .95rem; }
.slw-info { position: relative; display: grid; align-content: end; gap: .4rem; min-block-size: 15rem;
margin: 0; padding: 1.25rem 1.1rem;
background: linear-gradient(160deg, #0B5CAB, #0176D3 62%, #0E9E5B 130%); color: #FFFFFF; }
.slw-art { position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 55%; pointer-events: none; }
.slw-art i { position: absolute; border-radius: 50%; background: color-mix(in srgb, #FFFFFF 16%, transparent); }
.slw-art i:nth-child(1) { inline-size: 5.5rem; aspect-ratio: 1; inset-block-start: 14%; inset-inline-start: 12%; }
.slw-art i:nth-child(2) { inline-size: 2.2rem; aspect-ratio: 1; inset-block-start: 48%; inset-inline-start: 58%; opacity: .7; }
.slw-art i:nth-child(3) { inline-size: 3.4rem; aspect-ratio: 1; inset-block-start: 8%; inset-inline-start: 66%; opacity: .5; }
.slw-info h3 { position: relative; margin: 0; font-size: 1.15rem; font-weight: 700; }
.slw-info p { position: relative; margin: 0; font-size: .84rem; opacity: .92; }
.slw-play { position: relative; justify-self: start; margin-block-start: .5rem; padding: .45rem .95rem;
border: 1px solid color-mix(in srgb, #FFFFFF 55%, transparent); border-radius: .25rem;
background: color-mix(in srgb, #FFFFFF 16%, transparent); color: #FFFFFF;
font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.slw-steps { display: grid; align-content: start; margin: 0; padding: .35rem .9rem .9rem; list-style: none; }
.slw-steps li { display: flex; align-items: center; gap: .75rem; padding: .15rem 0; }
.slw-check { flex: none; inline-size: 1.35rem; aspect-ratio: 1; border-radius: 50%;
border: 1px solid var(--slw-border); background: var(--slw-card); color: transparent;
display: grid; place-items: center; cursor: pointer; }
.slw-check[aria-pressed='true'] { background: var(--slw-green); border-color: var(--slw-green); color: #FFFFFF; }
.slw-step-text { flex: 1; min-inline-size: 0; border: 0; background: transparent; color: inherit;
font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: start; padding: .35rem 0; }
.slw-step-text small { display: block; font-weight: 400; font-size: .74rem; color: var(--slw-muted); }
.slw-step-num { flex: none; font-size: .72rem; font-weight: 700; color: var(--slw-muted); }
.slw-progress { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem .8rem; }
.slw-meter { flex: 1; block-size: 4px; border-radius: 999px; background: var(--slw-border); overflow: clip; }
.slw-meter i { display: block; block-size: 100%; border-radius: inherit; background: var(--slw-green);
inline-size: calc(var(--slw-done, 0) / 4 * 100%); transition: inline-size .25s ease; }
.slw-progress b { font-size: .78rem; color: var(--slw-muted); white-space: nowrap; }
.slw-set { display: flex; align-items: center; gap: .5rem; margin: 0 .9rem .9rem; padding: .55rem .75rem;
border-radius: .25rem; background: color-mix(in srgb, var(--slw-green) 12%, var(--slw-card));
color: var(--slw-green); font-size: .8rem; font-weight: 700; }
.slw-gone { display: grid; place-items: center; gap: .5rem; max-inline-size: 46rem; margin-inline: auto;
min-block-size: 9rem; border: 1px dashed var(--slw-border); border-radius: .25rem;
color: var(--slw-muted); font-size: .85rem; text-align: center; padding: 1rem; }
.slw-gone button { border: 0; background: transparent; color: var(--slw-blue); font: inherit;
font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
</style>
<!-- WelcomeMat.svelte — the Lightning Welcome Mat: an illustrated info
split beside a four-step checklist with progress meter, the green
all-set state and the dismissable card. Mirrors the playground partial. -->
<script lang="ts">
const steps = [
{ label: 'Complete your company profile', hint: 'Logo, size and industry' },
{ label: 'Invite your teammates', hint: 'At least two sales folks' },
{ label: 'Create your first opportunity', hint: 'e.g. a customer annual license' },
{ label: 'Try the mobile app', hint: 'Same data, your pocket' },
];
let gone = $state(false);
let done = $state([true, true, false, false]);
const count = $derived(done.filter(Boolean).length);
const tick = (i: number) => { done = done.map((d, j) => (j === i ? !d : d)); };
</script>
<div class="slw-root">
{#if !gone}
<section class="slw-card" aria-label="Welcome mat">
<button type="button" class="slw-close" aria-label="Dismiss the welcome mat"
onclick={() => (gone = true)}>✕</button>
<figure class="slw-info">
<span class="slw-art" aria-hidden="true"><i></i><i></i><i></i></span>
<h3>Welcome to Nabu Sales</h3>
<p>Four small steps and your team is selling — the tour takes about three minutes.</p>
<button type="button" class="slw-play">Watch the tour ▸</button>
</figure>
<div>
<ol class="slw-steps">
{#each steps as s, i (s.label)}
<li>
<button type="button" class="slw-check" aria-pressed={done[i]}
aria-label={(done[i] ? 'Done: ' : 'To do: ') + s.label} onclick={() => tick(i)}>✓</button>
<button type="button" class="slw-step-text" onclick={() => tick(i)}>
<span>{s.label}</span>
<small>{s.hint}</small>
</button>
<span class="slw-step-num" aria-hidden="true">{i + 1}</span>
</li>
{/each}
</ol>
<div class="slw-progress">
<div class="slw-meter" role="progressbar" aria-valuenow={count} aria-valuemin="0" aria-valuemax="4"
style:--slw-done={count}><i></i></div>
<b>{count} of 4 completed</b>
</div>
{#if count === steps.length}
<p class="slw-set">✓ All set — happy selling!</p>
{/if}
</div>
</section>
{:else}
<div class="slw-gone">
<span>The mat is dismissed for good.</span>
<button type="button" onclick={() => (gone = false)}>Show it again</button>
</div>
{/if}
</div>
<style>
.slw-root { font-family: 'Salesforce Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; color: #181818;
--slw-green: #04844B; --slw-muted: #706E6B; --slw-border: #DDDBDA; --slw-card: #FFFFFF; --slw-blue: #0176D3; }
@media (prefers-color-scheme: dark) { .slw-root { color: #F3F3F3;
--slw-green: #0E9E5B; --slw-muted: #A5A5A5; --slw-border: #474747; --slw-card: #232323; --slw-blue: #0D9DDA; } }
.slw-card { position: relative; max-inline-size: 46rem; margin-inline: auto; display: grid;
grid-template-columns: minmax(11rem, 1fr) minmax(0, 1.2fr); border: 1px solid var(--slw-border);
border-radius: .25rem; background: var(--slw-card); overflow: clip; }
@media (max-width: 540px) { .slw-card { grid-template-columns: 1fr; } }
.slw-close { position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; z-index: 2;
inline-size: 1.75rem; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: .25rem;
background: transparent; color: var(--slw-muted); cursor: pointer; font-size: .95rem; }
.slw-info { position: relative; display: grid; align-content: end; gap: .4rem; min-block-size: 15rem;
margin: 0; padding: 1.25rem 1.1rem;
background: linear-gradient(160deg, #0B5CAB, #0176D3 62%, #0E9E5B 130%); color: #FFFFFF; }
.slw-art { position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 55%; pointer-events: none; }
.slw-art i { position: absolute; border-radius: 50%; background: color-mix(in srgb, #FFFFFF 16%, transparent); }
.slw-art i:nth-child(1) { inline-size: 5.5rem; aspect-ratio: 1; inset-block-start: 14%; inset-inline-start: 12%; }
.slw-art i:nth-child(2) { inline-size: 2.2rem; aspect-ratio: 1; inset-block-start: 48%; inset-inline-start: 58%; opacity: .7; }
.slw-art i:nth-child(3) { inline-size: 3.4rem; aspect-ratio: 1; inset-block-start: 8%; inset-inline-start: 66%; opacity: .5; }
.slw-info h3 { position: relative; margin: 0; font-size: 1.15rem; font-weight: 700; }
.slw-info p { position: relative; margin: 0; font-size: .84rem; opacity: .92; }
.slw-play { position: relative; justify-self: start; margin-block-start: .5rem; padding: .45rem .95rem;
border: 1px solid color-mix(in srgb, #FFFFFF 55%, transparent); border-radius: .25rem;
background: color-mix(in srgb, #FFFFFF 16%, transparent); color: #FFFFFF;
font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.slw-steps { display: grid; align-content: start; margin: 0; padding: .35rem .9rem .9rem; list-style: none; }
.slw-steps li { display: flex; align-items: center; gap: .75rem; padding: .15rem 0; }
.slw-check { flex: none; inline-size: 1.35rem; aspect-ratio: 1; border-radius: 50%;
border: 1px solid var(--slw-border); background: var(--slw-card); color: transparent;
display: grid; place-items: center; cursor: pointer; }
.slw-check[aria-pressed='true'] { background: var(--slw-green); border-color: var(--slw-green); color: #FFFFFF; }
.slw-step-text { flex: 1; min-inline-size: 0; border: 0; background: transparent; color: inherit;
font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: start; padding: .35rem 0; }
.slw-step-text small { display: block; font-weight: 400; font-size: .74rem; color: var(--slw-muted); }
.slw-step-num { flex: none; font-size: .72rem; font-weight: 700; color: var(--slw-muted); }
.slw-progress { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem .8rem; }
.slw-meter { flex: 1; block-size: 4px; border-radius: 999px; background: var(--slw-border); overflow: clip; }
.slw-meter i { display: block; block-size: 100%; border-radius: inherit; background: var(--slw-green);
inline-size: calc(var(--slw-done, 0) / 4 * 100%); transition: inline-size .25s ease; }
.slw-progress b { font-size: .78rem; color: var(--slw-muted); white-space: nowrap; }
.slw-set { display: flex; align-items: center; gap: .5rem; margin: 0 .9rem .9rem; padding: .55rem .75rem;
border-radius: .25rem; background: color-mix(in srgb, var(--slw-green) 12%, var(--slw-card));
color: var(--slw-green); font-size: .8rem; font-weight: 700; }
.slw-gone { display: grid; place-items: center; gap: .5rem; max-inline-size: 46rem; margin-inline: auto;
min-block-size: 9rem; border: 1px dashed var(--slw-border); border-radius: .25rem;
color: var(--slw-muted); font-size: .85rem; text-align: center; padding: 1rem; }
.slw-gone button { border: 0; background: transparent; color: var(--slw-blue); font: inherit;
font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
</style>