/* Validation — feuille de style (neutre, couleur principale via --accent) */
:root {
  --accent: #1f2937;
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e4e4e0;
  --radius: 12px;
  --draft: #8a8a8a;
  --pending: #c27c0e;
  --pending-bg: #fdf3e1;
  --changes: #c0392b;
  --changes-bg: #fbe9e7;
  --approved: #1e8a4c;
  --approved-bg: #e5f5ec;
  --wa: #1fa855;
  --ig-blue: #00376b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1 { font-size: 1.6rem; margin: .1em 0 .2em; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 0; }
.h2 { font-size: 1.4rem; margin: 0 0 .3em; }
.h3 { font-size: 1.05rem; margin: 0 0 .8em; }
.h4 { font-size: .95rem; margin: 1.4em 0 .6em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.icon { vertical-align: -0.2em; flex-shrink: 0; }
.is-hidden, [hidden] { display: none !important; }

/* ---- Barre du haut ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { text-decoration: none; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; }
.brand img { max-height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { color: var(--text); }
.nav form { margin: 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 24px; }

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: #c9c9c4; background: #fafaf8; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.12); }
.btn-danger { color: var(--changes); }
.btn-danger:hover { background: var(--changes-bg); border-color: var(--changes); }
.btn-warn { background: var(--changes); border-color: var(--changes); color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa); filter: brightness(1.08); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.btn-sm { padding: 6px 11px; font-size: .84rem; }
.btn-lg { padding: 13px 18px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }
.btn.is-active { background: var(--text); color: #fff; border-color: var(--text); }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
button.link:hover { color: var(--text); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---- Cartes, mises en page ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.narrow { max-width: 480px; margin: 40px auto; }
.empty { color: var(--muted); text-align: center; padding: 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.danger-zone { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); }

/* ---- Formulaires ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; line-height: 1.5; }
input[type=color] { width: 70px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 600; padding: 0 6px; font-size: .92rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row .w-small { max-width: 110px; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.inline-checks { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
.prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.prefix span { padding: 0 4px 0 12px; color: var(--muted); }
.prefix input { border: 0; padding-left: 2px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; cursor: pointer; align-items: center; }
.dropzone:hover { border-color: var(--accent); }
.dropzone input { max-width: 100%; }
.filelist { list-style: none; padding: 0; margin: 4px 0 0; text-align: left; }
.counter.over { color: var(--changes); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; }
.checks li { padding: 2px 0; }
.checks .ok { color: var(--approved); }
.checks .ko { color: var(--changes); }
.logo-preview { max-height: 60px; width: auto; background: #f1f1ee; padding: 6px; border-radius: 6px; }

/* ---- Messages ---- */
.flash { padding: 11px 15px; border-radius: 9px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.flash-success { background: var(--approved-bg); border-color: #b9e2c9; color: #155e35; }
.flash-error { background: var(--changes-bg); border-color: #f2c4bd; color: #8c2a20; }
.flash-info { background: #eef2f7; border-color: #d4dde9; color: #2c3e57; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.notice-pending { background: var(--pending-bg); border-color: #f1d9a8; justify-content: flex-start; }
.notice-pending a { text-decoration: none; }

/* ---- Badges / statuts ---- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #efefec; color: #444; white-space: nowrap; }
.badge-draft { background: #ececea; color: var(--draft); }
.badge-pending { background: var(--pending-bg); color: var(--pending); }
.badge-changes { background: var(--changes-bg); color: var(--changes); }
.badge-approved { background: var(--approved-bg); color: var(--approved); }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.net-instagram { color: #c13584; } .net-facebook { color: #1877f2; } .net-tiktok { color: #111; } .net-linkedin { color: #0a66c2; }

/* ---- Avatars ---- */
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 86px; height: 86px; font-size: 2rem; }
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; background: #e7e7e3; color: #555; font-weight: 700; }
.client-id { display: flex; align-items: center; gap: 12px; }

/* ---- Tableau de bord ---- */
.dash { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.client-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.client-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s; }
.client-card + .client-card { margin-top: 0; }
.client-card:hover { border-color: var(--accent); }
.feed { padding: 6px 18px; }
.feed-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.feed-item:last-child { border: 0; }
.feed-item.is-new { position: relative; }
.feed-item.is-new::before { content: ""; position: absolute; left: -11px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--changes); }
blockquote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--line); color: #444; background: #fafaf8; border-radius: 0 6px 6px 0; }

/* ---- Client & accès ---- */
.user-list { list-style: none; margin: 0; padding: 0; }
.user-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.credentials { border-color: var(--wa); margin-bottom: 20px; }
.credentials pre { background: #f6f6f4; padding: 12px; border-radius: 8px; white-space: pre-wrap; font-size: .88rem; }

/* ---- Calendrier ---- */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav h2 { min-width: 170px; text-align: center; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { background: #fafaf8; padding: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-day { background: var(--card); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.out { background: #fbfbfa; }
.cal-day.out .cal-date span { color: #c3c3bd; }
.cal-day.today .cal-date span { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; }
.cal-date { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 600; }
.cal-add { opacity: 0; color: var(--muted); text-decoration: none; padding: 2px; border-radius: 4px; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-add:hover { background: #eee; color: var(--text); }
.chip { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: .78rem; border-radius: 7px; padding: 3px; background: #f4f4f2; border-left: 3px solid var(--draft); overflow: hidden; }
.chip:hover { filter: brightness(.97); }
.chip-thumb { width: 30px; height: 30px; border-radius: 5px; overflow: hidden; background: #e6e6e2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #888; }
.chip-thumb img, .chip-thumb video { width: 100%; height: 100%; object-fit: cover; }
.chip-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pending { border-left-color: var(--pending); background: var(--pending-bg); }
.st-changes { border-left-color: var(--changes); background: var(--changes-bg); }
.st-approved { border-left-color: var(--approved); background: var(--approved-bg); }
.st-draft { border-left-color: var(--draft); }
.st-draft .chip-txt { color: var(--muted); }
.cal-list { display: none; }
.cal-list.is-forced { display: block; }
.list-item { display: flex; align-items: center; gap: 14px; text-decoration: none; border-left-width: 4px; padding: 12px; }
.list-item + .list-item { margin-top: 10px; }
.list-item.st-pending, .list-item.st-changes, .list-item.st-approved { background: var(--card); }
.list-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #ececea; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #888; }
.list-thumb img, .list-thumb video { width: 100%; height: 100%; object-fit: cover; }
.list-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.list-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #555; }

/* ---- Formulaire de publication ---- */
.post-form { max-width: 820px; }
.media-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.media-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.media-list li > .small { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.media-thumb { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: #ececea; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }

/* ---- Page publication ---- */
.post-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.post-preview { position: sticky; top: 84px; }
.decision { border: 2px solid var(--accent); }
.decision form { margin: 0 0 10px; }
.changes summary { list-style: none; }
.changes summary::-webkit-details-marker { display: none; }
.changes[open] summary { margin-bottom: 12px; }
.ok-big { color: var(--approved); font-weight: 600; margin: 0 0 10px; display: flex; gap: 8px; align-items: flex-start; }
.caption-view { white-space: normal; overflow-wrap: anywhere; }
.comments { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.comment { padding: 10px 12px; border-radius: 10px; max-width: 92%; overflow-wrap: anywhere; }
.from-agency { background: #f1f1ee; }
.from-client { background: var(--pending-bg); align-self: flex-end; }
.history summary { cursor: pointer; margin: 0; }
.history[open] summary { margin-bottom: 10px; }
.hist-item { padding: 8px 0; border-top: 1px solid var(--line); }
.diff { margin-top: 6px; display: grid; gap: 4px; }
.diff del { background: var(--changes-bg); text-decoration: line-through; padding: 4px 8px; border-radius: 6px; color: #7d2d24; }
.diff ins { background: var(--approved-bg); text-decoration: none; padding: 4px 8px; border-radius: 6px; color: #155e35; }

/* ---- Aperçu Instagram ---- */
.phone { background: #fff; border: 1px solid #dbdbdb; border-radius: 22px; overflow: hidden; max-width: 400px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: .88rem; }
.ig-more { margin-left: auto; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d62976; font-size: .8rem; flex-shrink: 0; }
.ig-media { position: relative; background: #000; overflow: hidden; }
.ig-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.ig-slides::-webkit-scrollbar { display: none; }
.ig-slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.ig-slide img, .ig-slide video { width: 100%; height: 100%; object-fit: cover; }
.ig-empty-media, .ig-processing { color: #bbb; font-size: .9rem; text-align: center; padding: 20px; background: #f3f3f3; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ig-processing { background: #222; color: #ddd; }
.ig-counter { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 99px; }
.ig-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #262626; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); padding: 0; }
.ig-nav:hover { background: #fff; }
.ig-nav[hidden] { display: none; }
.ig-prev { left: 10px; }
.ig-next { right: 10px; }
.ig-vertical .ig-next { right: 10px; }
.ig-actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; position: relative; }
.ig-save { margin-left: auto; }
.ig-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.ig-dots span { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.ig-dots span.on { background: #0095f6; }
.ig-caption { padding: 4px 12px; font-size: .88rem; overflow-wrap: anywhere; }
.ig-tags { color: var(--ig-blue); overflow-wrap: anywhere; }
.ig-time { padding: 2px 12px 14px; color: #8e8e8e; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; }
.phone:has(.ig-vertical) { max-width: 320px; }
.ig-vertical { position: relative; aspect-ratio: 9 / 16; background: #000; color: #fff; }
.ig-vertical .ig-slides { position: absolute; inset: 0; }
.ig-vertical .ig-slide img, .ig-vertical .ig-slide video { object-fit: cover; }
.ig-story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.ig-story-bars span { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); }
.ig-story-bars span.on { background: #fff; }
.ig-story-head { position: absolute; top: 20px; left: 12px; display: flex; align-items: center; gap: 8px; font-size: .85rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ig-story-head span { opacity: .75; }
.ig-reel-side { position: absolute; right: 10px; bottom: 90px; display: flex; flex-direction: column; gap: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); pointer-events: none; }
.ig-reel-foot { position: absolute; left: 0; right: 50px; bottom: 0; padding: 40px 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,.55)); font-size: .85rem; pointer-events: none; }
.ig-reel-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ig-follow { border: 1px solid rgba(255,255,255,.7); border-radius: 7px; padding: 1px 8px; font-size: .78rem; }
.ig-reel-caption { max-height: 4.5em; overflow: hidden; overflow-wrap: anywhere; }
.ig-reel-caption .ig-tags { color: #fff; font-weight: 600; }
.ig-dots-over { top: auto; bottom: 8px; }
.ig-vertical video { pointer-events: auto; }

/* ---- Aperçu du feed (profil Instagram) ---- */
.igp { max-width: 430px; border-radius: 28px; padding-top: 18px; }
.igp-top { display: flex; align-items: center; gap: 22px; padding: 4px 18px 12px; }
.igp-avatar { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-size: 2rem; }
.igp-right { flex: 1; min-width: 0; }
.igp-name { font-size: .98rem; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.igp-stats div { display: flex; flex-direction: column; line-height: 1.2; }
.igp-stats strong { font-size: 1.05rem; }
.igp-stats span { font-size: .85rem; }
.igp-bio { padding: 0 18px 6px; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.igp-bio u { text-underline-offset: 2px; }
.igp-link { display: flex; align-items: center; gap: 8px; padding: 2px 18px 8px; font-size: .88rem; color: #262626; }
.igp-link svg { color: #5b8aa6; flex-shrink: 0; }
.igp-hint { padding: 0 18px; }
.igp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; padding: 12px 0 10px; color: #262626; border-bottom: 1px solid #efefef; margin-top: 6px; }
.igp-tabs .on { color: #4a90a8; }
.igp-nav { display: flex; justify-content: space-around; align-items: center; padding: 14px 8px 22px; border-top: 1px solid #efefef; color: #262626; }
.igp-nav img, .igp-nav .avatar-ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-block; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-cell { position: relative; aspect-ratio: 4 / 5; background: #eee; overflow: hidden; display: block; border: 0; -webkit-user-drag: element; }
.ig-cell img, .ig-cell video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.ig-cell > .icon { position: absolute; inset: 0; margin: auto; color: #999; }
.ig-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #999; font-size: .8rem; }
.ig-flag { position: absolute; top: 7px; right: 7px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ig-label { position: absolute; bottom: 5px; left: 5px; display: none; align-items: center; gap: 5px; font-size: .7rem; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 1px 6px; }
.show-labels .ig-label { display: inline-flex; }
.ig-label .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.st-pending .ig-label .dot { background: #f5b041; }
.st-changes .ig-label .dot { background: #ff6b5b; }
.st-approved .ig-label .dot { background: #4cd486; }
.st-draft .ig-label .dot { background: #bbb; }
.show-labels .ig-cell.is-planned { outline: 2px solid transparent; outline-offset: -2px; }
.show-labels .ig-cell.is-live { opacity: .75; }
[data-sortable] .is-planned { cursor: grab; }
.is-dragging { opacity: .35; }
.ig-empty { grid-column: 1 / -1; padding: 30px; text-align: center; }

/* Feed actuel (fiche client) et ordre des médias */
.feed-edit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feed-edit li { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #eee; cursor: grab; }
.feed-edit img { width: 100%; height: 100%; object-fit: cover; }
.feed-edit-actions { position: absolute; bottom: 4px; left: 4px; right: 4px; display: flex; gap: 4px; justify-content: center; }
.feed-edit-actions .btn { padding: 3px 8px; }
.media-list[data-sortable] li { cursor: grab; background: #fff; }
.media-list li:first-child .media-thumb { outline: 2px solid var(--accent); outline-offset: 1px; }
.cover-tag { font-size: .7rem; font-weight: 600; color: var(--accent); }
.row.row-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Pages sans menu (connexion, installation) ---- */
.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.bare-box { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.bare-brand { text-align: center; margin-bottom: 22px; font-size: 1.2rem; }
.bare-brand img { max-height: 60px; width: auto; margin: 0 auto; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .dash, .two-cols, .post-layout { grid-template-columns: 1fr; }
  .post-preview { position: static; }
}
@media (max-width: 760px) {
  .container { padding: 16px; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .nav { gap: 12px; font-size: .86rem; }
  h1 { font-size: 1.35rem; }
  .cal-grid { display: none; }
  .cal-list { display: block; }
  .hide-mobile { display: none; }
  .row { grid-template-columns: 1fr; }
  .month-nav h2 { min-width: 0; font-size: 1.1rem; }
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-toolbar .actions .btn { width: 100%; }
  .cal-toolbar .actions form { width: 100%; }
  .month-nav { justify-content: space-between; }
  .bare-box { padding: 22px; }
}
