/* Prefill, then decode: loaded only on the guide, after style.css. */
.hew-pd-input { display: flex; align-items: center; min-height: 40px; }
.hew-pd-none { font: 13px var(--mono); color: var(--quiet); }
.hew-pd-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hew-pd-ticks { display: flex; gap: 3px; }
.hew-pd-ticks i { width: 5px; height: 22px; border-radius: 2px; background: var(--purple); animation: hew-pd-in .5s ease-out both; }
.hew-pd-ticks i:nth-child(4n+2) { animation-delay: .05s; }
.hew-pd-ticks i:nth-child(4n+3) { animation-delay: .1s; }
.hew-pd-ticks i:nth-child(4n) { animation-delay: .15s; }
.hew-pd-plabel { font: 12.5px var(--mono); color: var(--soft); }
.hew-pd-one { border-color: var(--purple); color: var(--fg); box-shadow: 0 0 0 3px var(--glow); animation: hew-pd-in .4s ease-out both; }
.hew-pd-time { display: grid; gap: 6px; }
.hew-pd-brow { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 11em; align-items: center; gap: 12px; }
.hew-pd-bname { font: 12.5px var(--mono); color: var(--soft); }
.hew-pd-track { height: 16px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.hew-pd-fill { display: block; width: 0; height: 100%; border-radius: 5px; background: var(--border-strong); transition: width .7s cubic-bezier(.2, .8, .2, 1), background .3s; }
.hew-pd-brow.bound .hew-pd-fill { background: var(--red); }
.hew-pd-val { min-height: 1.4em; font: 12.5px var(--mono); color: var(--quiet); white-space: nowrap; }
.hew-pd-brow.bound .hew-pd-val { color: var(--red); }
.hew-pd-ex { display: block; margin-top: 6px; font: 11.5px var(--mono); color: var(--quiet); }
.hew-pd-kv { position: relative; display: flex; align-items: stretch; gap: 6px; min-height: 34px; }
.hew-pd-block { position: relative; flex: 0 0 44%; display: grid; place-items: center; border: 1px dashed var(--border-strong); border-radius: 7px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.hew-pd-bfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--surface-2); transition: width .8s cubic-bezier(.2, .8, .2, 1), background .4s; }
.hew-pd-block.full { border-style: solid; }
.hew-pd-block.full .hew-pd-bfill { width: 100%; }
.hew-pd-block.writing .hew-pd-bfill { background: var(--glow); }
.hew-pd-block.writing { border-color: var(--purple); }
.hew-pd-blabel { position: relative; font: 12px var(--mono); color: var(--soft); white-space: nowrap; }
.hew-pd-block:not(.full) .hew-pd-blabel { color: var(--quiet); }
.hew-pd-cell { display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface-2); font: 12.5px var(--mono); color: var(--soft); white-space: nowrap; animation: hew-pd-in .4s ease-out both; transition: border-color .4s, background .4s, color .4s, box-shadow .3s; }
.hew-pd-block.read, .hew-pd-cell.read { border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow); }
.hew-pd-cell.writing { border-color: var(--purple); background: var(--glow); color: var(--fg); }
.hew-pd-read { position: absolute; left: 0; top: -3px; bottom: -3px; width: 0; border-radius: 8px; background: linear-gradient(90deg, transparent, var(--glow)); border-right: 2px solid var(--purple); opacity: 0; pointer-events: none; transition: width .8s ease-out, opacity .3s; }
.hew-pd-read.on { opacity: 1; }
.hew-pd-text { margin: 0; font: 500 17px/1.5 var(--sans); color: var(--fg); }
.hew-pd-ctx { color: var(--quiet); }
.hew-pd-new { border-radius: 4px; color: var(--red); background: var(--glow-red); transition: color .6s, background .6s; }
@keyframes hew-pd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .hew-pd-input { min-height: 50px; }
  .hew-pd-ticks { gap: 2px; }
  .hew-pd-ticks i { width: 4px; }
  .hew-pd-brow { grid-template-columns: 6.6em minmax(0, 1fr); gap: 4px 8px; }
  .hew-pd-val { grid-column: 2; font-size: 11.5px; }
  .hew-pd-bname { font-size: 11.5px; }
  .hew-pd-block { flex-basis: 40%; }
  .hew-pd-blabel { font-size: 11px; }
  .hew-pd-cell { padding: 0 6px; font-size: 11.5px; }
  .hew-pd-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hew-pd-ticks i, .hew-pd-one, .hew-pd-cell { animation: none; }
}
