:root{ --rose:#C4827F; --rose-deep:#A56B68; --cream:#FDF8F3; --cream-dp:#F5EDE3;
  --ink:#2D1810; --soft:#5C4439; --gold:#B89968; --rose-soft:#E8D0CB;
  --green:#D7E8D0; --amber:#F7E6C4; --red:#F3D5CE; --grey:#E4DCD2; }
*{ box-sizing:border-box; }
body{ margin:0; background:var(--cream); color:var(--ink); font-family:'Segoe UI',system-ui,sans-serif; font-size:14px; }
header{ background:var(--rose); color:#fff; padding:12px 20px; display:flex; align-items:center; gap:12px; }
header h1{ font-size:18px; margin:0; font-family:Georgia,serif; }
.sp{ flex:1; }
header button{ background:rgba(255,255,255,.2); border:0; color:#fff; padding:7px 12px; border-radius:8px; cursor:pointer; font-weight:600; }
header button:hover{ background:rgba(255,255,255,.34); }
#msg{ font-size:13px; }

/* onglets réseaux */
.tabs{ display:flex; gap:4px; padding:8px 20px 0; background:var(--rose); flex-wrap:wrap; }
.tabs button{ background:rgba(255,255,255,.16); color:#fff; border:0; padding:8px 14px; border-radius:10px 10px 0 0;
  cursor:pointer; font-weight:600; font-size:13px; }
.tabs button.active{ background:var(--cream); color:var(--ink); }

main{ padding:16px 20px 80px; max-width:1500px; margin:0 auto; }
.cards{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.card{ background:#fff; border:1px solid var(--rose-soft); border-radius:12px; padding:9px 14px; min-width:108px; }
.card .n{ font-size:23px; font-weight:700; color:var(--rose-deep); font-family:Georgia,serif; }
.card .l{ font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--soft); }

.bar{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:14px; }
.bar input, .bar select{ padding:7px 9px; border:1px solid var(--rose-soft); border-radius:8px; background:#fff; font-size:13px; }
.chk{ display:flex; align-items:center; gap:4px; }
.viewtoggle{ display:flex; border:1px solid var(--rose-soft); border-radius:8px; overflow:hidden; }
.viewtoggle button{ background:#fff; border:0; padding:7px 11px; cursor:pointer; font-size:13px; color:var(--soft); }
.viewtoggle button.active{ background:var(--rose); color:#fff; }
.btn{ background:var(--rose); color:#fff; border:0; padding:8px 14px; border-radius:8px; cursor:pointer; font-weight:600; }
.btn:hover{ background:var(--rose-deep); }
.btn.ghost{ background:#fff; color:var(--rose-deep); border:1px solid var(--rose-soft); }
.btn.danger{ background:#fff; color:#b3261e; border:1px solid #e7b8b0; }
.muted{ color:var(--soft); }

/* vue cartes influenceurs */
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(248px,1fr)); gap:12px; }
.inf{ background:#fff; border:1px solid var(--rose-soft); border-radius:14px; padding:12px 13px; cursor:pointer;
  position:relative; transition:transform .08s, box-shadow .08s; border-left:4px solid var(--grey); }
.inf:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(45,24,16,.10); }
.inf .top{ display:flex; align-items:center; gap:7px; }
.inf .pseudo{ font-weight:700; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inf .plat{ font-size:10px; font-weight:700; color:#fff; padding:1px 7px; border-radius:10px; }
.inf .meta{ font-size:12px; color:var(--soft); margin:6px 0 2px; }
.inf .chips{ display:flex; flex-wrap:wrap; gap:4px; margin-top:7px; }
.chip{ display:inline-block; padding:1px 8px; border-radius:11px; font-size:11px; font-weight:700; background:var(--cream-dp); color:var(--soft); }
.chip.statut{ background:var(--rose-soft); color:var(--ink); }
.b-ok{ background:var(--green); color:#2e6b2e; } .b-warn{ background:var(--amber); color:#8a6d1a; }
.b-rel{ background:var(--red); color:#a02020; }
.engbar{ height:6px; background:var(--cream-dp); border-radius:4px; margin-top:9px; overflow:hidden; }
.engbar > i{ display:block; height:100%; border-radius:4px; }
.inf .notes{ font-size:12px; color:var(--soft); margin-top:8px; max-height:34px; overflow:hidden; }

/* tableau */
.tablewrap{ overflow-x:auto; background:#fff; border:1px solid var(--rose-soft); border-radius:12px; }
table{ border-collapse:collapse; width:100%; font-size:13px; }
th{ background:var(--cream-dp); text-align:left; padding:8px 9px; position:sticky; top:0; border-bottom:2px solid var(--gold); white-space:nowrap; }
td{ padding:6px 9px; border-bottom:1px solid var(--rose-soft); white-space:nowrap; }
tr:hover td{ background:var(--cream); }
td input, td select{ border:1px solid transparent; background:transparent; border-radius:6px; padding:3px 5px; font-size:13px; width:100%; }
td input:focus, td select:focus{ border-color:var(--rose-soft); background:#fff; outline:none; }
td.notes input{ min-width:200px; }
.badge{ display:inline-block; padding:1px 7px; border-radius:10px; font-size:11px; font-weight:700; }
.del{ background:none; border:0; cursor:pointer; color:#b3261e; font-size:15px; }
.eng{ font-variant-numeric:tabular-nums; }

/* drawer */
#drawerBack{ position:fixed; inset:0; background:rgba(45,24,16,.35); display:none; z-index:40; }
#drawer{ position:fixed; top:0; right:0; height:100%; width:420px; max-width:94vw; background:var(--cream);
  box-shadow:-12px 0 40px rgba(0,0,0,.25); transform:translateX(100%); transition:transform .18s; z-index:41;
  display:flex; flex-direction:column; }
#drawer.open{ transform:translateX(0); } #drawerBack.open{ display:block; }
.dh{ background:var(--rose); color:#fff; padding:13px 16px; font-weight:700; font-family:Georgia,serif; display:flex; align-items:center; }
.dh button{ margin-left:auto; background:rgba(255,255,255,.2); border:0; color:#fff; width:26px; height:26px; border-radius:7px; cursor:pointer; }
.db{ padding:14px 16px; overflow-y:auto; flex:1; }
.db label{ display:block; font-weight:600; font-size:12px; margin:9px 0 3px; color:var(--soft); }
.db input, .db select, .db textarea{ width:100%; padding:7px 8px; border:1px solid var(--rose-soft); border-radius:8px; font-size:13px; background:#fff; }
.db .row{ display:flex; gap:8px; } .db .row>div{ flex:1; }
.dfoot{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-top:1px solid var(--rose-soft); background:var(--cream-dp); }

/* settings dialog */
dialog{ border:0; border-radius:14px; padding:0; max-width:480px; width:92%; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.dh2{ background:var(--rose); color:#fff; padding:12px 16px; font-weight:700; font-family:Georgia,serif; }
dialog .actions{ margin-top:14px; display:flex; justify-content:flex-end; gap:8px; }
dialog label{ display:block; font-weight:600; font-size:12px; margin:9px 0 3px; }
dialog input{ width:100%; padding:7px; border:1px solid var(--rose-soft); border-radius:8px; font-size:13px; }
