/* Agency v2 (08/10/2026): the tab of the agency of roles. Reuses the studio's cards and buttons. */
.ag-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 12px; }
.ag-head h2 { margin: 0; }
.ag-head .ag-sub { color: var(--muted, #8e8e93); font-size: 13px; }
.ag-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.ag-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line, #e5e5ea); color: var(--muted, #8e8e93); }
.ag-pill.on { border-color: #a4c955; color: #6b8a2a; }
.ag-pill.off { border-color: #ff6b6b; color: #c0392b; }
.ag-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 12px; align-items: end; }
.ag-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted, #8e8e93); }
.ag-form input, .ag-form select, .ag-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line, #e5e5ea); border-radius: 8px; background: var(--card, #fff); color: inherit; }
.ag-form .ag-wide { grid-column: 1 / -1; }
.ag-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ag-job { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, #e5e5ea); }
.ag-job:first-of-type { border-top: 0; }
.ag-thumb { width: 112px; aspect-ratio: 4 / 5; border-radius: 10px; background: #303230; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #8e8e93; font-size: 12px; }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-meta b { display: block; font-size: 15px; }
.ag-meta .ag-line { color: var(--muted, #8e8e93); font-size: 13px; margin: 2px 0 6px; }
.ag-steps { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 3px; }
.ag-steps li { font-size: 12.5px; display: flex; gap: 8px; align-items: baseline; }
.ag-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; flex: none; position: relative; top: -1px; }
.ag-steps li.running::before { background: #ffb340; box-shadow: 0 0 0 3px rgba(255, 179, 64, .25); }
.ag-steps li.done::before { background: #a4c955; }
.ag-steps li.failed::before { background: #ff453a; }
.ag-steps li span { color: var(--muted, #8e8e93); }
.ag-dossier { margin-top: 10px; border: 1px solid var(--line, #e5e5ea); border-radius: 12px; padding: 12px 14px; display: grid; gap: 12px; }
.ag-dossier h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #8e8e93); }
.ag-dossier p, .ag-dossier li { font-size: 13.5px; line-height: 1.5; margin: 0; }
.ag-dossier ul { margin: 0; padding-left: 18px; }
.ag-slides { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-slides a { width: 96px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #303230; display: block; }
.ag-slides img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ag-table th, .ag-table td { text-align: left; padding: 5px 8px 5px 0; vertical-align: top; border-top: 1px solid var(--line, #e5e5ea); }
.ag-table th { border-top: 0; color: var(--muted, #8e8e93); font-weight: 500; }
.ag-ok { color: #6b8a2a; }
.ag-bad { color: #c0392b; }
.ag-caption { white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; }
.ag-needs li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line, #e5e5ea); }
.ag-needs li.done { opacity: .5; text-decoration: line-through; }
.ag-rules textarea { width: 100%; min-height: 110px; font: inherit; font-size: 13px; padding: 10px; border: 1px solid var(--line, #e5e5ea); border-radius: 10px; background: var(--card, #fff); color: inherit; }
.ag-da { font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; color: var(--muted, #8e8e93); max-height: 220px; overflow: auto; }
@media (max-width: 640px) { .ag-job { grid-template-columns: 84px 1fr; } .ag-thumb { width: 84px; } }
