/* The mission block in the Board's I gang hero (ZT-73, docs/ui-refresh-spec.md §8).
   Its own file: public/style.css is vendored to Zebra Team-skærmen, and nothing
   here belongs on the 7" kiosk.

   Honesty: only data draws anything. The one colour source is the role's own
   colour (--c, set per step and per phase from meta.roles); no tone here means
   red or green, and every mark is carried by a glyph and a word as well. */

.m-block:empty { display: none; }
.m-block { display: block; }

/* The role flow — .card-flow keeps its layout from style.css; the colour and
   the dot are the role's own. "now" is the only emphasised step. */
.card-flow [data-mark] > span[aria-hidden="true"] { color: var(--c, var(--muted)); font-weight: 700; }
.card-flow [data-mark="todo"] > span[aria-hidden="true"] { color: color-mix(in srgb, var(--c, var(--muted)) 45%, var(--muted)); }
.card-flow [data-mark="now"] { letter-spacing: .01em; }

/* Missionens forløb: one segment per phase, width = its share of the run.
   The open phase is striped, so "still running" is not a colour either. */
.m-tl {
  display: flex; gap: 2px; height: 16px; margin: 0 0 5px;
  border-radius: 4px; overflow: hidden;
}
.m-tl i {
  --c: var(--muted);
  min-width: 10px; background: var(--c); color: #fff;
  font: 700 9.5px/16px var(--mono); font-style: normal; text-align: center;
  white-space: nowrap; overflow: hidden; text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.m-tl i[data-open] {
  background: repeating-linear-gradient(90deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 72%, #000) 8px 12px);
}
.m-more { display: block; margin: -2px 0 5px; font-size: 11px; font-style: normal; color: var(--muted); }

/* ⏱, the round and the one honesty note. */
.m-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 5px; font-size: 12px; color: var(--muted); }
.m-meta b { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.m-meta .m-off { color: var(--muted); font-style: italic; }

/* What the agent on the card is doing right now (the HQ HUD's own line). */
.m-act {
  margin: 0 0 6px; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-act b { color: var(--ink); font-weight: 650; }

/* Næste: the Klar queue in claim() order, under the hero — lane width, not card width. */
.m-next {
  flex: 1 1 100%; margin: 2px 2px 0; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-next .link-btn { font-family: var(--mono); font-weight: 700; margin-right: 4px; }

/* Phones (≤ 600): the same block, compact. It stays — unlike .card-line, this
   is the point of the hero on a phone: who works, how far, where the time went. */
@media (max-width: 600px) {
  .m-tl { height: 14px; }
  .m-tl i { font-size: 9px; line-height: 14px; min-width: 8px; }
  .m-meta, .m-act, .m-next { font-size: 11.5px; }
  .m-act { margin-bottom: 4px; }
  .card-flow { gap: 2px 8px; font-size: 11px; }
}
