/* OXENED — DA NEDOXE en version pro : fond blanc, dégradé cyan → bleu, interface sobre */
:root {
  --bg: #fff; --soft: #f1f4f9; --line: #dde2ea; --ink: #070d1a; --muted: #4a5368; --faint: #7d869a; --grid: #e3e7ee;
  --blue: #3b5196; --blue-d: #2c3e78; --cyan: #18d2ff; --red: #ff2d55; --green: #12b76a; --amber: #f5a524;
  --grad: #3b5196;
  --card: #fff; --sidebg: #fbfcfe; --sel: #eceef3; --sel2: #f4f5f8; --line2: #eceff4; --axis: #cfd5df; --ink2: #2b3346; --selb: #c5cad6; --popbg: rgba(250,250,252,.86); --bar: var(--blue); --barhot: #26366b;
  --r: 14px; --side: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-size: 14.5px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* layout */
.shell { display: flex; min-height: 100dvh; }
.side { width: var(--side); border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; background: var(--card); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 20px; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.org { margin: 0 4px 14px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.org b { display: block; font-size: 14px; }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-weight: 600; color: #3a4254; }
.side a.nav:hover { background: var(--soft); }
.side a.nav.on { background: var(--sel); color: var(--blue-d); }
.side a.nav .badge { margin-left: auto; }
.side .grow { flex: 1; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 13px; }
.side .me b { display: block; font-size: 13.5px; }
.main { flex: 1; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 26px 28px 80px; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.top h1 { margin: 0; margin-right: auto; }
.mtop { display: none; }
@media (max-width: 900px) {
  .side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(10, 20, 50, .15); }
  .side.open { transform: none; }
  .mtop { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 10; font-weight: 800; }
  .mtop img { width: 26px; }
  .page { padding: 18px 16px 80px; }
}

/* éléments */
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 18px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .faint { color: var(--faint); }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 11px; font-weight: 700; background: var(--grad); color: #fff; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.line { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: #fff0f3; color: #d0103a; }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.in { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; background: var(--soft); outline: none; }
select.in { padding-right: 8px; }
textarea.in { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; }
.in:focus { border-color: var(--blue); background: var(--card); }
.in.sm { height: 34px; border-radius: 9px; font-size: 13.5px; width: auto; }
.seg { display: inline-flex; background: var(--soft); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { height: 32px; padding: 0 13px; border-radius: 8px; font-weight: 600; color: var(--muted); font-size: 13.5px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 20, 50, .1); }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--card); }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: 1fr 1fr; } .g3, .g2 { grid-template-columns: 1fr; } }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--sel) center/cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--blue); font-size: 14px; overflow: hidden; }
.av.xs { width: 24px; height: 24px; font-size: 11px; } .av.lg { width: 56px; height: 56px; font-size: 20px; }
.badge { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.blue { background: var(--sel); color: var(--blue-d); } .pill.green { background: #e7f8ef; color: #0a8a4f; } .pill.red { background: #fff0f3; color: #d0103a; } .pill.amber { background: #fff6e5; color: #a86a00; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 13px; border-radius: 99px; background: var(--soft); font-size: 13px; font-weight: 600; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--sel); color: var(--blue-d); border-color: var(--selb); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* KPI */
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; font-size: 25px; letter-spacing: -.02em; margin-top: 4px; }
.kpi i { font-style: normal; font-size: 12.5px; font-weight: 700; }
.up { color: var(--green); } .down { color: var(--red); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: 220px; display: block; }
.chart text { font-size: 11px; fill: var(--faint); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tblw { overflow-x: auto; }

/* messagerie */
.inbox { display: grid; grid-template-columns: 320px 1fr 300px; height: 100dvh; }
.inbox > div { min-height: 0; display: flex; flex-direction: column; }
.ilist { border-right: 1px solid var(--line); }
.ilist .hd { padding: 18px 16px 10px; }
.ilist .sc { overflow-y: auto; flex: 1; }
.th { display: flex; gap: 10px; padding: 11px 16px; cursor: pointer; border-left: 3px solid transparent; }
.th:hover { background: var(--soft); }
.th.on { background: var(--sel2); border-left-color: var(--blue); }
.th .t { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th.unread b, .th.unread .t { color: var(--ink); font-weight: 700; }
.th .meta { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.conv .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.conv .msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--sidebg); }
.bub { max-width: 70%; padding: 9px 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bub.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.bub .by { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.bub .med { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.bub .med img, .bub .med video { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; }
.bub.tip { background: #fff6e5; border-color: #ffe2a8; color: #7a4d00; }
.typing { font-size: 12.5px; color: var(--amber); font-weight: 700; padding: 6px 18px; background: #fffaf0; border-top: 1px solid #ffe9c2; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 44px; max-height: 160px; background: none; }
.composer .att { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.composer .att span { position: relative; }
.composer .att img, .composer .att .vid { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; background: #222; }
.composer .att button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }
.fancard { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; }
.fancard .stat { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.note { background: var(--soft); border-radius: 10px; padding: 9px 11px; font-size: 13px; margin-bottom: 8px; }
.note small { display: block; color: var(--faint); margin-top: 3px; }
@media (max-width: 1200px) { .inbox { grid-template-columns: 280px 1fr; } .fancard { display: none; } .inbox.card-open .fancard { display: block; position: fixed; right: 0; top: 0; bottom: 0; width: 320px; background: var(--card); z-index: 30; box-shadow: -10px 0 40px rgba(10,20,50,.1); } }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; height: calc(100dvh - 51px); } .inbox .conv { display: none; } .inbox.open .ilist { display: none; } .inbox.open .conv { display: flex; } }

/* contenus */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.lib .it { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; border: 2px solid transparent; }
.lib .it.on { border-color: var(--blue); }
.lib .it img, .lib .it video { width: 100%; height: 100%; object-fit: cover; }
.lib .it .k { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.lib .it .n { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 104px; padding: 6px; font-size: 12px; }
@media (max-width: 700px) { .cal > div { min-height: 64px; } .cal .ev span { display: none; } }

/* matrice de permissions */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix input { width: 17px; height: 17px; accent-color: var(--blue); }

/* modale / toast */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(11, 18, 32, .45); display: grid; place-items: center; padding: 16px; }
.modal .box { background: var(--card); border-radius: 18px; width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; padding: 22px; }
.modal .box.wide { max-width: 860px; }
.modal .box h2 { font-size: 18px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; }
#toast div { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 11px; font-weight: 600; font-size: 13.5px; margin-top: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
#toast div.err { background: #d0103a; }

/* accueil / auth */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .l { padding: 48px 56px; display: flex; flex-direction: column; background: var(--soft); }
.auth .l h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: auto 0 16px; max-width: 520px; }
.auth .l p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 0 26px; }
.auth .l ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 10px; max-width: 480px; }
.auth .l li { display: flex; gap: 10px; align-items: flex-start; }
.auth .l li svg { color: var(--blue); margin-top: 1px; }
.auth .r { display: grid; place-items: center; padding: 32px 20px; }
.auth .r .f { width: 100%; max-width: 360px; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 18px 0; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn.nedoxe { background: var(--card); border: 1px solid var(--line); color: var(--ink); height: 44px; }
.btn.nedoxe img { width: 20px; }
.err-t { color: #d0103a; font-size: 13px; min-height: 18px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .l { padding: 28px 22px; } .auth .l h1 { font-size: 30px; margin-top: 30px; } .auth .l ul { margin-bottom: 0; } }

.plat { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.plat img, .plat .lg { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.plat .lg { background: var(--soft); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.plat.off { opacity: .55; }
.danger-zone { border: 1px solid #ffc9d4; background: #fff8fa; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.ilist .seg { display: flex; } .ilist .seg button { flex: 1; padding: 0 6px; font-size: 12.5px; white-space: nowrap; }

/* accueil : panneau produit */
.mk span { color: var(--muted); font-size: 12px; font-weight: 600; } .mk b { font-weight: 700; }
.k1 { left: 0; top: 0; width: 300px; } .k1 > b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 2px; } .k1 > i { font-style: normal; color: var(--green); font-weight: 700; font-size: 12px; }
.k2 { right: 0; top: 70px; width: 280px; animation-delay: .15s; } .k2 .row span { display: block; }
.bb.me { background: var(--blue); color: #fff; margin-left: auto; } .bb small { display: block; font-size: 10.5px; opacity: .8; margin-top: 3px; }
.tm { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line2); margin-top: 6px; } .tm span { color: var(--muted); font-size: 12px; } .tm i { margin-left: auto; font-style: normal; font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes grow { from { transform: scaleY(0); } }
@media (max-width: 1100px) { .k2 { top: 160px; } .k3 { display: none; } }

/* contraste renforcé */
body { color: var(--ink); }
.card, .kpi { border-color: var(--line); box-shadow: 0 1px 2px rgba(10, 20, 50, .04); }
.kpi span, .field > span, .tbl th { color: var(--muted); }
.tbl th { color: var(--ink2); font-weight: 700; border-bottom-color: var(--axis); }
.tbl td { border-bottom-color: var(--line2); }
.side { background: var(--sidebg); }
.side a.nav { color: var(--ink2); }
.kpi b { font-size: 27px; }
.pill { background: var(--line2); color: var(--ink2); }
/* graphiques */
.chartw { position: relative; margin-top: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11.5px; fill: var(--muted); font-weight: 600; }
.tip { position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; min-width: 190px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tip .tt { font-size: 20px; font-weight: 800; margin: 2px 0 6px; }
.tip .tr { display: flex; align-items: center; gap: 7px; padding: 2px 0; color: #d6dbe6; } .tip .tr span { margin-left: auto; color: #fff; font-weight: 700; } .tip i { width: 9px; height: 9px; border-radius: 3px; }
.legend { color: var(--ink2); font-weight: 600; }
.dleg div { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line2); font-size: 13.5px; } .dleg i { width: 11px; height: 11px; border-radius: 3px; } .dleg b { margin-left: auto; }
.hb2 { padding: 9px 0; } .hb2 span { font-weight: 700; font-variant-numeric: tabular-nums; } .hb2 small { color: var(--muted); font-size: 12px; }
.trk { height: 9px; background: var(--soft); border-radius: 99px; margin: 6px 0 4px; overflow: hidden; } .trk em { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
@media (max-width: 1000px) { #cgr { grid-template-columns: 1fr !important; } }
/* classements */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: 16px; }
.pd { border: 1px solid var(--line); border-radius: 18px; padding: 22px 16px; text-align: center; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.pd.p1 { padding-top: 34px; background: linear-gradient(180deg, #eef4ff, #fff 60%); border-color: var(--selb); box-shadow: 0 12px 34px rgba(26, 92, 255, .14); }
.pd span:not(.rk) { color: var(--muted); font-size: 12.5px; } .pd .pv { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.pd .rk { position: absolute; top: 12px; left: 12px; }
.pd.mine { border-color: var(--selb); }
.rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); font-weight: 800; font-size: 12.5px; color: var(--ink2); }
.rk.r1 { background: #f5c542; color: #5a3a00; } .rk.r2 { background: linear-gradient(135deg, var(--line2), #b8c0cd); color: var(--ink2); } .rk.r3 { background: linear-gradient(135deg, #f3c9a4, #c98a55); color: #4a2a10; }
.lbt tr.mine td { background: var(--sel2); }
@media (max-width: 700px) { .podium { grid-template-columns: 1fr; } }

/* graphique v3 */
.chart .ya { font-size: 15px; fill: var(--muted); font-weight: 600; } .chart .xa { font-size: 15px; fill: var(--muted); font-weight: 600; }
.tip { top: 4px; min-width: 210px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(10,20,50,.16); }
.tip > span { color: var(--muted); font-size: 12px; font-weight: 600; } .tip .tt { font-size: 22px; } .tip .tt em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.tip .tr { color: var(--ink2); } .tip .tr b { margin-left: auto; color: var(--ink); } .tip .tr.pv { color: var(--muted); border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 6px; }
.leg2 { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 8px; } .leg2 i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* accueil v3 : panneau produit sombre façon outil pro */
.auth { grid-template-columns: 1.25fr 1fr; }
.win .ws div { padding: 6px 8px; border-radius: 7px; } .win .ws .on { background: var(--sel); color: var(--blue-d); }
.t1 { right: 6%; top: 8px; animation-delay: .35s; } .t2 { left: -8px; bottom: 40px; animation-delay: .55s; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .l.hx { padding: 26px 20px; } .hx h1 { font-size: 32px; } .win, .trust { display: none; } }
/* Earnings façon Infloww */
.echips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.echips button { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--card); border-top: 3px solid var(--line2); }
.echips button.on { border-top-color: var(--c); background: var(--sel2); }
.echips button span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.echips button i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: .35; } .echips button.on i { opacity: 1; }
.echips button b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.echips button:not(.on) b { color: var(--faint); }
.ebd { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; } .ebd summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--blue-d); padding: 4px 0; }
.ebd .tblw { max-height: 360px; overflow-y: auto; margin-top: 8px; }
@media (max-width: 900px) { .echips { grid-template-columns: 1fr 1fr; } }
.echips + .chartw .chart .ya, .echips + .chartw .chart .xa { font-size: 12px; }
/* barres */
.chartw.barsw .ya, .chartw.barsw .xa { font-size: 12.5px; }
.chartw.barsw .bar { transition: opacity .12s; } .chartw.barsw .bar.dim { opacity: .35; }
.echips button { border-top-width: 1px; } .echips button.on { border-color: var(--blue); background: var(--sel2); box-shadow: inset 0 0 0 1px var(--blue); }
.echips button.on span { color: var(--blue-d); }
#rg button { padding: 0 10px; }
.chartw .chart { width: 100%; height: auto; aspect-ratio: 1000 / 320; overflow: hidden; display: block; }
/* connexion : image à gauche, formulaire à droite */

/* sobriété : plus aucun dégradé, aplats et ombres légères */
.pd.p1 { background: var(--card); box-shadow: 0 1px 2px rgba(10,20,50,.06); border-color: var(--line); }
.rk.r1 { background: #f5c542; color: #3d2b00; } .rk.r2 { background: #d5dae2; } .rk.r3 { background: #d9a77a; color: #3a2210; }
.trk em { background: var(--blue); }
.echips button.on { box-shadow: none; background: var(--sel2); }
.btn { border-radius: 9px; font-weight: 600; } .btn:hover { filter: brightness(.94); }
.card, .kpi { border-radius: 12px; }
.side a.nav.on { background: var(--sel2); color: var(--ink); }


/* menu déroulant façon macOS */
.pop { position: relative; }
.pop-b { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-weight: 600; font-size: 13.5px; box-shadow: 0 1px 2px rgba(10,20,50,.05); }
.pop-b:hover { background: var(--sel2); } .pop-b .i { width: 16px; height: 16px; color: var(--muted); } .pop-b .chev { margin-left: 2px; transition: transform .15s; }
.pop.open .pop-b .chev { transform: rotate(180deg); }
.pop-m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; padding: 5px; border-radius: 11px; background: var(--popbg); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 10px 38px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.06); opacity: 0; transform: scale(.97) translateY(-4px); transform-origin: top right; pointer-events: none; transition: opacity .12s, transform .12s; }
.pop.open .pop-m { opacity: 1; transform: none; pointer-events: auto; }
.pop-m button { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 6px 10px 6px 6px; border-radius: 6px; font-size: 13.5px; color: var(--ink); }
.pop-m button:hover { background: #3b5196; color: #fff; }
.pop-m .ck { width: 15px; height: 15px; stroke-width: 2.4; visibility: hidden; } .pop-m button.on .ck { visibility: visible; }
.chartw.barsw .bar { fill: var(--bar); } .chartw.barsw .bar.hot { fill: var(--barhot); }

/* ---------- mode sombre (html[data-theme=dark], ou système si « auto ») ---------- */
html[data-theme="dark"] { color-scheme: dark;
  --bg: #0e1116; --card: #161a22; --sidebg: #12161d; --soft: #1d222c; --line: #2a303c; --line2: #232935; --grid: #222833; --axis: #3a4252;
  --ink: #e9ecf2; --ink2: #c9cfda; --muted: #9aa3b4; --faint: #6c7588; --sel: #232b3d; --sel2: #1b2029; --selb: #3d4a6d;
  --blue: #7b8fd8; --blue-d: #a9b7ee; --bar: #6f84d0; --barhot: #a3b3ee; --popbg: rgba(38,42,52,.88); }
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .btn:not(.ghost):not(.line):not(.danger):not(.nedoxe):not(.red):not(.sso), html[data-theme="dark"] .bub.mine { background: #5268b8; color: #fff; }
html[data-theme="dark"] .pill.green { background: #12301f; color: #4ade80; } html[data-theme="dark"] .pill.red { background: #3a1520; color: #ff7a93; }
html[data-theme="dark"] .pill.amber { background: #33270f; color: #fbbf24; } html[data-theme="dark"] .pill.blue { background: var(--sel); color: var(--blue-d); }
html[data-theme="dark"] .btn.danger { background: #3a1520; color: #ff8aa0; } html[data-theme="dark"] .danger-zone { background: #24131a; border-color: #4a2030; }
html[data-theme="dark"] .typing { background: #2a2210; border-color: #4a3a14; } html[data-theme="dark"] .bub.tip { background: #2a2210; border-color: #4a3a14; color: #fcd34d; }
html[data-theme="dark"] #toast div { background: #e9ecf2; color: #0e1116; } html[data-theme="dark"] #toast div.err { background: #d0103a; color: #fff; }
html[data-theme="dark"] .modal { background: rgba(0,0,0,.6); }
html[data-theme="dark"] .tip, html[data-theme="dark"] .card, html[data-theme="dark"] .kpi { box-shadow: none; }
html[data-theme="dark"] .pop-m button:hover { background: #5268b8; }
html[data-theme="dark"] .btn.nedoxe { background: var(--card); color: var(--ink); }
html[data-theme="dark"] .rk:not(.r1):not(.r2):not(.r3) { background: var(--soft); color: var(--ink2); }
html[data-theme="dark"] .av { background-color: var(--sel); color: var(--blue-d); }
html[data-theme="dark"] .lib .it, html[data-theme="dark"] .composer .att img { background: var(--soft); }
html[data-theme="dark"] input[type=checkbox] { accent-color: #7b8fd8; }
.themeb { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); } .themeb:hover { background: var(--soft); color: var(--ink); }
.themeb .i { width: 18px; height: 18px; }
.rk.r1 { color: #3d2b00; } .rk.r2 { color: #1f2633; } .rk.r3 { color: #3a2210; }
/* connexion Apple / Google */
.btn.sso { height: 44px; margin-bottom: 10px; font-weight: 600; }
.btn.sso.apple { background: #000; color: #fff; } .btn.sso.google { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
html[data-theme="dark"] .btn.sso.apple { background: #fff; color: #000; }

/* ---------- Vault & posts ---------- */
.ctabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; }
.ctabs button { padding: 10px 2px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14.5px; }
.ctabs button.on { color: var(--ink); border-bottom-color: var(--blue); }
.cal2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal2 .dh { padding: 9px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--sel2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.cday { min-height: 132px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.cday > b { font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 2px; }
.cday.out { background: var(--sel2); } .cday.out > b { color: var(--faint); }
.cday.today > b { align-self: flex-start; background: var(--blue); color: #fff; border-radius: 6px; padding: 1px 7px; }
.cday.fut { cursor: pointer; } .cday.fut:hover { background: var(--sel2); }
.cev { display: flex; align-items: center; gap: 6px; text-align: left; padding: 3px; border-radius: 7px; background: var(--sel); font-size: 12px; overflow: hidden; border-left: 3px solid var(--axis); }
.cev.sch { border-left-color: var(--blue); } .cev.story { border-left-color: #14b8e6; }
.cev img, .cev i { width: 26px; height: 32px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: var(--soft); }
.cev > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); } .cev em { font-style: normal; font-weight: 700; color: var(--ink); }
.cev:hover { filter: brightness(.97); }
@media (max-width: 800px) { .cday { min-height: 80px; } .cev > span { display: none; } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 6px 22px rgba(10,20,50,.1); }
.pth { position: relative; aspect-ratio: 4 / 5; background: var(--soft); } .pth img { width: 100%; height: 100%; object-fit: cover; }
.pbad { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.pbody { padding: 11px 12px 12px; } .pbody p { margin: 0 0 8px; font-size: 13.5px; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnone { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; color: var(--faint); font-size: 13px; background: var(--soft); }
.pmod { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.pmed { display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; } .pmed img { width: 100%; border-radius: 10px; }
.stat2 { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 14px; } .stat2 span { color: var(--muted); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px; border: 2px dashed var(--line); border-radius: 14px; background: var(--sel2); cursor: pointer; text-align: center; color: var(--muted); }
.drop .i { width: 30px; height: 30px; color: var(--blue); } .drop b { color: var(--ink); font-size: 15px; } .drop span { font-size: 13px; }
.drop.big { min-height: 230px; } .drop.over, .drop:hover { border-color: var(--blue); background: var(--sel); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.vit { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--soft); } .vit img { width: 100%; height: 100%; object-fit: cover; }
.vit .k, .vit .d { position: absolute; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; } .vit .k { left: 8px; } .vit .d { right: 8px; opacity: 0; transition: opacity .15s; } .vit:hover .d { opacity: 1; }
.comp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.cmg { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cmi { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--soft); } .cmi img { width: 100%; height: 100%; object-fit: cover; }
.cmi button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; }
.cmi.add { display: grid; place-items: center; font-size: 30px; color: var(--muted); border: 2px dashed var(--line); background: var(--sel2); cursor: pointer; }
.comp .pv { margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); position: sticky; top: 0; }
.pvm { position: relative; aspect-ratio: 4 / 5; background: var(--soft); } .pvm img { width: 100%; height: 100%; object-fit: cover; }
.pvm.lock img { filter: blur(18px) brightness(.85); transform: scale(1.1); }
.pvl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); } .pvl .i { width: 28px; height: 28px; }
.pvc { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pvt { padding: 12px 14px; font-size: 13.5px; }
@media (max-width: 900px) { .comp, .pmod { grid-template-columns: 1fr; } }
/* journaux : une ligne sur deux teintée + séparateurs nets */
.tbl.zebra tr:nth-child(even) td { background: var(--sel2); }
.tbl.zebra td { border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
/* lien profil NEDOXE */
.nxl { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-weight: 600; text-decoration: none; }
.nxl:hover { text-decoration: underline; } .nxl .i { width: 13px; height: 13px; stroke-width: 2.2; }
.side.dark ~ .main .nxl, .modal .nxl { color: var(--blue); }
/* verrou de conversation */
.th.locked { opacity: .5; cursor: not-allowed; background: var(--sel2); } .th.locked:hover { background: var(--sel2); }
.lockp .i { width: 12px; height: 12px; stroke-width: 2.2; }
.rolock { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--sel2); font-size: 13.5px; color: var(--ink2); }
.rolock .i { width: 18px; height: 18px; color: var(--muted); } .rolock span { flex: 1; }

/* fenêtre de confirmation sensible (rouge, sobre) */
.modal.danger .box { border-top: 4px solid #d92d4a; max-width: 500px; }
.dgr { display: flex; gap: 16px; align-items: flex-start; } .dgr h2 { margin: 2px 0 6px; font-size: 17px; } .dgr p { margin: 0; font-size: 14px; line-height: 1.5; }
.dgi { width: 40px; height: 40px; border-radius: 10px; background: #fdecef; color: #d92d4a; display: grid; place-items: center; flex-shrink: 0; } .dgi .i { width: 22px; height: 22px; }
.dgc { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.dgc input { margin-top: 2px; accent-color: #d92d4a; width: 16px; height: 16px; }
.btn.red { background: #d92d4a; color: #fff; } .btn.red[disabled] { opacity: .45; }
html[data-theme="dark"] .dgi { background: #3a1520; color: #ff7a93; } html[data-theme="dark"] .btn.red { background: #d92d4a; }
/* interrupteur */
.sw { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; } .sw input { opacity: 0; width: 0; height: 0; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--axis); transition: background .15s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.sw input:checked + i { background: #d92d4a; } .sw input:checked + i::after { transform: translateX(16px); }
.tbl tr.tot td { border-top: 2px solid var(--line); }
/* logo plus grand */
.brand { font-size: 21px; gap: 12px; } .brand img { width: 42px !important; height: 42px !important; }
.mtop img { width: 32px !important; }


/* pages légales + liens */
.legal { max-width: 820px; margin: 0 auto; padding: 24px 20px 80px; }
.legal header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.legal nav { display: flex; gap: 18px; font-weight: 600; font-size: 14px; } .legal nav a { color: var(--muted); } .legal nav a.on { color: var(--ink); }
.legal article h1 { font-size: 30px; margin-bottom: 14px; } .legal article h2 { font-size: 17px; margin: 26px 0 8px; }
.legal article p, .legal article li { line-height: 1.65; color: var(--ink2); font-size: 15px; } .legal article a { color: var(--blue); font-weight: 600; }
.legal-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 12.5px; } .legal-links a { color: var(--muted); } .legal-links a:hover { color: var(--ink); }
/* bibliothèque : en-tête et pied fixes */
.box.picker { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: min(86dvh, 820px); }
.pk-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pk-b { flex: 1; overflow-y: auto; padding: 16px 20px; }
.pk-f { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--sel2); flex-wrap: wrap; }
.pk-p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pk-p > span:first-child { font-weight: 700; font-size: 13.5px; }
.pk-pi { display: flex; align-items: center; gap: 6px; } .pk-pi .in { width: 120px; height: 40px; font-weight: 700; font-size: 16px; background: var(--card); }
.card.soon { border-color: var(--selb); background: var(--sel2); } .card.soon .i { width: 26px; height: 26px; color: var(--blue); margin-right: 6px; }
/* étape prix */
.ppv-th { display: flex; gap: 8px; margin: 16px 0 10px; flex-wrap: wrap; } .ppv-th > div { position: relative; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.ppv-th img { width: 100%; height: 100%; object-fit: cover; } .ppv-th span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.ppv-th .more { display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.ppv-in { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--sel2); }
.ppv-in input { border: 0; background: none; outline: none; font-size: 40px; font-weight: 800; text-align: right; width: 180px; color: var(--ink); letter-spacing: -.02em; } .ppv-in b { font-size: 34px; color: var(--muted); }
/* connexion : capture du tableau de bord à gauche (aplat, sans dégradé) */
.auth .l.lshot { background: #1d2a52; color: #fff; padding: 40px 0 0 48px; overflow: hidden; position: relative; justify-content: flex-start; }
.lshot .lcap { margin: 7vh 48px 0 0; } .lshot .lcap h1 { color: #fff; font-size: 42px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; } .lshot .lcap p { color: #c3cbe2; font-size: 16px; margin: 0; max-width: 460px; }
.lshot .shot { margin-top: auto; transform: translateY(18px); width: 118%; border-radius: 14px 0 0 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #fff; }
.lshot .shot .bar { height: 30px; background: #eef1f6; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.lshot .shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd5df; } .lshot .shot .bar span { margin-left: 10px; font-size: 11px; color: #6a7387; background: #fff; border-radius: 6px; padding: 2px 10px; }
.lshot .shot img { width: 100%; display: block; }
@media (max-width: 860px) { .auth .l.lshot { padding: 22px 20px 0; } .lshot .shot { display: none; } .lshot .lcap { margin: 20px 0 24px; } .lshot .lcap h1 { font-size: 28px; } }
/* sélecteur de compte global, en haut à droite */
.gbar { display: flex; justify-content: flex-end; padding: 14px 28px 0; max-width: 1180px; margin: 0 auto; position: relative; z-index: 15; }
.gacc .gbtn { height: auto; padding: 6px 10px 6px 8px; gap: 10px; border-radius: 12px; }
.gacc .gbtn span, .gacc .pop-m button span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.gacc b { font-size: 13.5px; } .gacc small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.gacc .pop-m { min-width: 260px; max-height: 60vh; overflow-y: auto; } .gacc .pop-m button { padding: 7px 10px 7px 6px; gap: 8px; }
.gacc .pop-m button:hover small { color: #dfe5f7; }
.gall { width: 24px; height: 24px; border-radius: 50%; background: var(--sel); display: grid !important; place-items: center; } .gall .i { width: 14px; height: 14px; color: var(--blue); }
.gbar + #view .page { padding-top: 10px; }
.inbox { height: calc(100dvh - 62px); }
@media (max-width: 900px) { .gbar { padding: 10px 16px 0; } }
/* ligne « You » des classements */
.you { display: flex; gap: 16px; align-items: stretch; border: 1px solid var(--blue); background: var(--sel2); border-radius: 14px; padding: 12px 16px; margin: -4px 0 16px; }
.you-t { display: flex; flex-direction: column; justify-content: center; font-weight: 800; font-size: 15px; color: var(--blue); min-width: 110px; } .you-t .i { width: 18px; height: 18px; margin-bottom: 2px; } .you-t small { color: var(--muted); font-weight: 600; font-size: 12px; }
.you-l { flex: 1; display: flex; flex-direction: column; } .you-r { display: flex; align-items: center; gap: 14px; padding: 7px 0; } .you-r + .you-r { border-top: 1px solid var(--line); }
.you-k { font-weight: 800; font-size: 18px; min-width: 64px; } .you-k small { font-size: 12px; color: var(--muted); font-weight: 600; } .you-r .row { gap: 8px; }
@media (max-width: 700px) { .you { flex-direction: column; } }
.top .gacc .gbtn { height: 40px; padding: 4px 10px 4px 6px; } .top .gacc .av.xs, .top .gacc .gall { width: 26px; height: 26px; }
.top > .pop, .top > select, .top > .seg, .top > .ctabs { flex-shrink: 0; }
/* classements : or / argent / bronze, couronne, récompenses, tri */
.pd { border-top-width: 4px; } .pd.p1 { border-top-color: #d4a72c; } .pd.p2 { border-top-color: #a7b0bd; } .pd.p3 { border-top-color: #b8794a; }
.mdl { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.mdl.m1 { background: #fbf1d3; color: #7a5a00; } .mdl.m2 { background: #eceff3; color: #4a5263; } .mdl.m3 { background: #f6e6da; color: #7a4520; }
.crown { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.pd .pdv { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.pd.p1 .av.lg { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d4a72c; }
html[data-theme="dark"] .mdl.m1 { background: #3a2f0c; color: #f3cf6a; } html[data-theme="dark"] .mdl.m2 { background: #2a2f38; color: #c9cfda; } html[data-theme="dark"] .mdl.m3 { background: #3a2617; color: #e2a77b; }
html[data-theme="dark"] .pd.p1 .av.lg { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px #d4a72c; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 12px; }
.award { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.award.gold { border-top: 4px solid #d4a72c; }
.aw-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aw-i { width: 26px; height: 26px; border-radius: 8px; background: var(--sel); color: var(--blue); display: grid; place-items: center; } .aw-i .i, .aw-i .crown { width: 15px; height: 15px; }
.award.gold .aw-i { background: #fbf1d3; color: #a67c00; } html[data-theme="dark"] .award.gold .aw-i { background: #3a2f0c; color: #f3cf6a; }
.aw-n { display: block; font-size: 15px; } .aw-m { font-size: 24px; font-weight: 800; letter-spacing: -.02em; } .aw-you { position: absolute; top: 14px; right: 14px; }
table.sortable th[data-k] { cursor: pointer; user-select: none; white-space: nowrap; } table.sortable th[data-k]:hover { color: var(--ink); }
table.sortable th .sa { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border: 4px solid transparent; opacity: 0; }
table.sortable th.sorted { color: var(--ink); } table.sortable th.sorted .sa { opacity: 1; }
table.sortable th[data-dir="desc"] .sa { border-top-color: currentColor; border-bottom-width: 0; } table.sortable th[data-dir="asc"] .sa { border-bottom-color: currentColor; border-top-width: 0; }
/* icône « All accounts » centrée */
.gacc .gbtn .gall, .gacc .pop-m .gall { display: grid !important; place-items: center !important; align-items: center !important; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; padding: 0; }
.gacc .gall .i { width: 15px; height: 15px; margin: 0; display: block; }
.gacc .gbtn > .av, .gacc .pop-m button > .av { flex: 0 0 26px; width: 26px; height: 26px; }
.gacc .gbtn { align-items: center; }
/* menu de durée : même rendu que le sélecteur de comptes */
#rg .pop-b { height: 40px; border-radius: 12px; padding: 0 12px; } #rg .pop-m { min-width: 200px; } #rg .pop-m button { padding: 8px 10px 8px 6px; font-size: 14px; }
/* audit : boîte de discussion mobile, contrastes */
@media (max-width: 900px) { .inbox { height: calc(100dvh - 51px) !important; } }
html[data-theme="dark"] .err-t, html[data-theme="dark"] .ilist .small[style*="d0103a"] { color: #ff8aa0 !important; }
.typing { color: #8a5a00; }
html[data-theme="dark"] .typing { color: #fbbf24; }

/* ---------- animations d'arrivée ---------- */
@keyframes ox-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ox-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ox-w { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ox-pop { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: none; } }
#view .page, #view .inbox { animation: ox-in .32s cubic-bezier(.2,.8,.2,1) both; }
#view .card, #view .kpi, #view .award, #view .pcard, #view .vit, #view .you, #view .echips button { animation: ox-in .42s cubic-bezier(.2,.8,.2,1) both; }
#view .grid > :nth-child(2), #view .awards > :nth-child(2), #view .echips > :nth-child(2) { animation-delay: .05s; }
#view .grid > :nth-child(3), #view .awards > :nth-child(3), #view .echips > :nth-child(3) { animation-delay: .1s; }
#view .grid > :nth-child(4), #view .awards > :nth-child(4), #view .echips > :nth-child(4) { animation-delay: .15s; }
#view .grid > :nth-child(n+5), #view .awards > :nth-child(n+5), #view .echips > :nth-child(5) { animation-delay: .2s; }
#view .pd { animation: ox-pop .5s cubic-bezier(.2,.8,.2,1) both; } #view .pd.p1 { animation-delay: .12s; } #view .pd.p3 { animation-delay: .06s; }
.chartw.barsw .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: ox-bar .7s cubic-bezier(.2,.8,.2,1) both; }
.trk em { transform-origin: left; animation: ox-w .8s cubic-bezier(.2,.8,.2,1) both; }
#view .tbl tbody tr, #view .lbt tr { animation: ox-in .35s ease both; }
.th { animation: ox-in .3s ease both; }
.modal .box { animation: ox-pop .22s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { #view *, .modal .box, .chartw.barsw .bar { animation: none !important; } }
/* New post : choix des comptes avec photo et nom */
.acc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.acc-pick .ap { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; transition: border-color .15s, background .15s; }
.acc-pick .ap:hover { border-color: var(--selb); }
.acc-pick .ap .av { width: 36px; height: 36px; flex-shrink: 0; }
.acc-pick .ap span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; } .acc-pick .ap b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acc-pick .ap small { color: var(--muted); font-size: 12px; }
.acc-pick .apk { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--axis); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.acc-pick .apk .i { width: 13px; height: 13px; stroke-width: 3; }
.acc-pick .ap.on { border-color: var(--blue); background: var(--sel2); box-shadow: inset 0 0 0 1px var(--blue); } .acc-pick .ap.on .apk { background: var(--blue); border-color: var(--blue); color: #fff; }
/* mode sombre : boutons segmentés (Gross/Net, onglets, filtres) un peu plus lisibles, sans excès */
html[data-theme="dark"] .seg { background: #12161d; border: 1px solid var(--line); }
html[data-theme="dark"] .seg button { color: #a3acbd; }
html[data-theme="dark"] .seg button.on { background: #2b3242; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
html[data-theme="dark"] .btn.ghost { background: #232a36; color: var(--ink); }
html[data-theme="dark"] .chip { background: #232a36; }

/* re-rendus internes (indicateur, Gross/Net) : pas d'animation */
.noanim, .noanim * { animation: none !important; }

/* évolution vs période précédente dans les cases de gains */
.echips .dl { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; margin-top: 2px; color: var(--faint); }
.echips .dl.up { color: #0f9d58; } .echips .dl.down { color: #d92d4a; } .echips .dl small { font-weight: 500; color: var(--muted); margin-left: 3px; }
.echips button:not(.on) .dl.up { color: #3fae75; } .echips button:not(.on) .dl.down { color: #e0596f; }
html[data-theme="dark"] .echips .dl.up { color: #4ade80; } html[data-theme="dark"] .echips .dl.down { color: #ff7a93; }
.kpi i.up { color: #0f9d58; } .kpi i.down { color: #d92d4a; }
/* cases Earnings : textes toujours bien lisibles ; la case choisie se distingue par son cadre bleu, pas par du gris */
.echips button span, .echips button:not(.on) span { color: var(--ink2); }
.echips button b, .echips button:not(.on) b { color: var(--ink); }
.echips button:not(.on) .dl.up { color: #0f9d58; } .echips button:not(.on) .dl.down { color: #d92d4a; }
html[data-theme="dark"] .echips button:not(.on) .dl.up { color: #4ade80; } html[data-theme="dark"] .echips button:not(.on) .dl.down { color: #ff7a93; }
.echips button.on span { color: var(--blue); }
/* changement de case dans Earnings : animation courte (barres seulement), le reste des animations ne change pas */
.quick .card, .quick .kpi, .quick .echips button { animation: none !important; }
.quick .chartw.barsw .bar { animation: ox-bar .22s ease-out both !important; animation-delay: 0s !important; }
/* cartes du tableau de bord : alignées en haut, en-tête avec « See all » à droite */
.grid > .card + .card { margin-top: 0; }
.card .ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 30px; }
.card .ch h2 { margin: 0; }
.seeall { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--sel2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.seeall:hover { border-color: var(--blue); color: var(--blue); }
/* discussions multi-créateurs : couleur + photo + nom du compte partout */
.th { border-left: 4px solid var(--ac, transparent); }
.th.on { border-left-color: var(--ac, var(--blue)); }
.accb { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 3px; border-radius: 99px; background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac); font-size: 12px; }
.accb .av.xs { width: 20px; height: 20px; } .accb b { font-weight: 700; }
html[data-theme="dark"] .accb { color: color-mix(in srgb, var(--ac) 55%, #fff); }
.asbar { display: flex; align-items: center; gap: 10px; padding: 9px 18px; background: var(--ac); color: #fff; font-size: 14px; }
.asbar .av.xs { width: 26px; height: 26px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); } .asbar .muted { color: rgba(255,255,255,.75); } .asbar b { font-weight: 800; }
.pk-h { border-top: 5px solid var(--ac, var(--blue)); } .pk-h .av { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--ac); } .pk-who { color: var(--ac); }
/* espace Argent */
.card.due { display: block; border-left: 4px solid var(--blue); } .card.due.soon { border-left-color: #d97706; } .card.due.late { border-left-color: #d92d4a; background: #fff8fa; }
html[data-theme="dark"] .card.due.late { background: #24131a; }
.card.due > .row > .i { width: 26px; height: 26px; color: var(--blue); } .card.due.late > .row > .i { color: #d92d4a; }
.badge.amber { background: #d97706; }
.spl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 10px; } .spl > div > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.spl .ppv-in input { width: 100px; font-size: 34px; } .spl .spa { font-size: 34px; font-weight: 800; padding: 10px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink2); }
.pp .pop-b { height: 40px; border-radius: 12px; padding: 0 12px; }
.card.due { margin-bottom: 16px; }
/* prix minimum par média */
.minb { position: absolute; top: 8px; left: 8px; z-index: 1; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; } .minb.acc { background: rgba(0,0,0,.45); }
.vit.pr { cursor: pointer; } .vit.pr:hover { outline: 2px solid var(--blue); outline-offset: -2px; }
.lib .it .minb { top: auto; bottom: 6px; left: auto; right: 6px; }
.mmth { width: 110px; height: 136px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--soft); } .mmth img { width: 100%; height: 100%; object-fit: cover; }
/* sélecteur de compte : position fixe en haut à droite, alignée sur le contenu, identique sur toutes les pages */
.gwrap { position: sticky; top: 0; height: 0; max-width: 1180px; margin: 0 auto; z-index: 40; }
.gwrap .gacc { position: absolute; right: 28px; top: 26px; }
.gacc .gbtn { height: 40px; padding: 4px 10px 4px 6px; } .gacc .av.xs, .gacc .gall { width: 26px; height: 26px; }
#view .page > .top { padding-right: 236px; min-height: 40px; }
.inbox .fancard { padding-top: 80px; }
@media (max-width: 1200px) { .conv .asbar { padding-right: 250px; } }
@media (max-width: 900px) {
  .gwrap { position: fixed; top: 0; right: 0; left: auto; height: 51px; width: auto; z-index: 60; }
  .gwrap .gacc { position: static; margin: 6px 10px 0 0; } .gacc .gbtn span { display: none; } .gacc .gbtn .av.xs, .gacc .gbtn .gall { display: grid !important; }
  #view .page > .top { padding-right: 0; } .inbox .fancard { padding-top: 18px; } .conv .asbar { padding-right: 18px; }
}
/* coffre « All accounts » : créatrice sur chaque média ; prix recommandé */
.vit .vacc { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; max-width: max-content; border: 2px solid var(--ac); }
.vit .vacc .av.xs { width: 22px; height: 22px; } .vit .vacc b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vit .vacc ~ .minb { top: auto; bottom: 8px; left: 8px; }
.vit .vacc ~ .k { display: none; }
.recp { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; border: 1px solid #b7e4c7; background: #ecfdf3; color: #065f46; font-weight: 600; }
.recp .i { width: 18px; height: 18px; } .recp b { margin-left: auto; font-size: 17px; } .recp:hover { border-color: #0f9d58; }
html[data-theme="dark"] .recp { background: #12301f; border-color: #1f5b3a; color: #86efac; }
.ppv-in.sm input { font-size: 22px; width: 120px; } .ppv-in.sm b { font-size: 20px; } .ppv-in.sm { justify-content: flex-start; padding: 6px 10px; }
.chartw.barsw .bar.stk.hot { filter: brightness(.85); }
.plats { margin-bottom: 16px; } .plat .lg { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.plat.off { opacity: .7; } .plat { border-left: 3px solid var(--pc, var(--line)); }
/* fiches créatrices : une ligne par plateforme */
.crc { margin-bottom: 16px; } .crc .ch .av.lg { width: 48px; height: 48px; }
.pslots { display: grid; gap: 8px; }
.pslot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--pc); border-radius: 12px; background: var(--card); }
.pslot:not(.on) { background: var(--sel2); } .pslot:not(.on) b { color: var(--ink2); }
.pslot .lg { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; } .pslot .lg img { width: 24px; height: 24px; }
.pslot .ps-act { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Planning : tableau de production + coffre */
.pboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.pcol { background: var(--sel2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pcol-h { font-weight: 700; font-size: 13.5px; padding: 4px 6px 10px; } .pcol-h .muted { margin-left: 4px; }
.pcol-b { display: grid; gap: 10px; min-height: 40px; }
.ptk { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--pc); border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .15s; }
.ptk:hover { box-shadow: 0 6px 20px rgba(10,20,50,.1); } .ptk.done { opacity: .72; }
.ptk-img { height: 120px; background: var(--soft) center/cover; } .ptk-b { padding: 10px 12px; } .ptk-b b { display: block; margin: 6px 0 2px; font-size: 14px; } .ptk-b p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.pw { font-family: monospace; letter-spacing: 1px; } .rv { vertical-align: middle; }
@media (max-width: 900px) { .pboard { grid-template-columns: 1fr; } }
/* Planning : type public/privé, plateforme, liens de référence */
.ptk-b .plb i { width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; display: inline-block; vertical-align: middle; }
.pill.kpub { background: #e7f8ef; color: #0a8a4f; } .pill.kpriv { background: #efe9fd; color: #6d3fd4; }
html[data-theme="dark"] .pill.kpub { background: #12301f; color: #4ade80; } html[data-theme="dark"] .pill.kpriv { background: #241a3a; color: #c4b2ff; }
.ptk-links { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 2px; }
.ptk-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--blue); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ptk-links a .i { width: 13px; height: 13px; flex-shrink: 0; }
.reflink { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--sel2); border-radius: 9px; margin-bottom: 6px; }
.reflink a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .reflink a .i { width: 15px; height: 15px; flex-shrink: 0; }
.reflink button { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; flex-shrink: 0; }
#pk button { padding: 0 10px; }
.pop-m a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink); } .pop-m a:hover { background: var(--blue); color: #fff; }
/* espace modèle : calendrier + fiche tâche */
.cev.done > span { text-decoration: line-through; opacity: .6; } .cev.doing { background: color-mix(in srgb, #f59e0b 14%, var(--sel)); }
.cev em { flex-shrink: 0; }
.csent { flex-shrink: 0; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; font-style: normal; }
.mlg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--sel); border: 1px solid var(--line); }
.mlg.doing { background: color-mix(in srgb, #f59e0b 30%, var(--sel)); } .mlg.done { background: var(--soft); opacity: .6; }
.mnext { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border-radius: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.mnext:last-child { border-bottom: 0; } .mnext:hover { background: var(--sel2); } .mnext .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mnext b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mnext .i { color: var(--blue); flex-shrink: 0; }
.mdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mbrief { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--sel2); white-space: pre-wrap; line-height: 1.5; color: var(--ink); }
#msnt { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.vit video { width: 100%; height: 100%; object-fit: cover; display: block; } .vit .vplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 22px; text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
/* répartition « Qui gagne quoi » */
.spbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin: 4px 0 14px; } .spbar i { min-width: 3px; }
/* « Qui gagne quoi » en anneau — couleurs validées en clair et en sombre */
:root { --sp-m: #3b5196; --sp-g: #e87ba4; --sp-a: #0b1220; --sp-c: #1baf7a; --sp-f: #eda100; }
html[data-theme="dark"] { --sp-m: #5a73cc; --sp-g: #d55181; --sp-a: #e8ebf2; --sp-c: #199e70; --sp-f: #c98500; }
.spw { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: center; }
.spd { position: relative; width: 230px; height: 230px; }
.spsvg { width: 100%; height: 100%; display: block; } .spseg { stroke: var(--card); stroke-width: 2; stroke-linejoin: round; transition: opacity .15s; cursor: default; } .spseg.dim { opacity: .28; }
.spc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 60px; }
.spc span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.2; } .spc b { font-size: 26px; font-weight: 800; color: var(--ink); margin: 2px 0; } .spc i { font-style: normal; font-size: 12px; color: var(--ink2); font-weight: 600; }
.spr.hot td { background: var(--sel2); }
@media (max-width: 760px) { .spw { grid-template-columns: 1fr; justify-items: center; } .spw .tbl { width: 100%; } }
/* page Équipe : catégories par ordre d'importance, une ligne par personne, réglages dans une fenêtre (aucun scroll horizontal) */
.ttabs { margin: 0 0 16px; }
.tcat { padding: 0; overflow: hidden; }
.tcat-h { padding: 16px 20px 12px; border-left: 4px solid var(--tc); display: flex; flex-direction: column; gap: 2px; }
.tcat-h h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.tcount { font-size: 12px; background: var(--sel); color: var(--ink2); border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.trow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line2); }
.trow.off { opacity: .5; }
.tp { display: flex; align-items: center; gap: 10px; min-width: 0; } .tp > div { min-width: 0; display: flex; flex-direction: column; }
.tp b, .tp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tp span { font-size: 12px; color: var(--muted); }
.tcell { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.tl { font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tchips { display: flex; flex-wrap: wrap; gap: 4px; } .tchips span { font-size: 12px; font-weight: 600; background: var(--sel); border-radius: 6px; padding: 2px 7px; color: var(--ink2); }
.tpay span { font-size: 12.5px; } .tact { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 1100px) { .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tact { grid-column: 1 / -1; justify-content: flex-start; } }
.mgrp { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line2); }
.mgrp h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tshift { table-layout: fixed; width: 100%; } .tshift th, .tshift td { overflow: hidden; }
/* rangs : couronnes or / argent / bronze avec un gros chiffre */
.pcrown { display: flex; flex-direction: column; align-items: center; line-height: 1; margin-bottom: 4px; color: var(--cc); }
.pcrown .crown { width: 42px; height: 42px; fill: currentColor; stroke: currentColor; } .pcrown b { font-size: 34px; font-weight: 900; letter-spacing: -.03em; margin-top: -2px; }
.pd.p1 .pcrown .crown { width: 54px; height: 54px; } .pd.p1 .pcrown b { font-size: 44px; } .pd.p1 { padding-top: 22px; }
.c1 { --cc: #c99a12; } .c2 { --cc: #8e98a8; } .c3 { --cc: #b06d3c; }
html[data-theme="dark"] .c1 { --cc: #f0c94a; } html[data-theme="dark"] .c2 { --cc: #c3cad6; } html[data-theme="dark"] .c3 { --cc: #e09a66; }
.rkc { display: inline-flex; align-items: center; gap: 3px; color: var(--cc); font-weight: 900; font-size: 16px; line-height: 1; }
.rkc .crown { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; }
.pd .mdl { display: none; }
/* public / privé : icône au trait, pas d'emoji */
.pill.kpub .i, .pill.kpriv .i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.seg button .i { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; } .seg .segsub { font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 12px; }
.cev .clk { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; flex-shrink: 0; }
/* bas du menu : nom et e-mail longs coupés proprement */
.side .me .grow { min-width: 0; } .side .me .grow b, .side .me .grow span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* œil des champs mot de passe */
.pwe { position: relative; display: block; width: 100%; } .pwe > input { width: 100%; padding-right: 44px !important; box-sizing: border-box; }
.pweb { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.pweb:hover { color: var(--ink); background: var(--sel); } .pweb:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.pweb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* RÈGLE : aucun texte coupé ni superposé. Les textes passent à la ligne au lieu d'être tronqués (« … ») ; un mot trop long (e-mail, lien) se coupe pour rester dans sa boîte. */
body { overflow-wrap: break-word; }
.th .t, .cev > span, .acc-pick .ap b, .acc-pick .ap span, .vit .vacc b, .ptk-links a, .reflink a, .mnext b, .tp b, .tp span, .side .me .grow b, .side .me .grow span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
.pbody p { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; min-height: 0; }
.ptk-links a, .reflink a { display: inline-flex; align-items: flex-start; } .ptk-links a .i, .reflink a .i { flex-shrink: 0; margin-top: 2px; }
/* calendriers : point de couleur = enfant direct vide ; heure du post sur sa propre ligne au-dessus de la légende */
.cev { align-items: flex-start; } .cev > em { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 5px 4px 0 2px; flex-shrink: 0; }
.cev > span { line-height: 1.3; min-width: 0; } .cev > span em { display: block; width: auto; height: auto; border-radius: 0; margin: 0 0 1px; font-style: normal; font-weight: 700; color: var(--ink); }
.cev img, .cev > i { margin-top: 1px; }
.side .me { align-items: center; } .side .me .grow { line-height: 1.25; }
/* mode réseaux sociaux : noms et photos de profil floutés */
html.smode .smb { filter: blur(5px); user-select: none; }
html.smode .av { filter: blur(5px); }
/* répartition en haut du dashboard */
.spbar2 { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; } .spbar2 i { min-width: 4px; }
.sptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sptile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sptile span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink2); } .sptile span i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.sptile b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .sptile em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.sptile.main { background: var(--sel2); border-color: var(--selb); }
.spmodels { margin-top: 14px; border-top: 1px solid var(--line2); }
.spm { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); } .spm:last-child { border-bottom: 0; }
.spm-n { display: flex; flex-direction: column; min-width: 0; } .spm-v { display: flex; flex-direction: column; align-items: flex-end; } .spm-v b { font-size: 15px; }
@media (max-width: 700px) { .spm { grid-template-columns: 1fr 1fr; } .spm-n { grid-column: 1 / -1; } .spm-v { align-items: flex-start; } }

/* commission des plateformes dans la répartition : gris neutre (ce n'est ni l'agence ni l'équipe) */
:root { --sp-p: #9aa1ad; } html[data-theme="dark"] { --sp-p: #9ca3af; }
.sptile small { font-size: 12px; color: var(--ink2); font-weight: 600; }

/* répartition : couleurs vives, validées en clair et en sombre (ordre de la barre : commissions, modèles, fixes, managers, agence, chatteurs) */
:root { --sp-p: #f2711c; --sp-m: #2563eb; --sp-f: #d4a106; --sp-g: #e0338a; --sp-a: #16a34a; --sp-c: #0891b2; }
html[data-theme="dark"] { --sp-p: #dd6a14; --sp-m: #3b82f6; --sp-f: #b98c07; --sp-g: #e0338a; --sp-a: #22a755; --sp-c: #0ea5c6; }
.spbar2 { height: 16px; border-radius: 8px; }
.sptile { border-top: 4px solid var(--tc); background: color-mix(in srgb, var(--tc) 7%, var(--card)); }
.sptile.main { background: color-mix(in srgb, var(--tc) 13%, var(--card)); border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); border-top-color: var(--tc); }
html.smode .av { user-select: none; }
.pill .i { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
/* accès d'un membre : une carte par compte, actions en boutons */
.acx { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; } .acx.on { border-color: var(--selb); background: var(--sel2); }
.acx-n { display: flex; flex-direction: column; min-width: 0; } .acx-p { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 13px; font-weight: 600; background: var(--card); color: var(--ink2); cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; } .chip.off { background: transparent; color: var(--faint); border-style: dashed; cursor: not-allowed; }
/* rôles & droits */
.rtabs { display: flex; flex-wrap: wrap; gap: 6px; } .rtabs button { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; background: var(--card); color: var(--ink2); cursor: pointer; }
.rtabs button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line2); cursor: pointer; } .prow:last-child { border-bottom: 0; }
.prow > span:first-child { display: flex; flex-direction: column; min-width: 0; } .prow .sw { flex-shrink: 0; }
/* bas du menu : nom + rôle, boutons compacts pour laisser la place au texte */
.side .me { gap: 8px; padding: 10px 6px 10px 10px; } .side .me .themeb, .side .me #logout { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; }
.side .me .grow b { font-size: 13px; } .side .me .grow span { font-size: 12px; }
/* bas du menu : avatar | nom + rôle | boutons empilés (clair/sombre au-dessus, déconnexion dessous) → le nom garde toute la largeur */
.side .me { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 9px; row-gap: 2px; align-items: center; }
.side .me > .av { grid-column: 1; grid-row: 1 / 3; } .side .me > .grow { grid-column: 2; grid-row: 1 / 3; }
.side .me > #thb { grid-column: 3; grid-row: 1; } .side .me > #logout { grid-column: 3; grid-row: 2; }
/* argent : période en cours + virements */
.owed { margin-top: 12px; border-top: 1px solid var(--line2); }
.owe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2); } .owe > b { font-size: 15px; white-space: nowrap; }
.owe.tot { border-bottom: 0; font-weight: 700; } .owe.tot b { font-size: 17px; }
.owe-n { display: flex; flex-direction: column; min-width: 0; }
.trow2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr) auto auto auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line2); } .trow2:last-child { border-bottom: 0; }
.trow2.cancelled { opacity: .55; } .trow2.cancelled .tr-amt { text-decoration: line-through; } .tr-amt { font-size: 15px; white-space: nowrap; } .tr-act { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 900px) { .trow2 { grid-template-columns: minmax(0, 1fr) auto; } .tr-act { grid-column: 1 / -1; justify-content: flex-start; } }
.kpi.mk-todo { border-top: 4px solid #d97706; } .kpi.mk-late { border-top: 4px solid #d92d4a; }
details.card > summary { cursor: pointer; list-style: none; } details.card > summary::-webkit-details-marker { display: none; } details.card > summary::before { content: "▸ "; color: var(--muted); } details.card[open] > summary::before { content: "▾ "; }
.trow2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) 120px 88px 250px; } .tr-amt { text-align: right; }
@media (max-width: 1100px) { .trow2 { grid-template-columns: minmax(0, 1fr) auto; } .tr-act { grid-column: 1 / -1; justify-content: flex-start; } }
/* argent : relevé solde − prévu = reste */
.msum { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.ms { flex: 1 1 200px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ms span { font-size: 13px; font-weight: 600; color: var(--ink2); } .ms b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; } .ms i { font-style: normal; font-size: 12px; color: var(--muted); }
.ms.main { background: color-mix(in srgb, #16a34a 9%, var(--card)); border-color: color-mix(in srgb, #16a34a 35%, var(--line)); }
.ms-op { align-self: center; font-size: 22px; font-weight: 800; color: var(--muted); }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; } .mcols h3 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.owe-r { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
@media (max-width: 900px) { .mcols { grid-template-columns: 1fr; } .ms-op { display: none; } }
/* états des versements : à venir gris clair, à faire gris foncé, en retard rouge, fait vert */
:root { --st-soon: #c4c9d2; --st-now: #4a5368; --st-late: #d92d4a; --st-done: #16a34a; }
html[data-theme="dark"] { --st-soon: #5b6272; --st-now: #aab2c2; --st-late: #f0506a; --st-done: #22c55e; }
.owe[class*="st-"], .trow2[class*="st-"] { border-left: 4px solid var(--stc); padding-left: 10px; border-radius: 4px; }
.st-soon { --stc: var(--st-soon); } .st-now { --stc: var(--st-now); } .st-late { --stc: var(--st-late); } .st-done { --stc: var(--st-done); } .st-cancelled { --stc: var(--line); }
.owe.st-soon, .trow2.st-soon { background: color-mix(in srgb, var(--st-soon) 12%, transparent); } .owe.st-soon b, .trow2.st-soon b { color: var(--ink2); }
.owe.st-late, .trow2.st-late { background: color-mix(in srgb, var(--st-late) 7%, transparent); }
.owe.st-done, .trow2.st-done { background: color-mix(in srgb, var(--st-done) 7%, transparent); }
.owe.st-now, .trow2.st-now { background: color-mix(in srgb, var(--st-now) 6%, transparent); }
.stp { display: inline-block; text-align: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--stc); color: #fff; }
.stp.st-soon { color: var(--ink); } .stp.st-cancelled { background: var(--sel); color: var(--muted); }
.trleg { display: flex; flex-wrap: wrap; gap: 14px; margin: -2px 0 10px; font-size: 12px; color: var(--muted); font-weight: 600; } .trleg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--stc); }
.trow2 { margin-bottom: 6px; border-bottom: 0; padding-top: 10px; padding-bottom: 10px; }

/* tâches : grande zone de texte lisible */
textarea.in.tbrief { min-height: 200px; font-size: 15px; line-height: 1.55; }
input.in.ttitle { font-size: 15px; font-weight: 600; }
/* 2026-10-28 : À traiter, avis sur les rushs, messages modèle ↔ agence, notes */
.todo0 .ch { margin-bottom: 6px; }
.todo-i { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 10px; border-left: 4px solid var(--st-now, #4a5368); background: var(--soft); margin-top: 8px; color: var(--ink); }
.todo-i:hover { background: var(--sel2, var(--soft)); }
.todo-i.st-late { border-left-color: var(--st-late, #d92d4a); }
.todo-i .grow { min-width: 0; overflow-wrap: anywhere; }
.note0 { border-color: var(--line); background: var(--soft); }
.rvw { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rvb { display: flex; gap: 4px; flex-wrap: wrap; }
.rvb button { flex: 1 1 auto; border: 1px solid var(--line); background: var(--card, #fff); color: var(--muted); border-radius: 8px; padding: 5px 8px; font: 600 12px/1.2 inherit; cursor: pointer; }
.rvb button.on.rv-ok, .rvs.rv-ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; border-color: color-mix(in srgb, #16a34a 40%, transparent); }
.rvb button.on.rv-used, .rvs.rv-used { background: color-mix(in srgb, #2563eb 14%, transparent); color: #1d4ed8; border-color: color-mix(in srgb, #2563eb 40%, transparent); }
.rvb button.on.rv-redo, .rvs.rv-redo { background: color-mix(in srgb, #d92d4a 14%, transparent); color: #be123c; border-color: color-mix(in srgb, #d92d4a 40%, transparent); }
html[data-theme="dark"] .rvb button.on.rv-ok, html[data-theme="dark"] .rvs.rv-ok { color: #4ade80; }
html[data-theme="dark"] .rvb button.on.rv-used, html[data-theme="dark"] .rvs.rv-used { color: #93b4ff; }
html[data-theme="dark"] .rvb button.on.rv-redo, html[data-theme="dark"] .rvs.rv-redo { color: #fb7185; }
.rvs { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.rvn { overflow-wrap: anywhere; }
.mch { display: grid; grid-template-columns: 260px 1fr; padding: 0; overflow: hidden; min-height: 460px; }
.mch-l { border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 620px; overflow-y: auto; }
.mch-t { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.mch-t .grow { display: flex; flex-direction: column; min-width: 0; }
.mch-t .grow .small { overflow-wrap: anywhere; }
.mch-t.on, .mch-t:hover { background: var(--soft); }
.mch-r { display: flex; flex-direction: column; min-width: 0; }
.mch-m { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 540px; min-height: 300px; }
.mch1 { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mb { max-width: 78%; align-self: flex-start; display: flex; flex-direction: column; gap: 3px; }
.mb.me { align-self: flex-end; align-items: flex-end; }
.mb-t { background: var(--soft); padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mb.me .mb-t { background: var(--blue, #3b5196); color: #fff; }
.mch-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.mch-f textarea { flex: 1; min-height: 44px; resize: vertical; }
.psoon { margin: 10px 0 0; }
@media (max-width: 760px) { .mch { grid-template-columns: 1fr; } .mch-l { border-right: 0; border-bottom: 1px solid var(--line); max-height: 200px; } .mb { max-width: 92%; } }
.spm:has(> .spm-v:nth-child(6)) { grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)); }
@media (max-width: 700px) { .spm:has(> .spm-v:nth-child(6)) { grid-template-columns: 1fr 1fr; } }

.monly { display: none; }
@media (max-width: 700px) { .monly { display: block; } }
