/* The demo player under each page's hero (demo.js). Simplified product UI
 * in the style of the brand canvas's illustrations: real words where they
 * carry the point, the app's dark tokens, 2px radius, no shadows. The
 * Proposals demo is the app's review deck (web/components/proposal-deck.tsx
 * and the .deck-* rules in web/app/globals.css).
 *
 * States come from attributes demo.js sets, never from style attributes
 * (the CSP drops those): a scene's data-step is its beat, data-at lists the
 * beats reached ("s1 s2 …"). Every hiding rule sits under [data-js], so
 * without the script each demo shows complete. */

.demo {
  --d-canvas: #101312;
  --d-surface: #1a1f1d;
  --d-pill: #2a302e;
  --d-line: #2a302e;
  --d-line-2: #1f2422;
  --d-ink: #e7eae6;
  --d-ink-2: #a8afaa;
  --d-ink-3: #8e948f; /* the app's #6e746f fails 4.5:1 on carbon */
  --d-accent: #c6f24e;
  --d-add: #6fbf8a;
  --d-add-bg: rgba(111, 191, 138, .15);
  --d-del: #ff6b4a;
  --d-del-bg: rgba(255, 107, 74, .16);
  --d-amber: #d9a441;
  --d-amber-bg: rgba(217, 164, 65, .15);
  position: relative;
  color: var(--d-ink);
}

.demo p { margin: 0; }

.demo-stage {
  position: relative;
  display: flex;
  height: 600px;
  padding: 40px;
  border: 1px solid var(--d-line);
  border-radius: 2px 2px 0 0;
  background: var(--d-canvas);
  overflow: hidden;
}
.demo-scene { display: flex; flex: 1; min-width: 0; }
.demo-scene[hidden] { display: none; }

.demo-pause {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  padding: 5px 10px;
  border: 1px solid var(--d-line);
  border-radius: 2px;
  background: var(--d-surface);
  font: 11.5px var(--mono);
  color: var(--d-ink-2);
  cursor: pointer;
}
.demo-pause:hover { color: var(--d-ink); }

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--d-line);
  border-top: 0;
  border-radius: 0 0 2px 2px;
  background: var(--d-surface);
}
.demo-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  padding: 18px 18px 16px;
  border: 0;
  border-right: 1px solid var(--d-line-2);
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--d-ink-3);
  cursor: pointer;
  transition: background var(--control);
}
.demo-tab:last-child { border-right: 0; }
.demo-tab b { font-size: 15px; color: var(--d-ink-2); }
.demo-tab > span:last-child { font-size: 13px; line-height: 1.4; }
.demo-tab:hover b, .demo-tab[aria-pressed="true"] b { color: var(--d-ink); }
.demo-tab[aria-pressed="true"] { background: var(--d-canvas); }
.demo-prog {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--d-accent);
}
/* Seven beats of 1.5s: four to play, two to hold, one to change tab. */
.demo[data-js] .demo-tab[aria-pressed="true"] .demo-prog { animation: demo-prog 10.5s linear forwards; }
.demo[data-paused] .demo-tab[aria-pressed="true"] .demo-prog { animation-play-state: paused; }
@keyframes demo-prog { from { width: 0; } to { width: 100%; } }

/* ------------------------------------------------------------ beats */

.demo[data-js] .beat {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s linear, transform .4s ease-out;
}
.demo [data-at~="s1"] .b1,
.demo [data-at~="s2"] .b2,
.demo [data-at~="s3"] .b3,
.demo [data-at~="s4"] .b4 { opacity: 1; transform: none; }

/* --------------------------------------------- simplified app windows */

.dw {
  display: flex;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--d-line);
  border-radius: 2px;
  background: var(--d-surface);
  overflow: hidden;
}
.dw-side {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 4px;
  width: 210px;
  padding: 18px 16px;
  background: var(--d-canvas);
  border-right: 1px solid var(--d-line);
}
.dw-logo { width: 52px; margin: 2px 0 14px; color: var(--d-ink); }
.dw-item { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 13.5px; color: var(--d-ink-2); }
.dw-item--on { margin: 0 -4px; padding: 6px 8px; background: var(--d-pill); font-weight: 600; color: var(--d-ink); }
.dw-col { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dw-body { display: flex; flex-direction: column; flex: 1; gap: 14px; min-width: 0; padding: 26px 30px; }
.dw-body--roomy { gap: 16px; padding: 26px 40px; }
.dw-body--chat { gap: 18px; padding: 24px 30px; }
.dw-tabs { display: flex; gap: 26px; height: 48px; padding: 0 26px; border-bottom: 1px solid var(--d-line-2); font-size: 14px; color: var(--d-ink-3); }
.dw-tabs span { display: flex; align-items: center; }
.dw-tabs .on { color: var(--d-ink); font-weight: 600; border-bottom: 2px solid var(--d-accent); }
.dw-head { display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px solid var(--d-line-2); }
.dw-split { display: flex; flex: 1; min-width: 0; }
.dw-aside { flex: none; width: 360px; padding: 24px 24px 24px 0; }
.dw-routine {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 12px;
  width: 360px;
  padding: 26px 28px;
  border-right: 1px solid var(--d-line-2);
}
.dw--assistant { flex: none; width: 400px; }

.grow { flex: 1; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--d-line); }
.dot--add { background: var(--d-add); }

.dm-label { font: 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink-3); }
.dm-label--gap { margin-top: 10px; }
.dm-mono { font: 11.5px/1.45 var(--mono); color: var(--d-ink-3); }
.dm-q { align-self: flex-end; max-width: 76%; padding: 11px 15px; background: var(--d-pill); font-size: 15px; line-height: 1.45; }
.dm-q--files { display: flex; flex-direction: column; gap: 10px; }
.dm-files, .dm-chips, .dm-srcs { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-srcs { margin-top: 10px; }
.dm-file, .dm-src {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--d-line);
  background: var(--d-surface);
  font: 11.5px/1.4 var(--mono);
  color: var(--d-ink-2);
}
.dm-src--add { color: var(--d-add); }
.dm-a { max-width: 78%; padding: 16px 20px; border: 1px solid var(--d-line); background: var(--d-canvas); }
.dm-a--wide { max-width: 100%; }
.dm-a > p:first-child { font-size: 15px; line-height: 1.55; }
.dm-li { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--d-line-2); font: 13px var(--mono); color: var(--d-ink-2); }
.dm-tag { margin-left: auto; padding: 2px 8px; font: 600 11.5px var(--grotesk); }
.dm-tag--add { background: var(--d-add-bg); color: var(--d-add); }
.dm-tag--amber { background: var(--d-amber-bg); color: var(--d-amber); }
.dm-tag--plain { background: var(--d-pill); color: var(--d-ink-3); }
.dm-chip { display: inline-flex; padding: 6px 12px; border: 1px solid var(--d-line); background: var(--d-surface); font-size: 13px; color: var(--d-ink-2); }
.dm-same { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--d-line-2); }
.dm-same .dm-label { margin-right: 6px; }
.dm-badge { padding: 2px 8px; border-radius: 2px; background: rgba(198, 242, 78, .14); font: 600 11px/1.5 var(--mono); color: var(--d-accent); }
.dm-badge--plain { background: var(--d-pill); color: var(--d-ink-2); }

.dm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 13.5px/1.5 var(--grotesk);
  white-space: nowrap;
}
.dm-btn--sm { padding: 5px 11px; font-size: 12.5px; }
.dm-btn--accent { background: var(--d-accent); color: var(--carbon); }
.dm-btn--outline { border-color: var(--d-line); background: var(--d-surface); color: var(--d-ink-2); }
.dm-btn--approve { background: var(--d-add); color: var(--carbon); }
.dm-btn--danger { background: var(--d-del-bg); color: var(--d-del); }
.dm-press { outline: 2px solid var(--d-accent); outline-offset: 3px; }
.demo[data-js] .dm-press3 { transition: outline-color .2s linear; outline: 2px solid transparent; outline-offset: 3px; }
.demo [data-step="3"] .dm-press3 { outline-color: var(--d-accent); }
.kbd { padding: 0 4px; border: 1px solid currentColor; border-radius: 2px; font: 10.5px/1.4 var(--mono); opacity: .6; }

.dm-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  background: var(--d-add-bg);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--d-add);
}
.dm-ok--left { margin-right: auto; }
.dm-callout { padding: 12px 16px; border: 1px solid var(--d-line); background: var(--d-canvas); font-size: 14px; color: var(--d-ink-2); }

.dm-card { border: 1px solid var(--d-line); background: var(--d-canvas); }
.dm-card-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--d-line-2); }
.dm-card-body { padding: 10px 16px; font-size: 13.5px; line-height: 1.5; color: var(--d-ink-2); }
.dm-run { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.dm-found { margin-top: 6px; font-size: 15px; font-weight: 600; }
.dm-note { font-size: 13px; color: var(--d-ink-2); }

.dm-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--d-line-2); font-size: 14px; color: var(--d-ink-2); }
.dm-row:first-child { border-top: 0; }
.dm-row .dm-mono { margin-left: auto; }
.dm-row .dm-tag { margin-left: 0; }
.dm-row--off { color: var(--d-ink-3); }
.dm-row .v { width: 40px; margin-left: 0; }
.dm-row .push { margin-left: auto; }
.box { flex: none; width: 16px; height: 16px; border: 1px solid var(--d-ink-3); }
.box--on, .box--hold { position: relative; border-color: var(--d-ink); background: var(--d-ink); }
.box--on::after, .box--hold::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--d-canvas);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dm-row--off .box { opacity: .5; }

/* Chat */
.dw-chat-side { display: flex; flex-direction: column; flex: none; gap: 4px; width: 230px; padding: 18px 12px; background: var(--carbon); color: var(--d-ink-2); font-size: 14px; }
.dw-chat-side--narrow { width: 200px; }
.dw-team { padding: 0 10px 14px; font-weight: 700; color: var(--d-ink); }
.dw-chan { padding: 6px 10px; }
.dw-chan--on { background: var(--d-pill); font-weight: 600; color: var(--d-ink); }
.dm-msg { display: flex; gap: 14px; }
.dm-msg .av { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; background: #e2e5df; font-size: 13px; font-weight: 600; color: #3d4643; }
.dm-msg .av--ako { background: var(--carbon); color: var(--d-accent); border: 1px solid var(--d-line); }
.dm-msg .who { font-size: 15px; font-weight: 700; }
.dm-msg .when { font: 11.5px var(--mono); font-weight: 400; color: var(--d-ink-3); }
.dm-msg .app { padding: 1px 5px; background: var(--d-pill); font: 700 10px/1.5 var(--mono); letter-spacing: .06em; color: var(--d-ink-3); }
.dm-msg .said { margin-top: 4px; font-size: 15px; line-height: 1.55; }
.dm-msg .at { padding: 0 3px; background: rgba(198, 242, 78, .14); font-weight: 600; color: var(--d-accent); }
.dm-reacts { display: flex; gap: 8px; padding-left: 52px; }
.dm-react { display: inline-flex; padding: 3px 8px; border: 1px solid var(--d-line); font-size: 12.5px; color: var(--d-ink-2); }
.dm-react--add { color: var(--d-add); }

/* Diff lines */
.dm-diff { border: 1px solid var(--d-line-2); font: 13px/1 var(--mono); }
.dm-diff .dl { display: flex; gap: 14px; padding: 7px 14px; color: var(--d-ink-2); transition: opacity .26s linear, background .38s linear, color .38s linear; }
.dm-diff .dl b { width: 12px; font-weight: 400; color: var(--d-ink-3); }
.dm-diff .dl--add { background: var(--d-add-bg); color: var(--d-add); }
.dm-diff .dl--add b { color: var(--d-add); }
.dm-diff .dl--del { background: var(--d-del-bg); color: var(--d-del); }
.dm-diff .dl--del b { color: var(--d-del); }
.add { color: var(--d-add); }
.del { color: var(--d-del); }

/* ---------------------------------------- the review deck (Proposals) */

.dk { display: flex; flex: 1; justify-content: center; gap: 28px; min-width: 0; }
.dk-main { display: flex; flex-direction: column; gap: 14px; width: 620px; }
.dk-queue { display: flex; flex-direction: column; gap: 6px; }
.dk-queue-head { display: flex; justify-content: space-between; }
.dk-count { font: 700 12px var(--mono); }
.dk-seg { display: flex; gap: 3px; }
.dk-seg span { flex: 1; height: 6px; border-radius: 1px; background: var(--d-line); transition: background .3s linear; }
.dk-seg span:first-child { background: var(--d-accent); }
.dk-stack { position: relative; height: 330px; }
.dk-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--d-line);
  border-radius: 2px;
  background: var(--d-surface);
  transform-origin: 50% 100%;
  transition: transform 340ms cubic-bezier(.2, .7, .2, 1), opacity 260ms linear, border-color 200ms linear, background 200ms linear;
}
.dk-card--2 { transform: translateY(13px) scale(.965); background: var(--d-canvas); }
.dk-card--2 .dk-inner { opacity: 0; }
.dk-inner { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 11px; padding: 18px 22px; transition: opacity 220ms linear; }
.dk-face { display: flex; flex-direction: column; gap: 11px; padding: 18px 20px; border: 1px solid var(--d-line); border-radius: 2px; background: var(--d-canvas); }
.dk-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dk-title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.dk-title--sm { font-size: 18px; }
.dk-by { font-size: 12.5px; color: var(--d-ink-3); }
.dk-chip { display: inline-flex; gap: 8px; padding: 4px 8px; border: 1px solid var(--d-line); border-radius: 2px; font: 11.5px var(--mono); color: var(--d-ink-2); }
.dk-sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--d-accent) 22%, #2fd9b4 48%, #3d6bf0 72%, transparent);
  background-size: 200% 100%;
  transition: opacity 160ms linear;
}
@keyframes dk-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.dk-commit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -22px;
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  font: 12px var(--mono);
  color: var(--d-ink-2);
  transition: max-height .3s, padding .3s;
}
.dk-commit b { color: var(--d-ink); }
.dk-status { min-height: 22px; margin-top: 30px !important; font: 12px var(--mono); color: var(--d-ink-2); }
.dk-status span, .dk-c1, .dk-c2 { display: none; }
.dk-status .dk-st0 { display: inline; }
.dk-buttons { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 10px; }
.dk-approve { transition: transform 120ms ease-out, filter 120ms linear, outline-color 120ms linear; outline: 2px solid transparent; outline-offset: 3px; }
.dk-side { flex: none; align-self: flex-start; width: 240px; margin: 0; border: 1px solid var(--d-line); border-radius: 2px; background: var(--d-surface); }
.dk-side > div { padding: 12px 16px; border-bottom: 1px solid var(--d-line-2); }
.dk-side > div:last-child { border-bottom: 0; }
.dk-side dt { font-size: 11.5px; color: var(--d-ink-3); }
.dk-side .dk-side-head { font-size: 14px; font-weight: 600; color: var(--d-ink); }
.dk-side dd { margin: 2px 0 0; font: 700 20px var(--mono); }

/* Two proposals, each approved with the button: the button is pressed
 * (beats 1 and 4), the card lands (2 and 5), and after the first the next
 * card comes up (3). The second stays on screen, landed, to the end. */
.demo [data-step="1"] .dk-approve,
.demo [data-step="4"] .dk-approve { transform: scale(.97); filter: brightness(.88); outline-color: var(--d-accent); }
/* A card lands: removed lines go and added ones become the brain's text. */
.demo [data-at~="s2"] .dk-card--1,
.demo [data-at~="s5"] .dk-card--2 { border-color: var(--d-add); }
.demo [data-at~="s2"]:not([data-at~="s3"]) .dk-card--1 .dk-sweep,
.demo [data-at~="s5"] .dk-card--2 .dk-sweep { opacity: 1; animation: dk-sweep 1.1s linear infinite; }
.demo [data-at~="s2"] .dk-card--1 .dl--del { opacity: 0; }
.demo [data-at~="s2"] .dk-card--1 .dl--add,
.demo [data-at~="s5"] .dk-card--2 .dl--add { background: transparent; color: var(--d-ink-2); }
.demo [data-at~="s2"] .dk-card--1 .dl--add b,
.demo [data-at~="s5"] .dk-card--2 .dl--add b { color: transparent; }
.demo [data-at~="s2"] .dk-card--1 .dk-commit,
.demo [data-at~="s5"] .dk-card--2 .dk-commit { max-height: 48px; padding: 11px 22px; border-color: var(--d-line-2); }
/* The first lifts away and the second comes up. */
.demo [data-at~="s3"] .dk-card--1 { transform: translateY(-70px) scale(.9); opacity: 0; transition: transform 380ms cubic-bezier(.5, 0, .8, .3), opacity 340ms linear; }
.demo [data-at~="s3"] .dk-card--2 { transform: none; background: var(--d-surface); }
.demo [data-at~="s3"] .dk-card--2 .dk-inner { opacity: 1; }
/* The queue and the counts move as each card lands. */
.demo [data-at~="s2"] .dk-seg span:first-child { background: var(--d-add); }
.demo [data-at~="s3"] .dk-seg span:nth-child(2) { background: var(--d-accent); }
.demo [data-at~="s5"] .dk-seg span:nth-child(2) { background: var(--d-add); }
.demo [data-at~="s2"] .dk-c0 { display: none; }
.demo [data-at~="s2"]:not([data-at~="s5"]) .dk-c1,
.demo [data-at~="s5"] .dk-c2 { display: inline; }
.demo [data-at~="s1"] .dk-st0 { display: none; }
.demo [data-step="1"] .dk-st1,
.demo [data-step="2"] .dk-st2,
.demo [data-step="3"] .dk-st3,
.demo [data-step="4"] .dk-st1,
.demo [data-step="5"] .dk-st5,
.demo [data-step="6"] .dk-st6 { display: inline; }

/* ----------------------------------------------- help centre demos */

/* Hold back: the pricing page is unticked at beat 2. */
.demo[data-js] .held { display: none; }
.demo [data-at~="s2"] .held { display: inline; }
.demo [data-at~="s2"] .box--hold { border-color: var(--d-ink-3); background: transparent; }
.demo [data-at~="s2"] .box--hold::after { display: none; }

/* Roll back: v42 goes live at beat 4. */
.live-42 { display: none; }
.demo [data-at~="s4"] .live-42 { display: inline; }
.demo [data-at~="s4"] .live-43, .demo [data-at~="s4"] .roll { display: none; }

/* For AI readers: the page, then llms.txt, then the .md. */
.dm-ai { display: flex; flex: 1; gap: 24px; min-width: 0; }
.dm-site { display: flex; flex-direction: column; flex: 1; min-width: 0; border: 1px solid #d3d8d1; background: #f6f7f4; color: #101312; overflow: hidden; }
.dm-url { display: flex; align-items: center; height: 38px; padding: 0 12px; background: #e7eae6; border-bottom: 1px solid #d3d8d1; }
.dm-url span { flex: 1; padding: 4px 10px; background: #fff; border: 1px solid #d3d8d1; font: 11.5px var(--mono); color: #3d4643; }
.page0 { display: flex; flex-direction: column; gap: 12px; padding: 22px 26px; }
.dm-site-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.dm-site-text { font-size: 15px; line-height: 1.55; color: #3d4643; }
.dm-site-links { display: flex; gap: 8px; }
.dm-site-links span { padding: 3px 8px; border: 1px solid #d3d8d1; font: 11px var(--mono); }
.dm-raw { margin: 0; padding: 18px 22px; font: 12.5px/1.6 var(--mono); color: #3d4643; white-space: pre-wrap; }
.u1, .u2, .page1, .page2 { display: none !important; }
.demo [data-at~="s1"] .u0, .demo [data-at~="s1"] .page0 { display: none !important; }
.demo [data-at~="s1"]:not([data-at~="s2"]) .u1, .demo [data-at~="s1"]:not([data-at~="s2"]) .page1 { display: block !important; }
.demo [data-at~="s2"] .u2, .demo [data-at~="s2"] .page2 { display: block !important; }

/* ------------------------------------------------------- responsive
 *
 * The demos are drawn for a wide screen. Below 1000px each one scales
 * down as a picture of itself, and below 700px the tabs become a list. */

@media (max-width: 1279px) {
  .demo-stage { padding: 24px; }
  .dw-side, .dw-chat-side { width: 170px; }
  .dw-routine, .dw-aside, .dw--assistant { width: 300px; }
  .dk-side { display: none; }
}

@media (max-width: 999px) {
  /* Room above each demo for the Pause button, which sits top right. */
  .demo-stage { height: auto; min-height: 520px; padding: 50px 16px 16px; }
  .dw-side, .dw-chat-side { display: none; }
  .dw-split, .dm-ai, .dw:has(.dw-routine) { flex-direction: column; }
  .dw-routine, .dw-aside, .dw--assistant { width: auto; }
  .dw-aside { padding: 0 24px 24px; }
  .dw-routine { border-right: 0; border-bottom: 1px solid var(--d-line-2); }
  .dk-main { width: 100%; }
  .demo-tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
}

@media (max-width: 700px) {
  .demo-tabs { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .demo-tab { min-height: 0; border-right: 0; border-top: 1px solid var(--d-line-2); }
  .demo-tab:first-child { border-top: 0; }
  .dw-body, .dw-body--roomy { padding: 18px; }
  .dm-q, .dm-a { max-width: 100%; }
  .dk-buttons { grid-template-columns: 1fr 1fr; }
  .dk-buttons .dk-approve { grid-column: 1 / -1; }
  .dm-row, .dm-li, .dm-card-head { flex-wrap: wrap; }
  .dm-li .dm-tag { margin-left: 0; }
}

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