/* Studio › Render Farm › Flow Farm (features/studio/flowfarm.js): jobs | the open job's frame grid, then the machines */
.ff-root { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; width: 100%; }
@media (max-width: 900px) { .ff-root { grid-template-columns: 1fr; } }
.ff-jobs { display: flex; flex-direction: column; gap: 6px; }
.ff-job { display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; }
.ff-job:hover { border-color: var(--border-strong); }
.ff-job.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ff-job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ff-job-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.ff-job-foot { font-variant-numeric: tabular-nums; }
.ff-bar { height: 5px; border-radius: 99px; background: var(--zinc-100, #f4f4f5); overflow: hidden; }
.ff-bar > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s ease; }
.ff-bar.big { height: 8px; margin: 12px 0 6px; }
@media (prefers-reduced-motion: reduce) { .ff-bar > span { transition: none; } }
.ff-main { display: grid; gap: 22px; min-width: 0; }
.ff-detail { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); min-width: 0; }
.ff-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ff-detail-head h2 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ff-detail-meta { font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.ff-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ff-cancel.armed { background: light-dark(#fdecec, #391616); color: light-dark(#b91c1c, #e96b6b); }
/* the frame × layer grid: one 12 px cell per frame, a row per layer, merges span their frames */
.ff-grid-wrap { overflow-x: auto; padding-bottom: 4px; }
.ff-grid { display: grid; gap: 3px; align-items: center; width: max-content; }
.ff-lab { grid-column: 1; padding-right: 10px; font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.ff-fno { grid-row: 1; font-size: 9.5px; color: var(--text-3); white-space: nowrap; overflow: visible; height: 12px; }
.ff-cell { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--zinc-100, #f4f4f5); }
.ff-cell.none { background: transparent; }
.ff-cell.s-pending { background: var(--zinc-200, #e4e4e7); }
.ff-cell.s-leased { background: #60a5fa; animation: ff-pulse 1.2s ease-in-out infinite; }
.ff-cell.s-done { background: #22c55e; }
.ff-cell.s-failed { background: #ef4444; }
.ff-cell.s-canceled { background: repeating-linear-gradient(135deg, var(--zinc-200, #e4e4e7) 0 2px, transparent 2px 4px); }
.ff-merge { width: auto; }
@keyframes ff-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ff-cell.s-leased { animation: none; } }
.ff-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; color: var(--text-2); }
.ff-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ff-machines h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ff-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ff-node { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.ff-node.off { opacity: .6; }
.ff-node-head { display: flex; align-items: center; gap: 8px; }
.ff-node-now { font-size: 12.5px; color: var(--text); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-root.ff-empty { grid-template-columns: 1fr; }
