:root {
  --bg: #f6f5f2; --panel: #ffffff; --ink: #1d1c1a; --muted: #6b6760; --line: #e3e0d9;
  --accent: #2f6fdb; --ok: #1f8a4c; --warn: #b7791f; --bad: #c0392b; --trial: #7b4fd6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --panel: #1f1f1d; --ink: #ecebe8; --muted: #9c988f; --line: #33322f;
          --accent: #6c9cf0; --ok: #4cc27f; --warn: #e0a84b; --bad: #ef6b5d; --trial: #a886f2; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { position: sticky; top: 0; z-index: 2; background: var(--panel); border-bottom: 1px solid var(--line);
         padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
header h1 { font-size: 17px; margin: 0; }
nav { display: flex; gap: 4px; overflow-x: auto; }
nav button { border: 0; background: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font: inherit; cursor: pointer; }
nav button.active { background: var(--bg); color: var(--ink); font-weight: 600; }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--bad); }
button.primary, button.ghost, button.danger { font: inherit; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border: 0; }
button.ghost { background: none; border: 1px solid var(--line); color: var(--ink); }
button.danger { background: none; border: 1px solid var(--bad); color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.card h2 { font-size: 16px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.trial { border-color: var(--trial); color: var(--trial); }
.badge.ok { border-color: var(--ok); color: var(--ok); }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.badge.bad { border-color: var(--bad); color: var(--bad); }
.days { display: grid; gap: 10px; }
.day h3 { font-size: 14px; margin: 10px 0 6px; color: var(--muted); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; align-items: start; }
.slot { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; min-height: 76px; font-size: 13px; display: grid; gap: 6px; }
.slot.filled { border-style: solid; background: var(--bg); }
.slot .time { font-weight: 700; font-size: 15px; }
.slot .row { flex-wrap: wrap; }
.slot-body { display: flex; gap: 10px; align-items: flex-start; }
.mini-thumb { flex: 0 0 54px; aspect-ratio: 9 / 16; border-radius: 8px; background: #000 center / cover no-repeat;
  cursor: pointer; position: relative; border: 1px solid var(--line); }
.mini-thumb span { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 50%; }
.mini-thumb:hover { outline: 2px solid var(--accent, #6b8cff); }
.slot .subject { direction: rtl; text-align: right; flex: 1; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.slot .small, .muted.small { font-size: 12px; }
.form label.wide { grid-column: 1 / -1; }
table.week { width: 100%; border-collapse: collapse; font-size: 13px; }
table.week td { padding: 4px; text-align: center; border-top: 1px solid var(--line); }
table.week td:first-child { text-align: left; white-space: nowrap; }
table.week thead td { color: var(--muted); font-size: 12px; border-top: 0; }
.wcell { width: 100%; min-width: 44px; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font-weight: 600; }
.wcell.ok { border-color: var(--ok); color: var(--ok); }
.wcell.warn { border-color: var(--warn); color: var(--warn); }
.wcell.bad { border-color: var(--bad); color: var(--bad); }
.slot.alarm { border-color: var(--bad); }
.stock-tools { margin: 6px 0 10px; }
.stock-tools input { flex: 1; min-width: 200px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-side { display: grid; gap: 6px; align-content: start; }
.cmp-side .thumb { aspect-ratio: 9 / 16; max-height: 300px; background: #000 center / cover no-repeat; border-radius: 10px; position: relative; cursor: pointer; }
.cmp-side .thumb span { position: absolute; left: 8px; top: 8px; }
.cmp-side .subject { font-weight: 600; }
.cmp-side .hook { font-style: italic; font-size: 13px; }
.cmp-side .lead { font-size: 12px; color: var(--muted); }
.home-idea .row { gap: 8px; flex-wrap: wrap; }
.home-idea input { flex: 1; min-width: 180px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.next ul, .alerts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.next li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.alerts li { font-size: 13px; line-height: 1.4; }
ul.ideas { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
ul.ideas li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
ul.ideas li a, ul.ideas li span[dir] { overflow-wrap: anywhere; }
.cands ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.cands li label { display: flex; gap: 8px; align-items: flex-start; }
table.needs thead td { color: var(--muted); font-size: 12px; }
table.needs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.needs td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
table.needs tr:first-child td { border-top: 0; }
.gen-modes { gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 12px; }
.pc-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.pc-card.off { opacity: .55; }
@media (max-width: 560px) { table.needs td:nth-child(3), table.needs td:nth-child(4) { display: none; } }
.reel .subject[dir="ltr"] { direction: ltr; text-align: left; }
.reel .hook { font-size: 13px; font-style: italic; line-height: 1.4; overflow-wrap: anywhere; }
.reel .lead { font-size: 12px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.reel .thumb .pick-box { position: absolute; right: 8px; top: 8px; left: auto; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 0, 0, .55); cursor: pointer; margin: 0; }
.reel .thumb .pick-box input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.reel.sel { outline: 2px solid var(--accent); }
.selbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.held h3 { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.held ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.held li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 10px; padding: 6px 8px; }
.pub-head { flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.pub { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.pub.strong { border-color: var(--ok); }
.pub-cover { flex: 0 0 54px; width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pub .row { flex-wrap: wrap; gap: 8px; align-items: center; }
.form textarea, #ask textarea { width: 100%; box-sizing: border-box; font: inherit; }
#ask { width: min(640px, calc(100vw - 32px)); }
.slot.free { cursor: pointer; }
.slot.free:hover, .slot.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.slot.drop { border-style: solid; }
.slot[draggable="true"] { cursor: grab; }
.day-summary { font-size: 13px; margin-left: 8px; }
dialog.pick { width: min(560px, calc(100vw - 32px)); max-height: 85vh; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--ink); padding: 16px; }
dialog.pick h2 { font-size: 16px; margin: 0 0 8px; }
dialog.pick h3 { font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick-list li { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.pick-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pick-text .subject { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pick-text .subject[dir="rtl"] { text-align: right; }
.slot-text { flex: 1; display: grid; gap: 4px; min-width: 0; }
.slot .lead { font-size: 12px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slot .lead[dir="rtl"] { text-align: right; }
.slot-twin { font-size: 12px; color: var(--warn); line-height: 1.35; }
.slot-result { display: grid; gap: 3px; padding-top: 4px; border-top: 1px solid var(--line); }
.slot-error { font-size: 12px; color: var(--bad, #f87171); line-height: 1.35; }
.slot .subject[dir="ltr"] { direction: ltr; text-align: left; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.reel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.reel .thumb { aspect-ratio: 9 / 16; background: #000 center / cover no-repeat; cursor: pointer; position: relative; max-height: 320px; }
.reel .thumb span { position: absolute; left: 8px; top: 8px; }
.reel .body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.reel .subject { direction: rtl; text-align: right; font-weight: 600; }
.reel .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.gauge { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; width: 120px; }
.gauge > i { display: block; height: 100%; background: var(--ok); }
.gauge.low > i { background: var(--warn); }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.check { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
dialog { border: 0; border-radius: 14px; padding: 12px; background: var(--panel); color: var(--ink); max-width: 420px; width: calc(100% - 32px); }
#ask-field textarea, #ask-field input { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; }
dialog video { width: 100%; max-height: 70vh; background: #000; border-radius: 10px; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg);
         padding: 8px 14px; border-radius: 10px; font-size: 14px; z-index: 5; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; width: 100%; max-width: 320px; }
@media (max-width: 560px) { .slots { grid-template-columns: 1fr 1fr; } .grid { grid-template-columns: 1fr 1fr; } main { padding: 12px; } }
h2.section { font-size: 15px; margin: 18px 0 10px; }
.run .job { border-top: 1px solid var(--line); padding: 8px 0; display: grid; gap: 4px; }
.run .job .subject { font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.steps i { height: 6px; border-radius: 99px; background: var(--line); }
.steps i.done { background: var(--ok); }
.steps i.now { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.steps i.bad { background: var(--bad); }
@keyframes pulse { 50% { opacity: .45; } }
.gauge.wide { width: 100%; margin: 8px 0; }
.subjects { margin: 6px 0 0; padding-left: 18px; }
.days-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 74px;
        border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px;
        padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; text-transform: capitalize; }
.chip small { color: var(--muted); font-size: 11px; }
.chip.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.day-title { font-size: 14px; color: var(--muted); margin: 8px 0 10px; text-transform: capitalize; }

/* Health strip (7 November): stale data, differing PCs, cron, D1 writes. */
#health .alert { border: 1px solid var(--bad); color: var(--bad); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
#health .alert.warn { border-color: var(--warn); color: var(--warn); }
#health .meta { font-size: 12px; margin-bottom: 12px; }
.trial-result { margin-top: 4px; display: grid; gap: 2px; }
details.old { margin-top: 10px; }
details.old > summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
a.button { display: inline-block; text-decoration: none; font-size: 14px; border-radius: 8px; padding: 6px 12px; border: 1px solid var(--line); color: var(--ink); }
.pactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pmessage { width: 100%; box-sizing: border-box; }

/* 8 November: « À faire » box on top of the Planning, and the « Remplir tout » row. */
.todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.4; }
.todo li button { padding: 4px 10px; }
.day-head { align-items: center; gap: 8px; }
.day-head .day-title { margin: 8px 0; }

/* 8 November: phone use. « Accueil » screen, one-at-a-time review, installed-app header. */
.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
button.big { padding: 14px 10px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.home-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.home-row { display: flex; gap: 10px; align-items: center; }
.home-row .mini-thumb { width: 48px; min-width: 48px; aspect-ratio: 9 / 16; border-radius: 8px; background: #000 center / cover no-repeat;
  position: relative; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 14px; }
.home-text { flex: 1; min-width: 0; }
.home-text .subject { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-link { font-size: 20px; text-decoration: none; padding: 4px 8px; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; }
.small { font-size: 12px; }
.stock-head { margin-bottom: 12px; }
body.reviewing { overflow: hidden; }
.review { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); overflow-y: auto; }
.review-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.review-card { position: relative; align-self: center; height: min(58vh, 640px); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 14px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; transition: transform .2s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.review-card video, .review-cover { width: 100%; height: 100%; object-fit: cover; background: #000 center / cover no-repeat; pointer-events: none; }
.review-sound { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: 12px; background: rgba(0, 0, 0, .5); padding: 2px 8px; border-radius: 99px; }
.review-hint { position: absolute; top: 14px; padding: 4px 12px; border-radius: 8px; font-weight: 700; font-size: 18px; opacity: 0; border: 3px solid; }
.review-hint.left { right: 14px; color: var(--warn); border-color: var(--warn); transform: rotate(8deg); }
.review-hint.right { left: 14px; color: var(--ok); border-color: var(--ok); transform: rotate(-8deg); }
.review-card.to-left .review-hint.left, .review-card.to-right .review-hint.right { opacity: 1; background: rgba(0, 0, 0, .55); }
.review-text { max-width: 640px; width: 100%; align-self: center; }
.review-text .subject { font-weight: 700; font-size: 16px; }
.review-text .muted { white-space: pre-wrap; max-height: 5.5em; overflow: hidden; }
.review-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.review-actions button { padding: 10px 12px; }
.review-help { text-align: center; margin: 0; }
@media (max-width: 700px) {
  header { padding: max(8px, env(safe-area-inset-top)) 10px 8px; gap: 6px; }
  header h1, #clock { display: none; }
  nav { width: 100%; }
  nav button { padding: 8px 10px; white-space: nowrap; }
  .home-actions { grid-template-columns: 1fr 1fr; }
  .home-actions button:first-child { grid-column: 1 / -1; }
}

/* 8 November: « Résultats » (Publiés + Stats in one tab). */
.res-head { margin-bottom: 12px; }
.res-head .chip { flex-direction: row; min-width: 0; padding: 6px 12px; }
.res-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.res-page { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.res-page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 16px; }
.res-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.res-kpis div { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.res-kpis strong { font-size: 19px; }
.res-kpis strong small { font-size: 12px; font-weight: 600; white-space: nowrap; }
.res-kpis .up small { color: var(--ok); }
.res-kpis .down small { color: var(--bad); }
.res-tip { margin: 0; }
.hours { display: grid; gap: 4px; }
.hour { display: grid; grid-template-columns: 52px 1fr 64px 56px; align-items: center; gap: 8px; font-size: 13px; }
.hour .h i { color: var(--accent); font-style: normal; font-size: 9px; margin-left: 3px; vertical-align: middle; }
.hour .bar, .res-views .bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; display: block; }
.hour .bar i, .res-views .bar i { display: block; height: 100%; border-radius: 99px; background: var(--muted); }
.hour.good .bar i, .res-views .bar i.good { background: var(--ok); }
.hour.bad .bar i, .res-views .bar i.bad { background: var(--bad); }
.hour.mid .bar i { background: var(--accent); }
.hour.thin { opacity: .55; }
.hour.thin .bar i { background: repeating-linear-gradient(45deg, var(--muted) 0 4px, transparent 4px 7px); }
.hour .v { text-align: right; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0; }
.legend .key { display: inline-block; width: 12px; height: 8px; border-radius: 99px; margin-right: -6px; }
.legend .key.good { background: var(--ok); } .legend .key.bad { background: var(--bad); }
.legend .key.thin { background: var(--muted); opacity: .55; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.res-row:last-child { border-bottom: 0; }
.res-cover { width: 44px; min-width: 44px; aspect-ratio: 9 / 16; border-radius: 6px; object-fit: cover; background: var(--bg); }
.res-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.res-main .subject { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-views { display: grid; grid-template-columns: minmax(60px, 180px) auto auto auto; gap: 8px; align-items: center; justify-content: start; }
.res-waiting summary { cursor: pointer; color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) {
  .res-pages { grid-template-columns: 1fr; }
  .res-views { grid-template-columns: 70px auto; }
  .hour { grid-template-columns: 44px 1fr 56px 48px; }
}
/* Prospects (8 November): KPIs, filters, compact rows that open on click. */
.pkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pkpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pkpi b { font-size: 22px; line-height: 1.1; }
.pkpi span { color: var(--muted); font-size: 13px; }
.pbar { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--ok); }
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pcount { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: rgba(127,127,127,.18); font-size: 12px; margin-left: 4px; }
.pfilters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.pfilters input[type=search] { flex: 1 1 220px; min-width: 0; }
.pcheck { display: flex; gap: 6px; align-items: center; font-size: 14px; white-space: nowrap; }
.pcheck input { width: auto; margin: 0; }
.prow { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.prow.open { border-color: var(--accent); }
.phead { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 10px; align-items: center;
         padding: 10px 12px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.phead:hover { background: rgba(127,127,127,.06); }
.pscore { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.pscore.hot { background: var(--ok); } .pscore.warm { background: var(--warn); } .pscore.cold { background: var(--muted); }
.pname { display: flex; flex-direction: column; min-width: 0; }
.pname b, .pname .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchips { display: flex; flex-wrap: wrap; gap: 4px; }
.pchip { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.pstate { font-size: 12px; padding: 3px 8px; border-radius: 10px; background: var(--bg); white-space: nowrap; }
.pstate.s-sent, .pstate.s-followed_up { color: var(--accent); } .pstate.s-replied, .pstate.s-call { color: var(--warn); }
.pstate.s-signed { color: var(--ok); font-weight: 600; } .pstate.s-refused, .pstate.s-no_answer { color: var(--muted); }
.pdetail { border-top: 1px solid var(--line); padding: 12px; }
.pdetail h3 { font-size: 14px; margin: 10px 0 6px; } .pdetail h3:first-child { margin-top: 0; }
.pcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.preasons { margin: 0; padding-left: 18px; font-size: 14px; }
.phistory { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.pnote { display: flex; gap: 6px; margin-top: 8px; } .pnote input { flex: 1; min-width: 0; }
.pempty { padding: 20px 0; }
@media (max-width: 760px) {
  .phead { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pchips { grid-column: 1 / -1; }
  .pcols { grid-template-columns: 1fr; }
}
/* clients (8 November) */
.client-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.client-card { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; flex-wrap: wrap; }
.client-card.active { border-color: var(--accent, #4f7cff); box-shadow: 0 0 0 1px var(--accent, #4f7cff) inset; }
.client-ava { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); }
.client-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.client-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-detail h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.charter h3 { font-size: 0.95rem; margin: 12px 0 4px; }
.charter ul { margin: 0; padding-left: 18px; }
.charter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 8px 0; }
.swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatches i { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); }
.client-reels li { flex-wrap: wrap; }
#client-idea { flex: 1; min-width: 180px; }
.psearch { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.psearch summary { cursor: pointer; font-weight: 600; }
.psearch form { margin-top: 10px; } .psearch input { flex: 1 1 160px; min-width: 0; }
.psession-start { width: 100%; margin-bottom: 10px; padding: 10px; font-size: 15px; }
.psession { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--panel); border: 2px solid var(--ok);
            border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; position: sticky; top: 52px; z-index: 1; }
.psession button { margin-left: auto; }
.pfilters label.pcheck { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.pfilters label.pcheck input[type=checkbox] { display: inline-block; width: auto; margin: 0; }

/* 8 November: « Commentaires d'un Reel ». */
.cread { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.cideas, .ctop { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cideas li { background: var(--bg); border-radius: 10px; padding: 10px; display: grid; gap: 4px; }
.cideas .subject { font-weight: 600; }
.cideas .quote { font-size: 13px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 8px; }
.ctop li { font-size: 13px; }
