/* Build cards (build-card.js, docs/CLIENT-PORTAL.md §5): one look for web, iOS and Android builds, on a project's page and
   the client's page. Flat: hairlines between builds, no boxed cards, no coloured edges; colour only for a state's dot.
   Theme tokens only (docs/THEMES.md). One column on a phone; screens scroll sideways. */
.pj-builds .ph .bc-acts { align-self: flex-start; }
.bc-list { display: flex; flex-direction: column; }
.bc { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.bc:first-child { border-top: 0; padding-top: 6px; }
.bc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.bc-plat { font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.bc-ver { font-size: 16px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.bc-ver span { font-weight: 500; color: var(--text-2); }
.bc-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.bc-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.bc-st.ok i { background: var(--ok, var(--text-2)); }
.bc-st.busy i { background: var(--sky); animation: bc-pulse 1.4s ease-in-out infinite; }
.bc-st.bad { color: var(--bad); } .bc-st.bad i { background: var(--bad); }
.bc-meta { margin-left: auto; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@keyframes bc-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .bc-st.busy i { animation: none; } }

.bc-shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.bc-shot { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 11.5px; cursor: zoom-in; scroll-snap-align: start; text-align: left; }
.bc-shot span { width: 0; min-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-shot img { display: block; align-self: flex-start; height: 220px; width: auto; aspect-ratio: auto; max-width: none; border-radius: 6px; background: var(--ink-3); outline: 1px solid var(--line); outline-offset: -1px; }
.bc-shot img:not([src]) { width: 101px; }
.bc-shot.wide img { height: 160px; }
.bc-shot img:not([src]).wide, .bc-shot.wide img:not([src]) { width: 213px; }
.bc-shot:focus-visible img { outline: 2px solid var(--focus, var(--sky)); }

.bc-new { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); white-space: pre-line; max-width: 72ch; }
.bc-new b { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }
.bc-install { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bc-install:empty { display: none; }
.bc-sha { font: 12px var(--mono, ui-monospace, monospace); color: var(--text-3); }
.bc-dim { margin: 0; font-size: 13px; color: var(--text-3); }
.bc-dim .warn { color: var(--warn); }
.bc-note { margin: 0; font-size: 13px; color: var(--text-2); }
.bc-note.bad { color: var(--bad); }
.bc-team { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
.bc-checks { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--text-2); }
.bc-ck.failed { color: var(--bad); }
.bc-ck.skipped { color: var(--text-3); }
.bc-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bc-edit { display: flex; flex-direction: column; gap: 8px; }
.bc-edit textarea { width: 100%; box-sizing: border-box; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 9px 11px; color: var(--text); font: 14px var(--sans); }
.bc-none { padding: 8px 0; }

@media (max-width: 560px) {
  .bc-meta { margin-left: 0; width: 100%; }
  .bc-shot img { height: 180px; }
  .bc-acts { margin-left: 0; width: 100%; }
  .bc-acts .btn { flex: 1; }
}
