/* overview.css · styles for overview.js: the path, up next, latest results and the Creative / Reports strip.
   Every class is ds-ov-prefixed; phone rules live at the end of this file.
   The soft pass (Oct 2): corners from the radius tokens, tinted tiles and hairline rows in place of boxes, one card with
   presence (Up next), rows that tint and buttons that come forward on hover, and two beats of motion tied to meaning:
   a test row and its node light together, and a saved result lands on the Reports stack. */

/* stage colours as one variable pair per stage class (fill, ink) */
.ds-ov-path .s-design, .ds-ov-next.s-design, .ds-ov-res li.s-design { --stg: var(--ds-st-design); --stg-ink: var(--ds-st-design-ink); }
.ds-ov-path .s-discover, .ds-ov-next.s-discover, .ds-ov-res li.s-discover { --stg: var(--ds-st-discover); --stg-ink: var(--ds-st-discover-ink); }
.ds-ov-path .s-optimize, .ds-ov-next.s-optimize, .ds-ov-res li.s-optimize { --stg: var(--ds-st-optimize); --stg-ink: var(--ds-st-optimize-ink); }
.ds-ov-path .s-acquire, .ds-ov-next.s-acquire, .ds-ov-res li.s-acquire { --stg: var(--ds-st-acquire); --stg-ink: var(--ds-st-acquire-ink); }
.ds-ov-path { --ov-lift: cubic-bezier(.22, .61, .36, 1); --ov-pop: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- the path (round 54): the project's steps in the order they ran, one line through their numbers ---------- */
.ds-ov-fig { position: relative; }
.ds-ov-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 18px 14px; margin: 6px 0 0; padding: 0; }
.ds-ov-step { position: relative; min-width: 0; }
/* the line from this step's number to the next one's: solid once both have results, dashed towards what is planned */
.ds-ov-step::before { content: ""; position: absolute; top: 22px; left: 44px; right: -16px; height: 0; border-top: 2px solid var(--stg, #C3CAD6); transform-origin: left center; pointer-events: none; }
.ds-ov-step.ln-plan::before { border-top: 2px dashed #B4BCC9; }
.ds-ov-step.ln-open::before { border-top: 2px dashed #D3D9E2; }
.ds-ov-step-add::before, .ds-ov-step:nth-child(5n)::before, .ds-ov-step:last-child::before { display: none; }
.ds-ov-step .ds-ov-trow { display: block; height: 100%; padding: 10px 12px 12px 10px; }
.ds-ov-step .ds-ov-num { position: relative; z-index: 1; }
.ds-ov-step .ds-ov-tt { display: block; padding-top: 10px; }
.ds-ov-ty { display: block; margin-bottom: 3px; font-size: var(--ds-fs-2); font-weight: 600; color: var(--stg-ink, var(--ds-muted)); }
.ds-ov-trow.st-locked .ds-ov-ty, .ds-ov-trow.st-todo:not(.next) .ds-ov-ty { color: var(--ds-label); }
.ds-ov-step-add { display: flex; }
.ds-ov-step-add .ds-ov-add.slot { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; height: 100%; min-height: 96px; padding: 10px 12px 12px 10px; }

/* drawn once when the overview opens: each step in the order it ran, then its line, then one soft ring on what is next */
@keyframes ds-ov-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ds-ov-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes ds-ov-fade { from { opacity: 0; } }
@keyframes ds-ov-rise { from { opacity: 0; transform: translateY(6px); } }
.ds-ov-fig.anim .ds-ov-step .ds-ov-num { animation: ds-ov-pop .42s var(--ds-ease) both; animation-delay: calc(.2s + var(--i) * 120ms); }
.ds-ov-fig.anim .ds-ov-step .ds-ov-tt, .ds-ov-fig.anim .ds-ov-step-add .ds-ov-add { animation: ds-ov-rise .45s var(--ds-ease) both; animation-delay: calc(.28s + var(--i) * 120ms); }
.ds-ov-fig.anim .ds-ov-step::before { animation: ds-ov-seg .4s var(--ds-ease) both; animation-delay: calc(.4s + var(--i) * 120ms); }
.ds-ov-fig.anim.pre * , .ds-ov-fig.anim.pre .ds-ov-step::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .ds-ov-fig.anim *, .ds-ov-fig.anim .ds-ov-step::before { animation: none !important; } }
@media print { .ds-ov-fig.anim *, .ds-ov-fig.anim .ds-ov-step::before { animation: none !important; } }

/* a step: a hairless row that tints on hover; the one up next sits on a soft wash of its own color */
.ds-ov-trow { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px 11px 10px; border-radius: var(--ds-r-inner); text-decoration: none; color: inherit; transition: background .2s; }
.ds-ov-trow:hover, .ds-ov-trow.hl { background: var(--ds-tint); }
.ds-ov-trow.next { background: color-mix(in srgb, var(--stg) 9%, var(--ds-paper)); }
.ds-ov-trow.next:hover, .ds-ov-trow.next.hl { background: color-mix(in srgb, var(--stg) 14%, var(--ds-paper)); }
.ds-ov-trow.next.st-todo { --stg: #8E99AA; }
.ds-ov-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: var(--ds-fs-2); font-weight: 700; font-variant-numeric: tabular-nums; border: 2px solid transparent; transition: transform .26s var(--ov-pop), box-shadow .2s; }
.ds-ov-trow:hover .ds-ov-num, .ds-ov-trow.hl .ds-ov-num { transform: scale(1.1); }
.ds-ov-num.st-done { background: var(--stg); color: #fff; }
.ds-ov-num.st-done.s-acquire { color: #062E18; }
.ds-ov-num.st-ready { border-color: var(--stg); color: var(--stg-ink); background: var(--ds-paper); }
.ds-ov-trow.next .ds-ov-num.st-ready { box-shadow: 0 0 0 4px color-mix(in srgb, var(--stg) 16%, transparent); }
.ds-ov-num.st-todo { border: 2px dashed #B4BCC9; color: var(--ds-label); background: var(--ds-paper); }
.ds-ov-num.st-locked { background: #EEF1F5; color: #9AA3B1; }
.ds-ov-num svg { width: 13px; height: 13px; }
.ds-ov-tt { min-width: 0; padding-top: 2px; }
.ds-ov-tt b { display: block; font-size: var(--ds-fs-4); font-weight: 600; line-height: 1.3; color: var(--ds-ink); text-wrap: pretty; }
.ds-ov-trow.st-locked .ds-ov-tt b, .ds-ov-trow.st-todo:not(.next) .ds-ov-tt b { color: var(--ds-ink-soft); font-weight: 550; }
.ds-ov-tm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: var(--ds-fs-2); color: var(--ds-muted); }
.ds-ov-tst, .ds-ov-twhen { white-space: nowrap; }
.ds-ov-twhen { color: var(--ds-label); font-variant-numeric: tabular-nums; }
.ds-ov-trow.next .ds-ov-tst { color: var(--stg-ink); font-weight: 650; }
.ds-ov-trow.next.st-todo .ds-ov-tst { color: var(--ds-ink-soft); }
.ds-ov-trow.st-done .ds-ov-tst { color: var(--ds-teal); font-weight: 600; }

/* add a test: a planned node (a dashed ring) with a plus; in an empty stage it is a soft slot where the first test will sit */
.ds-ov-add { display: inline-flex; align-items: center; gap: 9px; margin: 6px 0 0; padding: 6px 12px 6px 10px; border-radius: var(--ds-r-key); font-size: var(--ds-fs-2); font-weight: 600; color: var(--ds-muted); text-decoration: none; transition: color .2s, background .2s; }
.ds-ov-add-i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px dashed #B4BCC9; color: var(--ds-label); transition: border-color .2s, background .2s, color .2s, transform .26s var(--ov-pop); }
.ds-ov-add-i svg { width: 12px; height: 12px; }
.ds-ov-add:hover { color: var(--ds-ink); background: var(--ds-tint); }
.ds-ov-add:hover .ds-ov-add-i, .ds-ov-add:focus-visible .ds-ov-add-i { border-style: solid; border-color: var(--stg); background: color-mix(in srgb, var(--stg) 12%, var(--ds-paper)); color: var(--stg-ink); transform: scale(1.08); }
.ds-ov-add.slot { display: flex; width: 100%; margin-top: 0; padding: 14px 12px 14px 10px; border-radius: var(--ds-r-inner); background: var(--ds-tint); }
.ds-ov-add.slot:hover { background: #EBF0F8; }

/* ---------- up next + latest results ---------- */
.ds-ov-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ds-gap); align-items: stretch; }

/* Up next is the one card with presence: a flat wash of its stage edged in the same hue, and the number disc from the figure */
html[data-skin] .ds-ov-next, .ds-ov-next { background: color-mix(in srgb, var(--stg) 9%, var(--ds-paper)); border-color: color-mix(in srgb, var(--stg) 22%, transparent); }
.ds-ov-next .ds-sh { margin-bottom: 16px; }
.ds-ov-next .ds-sh-i { background: var(--ds-paper); color: var(--stg-ink); }
.ds-ov-next .ds-sh-meta { padding-top: 2px; }
.ds-ov-next .ds-sh-meta .ds-stg { font-family: var(--ds-f, 'Archivo', sans-serif); text-transform: none; letter-spacing: 0; font-size: var(--ds-fs-2); border-radius: var(--ds-r-key); background: var(--ds-paper); }
.ds-ov-nx-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--ds-fs-3); }
.ds-ov-nx-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; margin-right: 2px; border-radius: 50%; border: 2px solid var(--stg); background: var(--ds-paper); color: var(--stg-ink); font-size: var(--ds-fs-2); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 5px color-mix(in srgb, var(--stg) 16%, transparent); }
.ds-ov-nx-n.st-todo { border-style: dashed; border-color: #A9B3C2; color: var(--ds-label); box-shadow: 0 0 0 5px rgba(142, 153, 170, .14); }
.ds-ov-nx-n.st-new { border-style: dashed; }
.ds-ov-nx-n svg { width: 12px; height: 12px; }
.ds-ov-nx-ty { font-weight: 650; color: var(--stg-ink); }
.ds-ov-nx-time { font-weight: 500; color: var(--ds-label); white-space: nowrap; }
.ds-ov-nx .ds-ov-nx-t { margin: 12px 0 10px; font-size: var(--ds-fs-8); font-weight: 700; line-height: 1.16; letter-spacing: -.03em; color: var(--ds-ink); text-wrap: balance; }
.ds-ov-nx-why { font-size: var(--ds-fs-5); line-height: 1.5; color: var(--ds-ink-soft); max-width: 54ch; }
.ds-ov-nx-facts { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--stg) 18%, var(--ds-line-soft)); }
.ds-ov-nx-facts > div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--ds-fs-3); color: var(--ds-ink-soft); }
.ds-ov-k { font-family: var(--ds-m); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-label); }
.ds-ov-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ds-ov-thumbs .ds-ath, .ds-ov-thumbs .ds-ov-lg { width: 96px; flex: none; }
.ds-ov-thumbs .ds-ath-code { left: 5px; top: 5px; height: 18px; min-width: 20px; font-size: 11px; }
.ds-ov-thumbs .ds-ath-len { right: 5px; bottom: 5px; font-size: 10px; }
.ds-ov-more { font-style: normal; font-size: var(--ds-fs-2); font-weight: 650; color: var(--ds-muted); }
.ds-ov-nx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }

/* latest results: hairline rows that tint as a whole on hover; the save button is a quiet ghost until its row is pointed at */
.ds-ov-latest { display: flex; flex-direction: column; }
.ds-ov-res { list-style: none; margin: -6px -14px 0; }
.ds-ov-res li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 14px; border-radius: var(--ds-r-inner); transition: background .2s; }
.ds-ov-res li + li::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--ds-line-soft); transition: opacity .2s; }
.ds-ov-res li:hover, .ds-ov-res li:focus-within { background: var(--ds-tint); }
.ds-ov-res li:hover::before, .ds-ov-res li:hover + li::before, .ds-ov-res li:focus-within::before, .ds-ov-res li:focus-within + li::before { opacity: 0; }
.ds-ov-res-a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; text-decoration: none; color: inherit; }
.ds-ov-res-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--ds-r-key); background: color-mix(in srgb, var(--stg) 13%, var(--ds-paper)); color: var(--stg-ink); transition: transform .26s cubic-bezier(.34, 1.56, .64, 1); }
.ds-ov-res-i svg { width: 18px; height: 18px; }
.ds-ov-res li:hover .ds-ov-res-i { transform: scale(1.06); }
.ds-ov-res-t b { display: block; font-size: var(--ds-fs-5); font-weight: 600; line-height: 1.38; color: var(--ds-ink); text-wrap: pretty; transition: color .2s; }
.ds-ov-res-a:hover b { color: var(--ds-blue); }
.ds-ov-res-m { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 7px; font-size: var(--ds-fs-2); color: var(--ds-muted); }
.ds-ov-res-m .ds-stg { height: 20px; padding: 0 7px; font-size: var(--ds-fs-1); }
.ds-ov-res-n { font-weight: 600; color: var(--ds-ink-soft); }
.ds-ov-res-s { flex: none; }
html[data-skin] .ds-ov-res .ds-btn.ds-save { height: 34px; padding: 0 12px 0 10px; gap: 7px; border-color: transparent; background: transparent; color: var(--ds-muted); font-size: var(--ds-fs-3); font-weight: 650; transition: background .2s, color .2s, transform .15s; }
html[data-skin] .ds-ov-res .ds-btn.ds-save .ds-save-i, html[data-skin] .ds-ov-res .ds-btn.ds-save .ds-save-i svg { width: 16px; height: 16px; }
html[data-skin] .ds-ov-res li:hover .ds-btn.ds-save, html[data-skin] .ds-ov-res li:focus-within .ds-btn.ds-save { background: var(--ds-paper); color: var(--ds-blue); }
html[data-skin] .ds-ov-res .ds-btn.ds-save:hover { background: var(--ds-wash); color: var(--ds-blue); }
html[data-skin] .ds-ov-res .ds-btn.ds-save:active { transform: scale(.98); }
html[data-skin] .ds-ov-res .ds-btn.ds-save.on { color: var(--ds-teal); background: transparent; }
html[data-skin] .ds-ov-res li:hover .ds-btn.ds-save.on, html[data-skin] .ds-ov-res .ds-btn.ds-save.on:hover { background: var(--ds-teal-wash); color: var(--ds-teal); }
/* touch has no hover: the ghost keeps a soft fill so it reads as a button */
@media (hover: none) {
  html[data-skin] .ds-ov-res .ds-btn.ds-save { background: var(--ds-tint); color: var(--ds-blue); }
  html[data-skin] .ds-ov-res .ds-btn.ds-save.on { background: var(--ds-teal-wash); color: var(--ds-teal); }
}

/* nothing run yet: one soft tile that fills the card, with the save mark it will carry */
.ds-ov-none { flex: 1 1 auto; display: grid; align-content: center; justify-items: center; gap: 12px; min-height: 160px; padding: 28px 24px; border-radius: var(--ds-r-inner); background: var(--ds-tint); text-align: center; font-size: var(--ds-fs-4); line-height: 1.5; color: var(--ds-muted); }
.ds-ov-none p { max-width: 36ch; text-wrap: balance; }
.ds-ov-none b { color: var(--ds-ink); font-weight: 650; }
.ds-ov-none-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed #B4BCC9; background: var(--ds-paper); color: var(--ds-label); }
.ds-ov-none-i svg { width: 18px; height: 18px; }

/* ---------- the strip into Creative and Reports ---------- */
.ds-ov-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-gap); align-items: stretch; }
.ds-ov-tile { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; background: var(--ds-paper); border: 1px solid var(--ds-line); border-radius: var(--ds-r-sheet); text-decoration: none; color: inherit; transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s cubic-bezier(.22, .61, .36, 1); }
.ds-ov-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(23, 40, 62, .30); }
.ds-ov-tile:active { transform: translateY(-1px) scale(.995); }
.ds-ov-tile-h { display: flex; align-items: center; gap: 12px; }
html[data-skin] .ds-ov-tile-h .ds-icon-tile { margin: 0; flex: none; border-radius: var(--ds-r-key); background: var(--ds-tint); border-color: transparent; }
.ds-ov-tile-n { min-width: 0; }
.ds-ov-tile-n b { display: block; font-size: var(--ds-fs-6); font-weight: 700; letter-spacing: -.02em; color: var(--ds-ink); }
.ds-ov-tile-n > span { display: block; font-size: var(--ds-fs-3); color: var(--ds-muted); font-variant-numeric: tabular-nums; }
.ds-ov-cnt { display: inline-block; }
.ds-ov-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: var(--ds-fs-3); font-weight: 600; color: var(--ds-blue); white-space: nowrap; }
.ds-ov-go svg { width: 12px; height: 12px; transition: transform .2s var(--ds-ease); }
.ds-ov-tile:hover .ds-ov-go svg { transform: translateX(2px); }
/* the shelf: hairline thumbnails that rise one after another when the tile is pointed at, then rest */
.ds-ov-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ds-ov-shelf > * { box-shadow: 0 0 0 1px var(--ds-line); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ds-ov-tile-lib:hover .ds-ov-shelf > * { transform: translateY(-3px); }
.ds-ov-shelf > :nth-child(2) { transition-delay: 40ms; } .ds-ov-shelf > :nth-child(3) { transition-delay: 80ms; } .ds-ov-shelf > :nth-child(4) { transition-delay: 120ms; }
.ds-ov-shelf .ds-ath-code { left: 6px; top: 6px; height: 19px; min-width: 21px; font-size: 11px; }
.ds-ov-shelf .ds-ath-len { right: 6px; bottom: 6px; font-size: 10px; }
/* loglines on the three-wide shelf: the chip grows to its two lines instead of clipping them; beside a thumb it stretches to the thumb's height */
.ds-ov-shelf .ds-ov-lg { aspect-ratio: auto; gap: 6px; }
.ds-ov-shelf .ds-ov-lg i { font-size: 20px; }
.ds-ov-tile-f { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--ds-fs-2); color: var(--ds-muted); font-variant-numeric: tabular-nums; }
.ds-ov-tile-f span { white-space: nowrap; }
.ds-ov-tile-b { font-size: var(--ds-fs-4); color: var(--ds-muted); line-height: 1.5; }
/* the Reports stack: the newest report on top, a sheet behind it for each further one (two at most); they fan a little on hover */
.ds-ov-stack { position: relative; display: block; isolation: isolate; }
.ds-ov-stack.k2 { margin-bottom: 7px; } .ds-ov-stack.k3 { margin-bottom: 14px; }
.ds-ov-stack.k2::before, .ds-ov-stack.k3::before, .ds-ov-stack.k3::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--ds-r-inner); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ds-ov-stack::before { background: #E4EAF3; transform: translateY(7px) scale(.95); }
.ds-ov-stack::after { background: #EEF2F8; transform: translateY(14px) scale(.9); z-index: -2; }
.ds-ov-tile-rep:hover .ds-ov-stack::before { transform: translateY(9px) scale(.95) rotate(-.6deg); }
.ds-ov-tile-rep:hover .ds-ov-stack::after { transform: translateY(18px) scale(.9) rotate(.8deg); }
.ds-ov-rep, .ds-ov-camp { position: relative; display: grid; gap: 6px; padding: 14px 16px 15px; border-radius: var(--ds-r-inner); background: var(--ds-tint); align-content: start; }
/* Campaigns: the plan's headline, the success metric against its goal, then the stage and who set it up */
.ds-ov-camp { flex: 1; }
.ds-ov-camp b { font-size: var(--ds-fs-5); font-weight: 600; line-height: 1.35; color: var(--ds-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-ov-camp-m { font-size: var(--ds-fs-3); font-weight: 600; color: var(--ds-ink); font-variant-numeric: tabular-nums; }
.ds-ov-camp-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: var(--ds-fs-2); color: var(--ds-muted); }
.ds-ov-camp-s > span:not(.ds-stg) { color: var(--ds-label); white-space: nowrap; }
.ds-ov-rep b { font-size: var(--ds-fs-5); font-weight: 600; line-height: 1.35; color: var(--ds-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-ov-rep-m { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--ds-fs-2); color: var(--ds-muted); }
.ds-ov-rep-m span { color: var(--ds-label); white-space: nowrap; }
/* a save landing: the new sheet drops onto the stack and the count ticks once */
@keyframes ds-ov-drop { 0% { opacity: 0; transform: translateY(-16px) scale(1.03) rotate(-1.5deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes ds-ov-tick { 0% { opacity: 0; transform: translateY(70%); } 100% { opacity: 1; transform: none; } }
@keyframes ds-ov-glow { 0% { background: var(--ds-teal-wash); } 100% { background: var(--ds-tint); } }
.ds-ov-tile-rep.landed .ds-ov-rep { animation: ds-ov-drop .5s cubic-bezier(.34, 1.56, .64, 1) both, ds-ov-glow 1s ease .3s both; }
.ds-ov-tile-rep.landed .ds-ov-cnt { animation: ds-ov-tick .42s cubic-bezier(.34, 1.56, .64, 1) .12s both; color: var(--ds-teal); font-weight: 650; }

/* a logline has no poster: a small flat card with its title */
.ds-ov-lg { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9; padding: 7px 9px 8px; border-radius: var(--ds-r-key); background: #F1EEFF; color: #2B2350; overflow: hidden; min-width: 0; }
.ds-ov-lg i { font-family: var(--ds-f, 'Archivo', sans-serif); font-style: normal; font-weight: 800; font-size: 24px; line-height: .8; color: #7C68FF; }
.ds-ov-lg b { font-size: 11px; line-height: 1.22; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* motion rests under reduced motion and in still mode */
@media (prefers-reduced-motion: reduce) {
  .ds-ov-node .dot, .ds-ov-num, .ds-ov-add-i, .ds-ov-res-i, .ds-ov-tile, .ds-ov-shelf > *, .ds-ov-stack::before, .ds-ov-stack::after { transition: none; }
  .ds-ov-node.hl .dot, .ds-ov-tile:hover, .ds-ov-tile-lib:hover .ds-ov-shelf > * { transform: none; }
  .ds-ov-tile-rep.landed .ds-ov-rep, .ds-ov-tile-rep.landed .ds-ov-cnt { animation: none; }
}
body.ds-still .ds-ov-node .dot, body.ds-still .ds-ov-num, body.ds-still .ds-ov-add-i, body.ds-still .ds-ov-res-i, body.ds-still .ds-ov-tile, body.ds-still .ds-ov-shelf > *, body.ds-still .ds-ov-stack::before, body.ds-still .ds-ov-stack::after { transition: none; }
body.ds-still .ds-ov-tile-rep.landed .ds-ov-rep, body.ds-still .ds-ov-tile-rep.landed .ds-ov-cnt { animation: none; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .ds-ov-row { grid-template-columns: minmax(0, 1fr); }
  .ds-ov-strip { grid-template-columns: minmax(0, 1fr); }
  .ds-ov-none { min-height: 0; }
}
@media (max-width: 980px) {
  /* the steps run down the page, the line down their numbers */
  .ds-ov-steps { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ds-ov-step .ds-ov-trow { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
  .ds-ov-step .ds-ov-tt { padding-top: 1px; }
  .ds-ov-step::before, .ds-ov-step:nth-child(5n)::before { display: block; top: 42px; bottom: -8px; left: 22px; right: auto; height: auto; border-top: 0; border-left: 2px solid var(--stg, #C3CAD6); }
  .ds-ov-step.ln-plan::before { border-top: 0; border-left: 2px dashed #B4BCC9; }
  .ds-ov-step.ln-open::before { border-top: 0; border-left: 2px dashed #D3D9E2; }
  .ds-ov-step-add::before, .ds-ov-step:last-child::before { display: none; }
  .ds-ov-fig.anim .ds-ov-step::before { animation-name: ds-ov-fade; }
  .ds-ov-step-add .ds-ov-add.slot { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 12px 12px 12px 10px; }
  .ds-ov-strip { grid-template-columns: minmax(0, 1fr); }
}
/* phones: the sheet is the only container. Inner tiles lose their fill; the row up next becomes a band across the sheet */
@media (max-width: 720px) {
  .ds-ov-steps { margin-left: -8px; margin-right: -8px; }
  .ds-ov-step .ds-ov-trow { padding: 11px 8px; }
  .ds-ov-step .ds-ov-trow.next { margin: 2px 0; padding: 13px 8px; }
  .ds-ov-step::before, .ds-ov-step:nth-child(5n)::before { left: 20px; }
  .ds-ov-step-add .ds-ov-add.slot { padding: 12px 8px; background: none; }
  .ds-ov-ctx-a { grid-template-columns: 26px minmax(0, 1fr); }
  .ds-ov-ctx-a .ds-ov-go { grid-column: 2; justify-self: start; opacity: 1; transform: none; }
  .ds-ov-nx .ds-ov-nx-t { font-size: var(--ds-fs-7); }
  .ds-ov-nx-facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ds-ov-thumbs .ds-ath, .ds-ov-thumbs .ds-ov-lg { width: 84px; }
  .ds-ov-res { margin: 0; }
  .ds-ov-res li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 0; }
  .ds-ov-res li:first-child { padding-top: 4px; }
  .ds-ov-res li + li::before { left: 0; right: 0; }
  .ds-ov-res li:hover, .ds-ov-res li:focus-within { background: none; }
  .ds-ov-res li:hover::before, .ds-ov-res li:hover + li::before, .ds-ov-res li:focus-within::before, .ds-ov-res li:focus-within + li::before { opacity: 1; }
  .ds-ov-res-s { padding-left: 52px; }
  .ds-ov-none { padding: 16px 0 6px; background: none; }
  .ds-ov-tile { padding: 18px 18px 20px; }
  .ds-ov-shelf { gap: 8px; }
  .ds-ov-stack.k2, .ds-ov-stack.k3 { margin-bottom: 0; }
  .ds-ov-stack::before, .ds-ov-stack::after { display: none; }
  .ds-ov-rep, .ds-ov-camp { padding: 14px 0 0; background: none; }
  .ds-ov-rep::before, .ds-ov-camp::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ds-line); }
  .ds-ov-tile-rep.landed .ds-ov-rep { animation: ds-ov-drop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
}

/* ---------- round 54 additions ---------- */
.ds-ov-nx-opt { margin-top: 12px; font-size: var(--ds-fs-2); color: var(--ds-label); }
/* carried in from the conversation: a quiet list of the questions asked before the project existed */
.ds-ov-ctx-l { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.ds-ov-ctx-a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 12px 13px 10px; border-radius: var(--ds-r-inner); text-decoration: none; color: inherit; transition: background .2s; }
.ds-ov-ctx-a:hover, .ds-ov-ctx-a:focus-visible { background: var(--ds-tint); }
.ds-ov-ctx-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ds-tint); color: var(--ds-muted); font-size: var(--ds-fs-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-ov-ctx-a:hover .ds-ov-ctx-n { background: var(--ds-paper); }
.ds-ov-ctx-t { min-width: 0; padding-top: 2px; }
.ds-ov-ctx-t b { display: block; font-size: var(--ds-fs-4); font-weight: 600; line-height: 1.35; color: var(--ds-ink); text-wrap: pretty; }
.ds-ov-ctx-t span { display: block; margin-top: 3px; max-width: 86ch; font-size: var(--ds-fs-3); line-height: 1.5; color: var(--ds-muted); text-wrap: pretty; }
.ds-ov-ctx-a .ds-ov-go { align-self: center; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.ds-ov-ctx-a:hover .ds-ov-go, .ds-ov-ctx-a:focus-visible .ds-ov-go { opacity: 1; transform: none; }
@media (hover: none) { .ds-ov-ctx-a .ds-ov-go { opacity: 1; transform: none; } }
