/* Steps, proofs, history and My work (BUILD M4): the steps a request uses with where it is now, the latest proof and
   who said what, the moves this person may make, a place to drop a file on a laptop, and each job's one move. */

/* The steps, in order: done ones ticked, the current one filled, the rest outlined. Never color alone. */
.track { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.track-step {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--slate); font-weight: 700;
}
.track-step .ic { width: 16px; height: 16px; stroke-width: 2.4; color: var(--ok); }
.track-step.past { background: var(--off); color: var(--navy); }
.track-step.now { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 900; }
.moves { display: grid; gap: 16px; }
.hint.stuck { background: var(--slip-bg); border-color: var(--slip-bg); color: var(--navy); font-weight: 700; }
.hint.stuck .ic { color: var(--slip); }

/* A proof: its caption, the picture large, then who said what. */
.proof { display: grid; gap: 12px; margin: 0; }
.proof-cap { color: var(--slate); font-weight: 800; overflow-wrap: anywhere; }
.proof-files { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-pic { display: block; width: 120px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ice); border: 1px solid var(--hair); }
.proof-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.proof-pic.big { width: 100%; aspect-ratio: auto; min-height: 160px; max-height: 520px; display: grid; place-items: center; padding: 12px; }
.proof-pic.big img { width: auto; max-width: 100%; height: auto; max-height: 496px; object-fit: contain; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 14px;
  border: 1px solid var(--hair); border-radius: 12px; color: var(--navy); font-weight: 800; text-decoration: none;
}
.file-chip span { min-width: 0; overflow-wrap: anywhere; }
.file-chip .ic { flex: none; width: 18px; height: 18px; color: var(--blue); }
.file-chip:hover { border-color: var(--navy); }
.signoffs { list-style: none; padding: 0; display: grid; gap: 8px; }
.signoff { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.signoff .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }
.signoff.changes .ic { color: var(--slip); }
.signoff span { min-width: 0; }
.signoff q, .ev-main q { display: block; color: var(--slate); font-weight: 600; white-space: pre-line; }
.signoff q::before, .signoff q::after, .ev-main q::before, .ev-main q::after { content: none; }

/* The moves: the first is the main button, the rest quiet; a link to finish with a link. */
.move-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.drop-hint { color: var(--slate); }
.finals { display: grid; gap: 10px; }
.earlier summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.earlier ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 8px; }
.earlier li { display: grid; gap: 8px; }

/* A place to drop a file: outlined while a file is over it. */
.drop { position: relative; }
.drop.over { outline: 3px dashed var(--blue); outline-offset: -3px; }
.drop-say {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--off);
  color: var(--navy); font-weight: 900; font-size: 19px; pointer-events: none;
}

/* History: what happened on the left, when on the right (below on a phone). */
.events { list-style: none; padding: 0; display: grid; }
.events li { display: grid; gap: 2px; padding: 10px 0; }
.events li + li { border-top: 1px solid var(--hair); }
.ev-main { min-width: 0; overflow-wrap: anywhere; }
.ev-main b { font-weight: 700; }
.events time { color: var(--slate); }
.history { display: grid; gap: 8px; }
.history .link-btn { justify-self: start; padding: 0; }

/* My work: each job's one move under its row. */
.mine-job { padding-bottom: 4px; }
.mine-job .why { margin: 0 12px 10px 90px; }
.mine-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 12px 12px 90px; }
.stuck-tag { align-self: center; }
.mine-few .all-mine { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.mine-few .all-mine .ic { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .events li { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; }
  .events time { text-align: right; white-space: nowrap; }
}
