/* community-share.css — the "Share to socials" panel (js/community-share.js),
   built to the approved artefact "One Social Desk", screen 1. .csh-* only; the
   chip row is channel-chips.css and the preview is social-preview's own skin. */
.csh-overlay {
  position: fixed; inset: 0; z-index: 1200; background: rgba(15, 18, 25, .45);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px 16px;
}
.csh {
  width: 100%; max-width: 980px; background: var(--surface); color: var(--text);
  border: 1px solid var(--accent); border-radius: 16px; padding: 18px; display: grid; gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.csh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.csh-head h3 { margin: 0; font-size: 18px; }
.csh-muted { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }
.csh-x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-2); padding: 4px 8px; }
.csh-via { font-size: 12.5px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; justify-self: start; }
/* The post is already in the community: its two chips are switched off and hidden here. */
.csh .cch-wrap:has(> .cch[data-kind="community"]),
.csh .cch-wrap:has(> .cch[data-kind="email"]) { display: none; }
.csh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.csh-panel { display: grid; gap: 8px; }
.csh-lab { font-size: 12px; font-weight: 600; color: var(--text-2); }
.csh-input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text);
}
.csh-input[readonly] { background: var(--surface-2); color: var(--text-2); }
.csh-ta { min-height: 190px; resize: vertical; line-height: 1.5; }
.csh-limit { font-size: 12px; color: var(--text-3); text-align: right; }
.csh-limit.csh-over { color: var(--danger); font-weight: 600; }
.csh-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.csh-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.csh-gate { font-size: 14px; color: var(--text-2); }
.csh-select { width: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.csh-note { font-size: 13px; color: var(--text-3); line-height: 1.5; margin: 0; }
@media (max-width: 760px) {
  .csh-overlay { padding: 12px; }
  .csh { padding: 14px; }
  .csh-split { grid-template-columns: minmax(0, 1fr); }
  .csh-foot .csh-row { width: 100%; }
  .csh-foot .btn { min-height: 44px; }
}
