/* ============================================================
   Design system case study — page-specific styles
   Builds on case-new.css and tokens.css. The component previews
   deliberately use fixed light "paper" colours, like the Figma
   documentation they come from, so they read the same in both themes.
   ============================================================ */

.ds-page {
  --ds-accent: #00a9c7;
  --ds-token: #d6247f;
  --ds-stage: #cfeef3;
  --ds-stage-deep: #0594ad;
  --ds-stage-soft: #b3e1ec;
  --ds-paper: #ffffff;
  --ds-ink: #111111;
  --ds-ink-muted: #6b6b66;
  --ds-line: #e4e4e0;
  --ds-do: #e4efe9;
  --ds-dont: #f0dde0;
}

.case-intro .case-back { display: inline-block; }
.case-intro .case-summary { margin-bottom: var(--space-8); }
.ds-eyebrow {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-faint);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
}
.ds-section { padding-top: var(--space-16); }
.ds-numbers { align-items: flex-start; }

/* Group list (the four component families) ------------------- */
.ds-groups {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
}
.ds-groups li { padding: var(--space-6) var(--space-5) var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.ds-groups__n {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.ds-groups__name { display: block; font-size: var(--text-base); font-weight: var(--weight-medium); margin-bottom: var(--space-2); }
.ds-groups__list { display: block; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }

/* Focus ring for every interactive piece ---------------------- */
.ds-page button:focus-visible,
.ds-page [tabindex="0"]:focus-visible {
  outline: 2px solid var(--ds-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   Shared: segmented control + panels
   ============================================================ */
.ds-seg {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.ds-seg::-webkit-scrollbar { display: none; }
.ds-seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform .4s cubic-bezier(.34, 1.3, .64, 1), width .4s cubic-bezier(.4, 0, .2, 1);
}
.ds-seg__btn {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: color .25s ease;
  white-space: nowrap;
}
.ds-seg__btn:hover { color: var(--color-text); }
.ds-seg__btn.is-on { color: var(--color-bg); }
.ds-seg--small { padding: 3px; }
.ds-seg--small .ds-seg__btn { padding: 6px 12px; font-size: 13px; transition: color .2s ease, background .2s ease; }
.ds-seg--small .ds-seg__btn.is-on { background: var(--color-text); }

[data-state="out"] { opacity: 0; transform: translateY(6px); transition: opacity .14s ease, transform .14s ease; }
[data-state="in"] > * { animation: ds-rise .5s var(--ease-out) both; }
[data-state="in"] > *:nth-child(2) { animation-delay: 50ms; }
[data-state="in"] > *:nth-child(3) { animation-delay: 100ms; }
[data-state="in"] > *:nth-child(4) { animation-delay: 150ms; }
[data-state="in"] > *:nth-child(5) { animation-delay: 200ms; }
[data-state="in"] > *:nth-child(6) { animation-delay: 240ms; }
[data-state="in"] > *:nth-child(n+7) { animation-delay: 280ms; }
@keyframes ds-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Token explorer
   ============================================================ */
.ds-tokens-explorer { margin-top: var(--space-10); }
.ds-tokens-explorer__panel {
  margin-top: var(--space-6);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  min-height: 420px;
}
.ds-sec__lead { font-size: var(--text-base); line-height: var(--leading-normal); color: var(--color-text-muted); max-width: 640px; margin: 0; }
.ds-sec__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-faint);
}
.ds-sec__label--gap { margin-top: var(--space-10); }

.ds-tk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.ds-tk__item {
  padding: var(--space-4);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: transform .3s var(--ease-out), border-color .3s ease, background .3s ease;
  animation: ds-rise .5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.ds-tk__item:hover,
.ds-tk__item:focus-visible { transform: translateY(-3px); border-color: var(--color-border); background: var(--color-surface); }
.ds-tk__visual { height: 88px; display: flex; align-items: center; }
.ds-tk__meta { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-3); }
.ds-tk__meta code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--ds-token); overflow-wrap: anywhere; }
.ds-tk__meta strong { font-size: var(--text-base); font-weight: var(--weight-medium); }
.ds-tk__meta span { font-size: 12px; color: var(--color-text-faint); }

.ds-tk--stage .ds-tk__visual { justify-content: center; background: #f4f4f2; border-radius: 12px; }

.ds-tk--rows { grid-template-columns: 1fr; gap: 0; }
.ds-tk--rows .ds-tk__item {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  padding: 7px 12px;
}
.ds-tk--rows .ds-tk__item:hover { transform: translateX(4px); }
.ds-tk--rows .ds-tk__visual { order: 2; height: auto; }
.ds-tk--rows .ds-tk__meta { order: 1; display: grid; grid-template-columns: 124px 56px auto; gap: 8px; align-items: baseline; margin-top: 0; }

.tk-shape { display: block; width: 64px; height: 64px; background: var(--color-text); box-sizing: border-box; transition: transform .3s var(--ease-out); }
.ds-tk__item:hover .tk-shape { transform: scale(1.06); }
.tk-shape--outline { background: transparent; border: 0 solid var(--color-text); border-radius: 4px; }
.tk-shape--outline.is-none { background: repeating-conic-gradient(var(--color-border) 0 25%, transparent 0 50%) 50% / 12px 12px; }
.tk-layers { position: relative; display: block; width: 72px; height: 64px; }
.tk-layers i { position: absolute; width: 44px; height: 44px; }
.tk-layers i:first-child { left: 0; top: 0; background: var(--ds-accent); }
.tk-layers i:last-child { left: 24px; top: 18px; background: #073b44; }
.tk-card { display: block; width: 64px; height: 64px; border-radius: 12px; background: #fff; }
.tk-bar { display: block; width: 100%; }
.tk-bar i { display: block; height: 12px; width: var(--w); background: var(--ds-accent); border-radius: 3px; transform-origin: left; animation: ds-grow .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms + 80ms); }
@keyframes ds-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ds-tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); max-width: 640px; }
.ds-tips li { position: relative; padding-left: var(--space-5); font-size: var(--text-base); line-height: var(--leading-normal); color: var(--color-text-muted); }
.ds-tips li::before { content: ''; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--ds-accent); }

.ds-type { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-8); }
.ds-type__name { display: flex; flex-direction: column; gap: 4px; margin: 0 0 var(--space-3); font-size: var(--text-base); font-weight: var(--weight-medium); }
.ds-type__name span { font-size: var(--text-sm); font-weight: 400; color: var(--color-text-faint); }
.ds-type__row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 110px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  animation: ds-rise .5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.ds-type__sample { font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.15; }
.ds-type__token code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ds-token); }
.ds-type__use { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }

/* ============================================================
   Component browser
   ============================================================ */
.ds-browser {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-10);
  margin-top: var(--space-10);
  align-items: start;
}
.ds-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.ds-nav::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--color-border); }
.ds-nav__indicator {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--ds-accent);
  transition: transform .4s cubic-bezier(.34, 1.3, .64, 1), height .3s ease;
  pointer-events: none;
}
.ds-nav__group { display: flex; flex-direction: column; gap: 2px; }
.ds-nav__title {
  margin: 0 0 var(--space-2) var(--space-5);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-faint);
}
.ds-nav__btn {
  padding: 8px 12px 8px var(--space-5);
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, transform .3s var(--ease-out);
}
.ds-nav__btn:hover { color: var(--color-text); transform: translateX(3px); }
.ds-nav__btn.is-on { color: var(--color-text); font-weight: var(--weight-medium); }

.ds-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  min-height: 600px;
}

.ds-doc__eyebrow { margin: 0 0 var(--space-2); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--color-text-faint); }
.ds-doc__title { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: var(--weight-bold); letter-spacing: -0.03em; line-height: 1.1; }

.ds-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: var(--space-8);
  padding: 48px 24px;
  border-radius: 12px;
  background: var(--ds-stage);
  overflow: hidden;
  isolation: isolate;
}
.ds-hero::before,
.ds-hero::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; transition: transform .8s var(--ease-out); }
.ds-hero::before { width: 44%; aspect-ratio: 1; right: -18%; top: -46%; background: var(--ds-stage-deep); }
.ds-hero::after { width: 40%; aspect-ratio: 1; left: -10%; bottom: -50%; background: var(--ds-stage-soft); }
.ds-panel:hover .ds-hero::before { transform: translate(-10px, 8px); }
.ds-panel:hover .ds-hero::after { transform: translate(10px, -8px); }
.ds-hero__inner { max-width: 100%; display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.ds-hero__inner--stack { flex-direction: column; align-items: center; gap: var(--space-5); overflow: visible; }
.ds-hero__inner--wide { width: 100%; }
.ds-hero__live { display: flex; justify-content: center; width: 100%; }
.stage-chip { padding: 28px; border-radius: 16px; background: var(--ds-paper); }

.ds-sec { margin-top: var(--space-10); }
.ds-when { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.ds-when .ds-sec { margin-top: var(--space-10); }
.ds-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #cfe9da; color: #0f5132; }
.ds-tick svg { width: 11px; height: 11px; }
.ds-tick--no { background: #f6ccd4; color: #7a1b2d; }
.ds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ds-list li { font-size: var(--text-base); line-height: var(--leading-normal); color: var(--color-text-muted); }
.ds-list strong { color: var(--color-text); font-weight: var(--weight-medium); }

.ds-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.ds-types--2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.ds-types li { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ds-types__demo { padding: 20px; border-radius: 10px; background: #f4f4f2; display: flex; overflow: hidden; }
.ds-types p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-text-muted); }
.ds-types strong { color: var(--color-text); font-weight: var(--weight-medium); }
.ds-types__ex { display: block; margin-top: 2px; color: var(--color-text-faint); }

/* Anatomy ---------------------------------------------------- */
.ds-anatomy__stage {
  display: grid;
  place-items: center;
  padding: 64px 48px;
  border-radius: 12px;
  background: #f4f4f2;
  overflow-x: auto;
}
.ds-anatomy__demo { position: relative; }
.ds-anatomy [data-part] { position: relative; transition: outline-color .2s ease; outline: 2px dashed transparent; outline-offset: 3px; border-radius: 6px; }
.ds-anatomy__demo [data-part]::before {
  content: attr(data-part);
  position: absolute;
  top: var(--b-top, -9px);
  right: var(--b-right, -9px);
  bottom: var(--b-bottom, auto);
  left: var(--b-left, auto);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ds-accent);
  color: #fff;
  font: 700 11px/1 'DM Sans', system-ui, sans-serif;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease;
  pointer-events: none;
}
.ds-anatomy [data-part].is-hot { outline-color: var(--ds-accent); }
.ds-anatomy__demo [data-part].is-hot::before { transform: scale(1.2); box-shadow: 0 0 0 5px rgba(0, 169, 199, .25); }
.ds-parts { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: 2px; }
.ds-parts li {
  position: relative;
  padding: 10px 14px 10px 48px;
  border-radius: 8px;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  cursor: default;
  transition: background .2s ease, color .2s ease;
}
.ds-parts li::before {
  content: attr(data-part);
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ds-accent);
  color: #fff;
  font: 700 11px/1 'DM Sans', system-ui, sans-serif;
  transition: transform .25s var(--ease-spring);
}
.ds-parts li strong { color: var(--color-text); font-weight: var(--weight-medium); }
.ds-parts li.is-hot { background: var(--color-surface); color: var(--color-text); }
.ds-parts li.is-hot::before { transform: scale(1.15); }

/* The highlight rule above must not flatten the spinner's stacked rings */
.ds-anatomy .spn__track, .ds-anatomy .spn__seg, .ds-anatomy .spn__wrap { position: absolute; border-radius: 50%; outline-offset: 0; }

/* Larger previews in the anatomy so the badges have room */
.ds-anatomy__demo .toast { font-size: 15px; padding: 14px 20px; gap: 14px; }
.ds-anatomy__demo .bnr { font-size: 15px; padding: 14px 20px; width: min(100%, 560px); }
.ds-anatomy__demo .bnr__actions { gap: 8px; }
.ds-anatomy__demo .bc { font-size: 17px; gap: 16px; }

/* Do / Don't ------------------------------------------------- */
.ds-practices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
.ds-practice { margin: 0; min-width: 0; }
.ds-practice--wide { grid-column: 1 / -1; }
.ds-practice__tile {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 24px 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ds-do);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.ds-practice--dont .ds-practice__tile { background: var(--ds-dont); }
.ds-practice:hover .ds-practice__tile { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.ds-practice figcaption { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.ds-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #111; }
.ds-badge svg { width: 12px; height: 12px; }
.ds-badge--do { background: #cfe9da; color: #0f5132; }
.ds-badge--dont { background: #f6ccd4; color: #7a1b2d; }

.ds-doc__foot { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.ds-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .2s ease;
}
.ds-next:hover { transform: translateY(-2px); border-color: var(--color-text-faint); }
.ds-next__dir { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); }
.ds-next__name { font-size: var(--text-base); font-weight: var(--weight-medium); }
.ds-next__name span { display: inline-block; transition: transform .3s var(--ease-out); }
.ds-next:hover .ds-next__name span { transform: translateX(4px); }

/* ============================================================
   Component previews (fixed light "paper" colours)
   ============================================================ */
.pg, .bc, .mdl, .toast, .bnr, .spn { color: var(--ds-ink); font-family: 'DM Sans', system-ui, sans-serif; }

.pg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pg__page, .pg__nav {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ds-ink);
  font: 500 14px/1 'DM Sans', system-ui, sans-serif;
  transition: background .2s ease, transform .2s var(--ease-out), color .2s ease;
}
.pg__page.is-current { background: var(--ds-ink); color: #fff; }
.pg__nav.is-off { color: rgba(17, 17, 17, .3); }
.pg__gap { padding: 0 4px; color: var(--ds-ink-muted); }
.pg__group { display: inline-flex; gap: 6px; }
.pg--live .pg__page, .pg--live .pg__nav { cursor: pointer; }
.pg--live .pg__page:not(.is-current):hover, .pg--live .pg__nav:not(:disabled):hover { background: rgba(0, 0, 0, .07); transform: translateY(-1px); }
.pg--live .pg__nav:disabled { opacity: .3; cursor: default; }

.bc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ds-ink-muted); white-space: nowrap; }
.bc__sep { color: #b4b4ae; }
.bc__item { display: inline-flex; align-items: center; gap: 6px; }
.bc__item.is-current { color: var(--ds-ink); font-weight: 600; }

.mdl { width: 280px; padding: 16px 18px; border-radius: 12px; background: var(--ds-paper); box-shadow: 0 8px 28px rgba(0, 0, 0, .16); text-align: left; transition: transform .3s var(--ease-out); }
.mdl__head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.mdl__x { color: var(--ds-ink); display: inline-flex; }
.mdl__tabs { display: flex; gap: 14px; margin: 10px 0 0; border-bottom: 1px solid var(--ds-line); font-size: 12px; color: var(--ds-ink-muted); }
.mdl__tabs span { padding: 0 0 6px; }
.mdl__tabs .is-on { color: var(--ds-ink); border-bottom: 2px solid var(--ds-ink); margin-bottom: -1px; }
.mdl__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; font-size: 12px; }
.mdl__body small { color: var(--ds-ink-muted); font-size: 11px; }
.mdl__body label { display: flex; align-items: center; gap: 8px; }
.mdl__radio { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #b4b4ae; display: inline-block; box-sizing: border-box; }
.mdl__radio.is-on { border: 4px solid var(--ds-ink); }
.mdl__foot { display: flex; justify-content: flex-end; gap: 8px; }
.mdl.is-off { background: #fdeebd; width: 230px; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.mdl.is-off .mdl__head strong { font-size: 15px; }

.btn-s { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 7px; background: var(--ds-ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.btn-s--ghost { background: transparent; color: inherit; }

.spn { position: relative; width: 56px; height: 56px; flex: none; }
.spn__wrap { position: absolute; inset: 0; border-radius: 50%; }
.spn__track, .spn__seg { position: absolute; inset: 0; border-radius: 50%; box-sizing: border-box; border: 8px solid #d4d4d0; }
.spn__seg { border-color: transparent; border-top-color: #151515; border-right-color: #151515; animation: ds-spin 1s linear infinite; }
.spn.is-off .spn__track { border-width: 4px; border-color: #c5c5c1; }
.spn.is-off .spn__seg { border-width: 4px; border-color: transparent; border-top-color: #12a150; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.spn-grid { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; }
.spn-grid__cell { display: grid; place-items: center; height: 84px; border-radius: 8px; background: #fff; }
.spn-grid__cell .spn { transform: scale(.55); }

.toast { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
.toast__icon, .toast__x { display: inline-flex; }
.toast__x { margin-left: 8px; opacity: .85; }
.toast--success { background: #12a150; color: #fff; }
.toast--error { background: #d0143c; color: #fff; }
.toast--neutral { background: var(--ds-paper); color: var(--ds-ink); border: 1px solid var(--ds-line); }

.bnr { display: flex; align-items: center; gap: 14px; width: min(100%, 520px); padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); text-align: left; }
.bnr__body { flex: 1; min-width: 0; }
.bnr__actions { display: inline-flex; gap: 6px; flex: none; }
.bnr__x { display: inline-flex; flex: none; }
.bnr--neutral { background: var(--ds-paper); color: var(--ds-ink); border: 1px solid var(--ds-line); }
.bnr--red { background: #f5cfd6; color: #5c0f1f; }
.bnr--blue { background: #cfe4fa; color: #0d3358; }
.bnr--grey { background: #3a3a3a; color: #fff; }
.bnr--grey .btn-s { background: #fff; color: #111; }
.bnr--grey .btn-s--ghost { background: transparent; color: #fff; }

/* More-work card cover ---------------------------------------- */
.work-card__media--designsystem { background: #cfeef3; }
.work-card__media--designsystem > img { object-fit: cover; object-position: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .ds-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-browser { grid-template-columns: 1fr; gap: var(--space-5); }
  .ds-nav { position: static; flex-direction: row; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .ds-nav::-webkit-scrollbar { display: none; }
  .ds-nav::before, .ds-nav__indicator, .ds-nav__title { display: none; }
  .ds-nav__group { display: contents; }
  .ds-nav__btn { flex: none; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; font-size: var(--text-sm); white-space: nowrap; }
  .ds-nav__btn:hover { transform: none; }
  .ds-nav__btn.is-on { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
  .ds-panel { min-height: 0; }
}

@media (max-width: 767px) {
  .ds-section { padding-top: var(--space-12); }
  .ds-groups { grid-template-columns: 1fr; }
  .ds-when, .ds-practices { grid-template-columns: 1fr; }
  .ds-practice--wide { grid-column: auto; }
  .ds-anatomy__stage { padding: 56px 12px; }
  .ds-anatomy__demo { zoom: .8; }
  .ds-parts li { padding-left: 44px; }
  .ds-hero { padding: 40px 12px; }
  .ds-tk--rows .ds-tk__item { grid-template-columns: 1fr; gap: 6px; }
  .ds-tk--rows .ds-tk__meta { order: 1; grid-template-columns: 1fr auto; }
  .ds-tk--rows .ds-tk__meta code { grid-column: 1 / -1; }
  .ds-tk--rows .ds-tk__visual { order: 2; }
  .ds-type__row { grid-template-columns: 1fr; gap: 4px; }
  .spn-grid { grid-template-columns: repeat(3, 72px); }
  .spn-grid__cell { height: 72px; }
}


/* ============================================================
   Accessibility
   ============================================================ */
.ds-chip { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ds-accent); color: #04252c; font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.ds-h3 { margin: var(--space-16, 64px) 0 var(--space-6, 24px); font-size: var(--text-xl, 24px); font-weight: 600; }

.ds-a11y { margin-top: var(--space-10, 40px); padding: 20px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); }
.ds-a11y__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ds-a11y__bar:nth-of-type(2) { margin-bottom: 16px; }
.ds-a11y__stages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ds-a11y__stage { padding: 20px 20px 28px; border: 1px solid rgba(128,128,128,.28); border-radius: 14px; min-height: 230px; }
.ds-a11y__stage--light { --acc-bg: #f7f7f7; --acc-fg: #111; --acc-hover: #e6e6e6; --acc-ring: #0a58ca; --acc-gap: #fff; --ctl: #111; --ctl-fg: #fff; --ctl-hover: #333; --ctl-press: #000; --ctl-line: #6b6b6b; --err: #c62828; --dis: .42; background: #f7f7f7; color: #111; }
.ds-a11y__stage--dark { --acc-bg: #0d0d0d; --acc-fg: #fff; --acc-hover: rgba(255,255,255,.28); --acc-ring: #fff; --acc-gap: #0d0d0d; --ctl: #fff; --ctl-fg: #111; --ctl-hover: #dcdcdc; --ctl-press: #bdbdbd; --ctl-line: #9a9a9a; --err: #ff8a80; --dis: .45; background: #0d0d0d; color: #fff; }
.ds-a11y__tag { margin: 0 0 16px; font-size: 12px; opacity: .75; }

.acc__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--acc-fg); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s ease, box-shadow .15s ease; }
.acc__btn:hover, .ds-a11y[data-force="hover"] .acc__btn { background: var(--acc-hover); }
.acc__btn:focus { outline: none; }
.acc__btn:focus-visible, .ds-a11y[data-force="focus"] .acc__btn { outline: none; box-shadow: 0 0 0 2px var(--acc-gap), 0 0 0 4px var(--acc-ring); }
.acc__icon { position: relative; width: 14px; height: 14px; flex: none; transition: transform .3s cubic-bezier(.34, 1.3, .64, 1); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: currentColor; }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(135deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0; padding: 8px 12px 4px; color: var(--acc-fg); opacity: .85; font-size: 13px; line-height: 1.55; }
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }

.ds-a11y__read { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 12px; margin-top: 12px; }
.ds-a11y__say, .ds-a11y__note { padding: 16px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-bg); }
.ds-a11y__k { margin: 0 0 8px; color: var(--color-text-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ds-a11y__quote { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.ds-a11y__hint { margin: 10px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
.ds-a11y__note p:last-child { margin: 0; font-size: 14px; line-height: 1.55; }
[data-a11y-say], [data-a11y-hint], [data-a11y-file], [data-a11y-check] { transition: opacity .12s ease, transform .12s ease; }
.is-swap { opacity: 0; transform: translateY(4px); }
.ds-a11y__foot { margin: 14px 2px 0; color: var(--color-text-muted); font-size: 13px; }


.ds-a11y__stage > div[data-a11y-mount] { transition: opacity .14s ease, transform .14s ease; min-height: 120px; }
.ds-a11y__stage > div.is-swap { opacity: 0; transform: translateY(6px); }
.ds-a11y .acc__btn:focus-visible, .ds-a11y .cb:focus-visible, .ds-a11y .cs:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--acc-gap), 0 0 0 4px var(--acc-ring); }

/* Button */
.cb { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; height: 40px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--ctl); color: var(--ctl-fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s ease, transform .12s ease, box-shadow .15s ease, opacity .2s ease; }
.cb:hover:not(:disabled), [data-force="hover"] .cb { background: var(--ctl-hover); }
.cb:active:not(:disabled), [data-force="pressed"] .cb { background: var(--ctl-press); transform: scale(.97); }
[data-force="focus"] .cb { box-shadow: 0 0 0 2px var(--acc-gap), 0 0 0 4px var(--acc-ring); }
.cb:disabled { opacity: var(--dis); cursor: not-allowed; }
.cb__spin { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ds-spin 1s linear infinite; }
.cb[aria-busy="true"] .cb__spin { display: inline-block; }
.cb[aria-busy="true"] { cursor: progress; }

/* Text input */
.ci { max-width: 320px; }
.ci label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.ci__in { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--ctl-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease, opacity .2s ease; }
.ci__in::placeholder { color: inherit; opacity: .55; }
.ci__in:hover:not(:disabled), [data-force="hover"] .ci__in { border-color: var(--acc-fg); }
.ci__in:focus, [data-force="focus"] .ci__in { outline: none; border-color: var(--acc-fg); box-shadow: 0 0 0 2px var(--acc-gap), 0 0 0 4px var(--acc-ring); }
.ci__in[aria-invalid="true"] { border-color: var(--err); border-width: 2px; padding: 0 11px; }
.ci__in:disabled { opacity: var(--dis); cursor: not-allowed; }
.ci__err { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--err); font-size: 13px; line-height: 1.4; animation: ds-rise .3s ease both; }
.ci__err[hidden] { display: none; }
.ci__err span { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: var(--acc-bg); font-size: 11px; font-weight: 800; }

/* Checkbox */
.cc { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; cursor: pointer; }
.cc__in { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: inherit; }
.cc__box { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--ctl-line); border-radius: 5px; color: var(--ctl-fg); transition: background .18s ease, border-color .18s ease, box-shadow .15s ease; }
.cc__box i { position: absolute; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .15s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.cc:hover .cc__in:not(:disabled) + .cc__box, [data-force="hover"] .cc__box { border-color: var(--acc-fg); }
.cc__in:checked + .cc__box, .cc__in:indeterminate + .cc__box { background: var(--ctl); border-color: var(--ctl); }
.cc__in:checked + .cc__box .cc__tick, .cc__in:indeterminate + .cc__box .cc__dash { opacity: 1; transform: none; }
.cc__in:focus-visible + .cc__box, [data-force="focus"] .cc__box { box-shadow: 0 0 0 2px var(--acc-gap), 0 0 0 4px var(--acc-ring); }
.cc__in:disabled ~ span { opacity: var(--dis); }
.cc:has(.cc__in:disabled) { cursor: not-allowed; }

/* Switch */
.cs { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: transparent; color: var(--acc-fg); font: inherit; font-size: 14px; cursor: pointer; transition: box-shadow .15s ease, opacity .2s ease; }
.cs__track { position: relative; width: 40px; height: 24px; flex: none; border: 1.5px solid var(--ctl-line); border-radius: 999px; transition: background .2s ease, border-color .2s ease; }
.cs__thumb { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--ctl-line); transition: transform .28s cubic-bezier(.34, 1.4, .64, 1), background .2s ease; }
.cs:hover:not(:disabled) .cs__track, [data-force="hover"] .cs__track { border-color: var(--acc-fg); }
.cs[aria-checked="true"] .cs__track { background: var(--ctl); border-color: var(--ctl); }
.cs[aria-checked="true"] .cs__thumb { transform: translateX(16px); background: var(--ctl-fg); }
.cs__st { min-width: 24px; font-size: 12px; font-weight: 700; opacity: .8; }
[data-force="focus"] .cs { box-shadow: 0 0 0 2px var(--acc-gap), 0 0 0 4px var(--acc-ring); }
.cs:disabled { opacity: var(--dis); cursor: not-allowed; }

.ds-concerns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ds-concern { padding: 20px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); transition: transform .25s ease, border-color .25s ease; }
.ds-concern:hover { transform: translateY(-3px); border-color: var(--ds-accent); }
.ds-concern__sc { margin: 0 0 10px; color: var(--color-text-muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.ds-concern h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.ds-concern p:last-child { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }
.ds-callout { margin-top: var(--space-12, 48px); padding: 28px; border-left: 3px solid var(--ds-accent); border-radius: 0 16px 16px 0; background: var(--color-surface); }
.ds-callout h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.ds-callout .case-body { margin: 0; }
.ds-sec--a11y .ds-sec__label { display: flex; align-items: center; }

@media (max-width: 1023px) { .ds-a11y__read { grid-template-columns: 1fr; } .ds-concerns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .ds-a11y { padding: 12px; } .ds-a11y__stages, .ds-concerns { grid-template-columns: 1fr; } .ds-a11y__stage { min-height: 0; } }


/* ============================================================
   Card playground
   ============================================================ */
.dcx { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin: var(--space-10, 40px) 0; align-items: stretch; }
.dcx__stage { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 28px; border-radius: 20px; background: var(--ds-stage); overflow: hidden; isolation: isolate; }
.dcx__stage::before { content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; right: -16%; top: -30%; border-radius: 50%; background: var(--ds-stage-soft); }
.dcx__stage::after { content: ""; position: absolute; z-index: -1; width: 34%; aspect-ratio: 1; left: -8%; bottom: -16%; border-radius: 50%; background: var(--ds-stage-deep); opacity: .16; }
.dcx__top { display: flex; }
.dcx .dcx__seg { background: rgba(255,255,255,.72); border-color: rgba(5, 60, 72, .14); }
.dcx .dcx__seg .ds-seg__thumb { background: #0b3b46; }
.dcx .dcx__seg .ds-seg__btn { color: #2a5560; }
.dcx .dcx__seg .ds-seg__btn.is-on { color: #fff; background: transparent; }
.dcx .dcx__seg .ds-seg__btn:hover { color: #0b3b46; }
.dcx .dcx__seg .ds-seg__btn.is-on:hover { color: #fff; }
.dcx .dcx__seg .ds-seg__btn:focus-visible { outline: 2px solid #0b3b46; outline-offset: 2px; }
.dcx__card-wrap { flex: 1; display: grid; place-items: center; perspective: 900px; padding: 8px 0; }
.dcx__card { --rx: 0deg; --ry: 0deg; position: relative; width: min(100%, 340px); display: flex; flex-direction: column; border: 1px solid #e3e3e3; border-radius: 16px; background: #fff; color: #111; box-shadow: 0 2px 4px rgba(5, 60, 72, .08), 0 18px 40px rgba(5, 60, 72, .18); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, outline-color .2s ease; outline: 2px dashed transparent; outline-offset: 6px; }
.dcx__stage.is-tilting .dcx__card { transition: transform .08s linear, box-shadow .3s ease, outline-color .2s ease; }
.dcx__hint { margin: 0; text-align: center; color: #2a5560; font-size: 12px; opacity: .8; }
.dcx__z { position: relative; padding: 16px 18px; border-radius: 10px; outline: 1.5px dashed transparent; outline-offset: -5px; transition: outline-color .2s ease, background .2s ease, opacity .14s ease, transform .14s ease; }
.dcx__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dcx__body { min-height: 176px; }
.dcx__foot { border-top: 1px solid #eee; border-radius: 0 0 14px 14px; }
.dcx__z.is-swap { opacity: 0; transform: translateY(6px); }
.dcx__z::before, .dcx__card::before { content: attr(data-n); position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ds-token); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.dcx__z::before { top: -10px; left: -10px; z-index: 2; }
.dcx__card::before { content: "4"; top: -14px; right: -14px; z-index: 2; }

.dcx.is-outlined .dcx__z, .dcx[data-hot="1"] .dcx__z[data-n="1"], .dcx[data-hot="2"] .dcx__z[data-n="2"], .dcx[data-hot="3"] .dcx__z[data-n="3"] { outline-color: var(--ds-token); background: rgba(214, 36, 127, .05); }
.dcx.is-outlined .dcx__z::before, .dcx[data-hot="1"] .dcx__z[data-n="1"]::before, .dcx[data-hot="2"] .dcx__z[data-n="2"]::before, .dcx[data-hot="3"] .dcx__z[data-n="3"]::before { opacity: 1; transform: none; }
.dcx.is-outlined .dcx__card, .dcx[data-hot="4"] .dcx__card { outline-color: var(--ds-token); }
.dcx.is-outlined .dcx__card::before, .dcx[data-hot="4"] .dcx__card::before { opacity: 1; transform: none; }

/* card content */
.dcx__eyebrow { color: #555; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dcx__pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.dcx__pill--amber { background: #fdecc4; color: #5a3b00; }
.dcx__pill--teal { background: #d3eef3; color: #064957; }
.dcx__pill--green { background: #d8f0e1; color: #0b4a26; }
.dcx__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; color: #111; }
.dcx__title--sm { font-size: 14px; }
.dcx__meta { margin: 6px 0 0; color: #555; font-size: 13px; line-height: 1.5; }
.dcx__big { margin: 0 0 2px; font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: #111; }
.dcx__media { height: 96px; margin-bottom: 14px; border-radius: 10px; background: linear-gradient(135deg, #0594ad, #7fd2e2 60%, #d6247f 150%); }
.dcx__bar { height: 6px; margin-top: 16px; border-radius: 99px; background: #e7e7e7; overflow: hidden; }
.dcx__bar i { display: block; width: 60%; height: 100%; border-radius: inherit; background: #0594ad; transform-origin: left; animation: ds-grow .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.dcx__steps { margin: 6px 0 0; color: #555; font-size: 12px; }
.dcx__spark { display: block; width: 100%; height: 34px; margin-top: 12px; }
.dcx__spark path { fill: none; stroke: #0b7a43; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: ds-draw 1s .1s ease forwards; }
@keyframes ds-draw { to { stroke-dashoffset: 0; } }
.dcx__person { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dcx__avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #0594ad, #d6247f); color: #fff; font-size: 18px; font-weight: 700; }
.dcx__link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #064957; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; transition: gap .2s ease; }
.dcx__link:hover { gap: 10px; }
.dcx__link:focus-visible { outline: 2px solid #064957; outline-offset: 4px; border-radius: 3px; }

/* side */
.dcx__side { display: flex; flex-direction: column; padding: 8px 4px 8px 8px; }
.dcx__sidehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dcx__h { margin: 0; font-size: 20px; font-weight: 600; }
.dcx__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .2s ease; }
.dcx__toggle:hover { border-color: var(--ds-token); }
.dcx__toggle:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 3px; }
.dcx__dot { width: 10px; height: 10px; border: 1.5px solid var(--ds-token); border-radius: 3px; transition: background .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.dcx__toggle[aria-pressed="true"] .dcx__dot { background: var(--ds-token); transform: rotate(90deg); }
.dcx__parts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dcx__parts li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); cursor: default; transition: border-color .2s ease, transform .25s cubic-bezier(.34, 1.4, .64, 1), background .2s ease; }
.dcx__parts li:hover, .dcx__parts li:focus-visible, .dcx__parts li.is-hot { border-color: var(--ds-token); transform: translateX(4px); }
.dcx__parts li:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 3px; }
.dcx__num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ds-token); color: #fff; font-size: 12px; font-weight: 700; }
.dcx__parts strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.dcx__parts p { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 1023px) { .dcx { grid-template-columns: 1fr; } .dcx__side { padding: 0; } }
@media (max-width: 767px) { .dcx__stage { padding: 16px 14px 22px; } .dcx__card::before { right: -6px; } .dcx__parts li { padding: 14px; } .dcx__top { max-width: 100%; } }
@media (hover: none) { .dcx__hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .dcx__card { transform: none !important; }
  .ds-page *, .ds-page *::before, .ds-page *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ds-page .spn__seg { animation: ds-spin 3s linear infinite !important; }
}
