/*
 * Sort and View on the main board (lane t22-viewctl, 8 Oct 2026; js/v21_viewctl.js 1.0.0). The desk's own tokens, so
 * every theme follows, light and dark and High contrast. No inline styles. Nothing here animates (the board's own
 * slide when cards move is js/motion.js's, and it stops under reduced motion).
 */

/* ---------- the two controls in the board head ---------- */
.vcx { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.vcx-f { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink-2); }
.vcx-l { font-weight: 600; }
.vcx-sel {
  min-height: 32px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--edge-strong); background: var(--solid);
  color: var(--ink); font: inherit; font-size: .8125rem; max-width: 100%;
}
.vcx-sel:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

/* ---------- Compact: one tight line (name, type, when, state); everything else of the card waits for Normal ---------- */
.cards .card.vcx-compact { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 0; padding: 8px 14px; gap: 10px; }
.cards .card.vcx-compact > :not(.card-hit):not(.vcx-line):not(.lux-star):not(.frost):not(.holder) { display: none; }
.cards .card.vcx-compact > .holder {
  position: relative; right: auto; top: auto; transform: none; grid-column: 2; padding: 2px 10px 2px 2px; gap: 6px;
  font-size: .75rem; box-shadow: none; max-width: 22rem;
}
.cards .card.vcx-compact > .holder > span:not(.av):not(.amb) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards .card.vcx-compact > .holder .btn { min-height: 28px; }
.cards .card.vcx-compact > .lux-star { grid-column: 3; margin: 0; align-self: center; }
.vcx-line {
  position: relative; z-index: 0; pointer-events: none; grid-column: 1; display: flex; align-items: baseline; gap: 10px;
  min-width: 0; white-space: nowrap; font-size: .875rem; line-height: 1.375rem;
}
.vcx-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.vcx-type { flex: 0 1 auto; min-width: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-size: .8125rem; }
.vcx-date { flex: none; color: var(--ink-3); font-size: .8125rem; }
.vcx-chip {
  flex: none; align-self: center; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-text); border: 1px solid transparent;
}
.vcx-chip.is-mine { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.vcx-chip.is-wait { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* ---------- Expanded: the card, then its heads up, the press's short line and who the emails go to ---------- */
.card > .vcx-more {
  position: relative; z-index: 0; pointer-events: none; grid-column: 2 / -1; display: grid; gap: 4px; min-width: 0;
  margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--glass-rim); font-size: .8125rem; color: var(--ink-2);
}
.vcx-more p { margin: 0; overflow-wrap: anywhere; }
.vcx-k { font-weight: 600; color: var(--ink); }
.vcx-heads { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; color: var(--warn); font-weight: 600; }

@media (max-width: 760px) {
  .vcx { flex: 1 1 100%; }
  .vcx-f { flex: 1 1 10rem; }
  .vcx-sel { flex: 1 1 auto; min-height: 40px; }
  .cards .card.vcx-compact { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; }
  .cards .card.vcx-compact > .holder { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
  .cards .card.vcx-compact > .lux-star { grid-column: 2; grid-row: 1; }
  .vcx-type { max-width: 34%; }
  .card > .vcx-more { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .vcx-type { display: none; }
}
@media (forced-colors: active) {
  .vcx-chip { border-color: CanvasText; }
  .card > .vcx-more { border-top-color: CanvasText; }
}
