/* Animated dashboard replicas (dash.js). Scales with its frame like a screenshot: every size is in em,
   and the board's font size follows the frame's width. Colours are the app's dark theme. */
.dash { --d-bg: #0b0c0e; --d-tile: #121417; --d-line: #1f2328; --d-ink: #e7e9ea; --d-mute: #7c8288; --d-red: #ff5a3c; --d-amber: #f2b84b; --d-lime: #c6ff3d; --d-blue: #8fa3ff;
  container-type: inline-size; position: absolute; inset: 0; overflow: hidden; background: var(--d-bg); color: var(--d-ink);
  font: 400 clamp(8.5px, 1.32cqw, 14px)/1.35 "Inter", system-ui, sans-serif; padding: 0 1.4em 1.2em; display: flex; flex-direction: column; gap: .9em; }
.dash.flow { position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: 0 0 22px 22px; }
.d-top { display: flex; align-items: center; gap: 1.1em; height: 3.3em; margin: 0 -1.4em; padding: 0 1.4em; border-bottom: 1px solid var(--d-line); flex: none; }
.d-top img { height: 1.6em; width: auto; }
.d-crumb { font-weight: 600; margin-right: auto; padding-left: 1.4em; border-left: 1px solid var(--d-line); }
.d-pill { color: var(--d-red); font-weight: 600; font-size: .85em; padding: .25em .7em; border-radius: 99em; background: rgba(255,90,60,.1); }
.d-feeds { color: #8bd98b; font-size: .85em; padding: .25em .7em; border-radius: 99em; background: rgba(139,217,139,.08); }
.d-clock { font: 500 .9em "IBM Plex Mono", monospace; color: var(--d-mute); }
.d-brief { flex: none; display: grid; grid-template-columns: 1fr auto; gap: .2em 1em; padding: .75em 1em; border-radius: .6em; background: var(--d-tile); border: 1px solid var(--d-line); border-left: .3em solid var(--d-red); }
.d-brief b { font-weight: 650; } .d-brief span { color: var(--d-mute); font-size: .92em; }
.d-brief em { grid-row: 1 / 3; grid-column: 2; align-self: start; font: normal 500 .78em "IBM Plex Mono", monospace; padding: .2em .6em; border-radius: .3em; background: rgba(255,255,255,.06); color: #b9bec2; }
.d-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7em; flex: none; }
.d-tile { position: relative; padding: .8em .9em; border-radius: .6em; background: var(--d-tile); border: 1px solid var(--d-line); min-width: 0; }
.d-tl { display: flex; justify-content: space-between; gap: .4em; font: 500 .72em "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--d-mute); white-space: nowrap; overflow: hidden; }
.d-tile b { display: block; margin-top: .35em; font: 600 1.9em/1 "Inter Tight", "Inter", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-tile small { display: block; margin-top: .45em; font-size: .78em; color: var(--d-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-tile.r b { color: var(--d-red); } .d-tile.a b { color: var(--d-amber); }
.d-tile b.bump { animation: d-bump .6s cubic-bezier(.2,.7,.1,1); }
@keyframes d-bump { 0% { transform: translateY(-.25em); opacity: .4; } 100% { transform: none; opacity: 1; } }
.d-tile.hl { border-color: var(--d-lime); box-shadow: 0 0 0 .25em rgba(198,255,61,.12), 0 0 2em rgba(198,255,61,.18); animation: d-hl 2.4s ease-in-out infinite; }
@keyframes d-hl { 50% { box-shadow: 0 0 0 .45em rgba(198,255,61,.06), 0 0 2.6em rgba(198,255,61,.28); } }
.d-chip { font: normal 500 .9em "IBM Plex Mono", monospace; color: #8bd98b; }
.d-row { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: .7em; }
.d-row.wide { grid-template-columns: 1.15fr 1fr; }
.d-card { min-height: 0; display: flex; flex-direction: column; padding: .9em 1em; border-radius: .6em; background: var(--d-tile); border: 1px solid var(--d-line); overflow: hidden; }
.d-ch { display: flex; justify-content: space-between; gap: .6em; align-items: flex-start; margin-bottom: .7em; }
.d-ch b { display: block; font-weight: 600; } .d-ch small { display: block; color: var(--d-mute); font-size: .8em; margin-top: .15em; }
.d-ch .d-chip { font-size: .72em; padding: .2em .55em; border-radius: .3em; background: rgba(139,217,139,.08); white-space: nowrap; }
.d-cb { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.d-hbars { display: grid; gap: .55em; }
.d-hb { display: grid; grid-template-columns: 7em 1fr 4.2em; gap: .8em; align-items: center; font-size: .86em; }
.d-hb span { color: #c9ccc5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-hb i { position: relative; height: .7em; border-radius: .35em; background: rgba(255,255,255,.06); }
.d-hb em { position: absolute; inset: 0 auto 0 0; border-radius: .35em; background: #6d7278; transition: width 1.2s cubic-bezier(.2,.7,.1,1), background .4s; }
.d-hb[data-tone="r"] em { background: var(--d-red); } .d-hb[data-tone="a"] em { background: var(--d-amber); }
.d-hb u { position: absolute; top: -.25em; bottom: -.25em; width: 2px; background: var(--d-ink); opacity: .6; }
.d-hb b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-hb[data-tone="r"] b { color: var(--d-red); }
.d-cols { flex: 1; min-height: 6em; display: flex; align-items: flex-end; gap: .3em; padding-bottom: .2em; border-bottom: 1px solid var(--d-line); }
.d-cols i { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.d-cols em { display: block; width: 100%; border-radius: .2em .2em 0 0; background: var(--c); opacity: .85; transition: height .9s cubic-bezier(.2,.7,.1,1); }
.d-cols i.now em { opacity: 1; background: repeating-linear-gradient(135deg, var(--c) 0 .35em, color-mix(in srgb, var(--c) 55%, transparent) .35em .7em); box-shadow: 0 0 1.2em color-mix(in srgb, var(--c) 45%, transparent); }
.d-axis { display: flex; justify-content: space-between; margin-top: .4em; font: .72em "IBM Plex Mono", monospace; color: var(--d-mute); }
.d-donut-w { display: grid; grid-template-columns: 9em 1fr; gap: 1.4em; align-items: center; }
.d-donut { position: relative; width: 9em; aspect-ratio: 1; }
.d-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.d-donut circle { fill: none; stroke-width: 4.2; transition: stroke-dasharray 1.4s cubic-bezier(.2,.7,.1,1), stroke-dashoffset 1.4s cubic-bezier(.2,.7,.1,1); }
.d-donut circle.bg { stroke: rgba(255,255,255,.05); }
.d-dn { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.d-dn b { font: 600 1.6em "Inter Tight", sans-serif; }
.d-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; font-size: .9em; }
.d-legend li { display: grid; grid-template-columns: .7em 1fr auto; gap: .6em; align-items: center; color: #c9ccc5; }
.d-legend i { width: .7em; height: .7em; border-radius: 50%; } .d-legend b { color: var(--d-ink); font-variant-numeric: tabular-nums; }
.d-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; align-content: start; flex: 1; }
.d-feed li { display: grid; grid-template-columns: auto 1fr auto; gap: .2em .8em; align-items: center; padding: .55em .7em; border-radius: .45em; background: rgba(255,255,255,.025); border-left: .22em solid #4b5056; font-size: .84em;
  transform: translateY(-.6em); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.1,1), opacity .5s; }
.d-feed li.in { transform: none; opacity: 1; }
.d-feed li.r { border-left-color: var(--d-red); } .d-feed li.a { border-left-color: var(--d-amber); }
.d-feed li:first-child.in { background: rgba(198,255,61,.05); }
.d-feed time { font: .9em "IBM Plex Mono", monospace; color: var(--d-mute); }
.d-feed b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-feed span { grid-column: 2; color: var(--d-mute); font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-feed em { grid-row: 1 / 3; grid-column: 3; font: normal 600 .82em "Inter", sans-serif; padding: .2em .6em; border-radius: .3em; }
.d-feed em.r { color: var(--d-red); background: rgba(255,90,60,.1); } .d-feed em.a { color: var(--d-amber); background: rgba(242,184,75,.1); }
.d-line { flex: 1; min-height: 6em; }
.d-line svg { width: 100%; height: 100%; overflow: visible; }
.d-line .l { fill: none; stroke: var(--d-lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: d .9s; }
.d-line .a { fill: rgba(198,255,61,.08); stroke: none; transition: d .9s; }
.d-sum { flex: none; padding: .8em 1em; border-radius: .6em; background: var(--d-tile); border: 1px solid var(--d-line); color: #c9ccc5; font-variant-numeric: tabular-nums; }
.d-sum b { color: var(--d-ink); } .d-sum .ok { color: #8bd98b; }
/* atms feed: label first */
[data-dash="atms"] .d-feed li { grid-template-columns: auto 1fr; }
[data-dash="atms"] .d-feed em { grid-row: 1 / 3; grid-column: 1; }
[data-dash="atms"] .d-feed span { grid-column: 2; }
/* narrow frames (phones): three tiles a row, the second card goes */
@container (max-width: 620px) {
  .dash { font-size: clamp(8px, 2.35cqw, 12px); padding: 0 1em 1em; gap: .7em; }
  .d-top { margin: 0 -1em; padding: 0 1em; } .d-feeds, .d-clock { display: none; }
  .d-grid { grid-template-columns: repeat(3, 1fr); }
  .d-row, .d-row.wide { grid-template-columns: 1fr; }
  .d-row > .d-card:nth-child(2) { display: none; }
  .d-brief em { display: none; }
}
@media (prefers-reduced-motion: reduce) { .d-tile.hl { animation: none; } }

.d-ill { font: 500 .72em 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; padding: .25em .6em; border-radius: .3em; background: rgba(198,255,61,.1); color: var(--d-lime); }
.d-legend li { grid-template-columns: .7em 1fr auto; } .d-legend li { white-space: nowrap; }

/* How it works boards: they fill a fixed panel (not a full app screen) */
.dash.pad { padding: 1.2em 1.4em; font-size: clamp(10px, 1.9cqw, 13px); }
.d-feed.stream li { grid-template-columns: 7.6em 7.4em 1fr auto; }
.d-feed.stream span { grid-column: 3; }
.d-feed.stream em { grid-column: 4; grid-row: 1; }
.d-feed em.g { color: #8bd98b; background: rgba(139,217,139,.08); }
.d-inc { display: flex; justify-content: space-between; gap: 1em; align-items: flex-start; padding-bottom: .8em; border-bottom: 1px solid var(--d-line); }
.d-inc small { display: block; color: var(--d-mute); font-size: .82em; margin-top: .2em; }
.d-inc .conf { text-align: right; } .d-inc .conf b { font: 600 1.8em "Inter Tight", sans-serif; color: var(--d-lime); }
.d-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.d-ev li { display: grid; grid-template-columns: 4.6em 1fr; gap: .1em .8em; padding: .5em .7em; border-radius: .45em; background: rgba(255,255,255,.025); opacity: .18; transform: translateX(-.6em); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.1,1); }
.d-ev li.in { opacity: 1; transform: none; }
.d-ev em { grid-row: 1 / 3; font: normal 500 .72em "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--d-mute); padding-top: .25em; }
.d-ev li.cause em { color: var(--d-red); } .d-ev li.effect em { color: var(--d-amber); }
.d-ev b { font-weight: 500; font-size: .92em; } .d-ev small { color: var(--d-mute); font: .74em "IBM Plex Mono", monospace; }
.d-verdict { padding: .8em 1em; border-radius: .5em; border: 1px solid rgba(198,255,61,.3); background: rgba(198,255,61,.05); font-size: .9em; opacity: .2; transition: opacity .6s; }
.d-verdict.in { opacity: 1; } .d-verdict b { color: var(--d-lime); margin-right: .4em; } .d-verdict span { display: block; margin-top: .4em; color: var(--d-mute); font-size: .88em; }
.d-run .mono { margin: 0 0 .6em; color: var(--d-mute); font-size: .78em; }
.d-run ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.d-run li { display: grid; grid-template-columns: 1.8em 1fr; gap: .6em; align-items: center; padding: .55em .7em; border-radius: .45em; background: rgba(255,255,255,.03); font-size: .92em; transition: background .4s; }
.d-run li i { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font: normal 600 .8em "Inter", sans-serif; background: rgba(255,255,255,.07); transition: background .4s, color .4s; }
.d-run li.done { background: rgba(198,255,61,.06); } .d-run li.done i { background: var(--d-lime); color: #050609; }
.d-page { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .8em 1em; border-radius: .5em; background: var(--d-tile); border: 1px solid var(--d-line); }
.d-page small { display: block; color: var(--d-mute); font-size: .8em; }
.d-page .st span { display: none; font-weight: 600; font-size: .86em; padding: .3em .7em; border-radius: .3em; }
.d-page[data-s="paged"] .s1 { display: inline-block; color: var(--d-amber); background: rgba(242,184,75,.1); }
.d-page[data-s="ack"] .s2 { display: inline-block; color: #8bd98b; background: rgba(139,217,139,.1); }
.d-note { margin: 0; color: var(--d-mute); font-size: .82em; }
/* How it works boards size to their content, so nothing is cut off */
.dash.pad { position: relative; inset: auto; min-height: 100%; }
