/* Per-network publishing settings (Social posting workspace). Scoped to .po-*. */

.po-ai,
.po-review {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

body[data-theme="dark"] .po-ai,
body[data-theme="dark"] .po-review {
  background: #111f1d;
  border-color: rgba(255, 255, 255, .1);
}

.po-ai {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.po-ai input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
}

.po-ai strong {
  display: block;
}

.po-ai small,
.po-settings small,
.po-review small {
  color: var(--muted);
  font-size: 13px;
}

.po-settings {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

body[data-theme="dark"] .po-settings {
  border-top-color: rgba(255, 255, 255, .1);
}

.po-settings-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.po-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
  align-items: end;
}

.po-settings label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.po-settings label.po-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: inherit;
  min-height: 40px;
}

.po-settings select,
.po-settings input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #f8fffe;
}

body[data-theme="dark"] .po-settings select,
body[data-theme="dark"] .po-settings input[type="text"] {
  background: #0c1716;
  color: #e9fbf3;
  border-color: rgba(255, 255, 255, .14);
}

.po-review h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.po-review-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.po-review-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
}

body[data-theme="dark"] .po-review-row {
  border-color: rgba(255, 255, 255, .1);
}

.po-review-row.is-ok { border-left-color: #1d9e75; }
.po-review-row.is-warning { border-left-color: #ba7517; }
.po-review-row.is-error { border-left-color: #b42318; }

.po-review-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.po-review-text {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.po-review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.po-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(127, 127, 127, .16);
}

.po-chip-ai { background: #ecebfd; color: #3c3489; }
.po-chip-warning { background: #faeeda; color: #633806; }
.po-chip-problem { background: #fcebeb; color: #791f1f; }

body[data-theme="dark"] .po-chip-ai { background: #3c3489; color: #eeedfe; }
body[data-theme="dark"] .po-chip-warning { background: #633806; color: #faeeda; }
body[data-theme="dark"] .po-chip-problem { background: #791f1f; color: #fcebeb; }

.po-review-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.po-ai[hidden],
.po-review[hidden],
.po-review [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .po-review-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Social publishing access banner (publishing-access.js). */
.pa-banner {
  background: #ecebfd;
  color: #26215c;
  border: 1px solid #c9c6f5;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.pa-banner p {
  margin: 0;
  font-size: 14px;
}

.pa-banner small {
  color: #791f1f;
  font-size: 13px;
}

body[data-theme="dark"] .pa-banner {
  background: #26215c;
  color: #eeedfe;
  border-color: #3c3489;
}

body[data-theme="dark"] .pa-banner small {
  color: #f7c1c1;
}

.pa-banner[hidden],
.pa-banner [hidden],
[data-api-pack-info][hidden],
[data-api-plan-note][hidden],
[data-api-free-note][hidden] {
  display: none !important;
}
