/* 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; }
/* When to send: plain choices, the chosen one filled (approved 2026-10-07). */
.csh-foot { flex-direction: column; align-items: stretch; }
.csh-whens { display: flex; gap: 8px; flex-wrap: wrap; }
.csh-when { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.csh-when[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.csh-when:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.csh-go { min-height: 48px; padding: 0 24px; font-size: 16px; }
/* Done: one line of what happens, nothing that can send it twice. */
.csh-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 16px; }
.csh-done h3 { margin: 0; font-size: 22px; }
.csh-done .btn { min-height: 44px; padding: 0 20px; }
.csh-done p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.csh-done-tick { width: 68px; height: 68px; border-radius: 50%; background: var(--good-soft, #dcfce7); color: var(--good, #15803d); font-size: 36px; font-weight: 800; display: flex; align-items: center; justify-content: center; animation: csh-pop .4s ease-out; }
@keyframes csh-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .csh-done-tick { animation: none; } }
/* Maya writing (approved board "Maya writing each version", 2026-10-07). */
.csh-sub { font-size: 15px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.csh-dots { display: inline-flex; gap: 3px; align-items: center; }
.csh-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: csh-breathe 1s infinite ease-in-out; }
.csh-dots i:nth-child(2) { animation-delay: .15s; }
.csh-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes csh-breathe { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.csh-writing-box { min-height: 190px; box-sizing: border-box; border: 1px solid var(--accent-soft, #c7c4fb); border-radius: 10px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.csh-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2, #eef0f8) 0%, var(--accent-soft, #dcdcfb) 50%, var(--surface-2, #eef0f8) 100%); background-size: 800px 100%; animation: csh-shimmer 1.4s linear infinite; }
@keyframes csh-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.csh-lost { min-height: 120px; box-sizing: border-box; border: 1px dashed var(--border); border-radius: 10px; padding: 16px; display: grid; gap: 12px; align-content: start; justify-items: start; }
.csh-lost p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.csh-fit { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft, #eef2ff); color: var(--accent-deep, #312e81); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; }
.csh-fit > span:first-child { font-weight: 800; }
.csh-fit-over { background: var(--danger-soft, #fef2f2); color: var(--danger, #b91c1c); }
.csh-ask { display: grid; gap: 8px; border: 1px solid var(--accent); border-radius: 12px; padding: 12px; }
.csh-ask-ta { min-height: 64px; resize: vertical; }
.csh-panel .btn { min-height: 44px; }
.csh-quiet { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .csh-dots i, .csh-line { animation: none; } }
@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; }
}

/* An account that must be reconnected before it can carry this post's media. */
.csh-note.csh-warn{color:var(--text);background:var(--warn-soft);border:1px solid var(--warn);border-radius:10px;padding:10px 12px}
.csh-fix{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
.csh-fix .csh-note{margin:0}
