/* Deliver: the agreed report outline behind, dimmed; in front, Finalize ROC and AOC. Seven lines meet, the lead presses,
   and the final files lock as their hashes settle. No signatures anywhere: signing happens outside Enpasse. */

.vl .vl-board { overflow: hidden; opacity: .8; right: max(-6%, calc(-1 * var(--outer))); }
.vl .vl-ap { right: auto; width: max(100%, 1328px); }
:root[data-theme="light"] .vl .vl-board { opacity: .9; }

/* board: the report outline */
.vl-main { display: flex; flex-direction: column; min-width: 0; }
.vl-head { padding: 22px 28px 16px; border-bottom: 1px solid var(--line); }
.vl-head-r { display: flex; align-items: center; gap: 12px; }
.vl-head h4 { margin: 0; font-size: 20px; font-weight: 560; letter-spacing: -0.022em; }
.vl-meta { margin-top: 8px; display: flex; color: var(--fg-3); font-size: 12.5px; }
.vl-meta span + span { margin-left: 12px; padding-left: 12px; box-shadow: inset 1px 0 0 var(--line-3); }
.vl-qa { margin: 14px 28px 0; height: 40px; padding: 0 14px; border-radius: 10px; display: flex; align-items: center; gap: 10px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--fg-2); font-size: 12.5px; }
.vl-qa svg { width: 14px; height: 14px; color: var(--ok); }
.vl-qa b { font-weight: 500; color: var(--fg-1); }
.vl-qa .r { margin-left: auto; color: var(--fg-3); }
.vl-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 28px; padding: 6px 28px 0; }
.vl-ol { overflow: hidden; }
.vl-part { padding: 16px 0 8px; display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.vl-part small { color: var(--fg-3); font-size: 12px; font-weight: 400; }
.vl-part span { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--fg-3); }
.vl-row { position: relative; height: 34px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.vl-row .ap-key { min-width: 24px; justify-content: center; }
.vl-row .t { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.vl-row .ap-av { width: 18px; height: 18px; font-size: 8.5px; }
.vl-ok, .vl-wait { height: 20px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; white-space: nowrap; color: var(--ok); background: var(--ok-tint); }
.vl-wait { color: var(--fg-3); background: none; box-shadow: inset 0 0 0 1px var(--line-3); transition: all .5s var(--ease-enter); }
.vl-wait.done { color: var(--ok); background: var(--ok-tint); box-shadow: none; }
.vl-n { color: var(--fg-3); font-size: 12px; font-family: "Geist Mono", monospace; font-size: 11px; white-space: nowrap; }
.vl-bar { width: 44px; height: 3px; border-radius: 2px; background: var(--ok); opacity: .8; flex: none; }
.vl-aoc { margin-top: 16px; align-self: start; border-radius: 10px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-3); overflow: hidden; }
.vl-aoc-h { padding: 12px 14px; display: flex; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.vl-aoc-h span { margin-left: auto; color: var(--fg-3); font-weight: 400; font-size: 12px; }
.vl-aoc-r { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
.vl-aoc-r > :last-child { margin-left: auto; }
.vl-aoc-res { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12px; color: var(--fg-3); }
.vl-aoc-res b { font-weight: 500; color: var(--fg-1); font-family: "Geist Mono", monospace; font-size: 12px; }

/* the panel */
.vl-panel { left: 55%; top: 28px; width: 520px; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; letter-spacing: -0.006em; color: var(--fg-1); text-align: left; user-select: none; transform-origin: 0 0; }
.vl-ph { height: 52px; flex: none; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); }
.vl-ph > svg { width: 15px; height: 15px; color: var(--fg-3); }
.vl-ph b { font-weight: 500; }
.vl-ph .ap-badge { margin-left: auto; }
.vl-ph .ap-badge svg { width: 12px; height: 12px; }
.vl-ph .ap-badge.spin svg { animation: vl-spin 2.4s linear infinite; }
@keyframes vl-spin { to { transform: rotate(360deg); } }
.vl-pb { padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.vl-ctx { display: flex; color: var(--fg-3); font-size: 12px; }
.vl-ctx span + span { margin-left: 10px; padding-left: 10px; box-shadow: inset 1px 0 0 var(--line-3); }
/* readiness: seven conditions as one quiet row of dots and a count, no checklist; the files below lock and hash */
.vl-ready { height: 36px; display: flex; align-items: center; gap: 12px; }
.vl-dots { display: flex; gap: 4px; flex: 1; }
.vl-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-4); transition: background .45s var(--ease-spring); }
.vl-dots i.on { background: var(--ok); }
.vl-cnt { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--fg-2); white-space: nowrap; }

.vl-files { display: flex; flex-direction: column; }
.vl-files-h { height: 28px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); }
.vl-files-h .r { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); opacity: 0; transition: opacity .5s var(--ease-spring); }
.vl-files-h .ap-av { width: 16px; height: 16px; font-size: 7.5px; }
.vl-files.done .vl-files-h .r { opacity: 1; }
.vl-file { height: 34px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-3); transition: color .4s; }
.vl-file .h { margin-left: auto; font-family: "Geist Mono", monospace; font-size: 11.5px; color: var(--fg-4); letter-spacing: .02em; transition: color .4s; }
.vl-file.on { color: var(--fg-1); }
.vl-file.on .h { color: var(--fg-2); }
.vl-lock { width: 11px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1.2px var(--fg-4); position: relative; margin-top: 4px; flex: none; transition: box-shadow .3s; }
.vl-lock::before { content: ""; position: absolute; left: 2px; right: 2px; top: -5px; height: 6px; border: 1.2px solid var(--fg-4); border-bottom: 0; border-radius: 4px 4px 0 0; transition: border-color .3s; }
.vl-file.on .vl-lock { box-shadow: inset 0 0 0 1.2px var(--ok); }
.vl-file.on .vl-lock::before { border-color: var(--ok); }

.vl-pf { flex: none; height: 56px; padding: 0 18px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); position: relative; }
.vl-who { display: flex; flex-direction: column; line-height: 1.25; }
.vl-who small { color: var(--fg-3); font-size: 11.5px; }
.vl-pf .r { position: absolute; right: 18px; top: 14px; display: flex; gap: 8px; transition: opacity .45s var(--ease-enter), transform .45s var(--ease-enter), filter .45s var(--ease-enter); }
.vl-pf.wait .vl-acts { opacity: .4; }
.vl-sent { opacity: 0; transform: translateY(8px); filter: blur(2px); pointer-events: none; }
.vl-pf.done .vl-acts { opacity: 0; transform: translateY(-8px); filter: blur(2px); }
.vl-pf.done .vl-sent { opacity: 1; transform: none; filter: none; }

.vl-cursor { z-index: 8; }
.vl-cursor.flip .tag { left: auto; right: 4px; }

@media (max-width: 760px) {
  .vl { height: 600px; }
  .vl-panel { left: 0; top: 120px; }
  .vl-cursor .tag { height: 20px; font-size: 12px; left: 12px; top: 12px; }
}
/* phone: the panel lays out at the column width (set by deliver.js), so its own text is sized for reading */
@media (max-width: 640px) {
  .vd-pf .ap-btn, .vl-pf .ap-btn, .vl-ph .ap-badge, .vd-ph .ap-badge { font-size: 13px; }
  .vl-panel { top: 0; }
  .vl .vl-board { display: none; }
  .vl-ph { padding: 0 14px; }
  .vl-pb { padding: 12px 14px 14px; }
  .vl-ctx, .vl-cnt, .vl-file .h, .vl-who small { font-size: 13px; }
  .vl-file { font-size: 13px; }
  .vl-file .h { letter-spacing: 0; }
  .vl-pf { padding: 0 14px; }
  .vl-pf .r { right: 14px; }
}
