/* Social-agent run strips — a post waiting for the owner's click, rendered
   under its agent's row on /agents/ and in the "Ready to post" card on
   /social-media/. One sheet for both pages (moved out of agents.css when
   the strips grew a second home). Two moods share one skeleton:
   - default (gold edge): awaiting approval — the Approve button is the
     consent, so the strip shows exactly what goes out first.
   - .sga-approval--ready (accent edge): a prepared download — the owner
     collects the media + caption and shares it themselves. */
.sga-approval {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold, #e6c47a);
  border-radius: 10px;
  background: var(--panel-2);
}
.sga-approval--ready { border-left-color: var(--accent); }
.sga-ap-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}
.sga-ap-thumb--empty { display: inline-block; }
.sga-ap-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sga-ap-head {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sga-ap-caption {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sga-ap-outcome { font-size: 12px; color: var(--muted); }
.sga-ap-outcome.ok { color: var(--accent-text); }
.sga-ap-outcome.err { color: var(--danger, #e5484d); }
.sga-ap-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .sga-approval { flex-wrap: wrap; }
  .sga-ap-actions { width: 100%; justify-content: flex-end; }
}

/* A thumb/head wrapped in the detail-page link keeps its look — the link is
   the row's quiet default action, the buttons stay the loud ones. */
a.sga-ap-link { display: contents; color: inherit; text-decoration: none; }
.sga-ap-head a.sga-ap-link:hover { color: var(--accent-text); }

/* Platform chips (js/platform-icons.js) — "this post is already on …".
   Rendered wherever a post row appears; the title carries the name. */
.pf-chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  background: var(--panel);
}
.pf-chip svg { display: block; }
a.pf-chip-link { color: inherit; text-decoration: none; }
a.pf-chip-link:hover .pf-chip { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.pf-chips { display: inline-flex; gap: 5px; align-items: center; }

/* ── Compact strip (opts.compact — the /agents/ board) ──────────────
   One tight row nested under the agent: small thumb, one-line caption,
   two small actions, everything else behind the ··· menu. */
.sga-approval--compact { padding: 8px 12px; gap: 12px; margin: 0; }
.sga-approval--compact .sga-ap-thumb { width: 40px; height: 40px; border-radius: 7px; }
.sga-approval--compact .sga-ap-head { font-size: 11px; }
.sga-approval--compact .sga-ap-caption {
  font-size: 12.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sga-approval--compact .sga-ap-actions { flex-wrap: nowrap; }
.sga-approval--compact .sga-ap-actions .btn { height: 28px; padding: 0 11px; font-size: 12px; }

/* The ··· overflow menu: secondary actions off the row. */
.sga-more { position: relative; display: inline-flex; }
.sga-more-btn { letter-spacing: 0.08em; }
.sga-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-2);
  box-shadow: inset 0 1px 0 0 var(--edge-hi), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
}
.sga-more-menu[hidden] { display: none; }
.sga-more-menu button {
  border: 0;
  background: none;
  padding: 7px 10px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.sga-more-menu button:hover { background: rgba(var(--wash-rgb), 0.05); color: var(--text); }
