/* =====================================================================
   Prospection Telegram — Amérique latine (public/tgprospect.js) — 09/11/2026
   Onglets de la page Prospection, canaux suivis, annonces collées, annonces analysées ; et, dans la fiche d'un prospect
   (public/growth.js), l'annonce d'origine, le signal d'alerte et la liste de vérification. Jetons de v2.css.
   ===================================================================== */
html body .app .tgp-tabs-wrap { padding-bottom: 0 !important; }
html body .app .tgp-tabs { margin-bottom: 4px; }
html body .app .tgp { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
html body .app .tgp .grow { flex: 1; }
.tgp-rule { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--surface); font-size: 13px; color: var(--fg-2, var(--muted)); }
.tgp-rule summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 24px; }
.tgp-rule summary::-webkit-details-marker { display: none; }
.tgp-rule summary .i { width: 18px; height: 18px; flex: none; color: var(--accent); }
.tgp-rule b { color: var(--fg); }
.tgp-rule p { margin: 6px 0 0 28px; line-height: 1.5; }
.tgp-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--surface); }
.tgp-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tgp-h h2 { margin: 0; font-size: 15px; font-weight: 650; }
.tgp-add, .tgp-paste-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tgp-add input { flex: 1 1 220px; min-width: 0; }
.tgp-paste { display: flex; flex-direction: column; gap: 8px; }
.tgp-paste textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px; font: inherit; font-size: 13.5px; }
.tgp-paste-b input { flex: 1 1 220px; min-width: 0; }
html body .app .tgp-file { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.tgp-file .i { width: 15px; height: 15px; }
.tgp-srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tgp-srcs li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.tgp-srcs li:first-child { border-top: 0; }
.tgp-src-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tgp-src-m b { font-size: 13.5px; }
.tgp-src-m span { font-size: 12.5px; color: var(--fg-2, var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgp-src-m small { font-size: 12px; color: var(--muted); }
.tgp-err { font-style: normal; color: var(--danger, #e5484d); }

.tgp-res { display: flex; flex-direction: column; gap: 10px; }
.tgp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tgp-bar select { height: 34px; max-width: 100%; }
.tgp-q { flex: 1 1 220px; min-width: 0; }
.tgp-bar2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.tgp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.tgp-ann { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg, 12px); background: var(--surface); }
.tgp-ann.alert { border-color: color-mix(in srgb, #e5a50a 45%, var(--line)); }
.tgp-ann.minor { border-color: color-mix(in srgb, #e5484d 50%, var(--line)); opacity: .85; }
.tgp-ann header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tgp-ann header small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tgp-type { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--fg); }
.tgp-type.t-model { background: color-mix(in srgb, #30a46c 20%, transparent); }
.tgp-type.t-middleman { background: color-mix(in srgb, #e5a50a 20%, transparent); }
.tgp-type.t-agency, .tgp-type.t-chatter { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tgp-c { font-size: 12.5px; color: var(--fg-2, var(--muted)); }
.tgp-text { margin: 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tgp-ai { display: flex; gap: 6px; margin: 0; font-size: 12.5px; color: var(--fg-2, var(--muted)); }
.tgp-ai .i { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--accent); }
.tgp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tgp-chips span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--fg-2, var(--muted)); }
.tgp-contacts { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
.tgp-contacts a { overflow-wrap: anywhere; }
.tgp-contacts a.in { color: var(--muted); }
.tgp-flag { display: flex; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.tgp-flag .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.tgp-flag.minor { background: color-mix(in srgb, #e5484d 14%, transparent); color: var(--fg); }
.tgp-flag.alert { background: color-mix(in srgb, #e5a50a 14%, transparent); color: var(--fg); }
.tgp-review { display: flex; flex-direction: column; gap: 6px; }
.tgp-review textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; resize: vertical; }
.tgp-ann footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tgp-ann footer select { height: 32px; max-width: 100%; }

/* la fiche d'un prospect (public/growth.js) */
html body .app .gr-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
html body .app .gr-dl dt { color: var(--muted); }
html body .app .gr-dl dd { margin: 0; overflow-wrap: anywhere; }
html body .app .gr-src-txt { overflow-wrap: anywhere; }
html body .app .gr-inter { display: flex; gap: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; }
html body .app .gr-inter .i { width: 15px; height: 15px; flex: none; margin-top: 2px; }
html body .app .gr-inter small { display: block; color: var(--muted); font-size: 12px; }
html body .app .gr-alert { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #e5a50a 12%, transparent); font-size: 13px; }
html body .app .gr-alert b { display: inline-flex; align-items: center; gap: 6px; }
html body .app .gr-alert .i { width: 15px; height: 15px; }
html body .app .gr-alert ul { margin: 0; padding-left: 18px; }
html body .app .gr-review { display: flex; flex-direction: column; gap: 6px; }
html body .app .gr-review textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; }
html body .app .gr-comp h3 { display: flex; align-items: center; gap: 8px; }
html body .app .gr-comp-n { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, #e5a50a 20%, transparent); color: var(--fg); font-size: 11px; letter-spacing: 0; }
html body .app .gr-comp-n.ok { background: color-mix(in srgb, #30a46c 22%, transparent); }
html body .app .gr-comp-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html body .app .gr-comp-l label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
html body .app .gr-comp-l input { margin-top: 2px; flex: none; }
html body .app .gr-comp-l small { display: block; color: var(--muted); font-size: 11.5px; }
html body .app .gr-comp-l li > .linkish { margin-left: 24px; }
html body .app .gr-note-x { display: inline-flex; gap: 6px; }
html body .app .gr-note:not(:has([name="contact"]:checked)) .gr-note-x { display: none; }

@media (max-width: 760px) {
  html body .app .tgp-tabs { display: flex !important; width: 100%; }
  html body .app .tgp-tabs > button { flex: 1 1 0; min-width: 0; min-height: 40px; height: auto !important; padding: 4px 6px !important; font-size: 13px; white-space: normal; line-height: 1.15; }
  .tgp-rule summary { min-height: 44px; }
  .tgp-rule p { margin-left: 0; }
  .tgp-bar select, .tgp-ann footer select { flex: 1 1 calc(50% - 4px); min-width: 0; height: 44px; font-size: 16px; }
  .tgp-q { flex-basis: 100%; }
  .tgp-q input, .tgp-add input, .tgp-paste-b input, .tgp-paste textarea { font-size: 16px; }
  .tgp-add input, .tgp-paste-b input { min-height: 44px; }
  html body .app :is(.tgp-ann footer, .tgp-add, .tgp-paste-b, .tgp-srcs, .tgp-bar2) :is(.btn-main, .btn-ghost) { height: 44px; min-height: 44px; }
  .tgp-ann footer .btn-main { flex: 1 1 auto; }
  .tgp-srcs .icon-btn { min-width: 44px; min-height: 44px; }
  html body .app .gr-note-x { width: 100%; }
}
