/* Radar Studio -- Conversations (2026-10-02). Loaded as a file: the Studio CSP (style-src 'self') blocks inline styles. */
#conversations .conv-intro { color: #475569; margin: 4px 0 16px; max-width: 900px; }
#conversations .conv-actions { display: flex; gap: 8px; }

/* Channel tabs: one per social network, each with its own counts */
#conversations .conv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
#conversations .conv-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 128px;
  padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
#conversations .conv-tab strong { font-size: 15px; }
#conversations .conv-tab small { color: #64748b; font-size: 12px; }
#conversations .conv-tab .open-n { color: #b91c1c; font-weight: 700; }
#conversations .conv-tab.active { border-color: #1e3a8a; box-shadow: 0 0 0 2px #1e3a8a inset; }
#conversations .conv-tab.empty { opacity: .65; }

/* Status switch + search */
#conversations .conv-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
#conversations .conv-bar input[type=search] { flex: 1 1 320px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
#conversations .conv-seg { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
#conversations .conv-seg button { border: 0; border-right: 1px solid #cbd5e1; background: #fff; padding: 8px 14px; cursor: pointer; font: inherit; }
#conversations .conv-seg button:last-child { border-right: 0; }
#conversations .conv-seg button.active { background: #1e3a8a; color: #fff; }

/* Groups: channel -> type */
#conversations .conv-channel { margin: 0 0 26px; }
#conversations .conv-channel > h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid #e2e8f0; }
#conversations .conv-channel > h3 small { font-weight: 400; color: #64748b; font-size: 13px; }
#conversations .conv-type { margin: 0 0 14px 4px; }
#conversations .conv-type > h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #475569; margin: 6px 0 8px; }
#conversations .conv-empty { color: #64748b; margin: 4px 0 0 4px; }

/* Cards */
#conversations .conv-card { border: 1px solid #e2e8f0; border-left: 4px solid #94a3b8; border-radius: 10px; padding: 14px 16px;
  margin: 0 0 10px; background: #fff; }
#conversations .conv-card.st-open { border-left-color: #dc2626; }
#conversations .conv-card.st-answered { border-left-color: #16a34a; background: #fbfefc; }
#conversations .conv-card.st-ignored { border-left-color: #cbd5e1; background: #f8fafc; }
#conversations .conv-card.conv-focus { box-shadow: 0 0 0 3px #1d4ed8; }
#conversations .conv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#conversations .conv-who { font-size: 15px; }
#conversations .conv-who strong { margin-right: 6px; }
#conversations .conv-when { color: #64748b; font-size: 13px; }
#conversations .conv-state { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
#conversations .conv-state.open { background: #fee2e2; color: #991b1b; }
#conversations .conv-state.answered { background: #dcfce7; color: #166534; }
#conversations .conv-state.ignored { background: #e2e8f0; color: #475569; }
#conversations .conv-post { margin: 6px 0 0; font-size: 13px; color: #475569; }
#conversations .conv-post a { color: #1d4ed8; }
#conversations .conv-quote { margin: 10px 0 0; padding: 10px 12px; background: #f8fafc; border-radius: 8px; white-space: pre-wrap;
  line-height: 1.5; color: #0f172a; }
#conversations .conv-done { margin: 10px 0 0; padding: 10px 12px; background: #f0fdf4; border-radius: 8px; font-size: 14px; line-height: 1.5; }
#conversations .conv-done b { display: block; font-size: 12px; color: #166534; margin-bottom: 4px; }
#conversations .conv-note { color: #64748b; font-size: 12px; margin: 6px 0 0; }
#conversations .conv-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#conversations .conv-draft { margin-top: 12px; }
#conversations .conv-draft textarea { width: 100%; min-height: 120px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; line-height: 1.5; }
#conversations .conv-draft input[type=text] { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
#conversations .conv-research { margin-top: 8px; font-size: 12px; color: #475569; line-height: 1.6; }
#conversations .conv-research a { word-break: break-all; }
#conversations #conv-style textarea { width: 100%; min-height: 200px; }

/* Kobra button count + "Needs you" list */
.kobra-toggle { position: relative; }
.kobra-count { position: absolute; top: 0; left: 22px; background: #dc2626; color: #fff; border-radius: 999px; font-size: 11px;
  font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; text-align: center; }
.kobra-needs { border-bottom: 1px solid #e2e8f0; padding: 8px 10px; margin-bottom: 6px; }
.kobra-needs h4 { margin: 0 0 6px; font-size: 13px; }
.kobra-needs button { display: block; width: 100%; text-align: left; margin: 3px 0; padding: 6px 8px; border: 1px solid #e2e8f0;
  border-radius: 8px; background: #f8fafc; cursor: pointer; font-size: 13px; }
#conversations:focus { outline: none; }
#conversations .conv-why { width: 100%; min-height: 70px; margin-top: 8px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
#conversations .conv-rules { margin-bottom: 14px; }
#conversations .conv-rule { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e2e8f0; }
#conversations .conv-rule input { flex: 1; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }

/* 2026-10-04: Reply on X is a real link so the phone opens the X app */
a.conv-xbtn { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 8px; background: #14171a; color: #fff;
  font-weight: 600; text-decoration: none; }
.conv-note { margin-top: .4rem; font-size: .9em; opacity: .85; }
.conv-thread { margin: .5rem 0; } .conv-thread summary { cursor: pointer; font-weight: 600; }
.conv-thread-item { margin: .4rem 0 .4rem .8rem; padding-left: .6rem; border-left: 2px solid rgba(127,127,127,.35); }

/* 2026-10-04: X like / follow back row */
#conversations .conv-xrow { align-items: center; margin-top: 8px; }
#conversations .conv-xrow button[disabled] { opacity: .75; cursor: default; }
#conversations .conv-follows { margin-left: 4px; }
