/* LintelWorks job vignettes. One beam, three beats: arrives, handled, asks you.
   Grammar inside every panel: a card is the thing that arrived, ruled lines are
   what was done, the tinted strip at the foot is the outcome. */
.vg {
  position: relative; max-width: 542px; margin: 0 9px; padding-top: 8px;
  container-type: inline-size;
  font: 400 14px/20px var(--font-body); color: var(--ink); text-align: left;
}
.vg::before {
  content: ""; position: absolute; top: 0; left: -9px; right: -9px; height: 8px;
  background: var(--beam); border-radius: 1px;
}
.vg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vg-panel {
  display: flex; flex-direction: column; height: 294px;
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 6px 6px; overflow: hidden;
}
.vg-rested .vg-panel { cursor: pointer; }
.vg strong { font-weight: 600; }
.vg-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vg-fig { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.vg-sub { color: var(--ink-2); font-size: 13px; }
.vg-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-end { margin-left: auto; }
.vg-go { color: var(--go); }

/* rail: the beat, always in words */
.vg-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 12px 12px 0; }
.vg-rail li { position: relative; display: flex; align-items: center; gap: 4px; margin: 0; padding-top: 7px; font: 500 13px/16px var(--font-body); color: var(--ink-2); white-space: nowrap; }
.vg-rail li::before, .vg-rail li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); }
.vg-rail li::after { background: var(--beam); transform: scaleX(0); transform-origin: 0 50%; transition: transform 320ms var(--ease); }
.vg-rail .vg-now::after, .vg-rail .vg-done::after { transform: none; }
.vg-rail .vg-now { color: var(--ink); font-weight: 600; }
.vg-rail .vg-i { width: 13px; height: 13px; stroke-width: 2.2; color: var(--beam); opacity: 0; transition: opacity 200ms var(--ease); }
.vg-rail .vg-done .vg-i { opacity: 1; }

/* stage */
.vg-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; transition: opacity 240ms var(--ease); }
.vg-fade .vg-stage { opacity: 0; }
.vg [data-k] { opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--ease), transform 320ms var(--ease); }
.vg [data-k].vg-on { opacity: 1; transform: none; }
.vg [data-k].vg-is-gone { opacity: 0; transform: translateY(-6px); }
.vg [data-k].vg-is-sent { opacity: 0; transform: translateX(22px); }
.vg-still, .vg-still *, .vg-still *::after { transition: none !important; }

.vg-card { background: var(--plaster); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; min-width: 0; }
.vg-row { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.vg-tag { font: 600 13px/18px var(--font-body); padding: 0 7px; border: 1px solid var(--beam); border-radius: 4px; color: var(--beam); background: var(--surface); }
.vg-tag--late { border-color: var(--never-tint); background: var(--never-tint); color: var(--never); }
.vg-done-lines { min-width: 0; }
.vg-done-lines > * { border-left: 2px solid var(--line); padding-left: 10px; }
.vg-swap { display: grid; min-width: 0; }
.vg-swap > * { grid-area: 1 / 1; min-width: 0; }
.vg-price { font-size: 15px; font-weight: 500; }

/* outcome strip: tier language at full width (shape + words + colour) */
.vg-out { margin-top: auto; padding: 6px 10px 7px; border-left: 3px solid var(--ask); border-radius: 0 4px 4px 0; background: var(--ask-tint); }
.vg-out--go { border-left-color: var(--go); background: var(--go-tint); }
.vg-out-t { display: flex; align-items: center; gap: 7px; font-weight: 600; min-width: 0; }
.vg-out-t .vg-i { width: 17px; height: 17px; stroke-width: 2; color: var(--ask-ink); }
.vg-out--go .vg-i { color: var(--go); }
.vg-out-w { display: flex; flex-wrap: wrap; gap: 0 5px; font-size: 13px; line-height: 18px; color: var(--ask-ink); }
.vg-out--go .vg-out-w { color: var(--go); }
.vg-pill { font: 600 13px/20px var(--font-body); padding: 0 10px; border-radius: 4px; background: var(--ask); color: var(--ink); }
.vg-note { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding-left: 4px; white-space: nowrap; }
.vg-note .vg-i { width: 14px; height: 14px; }

/* accounts: statement lines */
.vg-stmt { padding: 6px 4px; }
.vg-stmt .vg-row { padding: 0 6px; }
.vg-li { display: grid; grid-template-columns: auto 1fr 74px; gap: 8px; align-items: center; padding: 0 6px; border-radius: 3px; line-height: 21px; }
.vg .vg-li { transition: background-color 240ms var(--ease), opacity 240ms var(--ease), transform 320ms var(--ease); }
.vg-amt { text-align: right; }
.vg-st { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--go); opacity: 0; transform: translateX(-4px); transition: opacity 200ms var(--ease), transform 240ms var(--ease); }
.vg-st .vg-i { width: 14px; height: 14px; stroke-width: 2.2; }
.vg-is-ok .vg-st, .vg-is-flag .vg-st { opacity: 1; transform: none; }
.vg-is-flag { background: var(--ask-tint); }
.vg-is-flag .vg-st { color: var(--ask-ink); }

/* goods-in: parcel and the fields read from its label */
.vg-gi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.vg-parcel { display: block; height: 78px; height: clamp(78px, 28cqw, 104px); width: auto; max-width: none; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.vg .vg-box { transform: translateX(12px); }
.vg .vg-box.vg-on { transform: none; }
.vg-face { fill: var(--plaster); }
.vg-label { fill: var(--surface); transition: fill 240ms var(--ease); }
.vg-is-read .vg-label { fill: var(--go-tint); }
.vg-bars { stroke-width: 1.2; }
.vg .vg-frame { stroke: var(--go); stroke-width: 2; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(1.32); }
.vg .vg-frame.vg-on { transform: none; }
.vg .vg-read { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0.6); }
.vg .vg-read.vg-on { transform: none; }
.vg-read circle { fill: var(--go); stroke: var(--surface); stroke-width: 1.5; }
.vg-read path { stroke: var(--surface); stroke-width: 1.8; }
.vg-fields { display: grid; gap: 5px; margin: 0; min-width: 0; }
.vg-fields > div { border-bottom: 1px solid var(--line); min-width: 0; }
.vg-fields dt { font-size: 13px; line-height: 16px; color: var(--ink-2); }
.vg-fields dd { margin: 0; min-height: 18px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.vg-fields dd.vg-fig { font-weight: 500; }

/* foot: example marker and the one control */
.vg-foot { display: flex; align-items: center; justify-content: space-between; flex: none; height: 41px; padding: 0 4px 0 12px; border-top: 1px solid var(--line); }
.vg-eg { font: 600 13px/18px var(--font-body); color: var(--ink-2); border: 1px dashed #9AA39C; border-radius: 4px; padding: 0 7px; }
.vg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; min-height: 40px; padding: 0 10px; margin: 0;
  font: 600 13px/1 var(--font-body); color: var(--beam);
  background: none; border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color 150ms var(--ease);
}
.vg-btn:hover { background: rgba(24, 55, 44, 0.07); }
.vg-btn .vg-i { width: 15px; height: 15px; stroke-width: 2.2; }
.vg-btn-i { display: inline-flex; }
.vg-reduced .vg-btn { display: none; }

/* wider slots: a little more air, a larger parcel, a shorter panel */
@container (min-width: 330px) {
  .vg-panel { height: 276px; }
}
@container (min-width: 380px) {
  .vg-rail { padding: 12px 16px 0; }
  .vg-stage { padding: 10px 16px 14px; }
  .vg-foot { padding-left: 16px; }
  .vg-gi { gap: 20px; }
  .vg-li { grid-template-columns: auto 1fr 84px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vg *, .vg *::after { transition: none !important; }
}
