/* ════════════════════════════════════════════════════════════════════════
   OUTILS — ce qui est propre à chaque outil, sur le kit (kit.css).
   Refonte du 2026-10-20 : « je ne veux plus qu'aucun outil ressemble à sa
   version actuelle, mais à des versions allégées et belles, comme si c'était
   Apple qui avait fait la refonte » (Javi). ⛔ Ni violet ni rose.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Pipeline : des colonnes qui se partagent la fenêtre ──────────────────── */
.pipe-board { min-height: 0; }
.pk-cols {
  display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(188px, 1fr)); gap: 10px; align-items: start;
  overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.pk-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-snap-align: start; background: color-mix(in srgb, var(--ag-fill2) 55%, transparent); border-radius: 16px; padding: 10px 8px 8px; }
.pk-col-h { display: flex; align-items: center; gap: 8px; padding: 0 6px 2px; font: 600 13.5px/1.3 var(--font); color: var(--ag-label); min-height: 26px; }
.pk-col-h > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.pk-col-h .pk-sp { color: var(--k-teal); display: inline-flex; }
.pk-n { margin-left: auto; font: 500 12.5px/1 var(--font); color: var(--ag-sec); font-variant-numeric: tabular-nums; }
.pk-x { margin: -4px -4px -4px 0; }
.pk-drop { display: flex; flex-direction: column; gap: 6px; min-height: 64px; border-radius: 12px; transition: background .15s, box-shadow .15s; }
.pipe-board.dragging .pk-drop[data-drop] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 28%, transparent); }
.pk-drop.over { background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent) !important; }
.pk-empty { padding: 18px 10px; text-align: center; color: var(--ag-ter); font-size: 12.5px; line-height: 1.4; border-radius: 12px; }
.pk {
  display: flex; flex-direction: column; gap: 8px; padding: 10px 11px; border-radius: 12px; background: var(--ag-card); cursor: pointer; user-select: none;
  box-shadow: 0 0 0 .5px var(--ag-sep), 0 1px 2px rgba(0, 0, 0, .05); transition: box-shadow .15s, transform .12s;
}
.pk:hover { box-shadow: 0 0 0 .5px var(--ag-sep), 0 4px 14px rgba(0, 0, 0, .08); }
.pk:focus-visible { outline: 2px solid var(--ag-brand); outline-offset: 2px; }
.pk.dragging { opacity: .5; transform: scale(.98); }
.pk-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pk-who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-who small { font-size: 12.5px; color: var(--ag-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; padding-left: 44px; }
.pk-t { font-size: 12px; color: var(--ag-ter); white-space: nowrap; }
.pk-why { margin: 0; font-size: 12.5px; color: var(--ag-sec); line-height: 1.4; }
.pk-a { display: flex; gap: 6px; flex-wrap: wrap; }
.pk.sugg { background: color-mix(in srgb, var(--k-teal) 7%, var(--ag-card)); cursor: default; }
.pk-col.sugg { background: color-mix(in srgb, var(--k-teal) 9%, transparent); }
.pk.k-skel { gap: 7px; }

/* ── Inspecteur : compléments ─────────────────────────────────────────────── */
.ix-p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ag-label); white-space: normal; }
.ix-chips { margin-top: 12px; }
.ix-chips > span { display: block; font-size: 12px; color: var(--ag-sec); margin-bottom: 6px; }
.ix-chips .chips { margin: 0; }
.ix-answers > div + div { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ag-sep); }
.ix-answers b { font-size: 13px; color: var(--ag-sec); font-weight: 600; }
.ix-answers p { margin: 3px 0 0; }
.ix-apps { background: var(--ag-card); border-radius: 12px; box-shadow: 0 0 0 .5px var(--ag-sep); overflow: hidden; }
.ix-box details.iv-transcript { margin-top: 12px; }
.iv-transcript summary { cursor: pointer; color: var(--ag-brand); font-size: 13px; }
.iv-transcript pre { white-space: pre-wrap; font: 400 12.5px/1.5 var(--font); color: var(--ag-sec); margin: 8px 0 0; max-height: 320px; overflow: auto; }

@media (max-width: 860px) {
  .pk-cols { grid-template-columns: repeat(var(--cols, 5), minmax(260px, 82vw)); }
}

/* ── Messages : liste à gauche, fil à droite, la saisie des agents en bas ── */
/* Couleurs des pseudos : 8 teintes stables, lisibles en clair et en sombre,
   sans violet ni rose (demande de Javi : différencier les personnes). */
:root { --mx-0: #0a6cff; --mx-1: #0f8fa3; --mx-2: #1d9a4c; --mx-3: #c96800; --mx-4: #d7372c; --mx-5: #8a6a4a; --mx-6: #0a84a8; --mx-7: #4f6b8a; }
:root[data-theme="dark"] { --mx-0: #4c9dff; --mx-1: #40c8e0; --mx-2: #30d158; --mx-3: #ff9f0a; --mx-4: #ff6961; --mx-5: #c9a27c; --mx-6: #64d2ff; --mx-7: #9fb4cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mx-0: #4c9dff; --mx-1: #40c8e0; --mx-2: #30d158; --mx-3: #ff9f0a; --mx-4: #ff6961; --mx-5: #c9a27c; --mx-6: #64d2ff; --mx-7: #9fb4cf; } }
.app-view .section[data-section="messages"] { padding: 0 !important; animation: none; }
.mx { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - 48px); min-height: 420px; background: var(--ag-win); font-family: var(--font); color: var(--ag-label); }
.mx-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--ag-sep); background: var(--ag-win); }
.mx-side-h { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px 12px; }
.mx-search { flex: 1; min-width: 0; }
.mx-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 16px; }
.mx-grp-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 8px 6px; font: 600 12px/1.3 var(--font); color: var(--ag-sec); }
.mx-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 9px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; font-family: inherit; }
.mx-row:hover { background: var(--ag-fill2); }
.mx-row.on { background: var(--ag-brand); color: #fff; }
.mx-row.on small, .mx-row.on time { color: rgba(255, 255, 255, .78) !important; }
.mx-row.on .mx-check { color: #fff; }
.mx-row-l { flex: none; display: inline-flex; }
.mx-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-row-t { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.mx-row-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-row-t time { margin-left: auto; padding-left: 6px; font-size: 12px; color: var(--ag-ter); flex: none; }
.mx-row small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ag-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-row.unread .mx-row-t b { font-weight: 700; }
.mx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ag-brand); flex: none; }
.mx-row.on .mx-dot { background: #fff; }
.mx-none { margin: 6px 10px; font-size: 13px; color: var(--ag-sec); }
.mx-join-mini { margin: 4px 6px; padding: 12px; border-radius: 12px; background: var(--ag-fill2); font-size: 13px; color: var(--ag-sec); }
.mx-join-mini p { margin: 0 0 8px; }
.mx-check { color: var(--ag-brand); display: inline-flex; flex: none; }

.mx-av {
  --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  font: 600 calc(var(--s) * .38)/1 var(--font); color: #fff; background: linear-gradient(180deg, #a9aeb9, #868b97);
}
.mx-av img { width: 100%; height: 100%; object-fit: cover; }
.mx-av[data-c="0"] { background: var(--mx-0); } .mx-av[data-c="1"] { background: var(--mx-1); } .mx-av[data-c="2"] { background: var(--mx-2); } .mx-av[data-c="3"] { background: var(--mx-3); }
.mx-av[data-c="4"] { background: var(--mx-4); } .mx-av[data-c="5"] { background: var(--mx-5); } .mx-av[data-c="6"] { background: var(--mx-6); } .mx-av[data-c="7"] { background: var(--mx-7); }
.mx-av-team { background: linear-gradient(160deg, #5b95ff, #2459e0); }
.mx-av-cop { background: linear-gradient(160deg, #5fd4e0, #1597a8); }
.mx-av-glob { background: linear-gradient(160deg, #5fd38a, #1e9e4f); }
.mx-av-grp { background: linear-gradient(160deg, #a3a9b5, #6d7380); gap: 0; }
.mx-av-grp i { font-style: normal; font-size: 10px; }
.mx-av-sp { width: 30px; flex: none; }

.mx-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mx-head { display: flex; align-items: center; gap: 11px; height: 56px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--ag-sep); flex: none; }
.mx-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mx-head-t b { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.mx-head-t small { font-size: 12.5px; color: var(--ag-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-back { display: none; transform: rotate(180deg); margin-left: -8px; }
.mx-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mx-col { max-width: 760px; margin: 0 auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.mx-day { align-self: center; margin: 14px 0 8px; font: 600 11.5px/1 var(--font); color: var(--ag-ter); text-transform: capitalize; }
.mx-sys { align-self: center; margin: 6px 0; font-size: 12.5px; color: var(--ag-sec); text-align: center; max-width: 80%; }
.mx-msg { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 6px 0 2px; animation: ag-rise .2s ease both; }
.mx-msg.cont { padding-top: 0; }
.mx-body { flex: 1; min-width: 0; }
.mx-who { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 2px; }
.mx-n { font-size: 13.5px; font-weight: 650; color: var(--mx-0); }
.mx-n[data-c="1"] { color: var(--mx-1); } .mx-n[data-c="2"] { color: var(--mx-2); } .mx-n[data-c="3"] { color: var(--mx-3); } .mx-n[data-c="4"] { color: var(--mx-4); }
.mx-n[data-c="5"] { color: var(--mx-5); } .mx-n[data-c="6"] { color: var(--mx-6); } .mx-n[data-c="7"] { color: var(--mx-7); } .mx-n[data-c="cop"] { color: var(--k-teal-ink); }
.mx-co { font-size: 12px; color: var(--ag-sec); }
.mx-who time, .mx-msg.mine time { font-size: 11.5px; color: var(--ag-ter); }
.mx-text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.mx-text a, .mx-bubble a { color: var(--ag-brand); }
.mx-msg.mine { flex-direction: column; align-items: flex-end; gap: 3px; padding-top: 8px; }
.mx-bubble { max-width: min(80%, 560px); background: var(--ag-bubble); border-radius: 20px; padding: 9px 15px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.mx-msg.mine .mx-mmore { position: absolute; left: auto; right: calc(min(80%, 560px) + 6px); top: 10px; }
.mx-mmore { opacity: 0; color: var(--ag-ter); }
.mx-msg:hover .mx-mmore, .mx-mmore[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .mx-mmore { opacity: .7; } }
.mx-gone { color: var(--ag-ter); font-style: italic; }
.mx-quote { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 5px 10px; border-radius: 10px; background: var(--ag-fill2); color: var(--ag-label); font-size: 13px; cursor: pointer; text-decoration: none; }
.mx-att { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px 8px 8px; border: 0; border-radius: 12px; background: var(--ag-card); box-shadow: 0 0 0 1px var(--ag-sep); color: var(--ag-label); text-align: left; cursor: pointer; font-family: inherit; max-width: 360px; }
.mx-att-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ag-fill2); color: var(--ag-sec); flex: none; }
.mx-att b { display: block; font-size: 13.5px; font-weight: 600; }
.mx-att small { display: block; font-size: 12px; color: var(--ag-sec); }
.mx-typing { display: inline-flex; gap: 4px; padding: 10px 0; }
.mx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ag-ter); animation: k-pulse 1s ease-in-out infinite; }
.mx-typing i:nth-child(2) { animation-delay: .15s; } .mx-typing i:nth-child(3) { animation-delay: .3s; }
.mx-ai, .mx-blocked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: var(--ag-fill2); font-size: 13.5px; color: var(--ag-sec); }
.mx-ai-a { margin-left: auto; display: flex; gap: 6px; }
.mx-older { display: flex; justify-content: center; margin-bottom: 8px; }
.mx-empty, .mx-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: 12vh auto 0; max-width: 380px; color: var(--ag-sec); font-size: 14px; }
.mx-empty p { margin: 0; line-height: 1.5; }
.mx-dock { flex: none; padding: 6px 22px 16px; }
.mx-dock > form { max-width: 760px; margin: 0 auto; }
.mx-composer .ag-menu { bottom: calc(100% + 8px); top: auto; }

.mx-join { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 440px; margin: 7vh auto 0; }
.mx-join-ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #5fd38a, #1e9e4f); }
.mx-join h3 { margin: 4px 0 0; font: 700 21px/1.25 var(--font); letter-spacing: -.02em; }
.mx-join p { margin: 0; font-size: 14px; color: var(--ag-sec); line-height: 1.55; }
.mx-join-me { display: flex; align-items: center; gap: 12px; align-self: stretch; padding: 12px 14px; margin-top: 6px; border-radius: 14px; background: var(--ag-group); text-align: left; }
.mx-join-me span { display: flex; flex-direction: column; }
.mx-join-me b { font-size: 15px; }
.mx-join-me small { font-size: 13px; color: var(--ag-sec); }
.mx-join-f { align-self: stretch; text-align: left; font: 500 12.5px var(--font); color: var(--ag-sec); }
.mx-join-f input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--ag-group); color: var(--ag-label); font: 400 14px var(--font); }
.mx-join-sw { display: flex; align-items: center; gap: 12px; align-self: stretch; font-size: 14px; text-align: left; cursor: pointer; }
.mx-join-sw input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--ag-fill); cursor: pointer; transition: background .2s; }
.mx-join-sw input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.mx-join-sw input:checked { background: var(--k-green); }
.mx-join-sw input:checked::before { transform: translateX(16px); }
.mx-join .k-btn { align-self: stretch; height: 40px; margin-top: 4px; }
.mx-join-n { font-size: 12px !important; color: var(--ag-ter) !important; }
.mx-cmode { margin-bottom: 4px; }
.mx-gname { margin-top: 12px; }
.mx-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mx-tick { color: var(--ag-brand); display: inline-flex; flex: none; }
.mx-dirrow.on { background: color-mix(in srgb, var(--ag-brand) 7%, transparent); }
.k-foot { margin: 8px 8px 0; font-size: 12.5px; color: var(--ag-sec); line-height: 1.45; }

@media (max-width: 860px) {
  .mx { grid-template-columns: minmax(0, 1fr); }
  .mx .mx-main { display: none; }
  .mx.mx-in-thread .mx-side { display: none; }
  .mx.mx-in-thread .mx-main { display: flex; }
  .mx-back { display: inline-grid; }
  .mx-col { padding: 12px 14px 18px; }
  .mx-dock { padding: 6px 10px 10px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Les autres outils (2026-10-20, suite de la refonte)
   ════════════════════════════════════════════════════════════════════════ */
.k-eyebrow { margin: 0 0 3px; font: 600 13px/1.3 var(--font); color: var(--ag-sec); }
.k-sep { width: 1px; height: 18px; background: var(--ag-sep); margin: 0 4px; flex: none; }
.k-group-h.late { color: var(--k-red-ink); }
.k-banner { margin-bottom: 18px; }
.k-row-m > b .k-verified { color: var(--ag-brand); display: inline-flex; }

/* ── Candidats, dossiers ── */
.cand-skills { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dos-url { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: var(--ag-ter); }

/* ── Clients : un logo carré (comme Contacts pour une société) ── */
.cl-logo { --s: 40px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .24); display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(160deg, var(--k-av-1), var(--k-av-2)); color: #fff; font: 650 calc(var(--s) * .42)/1 var(--font); letter-spacing: -.02em; }
.cl-meter { display: grid; grid-template-columns: 120px minmax(0, 1fr) 30px; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ag-sec); }
.cl-meter i { height: 6px; border-radius: 999px; background: var(--ag-fill2); overflow: hidden; display: block; }
.cl-meter i b { display: block; height: 100%; border-radius: inherit; background: var(--ag-brand); }
.cl-meter em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ag-label); font-weight: 600; text-align: right; }

/* ── Sourcing : des fiches comme les contacts partagés ── */
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.src-grid:has(> .k-empty), .src-grid:has(> .k-list) { display: block; }
.sp { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 20px 16px 16px;
  background: var(--ag-card); border-radius: 18px; box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); min-width: 0; }
.sp-face { position: relative; margin-bottom: 8px; }
.sp-dot { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--k-green); box-shadow: 0 0 0 3px var(--ag-card); }
.sp-name { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font: 650 15px/1.3 var(--font); color: var(--ag-label); }
.sp-name .k-verified { color: var(--ag-brand); display: inline-flex; }
.sp-title { font-size: 13px; color: var(--ag-sec); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-facts { font-size: 12px; color: var(--ag-ter); }
.sp-bio { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ag-sec); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-skills { margin-top: 6px; font-size: 12px; color: var(--ag-label); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-score { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--k-green) 14%, transparent); color: var(--k-green-ink); font: 700 12.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.sp-score small { font-size: 9.5px; }
.sp-a { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding-top: 14px; }
.sp.k-skel { min-height: 230px; gap: 8px; }

.sw { max-width: 900px; }
.sw-form { margin-bottom: 12px; }
.sw-f { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; position: relative; margin: 0; cursor: text; }
.sw-f + .sw-f::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--ag-sep); }
.sw-f > span { flex: none; width: 110px; font: 500 14px var(--font); color: var(--ag-label); }
.sw-f input { all: unset; flex: 1; min-width: 0; height: 46px; font: 400 14px var(--font); color: var(--ag-label); }
.sw-f input::placeholder { color: var(--ag-ter); }
.sw-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.sw-hint { font-size: 12.5px; color: var(--ag-sec); }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sw-src { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ag-card); box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep);
  color: var(--ag-label); text-decoration: none; transition: transform .12s, background .12s; min-width: 0; }
.sw-src > span:not(.k-tile) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sw-src b { font: 600 14px/1.3 var(--font); }
.sw-src small { font-size: 12.5px; color: var(--ag-sec); line-height: 1.35; }
.sw-src > svg { color: var(--ag-ter); flex: none; }
.sw-src:hover { background: color-mix(in srgb, var(--ag-fill2) 50%, var(--ag-card)); }
.sw-src:active { transform: scale(.985); }
.sw-src.off { opacity: .45; cursor: not-allowed; }
.sw-add .k-row-a { gap: 6px; }
.sw .k-row-a .k-select { max-width: 240px; }

/* ── Notes et tâches : Rappels (liste) et Notes (galerie) ── */
.note-lists .k-list { margin: 0; }
.nt-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 10px 11px 14px; --k-sep-l: 46px; }
.nt-row + .nt-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--k-sep-l); height: 1px; background: var(--ag-sep); }
.nt-check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--ag-ter); background: transparent; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; transition: background .15s, border-color .15s; }
.nt-check:hover { border-color: var(--ag-brand); }
.nt-check.on { background: var(--ag-brand); border-color: var(--ag-brand); }
.nt-color { flex: none; width: 10px; height: 10px; margin: 6px 6px 0; border-radius: 50%; background: var(--nc, var(--k-yellow)); }
.nt-main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.nt-title { font: 500 14.5px/1.35 var(--font); color: var(--ag-label); overflow-wrap: anywhere; }
.nt-body { font-size: 13px; line-height: 1.45; color: var(--ag-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 12px; color: var(--ag-sec); }
.nt-due { display: inline-flex; align-items: center; gap: 4px; }
.nt-due.over { color: var(--k-red-ink); font-weight: 600; }
.nt-prog { font-variant-numeric: tabular-nums; }
.nt-tag { color: var(--ag-brand); }
.nt-ctx { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; padding: 2px 8px; border: 0; border-radius: 999px; background: var(--ag-fill2); color: var(--ag-label); font: 500 12px var(--font); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ctx:hover { background: var(--ag-fill); }
.nt-act { flex: none; display: flex; align-items: center; gap: 0; opacity: 0; transition: opacity .12s; }
.nt-row:hover .nt-act, .nt-row:focus-within .nt-act, .nt-card:hover .nt-act, .nt-card:focus-within .nt-act { opacity: 1; }
.nt-act .k-icbtn.on { color: var(--k-orange-ink); }
.nt-row.done .nt-title, .nt-card.done .nt-title { color: var(--ag-ter); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ag-ter) 60%, transparent); }
/* Couleurs choisies par le recruteur pour SES notes (seule exception au « pas de violet »). */
.nc-yellow { --nc: #ffcc00; } .nc-green { --nc: #34c759; } .nc-blue { --nc: #0a84ff; } .nc-pink { --nc: #ff6482; }
.nc-purple { --nc: #af82dc; } .nc-orange { --nc: #ff9500; } .nc-gray { --nc: #8e8e93; }
/* style.css peint tout le fond d'une note à sa couleur : ici, seulement la pastille. */
.nt-row[class*="nc-"] { background: transparent; }
.nt-card[class*="nc-"] { background: var(--ag-card); }
.note-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.note-gallery:has(> .k-empty) { display: block; }
.nt-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; border-radius: 16px; background: var(--ag-card);
  box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); min-width: 0; cursor: pointer; border-top: 4px solid var(--nc, var(--k-yellow)); }
.nt-card-h { display: flex; align-items: flex-start; gap: 8px; }
.nt-card-h .nt-title { flex: 1; font-weight: 650; }
.nt-card .nt-color { display: none; }
.nt-card .nt-body { white-space: normal; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.nt-pinned { color: var(--k-orange-ink); display: inline-flex; }
.nt-card .nt-act { justify-content: flex-end; margin-top: 2px; }
@media (hover: none) { .nt-act { opacity: 1; } }

/* Le tiroir de notes (depuis une fiche) : une feuille latérale sobre. */
.note-drawer { background: var(--ag-group) !important; border: 0 !important; box-shadow: -10px 0 40px rgba(0, 0, 0, .14) !important; }
.note-drawer-backdrop { background: rgba(0, 0, 0, .2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.nd-head { background: transparent !important; border: 0 !important; }
.nd-title { font: 700 19px/1.25 var(--font) !important; letter-spacing: -.015em; color: var(--ag-label); }
.nd-kicker { font: 600 12px/1.3 var(--font) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ag-sec) !important; }
.nd-quick { background: var(--ag-card) !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 0 0 .5px var(--ag-sep) !important; }
.nd-quick textarea { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.nd-list .nt-row { background: var(--ag-card); border-radius: 12px; margin-bottom: 6px; }
.nd-list .nt-row::before { display: none; }

/* ── Rendez-vous ── */
.bk-time { width: 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.bk-time b { font: 650 15px/1.15 var(--font); font-variant-numeric: tabular-nums; color: var(--ag-label); }
.bk-time small { font-size: 11.5px; color: var(--ag-sec); }

/* ── Entretiens IA ── */
.iv-sc { --c: var(--k-gray); --ci: var(--k-gray-ink); width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: 700 14px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ci); background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.iv-sc[data-tone="green"], .iv-dot[data-tone="green"] { --c: var(--k-green); --ci: var(--k-green-ink); }
.iv-sc[data-tone="orange"], .iv-dot[data-tone="orange"] { --c: var(--k-orange); --ci: var(--k-orange-ink); }
.iv-sc[data-tone="red"], .iv-dot[data-tone="red"] { --c: var(--k-red); --ci: var(--k-red-ink); }
.iv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--k-gray)); flex: none; align-self: flex-start; margin-top: 6px; }
.iv-pts .k-row { min-height: 0; padding: 10px 14px; gap: 10px; }
.iv-pts .k-row-m small { white-space: normal; color: var(--ag-label); font-size: 13.5px; line-height: 1.45; }
.iv-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.iv-head .iv-sc { width: 52px; height: 52px; font-size: 18px; }
.iv-head div { display: flex; flex-direction: column; }
.iv-head b { font: 700 17px/1.2 var(--font); }
.iv-head small { font-size: 12.5px; color: var(--ag-sec); }
.iv-sum { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.modal-body .iv-ctx { margin: -6px 0 14px; }
.modal-body .iv-transcript { margin-top: 18px; }

/* ── Évaluations ── */
.as-code { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--ag-fill2); color: var(--ag-label); font: 650 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.fw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.modal-body .fw-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--ag-group); color: var(--ag-label);
  font: 500 13.5px/1.3 var(--font); text-align: left; cursor: pointer; box-shadow: none; min-height: 52px; }
.modal-body .fw-tile:hover { background: var(--ag-fill2); }
.modal-body .fw-tile.sel { background: color-mix(in srgb, var(--ag-brand) 10%, var(--ag-card)); box-shadow: inset 0 0 0 1.5px var(--ag-brand); }
.as-links { margin: 16px 0 0; }
.as-narr { white-space: normal !important; color: var(--ag-label) !important; font-size: 13.5px !important; line-height: 1.55 !important; }
.as-narr-btn { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; }
.modal-body .assess-bars { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 6px; padding: 14px; border-radius: 14px; background: var(--ag-group); }
.modal-body .assess-bar-label { display: flex; justify-content: space-between; font: 500 13px var(--font); color: var(--ag-label); margin-bottom: 6px; }
.modal-body .assess-bar-label span { color: var(--ag-sec); font-variant-numeric: tabular-nums; }
.modal-body .assess-bar { height: 6px; border-radius: 999px; background: var(--ag-fill2); overflow: hidden; border: 0; }
.modal-body .assess-bar-fill { height: 100%; border-radius: inherit; background: var(--ag-brand); }
.modal-body .assess-type-badge { display: inline-flex; align-items: baseline; gap: 8px; padding: 0; background: none; border: 0; font: 750 26px/1.1 var(--font); letter-spacing: -.02em; color: var(--ag-label); }
.modal-body .assess-type-badge span { font: 500 14px var(--font); color: var(--ag-sec); letter-spacing: 0; }

/* ── API : des groupes façon Réglages ── */
.api { max-width: 760px; }
.k-foot.api-lead { margin: -4px 6px 20px; font-size: 13.5px; }
.api-key { font: 600 14px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.api .k-row-m > small { white-space: normal; }
.api .k-row-m code, .api .k-foot code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ag-fill2); padding: 1px 5px; border-radius: 5px; color: var(--ag-label); }
.api-perms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.api-code { position: relative; background: var(--ag-card); border-radius: var(--k-radius); box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); }
.api-code pre { margin: 0; padding: 14px 90px 14px 16px; overflow-x: auto; font: 500 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ag-label); white-space: pre; }
.api-code .k-btn { position: absolute; top: 10px; right: 10px; }

/* ── Accès et aide : un article de support ── */
.app-view .help-doc { max-width: 720px; padding: 22px 26px 26px; background: var(--ag-card); border: 0; border-radius: 18px; box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); font-size: 14.5px; line-height: 1.6; color: var(--ag-label); }
.app-view .help-doc h3 { margin: 0 0 6px; font: 700 21px/1.25 var(--font); letter-spacing: -.015em; }
.app-view .help-doc h4 { margin: 26px 0 6px; font: 650 16px/1.3 var(--font); letter-spacing: -.01em; color: var(--ag-label); }
.app-view .help-doc p { margin: 0 0 10px; }
.app-view .help-doc .muted { color: var(--ag-sec); }
.app-view .help-doc ol { margin: 6px 0 12px; padding-left: 22px; }
.app-view .help-doc li { margin: 4px 0; }
.app-view .help-doc code { font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ag-fill2); padding: 1px 5px; border-radius: 5px; }
.app-view .help-doc a { color: var(--ag-brand); }
.app-view .help-doc .ext-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }

/* ── Vitrine : le téléphone à gauche, des groupes à droite ── */
.app-view .vit-grid { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 32px; }
.app-view .vit-col { gap: 0; }
.app-view .vit-col > .k-group-h:first-child { margin-top: 0; }
.app-view .vit-phone { margin: 0 auto 12px; padding: 10px; border-radius: 44px; background: #1c1c1e; box-shadow: 0 20px 50px rgba(0, 0, 0, .18), inset 0 0 0 1.5px #3a3a3c; border: 0; }
.app-view .vit-phone-scr { border-radius: 34px; }
.app-view .vit-url { font-size: 12.5px; color: var(--ag-sec); margin: 0 0 10px; }
.app-view .vit-act { justify-content: center; gap: 6px; }
.app-view .vit-hint { text-align: center; margin: 10px 0 0; font-size: 12.5px; color: var(--ag-sec); }
.vit-h-a { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.app-view .k-group-h:has(.vit-h-a) { align-items: center; }
.app-view .deck-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.app-view .deck { border: 0; border-radius: 14px; background: var(--ag-card); box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); overflow: hidden; text-decoration: none; color: var(--ag-label); transition: transform .15s; }
.app-view .deck:hover { transform: translateY(-1px); box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep), 0 8px 22px rgba(0, 0, 0, .08); }
.app-view .deck-cov { background: var(--ag-fill2); }
.app-view .deck-cov .deck-ph { color: var(--ag-sec); font-weight: 650; }
.app-view .deck-b small { color: var(--ag-sec); }
.app-view .deck-tpl img { border: 0; box-shadow: 0 0 0 .5px var(--ag-sep); border-radius: 12px; }

@media (max-width: 860px) {
  .app-view .vit-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-f > span { width: 86px; }
  .fw-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-meter { grid-template-columns: 96px minmax(0, 1fr) 28px; }
  .src-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .sp { padding: 16px 10px 12px; }
  .sp-bio { display: none; }
  .app-view .help-doc { padding: 18px 16px; }
}

/* ── Tableau de bord : des widgets (comme l'écran d'accueil d'iOS) ──
   Cartes blanches très arrondies, un petit titre gris, les chiffres en grand.
   Plus de carte bleue en dégradé ni de confettis (2026-10-20). */
.app-view .hb { gap: 16px; }
.app-view .hb-col { gap: 16px; }
.app-view .hc { background: var(--ag-card); border: 0; border-radius: 22px; padding: 16px 18px; box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); color: var(--ag-label); text-align: left; }
.app-view .hc-t, .app-view .hs-k, .app-view .hw-head h3 { margin: 0 0 10px; font: 600 13.5px/1.3 var(--font); letter-spacing: 0; color: var(--ag-sec); }
.app-view .hc-foot { margin: 10px -18px -16px; padding: 12px 18px; border-top: 1px solid var(--ag-sep); background: transparent; color: var(--ag-brand); font: 500 13.5px/1.2 var(--font); justify-content: space-between; }
.app-view .hc-foot:hover { background: color-mix(in srgb, var(--ag-fill2) 60%, transparent); }
.app-view .hc-n { background: var(--ag-fill2); color: var(--ag-sec); }
.app-view .hj { border-radius: 12px; padding: 8px; margin: 0 -8px; }
.app-view .hj:hover, .app-view .dash-tasks .dt-item:hover { background: color-mix(in srgb, var(--ag-fill2) 70%, transparent); }
.app-view .hj-txt b { font-weight: 600; font-size: 14.5px; }
.app-view .hj-txt small { color: var(--ag-sec); font-size: 12.5px; }
.app-view .dash-tasks .dt-item { border-radius: 10px; padding: 8px; margin: 0 -8px; width: calc(100% + 16px); font-size: 14px; color: var(--ag-label); }
.app-view .dash-tasks .dt-check { color: var(--ag-ter); }
.app-view .dash-tasks .dt-due { font-size: 12px; color: var(--ag-sec); background: none; padding: 0; }
.app-view .dash-tasks .dt-item.over .dt-due { color: var(--k-red-ink); background: none; }

/* Le candidat mis en avant */
.app-view .hc-spot { text-align: center; padding-top: 16px; }
.app-view .hc-spot .hs-k { text-align: left; align-self: stretch; }
.app-view .hs-face { margin: 6px auto 12px; }
.app-view .hs-face .av { box-shadow: none; }
.app-view .hs-face .hs-play { background: var(--ag-label); color: var(--ag-win); box-shadow: 0 0 0 3px var(--ag-card); }
.app-view .hs-name { font: 650 17px/1.3 var(--font); }
.app-view .hs-sub { color: var(--ag-sec); font-size: 13px; }
.app-view .hs-cta { margin: 14px 0 4px; }
.app-view .hs-empty { color: var(--ag-sec); font-size: 13.5px; }
.app-view .hs-empty-art span { background: var(--ag-fill2); border: 0; color: var(--ag-sec); }
.app-view .chip-ic { background: var(--ag-fill2); border: 0; color: var(--ag-label); }
.app-view .chip-ic.brand { background: color-mix(in srgb, var(--ag-brand) 12%, transparent); color: var(--ag-brand); }
.app-view .chip-ic.vid, .app-view .chip-ic.ok { background: color-mix(in srgb, var(--k-green) 14%, transparent); color: var(--k-green-ink); }

/* Cette semaine : un widget blanc, les chiffres en couleur */
.app-view .hc-week { background: var(--ag-card); color: var(--ag-label); text-align: left; box-shadow: var(--k-shadow), 0 0 0 .5px var(--ag-sep); }
.app-view .hw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-view .hw-head h3 { margin: 0; }
.app-view .hw-head span { font-size: 12px; color: var(--ag-ter); opacity: 1; }
.app-view .hw-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 4px; }
.app-view .hw-n { font: 700 40px/1 var(--font); letter-spacing: -.035em; color: var(--ag-brand); }
.app-view .hw-body > div:nth-child(2) .hw-n { color: var(--k-green-ink); }
.app-view .hw-l { font-size: 13px; color: var(--ag-sec); margin-top: 4px; opacity: 1; }
.app-view .hw-trend { background: var(--ag-fill2); color: var(--ag-label); font: 600 11.5px/1 var(--font); padding: 4px 8px; margin-top: 8px; }
.app-view .hw-trend.down { color: var(--k-red-ink); }
.app-view .hw-kpis { justify-content: flex-start; gap: 4px 14px; margin-top: 12px; font-size: 12.5px; color: var(--ag-sec); opacity: 1; }
.app-view .hw-kpis b { color: var(--ag-label); font-weight: 650; }
.app-view .hc-week .hc-foot { background: transparent; color: var(--ag-brand); border-top: 1px solid var(--ag-sep); }
.app-view .hc-week .hc-foot:hover { background: color-mix(in srgb, var(--ag-fill2) 60%, transparent); }

/* Agenda : comme le widget Calendrier, aujourd'hui dans une pastille rouge */
.app-view .dc-head strong { font: 650 15px/1.2 var(--font); color: var(--k-red-ink); }
.app-view .dc-nav button { width: 28px; height: 28px; border-radius: 50%; color: var(--ag-sec); }
.app-view .dc-nav button:hover { background: var(--ag-fill2); }
.app-view .dc-wd span { font-size: 11px; color: var(--ag-ter); }
.app-view .dc-cell { height: 32px; border: 0; border-radius: 50%; background: transparent; box-shadow: none; font: 500 13px/1 var(--font); color: var(--ag-label); position: relative; display: grid; place-items: center; width: 32px; margin: 0 auto; }
.app-view .dc-cell.has { background: transparent; font-weight: 650; }
.app-view .dc-cell.today { background: var(--k-red); color: #fff; font-weight: 700; border: 0; }
.app-view .dc-dot { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--ag-brand); }
.app-view .dc-cell.today .dc-dot { background: #fff; }
.app-view .du-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px 8px 12px; border: 0; border-left: 3px solid var(--ag-brand); border-radius: 6px; background: color-mix(in srgb, var(--ag-brand) 7%, transparent); text-align: left; cursor: pointer; font: inherit; }
.app-view .du-item:hover { background: color-mix(in srgb, var(--ag-brand) 12%, transparent); }
.app-view .du-when { font: 600 12px/1.3 var(--font); color: var(--ag-brand); }
.app-view .du-who { font-size: 13.5px; color: var(--ag-label); }
.app-view .dash-upcoming { display: flex; flex-direction: column; gap: 6px; }

/* Vitrine (mini) */
.app-view .dv-sl { background: var(--ag-group); border: 0; border-radius: 14px; }
.app-view .dv-sl:hover { background: var(--ag-fill2); }
.app-view .dv-sl-t small { color: var(--ag-sec); }
.app-view .dv-deck { background: var(--ag-fill2); border-radius: 10px; }
.app-view .dv-deck:not(:has(img)) span { color: var(--ag-label); text-shadow: none; }

@media (max-width: 1100px) { .app-view .hb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .app-view .hb { grid-template-columns: minmax(0, 1fr); } }

/* La barre de saisie : le texte d'aide tient sur une ligne (sur téléphone, il
   passait à la ligne et la seconde moitié était coupée). */
#ag-input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 860px) {
  /* Messages en liste seule : ni sélection bleue ni filet à droite (iOS). */
  .mx:not(.mx-in-thread) .mx-row.on { background: transparent; color: inherit; }
  .mx:not(.mx-in-thread) .mx-row.on small, .mx:not(.mx-in-thread) .mx-row.on time { color: var(--ag-sec) !important; }
  .mx:not(.mx-in-thread) .mx-row.on .mx-dot { background: var(--ag-brand); }
  .mx-side { border-right: 0; }
}
/* La pastille « Vidéo » était rose (visual.css) : verte partout, tiroirs compris. */
.chip-ic.vid { background: color-mix(in srgb, var(--k-green) 14%, transparent); border-color: transparent; color: var(--k-green-ink); }
