/* One decode step, logits to token: loaded only on the guide, after style.css. */
.hew-ds-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.hew-ds-ctx { margin: 0; font: 500 17px/1.5 var(--sans); }
.hew-ds-prev { color: var(--quiet); }
.hew-ds-new { border-radius: 4px; color: var(--red); background: var(--glow-red); transition: opacity .3s; }
.hew-ds-new.redo { opacity: .25; }
.hew-ds-pipe { display: flex; flex-wrap: wrap; gap: 6px; }
.hew-ds-step { padding: 2px 9px; border: 1px dashed var(--border-strong); border-radius: 999px; font: 12px var(--mono); color: var(--quiet); transition: background .3s, border-color .3s, color .3s; }
.hew-ds-step.past { border-style: solid; color: var(--soft); }
.hew-ds-step.now { border-style: solid; border-color: var(--red); background: var(--red); color: var(--bg); }
.hew-ds-rows { display: grid; gap: 3px; }
.hew-ds-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 4.5em; align-items: center; gap: 12px; height: 21px; transition: opacity .4s; }
.hew-ds-tok { font: 13px var(--mono); color: var(--fg); white-space: nowrap; }
.hew-ds-track { height: 14px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hew-ds-fill { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--soft); transition: width .6s cubic-bezier(.2, .8, .2, 1), background .3s; }
.hew-ds-val { font: 12px var(--mono); color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }
.hew-ds-row.cut { opacity: .32; }
.hew-ds-row.cut .hew-ds-val { color: var(--quiet); }
.hew-ds-row.pick .hew-ds-fill { background: var(--red); }
.hew-ds-row.pick .hew-ds-tok, .hew-ds-row.pick .hew-ds-val { color: var(--red); font-weight: 600; }
.hew-ds-stripwrap { position: relative; padding-bottom: 20px; opacity: .25; transition: opacity .4s; }
.hew-ds-stripwrap.on { opacity: 1; }
.hew-ds-strip { display: flex; height: 26px; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.hew-ds-seg { flex: 1 1 0; min-width: 0; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--bg); background: var(--border-strong); font: 11.5px var(--mono); color: var(--fg); white-space: nowrap; transition: background .3s, color .3s; }
.hew-ds-seg:last-child { border-right: 0; }
.hew-ds-strip.drawn .hew-ds-seg.pick { background: var(--red); color: var(--bg); }
.hew-ds-marker { position: absolute; top: -4px; bottom: 14px; left: 0; width: 2px; background: var(--purple); opacity: 0; transition: left .8s cubic-bezier(.3, .7, .2, 1), opacity .3s; }
.hew-ds-marker.on { opacity: 1; }
.hew-ds-u { position: absolute; bottom: -16px; left: 4px; font: 600 11.5px var(--mono); color: var(--purple); }

@media (max-width: 600px) {
  .hew-ds-row { grid-template-columns: 5.8em minmax(0, 1fr) 3.8em; gap: 8px; }
  .hew-ds-tok { font-size: 12px; }
  .hew-ds-val { font-size: 11.5px; }
  .hew-ds-step { padding: 1px 7px; font-size: 11px; }
  .hew-ds-ctx { font-size: 16px; }
}
