/* Mêmes couleurs que le reporting SEO (seo.nalios.be). */
:root {
  --teal: #009AA2;
  --teal-strong: #007981;
  --ink: #242D36;
  --ink-2: #4A5560;
  --ink-3: #66707C;
  --line: #E2E7EC;
  --surface: #FFFFFF;
  --surface-2: #F6F8FA;
  --tint: #ECF8F9;
  --good: #1F9D62;
  --good-bg: #E8F6EE;
  --bad: #D5443B;
  --bad-bg: #FCECEB;
  --warn-bg: #FFF4D6;
  --radius: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-2); color: var(--ink); font: 400 14px/1.55 'Poppins', system-ui, sans-serif; }
a { color: var(--teal-strong); }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
h1 a { color: inherit; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--teal-strong); }
.mt { margin-top: 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }

/* en-tête */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 60px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.brand img { height: 24px; display: block; }
.topbar nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.topbar nav a, .langs a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.topbar nav a:hover, .langs a:hover { background: var(--surface-2); }
.topbar nav a.active, .langs a.active { color: var(--teal-strong); background: var(--tint); }
.langs { display: flex; gap: 2px; }
.langs a { padding: 6px 8px; font-size: 12px; }
.topbar .user { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

main { max-width: 1240px; margin: 0 auto; padding: 24px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; }
.page-head { margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; max-width: 760px; }

/* messages */
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); }
.flash.ok { background: var(--good-bg); border-color: #BFE5CF; }
.flash.error { background: var(--bad-bg); border-color: #F2C4C0; color: #8E2A23; }
.flash.learn { background: var(--tint); border-color: #BFE3E6; }

/* filtres */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); gap: 4px; }
.filters label.grow { flex: 1; min-width: 180px; }
select, input, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  background: var(--surface); min-height: 36px; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--tint); border-color: var(--teal); }

.btn { font: inherit; font-weight: 500; border: 0; border-radius: 8px; padding: 8px 16px; min-height: 36px; background: var(--teal);
  color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: var(--teal-strong); }
.btn.ghost { background: transparent; color: var(--teal-strong); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--tint); }
.small-btn { padding: 4px 10px; min-height: 28px; font-size: 12px; }

/* cartes */
.grid { display: grid; gap: 16px; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
details.card summary { cursor: pointer; font-weight: 600; }

/* textes traduits */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--surface-2);
  color: var(--ink-2); border: 1px solid var(--line); }
.badge.lang-nl { background: #FFF3E0; border-color: #F6D9AE; color: #8A5300; }
.badge.lang-en { background: #E9F0FC; border-color: #C8D8F5; color: #234C91; }
.badge.lang-fr { background: var(--tint); border-color: #BFE3E6; color: var(--teal-strong); }
.tag-ok { color: var(--good); }

.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }




/* connexion */
.login { max-width: 400px; margin: 12vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }

/* ---------------------------------------------------------------- Nalios Social */
.flash.warn { background: var(--warn-bg); border-color: #F2DFA6; }
.flash ul { margin: 0; padding-left: 18px; }
.flash.small { font-size: 12px; padding: 8px 12px; margin: 8px 0; }
.badge.bad { background: var(--bad-bg); border-color: #F2C4C0; color: #8E2A23; }
.left { justify-content: flex-start; margin-bottom: 12px; }
.nowrap { white-space: nowrap; }
.mono { font: 13px/1.55 ui-monospace, monospace; }
.btn.danger, .link-btn.danger { color: var(--bad); }
.btn.ghost.danger:hover { background: var(--bad-bg); }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-strong); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.topbar form { margin: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs a { text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.tabs a.active { background: var(--tint); color: var(--teal-strong); }

/* réseaux, avatars, statuts */
.net { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; flex: none; }
.net svg { width: 70%; height: 70%; }
.net-linkedin { background: #0A66C2; }
.net-instagram { background: #D62976; }
.net-facebook { background: #1877F2; }
.net-tiktok { background: #111; }
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--tint); color: var(--teal-strong); font-size: 11px; font-weight: 600; flex: none; vertical-align: middle; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .net { position: absolute; right: -3px; bottom: -3px; border: 1.5px solid var(--surface); }
.avatars { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.avatars .more { font-size: 12px; color: var(--ink-3); }
.status { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st-scheduled, .st-publishing { background: #E9F0FC; border-color: #C8D8F5; color: #234C91; }
.st-sent { background: var(--good-bg); border-color: #BFE5CF; color: #17744A; }
.st-error, .st-partial { background: var(--bad-bg); border-color: #F2C4C0; color: #8E2A23; }
.st-draft, .st-buffer_draft, .st-needs_approval { background: var(--warn-bg); border-color: #F2DFA6; color: #7A5A00; }
.st-local, .st-deleted { background: var(--surface-2); color: var(--ink-3); border-style: dashed; }

/* filtres / puces de comptes */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: 12.5px; user-select: none; }
.chip input { display: none; }
.chip.on { border-color: var(--teal); background: var(--tint); }
.chip.warn { border-color: #F2C4C0; }
.chip .badge { font-size: 10px; padding: 0 5px; }
.filters .chips { flex: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; align-items: center; }

/* calendrier */
.cal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cal-nav { display: flex; gap: 6px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--surface-2); padding: 6px 8px; font-size: 12px; color: var(--ink-3); font-weight: 500; text-transform: capitalize; }
.cal-day { background: var(--surface); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { background: #FBFCFD; }
.cal-day.other .cal-date span { color: #B4BCC5; }
.cal-day.today .cal-date span { background: var(--teal); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-date { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cal-date form { margin: 0; }
.cal-date .add { border: 0; background: none; color: var(--ink-3); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; padding: 0 4px; }
.cal-day:hover .add { opacity: 1; }
.cal-date .add:hover { color: var(--teal-strong); }
.cal-post { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 5px; border-radius: 6px; text-decoration: none;
  color: var(--ink); border-left: 3px solid var(--line); background: var(--surface-2); min-width: 0; }
.cal-post .time { font-weight: 600; color: var(--ink-2); flex: none; }
.cal-post .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-post .via { margin-left: auto; font-size: 9px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 3px; flex: none; }
.cal-post.st-scheduled { border-left-color: #3B73D1; background: #F2F6FD; }
.cal-post.st-sent { border-left-color: var(--good); background: #F3FAF6; }
.cal-post.st-error { border-left-color: var(--bad); background: #FDF4F3; }
.cal-post.st-draft, .cal-post.st-needs_approval { border-left-color: #D9A400; background: #FFFBEF; }
.cal-post.st-local { border-left-style: dashed; border-left-color: var(--ink-3); color: var(--ink-2); }
.cal-post:hover { filter: brightness(0.97); }

/* liste */
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
table.list tbody tr[onclick] { cursor: pointer; }
table.list tbody tr[onclick]:hover td { background: #FAFCFD; }
.table-card { padding: 4px 8px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }
.card.empty { text-align: center; padding: 40px; }
.card.empty form { display: inline-block; }

/* composeur */
.edit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.edit-head .eyebrow a { color: inherit; text-decoration: none; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sticky { position: sticky; top: 76px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.field input, .field select, .field textarea { width: 100%; }
details summary { cursor: pointer; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.link-grid .wide { grid-column: 1 / -1; }
.media-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.media-item { margin: 0; width: 160px; position: relative; }
.media-item img, .media-item video { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000; display: block; }
.media-item img { background: var(--surface-2); }
.media-item figcaption { font-size: 11px; color: var(--ink-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-tag { position: absolute; top: 6px; left: 6px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chan-group { border: 0; padding: 0; margin: 0 0 12px; }
.chan-group legend { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; padding: 0; }
.chan-group legend input { vertical-align: middle; }
.apply-chans { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--warn-bg); border-radius: 8px; }
.ai-bar { display: flex; gap: 8px; margin: 4px 0 6px; }
.ai-bar input { flex: 1; }
.variant { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; scroll-margin-top: 80px; }
.variant.done { background: var(--surface-2); }
.variant header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.variant .who { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.variant-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; margin-top: 10px; }
.variant.done .variant-body { grid-template-columns: 1fr; }
.counter { text-align: right; color: var(--ink-3); margin-top: 2px; }
.counter.over { color: var(--bad); font-weight: 600; }
.inline { display: flex; gap: 6px; }
.inline input { flex: 1; min-width: 0; }
.radio { display: flex; gap: 8px; align-items: center; margin: 8px 0 4px; font-weight: 500; }
.due { width: 100%; margin-left: 0; }
.mode-help { display: none; }
.side-actions { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 8px; }
.side-actions .btn { justify-content: center; }
.btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 960px) {
  .edit-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .variant-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .calendar { grid-template-columns: 1fr; }
  .cal-dow { display: none; }
  .cal-day { min-height: 0; }
  .cal-day.other { display: none; }
  .link-grid { grid-template-columns: 1fr; }
  .topbar form .btn { padding: 6px 10px; }
}
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; }
.filters label.chip, label.chip { flex-direction: row; font-size: 12.5px; color: var(--ink); gap: 6px; }
.apply-chans[hidden] { display: none; }
.topbar nav { scrollbar-width: none; } .topbar nav::-webkit-scrollbar { display: none; }

/* veille */
.count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 600; text-align: center; line-height: 18px; }
.tabs.sub a { font-size: 13px; }
.tabs .count { background: var(--line); color: var(--ink-2); }
.tabs a.active .count, .topbar .count { background: var(--teal); color: #fff; }
.score { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 6px; font-weight: 600; font-size: 12px; }
.score.hi { background: var(--good-bg); color: #17744A; }
.score.mid { background: var(--warn-bg); color: #7A5A00; }
.score.lo { background: var(--surface-2); color: var(--ink-3); }
.bad-text { color: var(--bad); }
.muted-row td { opacity: .6; }
.row-actions { display: flex; gap: 10px; align-items: center; margin: 0; }
table.news td:first-child { width: 48px; }
.proposal .card-head h2 a { color: inherit; text-decoration: none; }
.proposal .angle { margin: 6px 0; font-weight: 500; color: var(--teal-strong); }
.proposal .brief { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.proposal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.proposal-banner { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--tint); border-color: #BFE3E6; }
.proposal-banner .inline input { min-width: 220px; }
.add-source { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) { .add-source { grid-template-columns: 1fr; } }

/* podcasts */
.pod-processing, .pod-uploading { background: #E9F0FC; border-color: #C8D8F5; color: #234C91; }
.pod-ready { background: var(--good-bg); border-color: #BFE5CF; color: #17744A; }
.pod-failed { background: var(--bad-bg); border-color: #F2C4C0; color: #8E2A23; }
.pod-draft { background: var(--warn-bg); border-color: #F2DFA6; color: #7A5A00; }
.source-url { width: 100%; margin: 4px 0 8px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress .bar { height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.waiting { background: var(--tint); border-color: #BFE3E6; }
.clips-head { margin: 8px 0 12px; flex-wrap: wrap; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.clip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 80px; }
.clip video, .clip .no-video { width: 100%; aspect-ratio: 9 / 16; max-height: 420px; background: #111; object-fit: contain; display: block; }
.clip .no-video { display: flex; align-items: center; justify-content: center; color: #aab; font-size: 12px; }
.clip-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.clip-body p { margin: 2px 0; }
.clip-title { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.clip-title input { margin-top: 4px; }
.clip .tags { color: var(--teal-strong); }
.clip-actions { margin-top: auto; padding-top: 8px; }
.clip.rejected { opacity: .5; }
.clip.used { border-color: #BFE5CF; }

/* doublage */
.dub-transcribing, .dub-rendering { background: #E9F0FC; border-color: #C8D8F5; color: #234C91; }
.dub-review, .dub-draft { background: var(--warn-bg); border-color: #F2DFA6; color: #7A5A00; }
.dub-done { background: var(--good-bg); border-color: #BFE5CF; color: #17744A; }
.dub-failed { background: var(--bad-bg); border-color: #F2C4C0; color: #8E2A23; }
.radio span { font-weight: 400; }
.radio.consent { background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; margin: 12px 0; align-items: flex-start; }
.cues { list-style: none; padding: 0; margin: 12px 0; counter-reset: cue; }
.cues li { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--surface-2); }
.cues .tc { font: 12px ui-monospace, monospace; color: var(--ink-3); padding-top: 8px; }
.cues .was { grid-column: 2; }
.cues textarea { min-height: 0; }
.cues textarea.too-long { border-color: #E3A008; background: #FFFBEF; }
.steps { padding-left: 18px; margin: 0; }
.steps li { padding: 3px 0; color: var(--ink-3); }
.steps li.on { color: var(--teal-strong); font-weight: 600; }
.dub-video { width: 100%; max-height: 520px; background: #000; border-radius: 10px; }
.pre { white-space: pre-wrap; }
@media (max-width: 760px) { .cues li { grid-template-columns: 1fr; } .cues .was { grid-column: 1; } }

/* coûts */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile.main { grid-column: span 1; background: var(--tint); border-color: #BFE3E6; }
.tile-label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.tile-value { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 11.5px; color: var(--ink-3); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-row { display: flex; gap: 14px; color: var(--ink-2); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .baseline { stroke: #C9D1D9; stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 10.5px; font-family: inherit; }
.chart .hit { fill: transparent; }
.chart .col.on .hit { fill: rgba(36, 45, 54, 0.04); }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 2; }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.bars .bar-cell { width: 38%; }
.hbar { display: block; height: 10px; border-radius: 0 4px 4px 0; background: #2a78d6; min-width: 2px; }
.est { color: var(--ink-3); cursor: help; }
h2.pad { padding: 12px 8px 0; }
.sub-row { margin-bottom: 6px; align-items: center; }
.sub-row input:first-child { flex: 2; }
.sub-row input:nth-child(2) { flex: 1; max-width: 110px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* voix des comptes */
.page-head h1 .avatar { vertical-align: -6px; margin-right: 6px; }
.ref-posts { list-style: none; padding: 0; margin: 12px 0 0; }
.ref-posts li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.ref-posts li.is-example { border-color: #BFE3E6; background: #FAFDFD; }
.ref-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ref-actions { margin-left: auto; }
.ref-text { white-space: pre-wrap; font-size: 13px; max-height: 220px; overflow: auto; }

/* calendrier : comptes à droite */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: start; }
.cal-side .card { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding: 14px 12px; }
.cal-side .card-head { padding: 0 4px; }
.cal-side p.small { padding: 0 4px; margin: 0 0 8px; }
.acc-group { margin-bottom: 10px; }
.acc-group-title { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 6px 4px 4px; }
.acc { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.acc:hover { background: var(--surface-2); }
.acc input { margin: 0; accent-color: var(--teal); flex: none; }
.acc.on { background: var(--tint); }
.acc.dim { opacity: .55; }
.acc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side { order: -1; }
  .cal-side .card { position: static; max-height: none; }
  .acc-group { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
  .acc-group-title { width: 100%; }
}

/* publications : bascule liste / calendrier */
.tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs-row .tabs { margin-bottom: 0; }
.view-switch { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.view-switch a { padding: 5px 12px; }
.cal-pub { flex-direction: column; align-items: stretch; gap: 3px; }
.cal-pub .pub-line { display: flex; gap: 5px; min-width: 0; }
.mini-avatars { display: flex; gap: 3px; flex-wrap: wrap; }
.mini-avatars .avatar { font-size: 8px; }
.mini-avatars .avatar .net { width: 9px !important; height: 9px !important; right: -2px; bottom: -2px; }
.mini-avatars .more { font-size: 10px; color: var(--ink-3); }
.cal-post.st-partial { border-left-color: var(--bad); background: #FDF4F3; }
.cal-post.st-publishing { border-left-color: #3B73D1; background: #F2F6FD; }
.cal-post.st-buffer_draft { border-left-color: #D9A400; background: #FFFBEF; }
.undated { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); border-left: 3px solid var(--line); margin-bottom: 6px; background: var(--surface-2); }
.undated:hover { filter: brightness(0.97); }
.undated .status { align-self: flex-start; }
.cal-post, .undated { border-width: 0 0 0 3px; }

/* nom du compte sur chaque post du calendrier */
.cal-post.two-lines { flex-direction: column; align-items: stretch; gap: 2px; }
.cal-post .post-head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cal-post .acc-label { font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cal-post .post-text { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-post .acc-names { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-side .card + .card { margin-top: 12px; }
@media (max-width: 1100px) { .cal-day { padding: 5px 4px; } .cal-post { font-size: 11px; padding: 3px 4px; } }

/* menu du haut : pages principales + menus Réglages et utilisateur */
.topbar { gap: 16px; }
.topbar nav { flex: 1; min-width: 0; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--surface-2); }
.menu summary.active { color: var(--teal-strong); background: var(--tint); }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(36, 45, 54, 0.12); padding: 6px; z-index: 30; }
.menu-panel.right { left: auto; right: 0; min-width: 220px; }
.menu-panel a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.menu-panel a small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel a.active { background: var(--tint); color: var(--teal-strong); }
.menu-who { font-size: 12px; color: var(--ink-3); padding: 8px 10px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.user-menu summary { padding: 4px; }
.initials { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--tint); color: var(--teal-strong); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.new-pub .btn { padding: 8px 14px; }
@media (max-width: 900px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .brand span { display: none; }
  .topbar nav a { padding: 8px 8px; }
}
@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; height: auto; padding-bottom: 6px; }
  .topbar nav { order: 5; flex-basis: 100%; }
}
@media (max-width: 900px) {
  .topbar nav { gap: 0; }
  .topbar nav a, .menu summary { padding: 7px 7px; font-size: 13px; }
  .new-pub .btn { padding: 7px 10px; font-size: 13px; }
}

/* colonne de droite des calendriers : un seul bloc collant, qui défile d'un tenant (plus de cartes qui se chevauchent) */
.cal-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px; padding-right: 2px; }
.cal-side .card { position: static; max-height: none; overflow: visible; margin-bottom: 0; }
.cal-side .card + .card { margin-top: 0; }
@media (max-width: 680px) { .cal-side { position: static; max-height: none; overflow: visible; } }
