/* ============ MODULE MARKETING ============ */
/* Chargé après admin.css : mêmes tokens, mêmes cartes blanches. */

.badge-purple { background: rgba(124,58,237,0.1); color: var(--brand-purple); }
.badge-teal { background: rgba(13,148,136,0.1); color: #0d9488; }
.text-red { color: var(--red); font-weight: 600; }
.text-faint { color: var(--text-faint); }
.nowrap { white-space: nowrap; }

/* ----- Sélecteur de profil (barre latérale) ----- */
.profile-switcher { position: relative; padding: 12px 12px 0; }
.profile-switcher summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--white);
}
.profile-switcher summary::-webkit-details-marker { display: none; }
.profile-switcher summary:hover { border-color: var(--navy); }
.profile-switcher[open] summary { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,0.12); }
.ps-current { flex: 1; min-width: 0; line-height: 1.2; }
.ps-current small { display: block; font-size: 0.66rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.ps-current strong { display: block; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-chevron { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.ps-logo { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; }
.ps-logo img, .ps-logo span {
  width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: var(--bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; font-weight: 800;
}
.ps-panel {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); z-index: 120;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(15,23,42,0.16); padding: 8px; max-height: 60vh; overflow-y: auto;
}
.ps-search { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; margin-bottom: 6px; }
.ps-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); padding: 8px 8px 4px; }
.ps-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 6px 8px; border: none; background: none; border-radius: 6px;
  font-size: 0.86rem; color: var(--text); text-align: left;
}
.ps-item:hover { background: var(--bg-alt); }
.ps-item.selected { background: var(--navy-tint); color: var(--navy); font-weight: 600; }
.ps-item.ps-child { padding-left: 22px; }
.ps-item.ps-inactive { color: var(--text-faint); }
.ps-item .ps-logo, .ps-item .ps-logo img, .ps-item .ps-logo span { width: 24px; height: 24px; }
.ps-add {
  display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px;
  border-top: 1px solid var(--border); color: var(--navy); font-size: 0.85rem; font-weight: 600;
}
.ps-add svg { width: 15px; height: 15px; }

/* ----- Barre du haut : profil actif + cloche ----- */
.topbar-profile {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px; border-radius: 100px; background: var(--bg-alt);
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim); white-space: nowrap;
}
.topbar-profile img, .topbar-profile i { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; display: inline-block; background: var(--white); }
.topbar-bell { position: relative; display: flex; padding: 8px; border-radius: 50%; color: var(--text-dim); }
.topbar-bell:hover, .topbar-bell.active { background: var(--bg-alt); color: var(--navy); }
.topbar-bell svg { width: 20px; height: 20px; }
.topbar-bell-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 100px; background: var(--red); color: #fff; font-size: 0.66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ----- Repères communs ----- */
.pf {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 4px; border-radius: 4px;
  color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; vertical-align: middle;
}
.pf + .pf { margin-left: 2px; }
.profile-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.74rem; font-weight: 600; color: var(--text-dim);
  background: var(--bg-alt); border-radius: 100px; padding: 2px 9px 2px 7px; white-space: nowrap;
}
.profile-tag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pillar-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--text-dim); }
.pillar-tag i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.prio { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.prio-high { background: var(--red); }
.prio-medium { background: var(--orange); }
.prio-low { background: var(--gray); }
.avatar-stack { display: inline-flex; }
.avatar-stack .member-avatar { margin-left: -6px; }
.avatar-stack .member-avatar:first-child { margin-left: 0; }
.member-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.overdue { color: var(--red) !important; font-weight: 700; }
.muted-row td { opacity: 0.6; }

.mk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.mk-tabs a {
  padding: 10px 14px; font-size: 0.88rem; font-weight: 600; color: var(--text-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.mk-tabs a:hover { color: var(--text); }
.mk-tabs a.active { color: var(--navy); border-bottom-color: var(--navy); }

.mk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mk-toolbar .left, .mk-toolbar .right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.mk-filters select, .mk-filters input { width: auto; min-width: 130px; padding: 7px 10px; font-size: 0.84rem; }
.mk-filters label { font-size: 0.72rem; margin-bottom: 3px; }
.mk-filters .field { display: flex; flex-direction: column; }
.mk-filters input[type="checkbox"] { min-width: 0; }
.saved-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; font-size: 0.8rem; }
.saved-filters .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 100px; background: var(--navy-tint); color: var(--navy); font-weight: 600; }
.saved-filters .chip button { border: none; background: none; color: var(--text-faint); padding: 0 4px; font-size: 0.9rem; }

.section-title { font-size: 1.02rem; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title a { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.mk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mk-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mk-grid-2 > .card, .mk-grid-3 > .card { margin-top: 0; }
.stack > * + * { margin-top: 20px; }
.stats-grid-6 { grid-template-columns: repeat(6, 1fr); }
.stats-grid-6 .stat-card { padding: 16px; }
.stats-grid-6 .stat-value { font-size: 1.5rem; }
a.stat-card:hover { border-color: var(--navy); }
.stat-value.red { color: var(--red); }

.mk-list { display: flex; flex-direction: column; }
.mk-list-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.mk-list-item:last-child { border-bottom: none; }
a.mk-list-item:hover { background: var(--bg-alt); }
.mk-list-item .grow { flex: 1; min-width: 0; }
.mk-list-item .title { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-list-item .meta { font-size: 0.76rem; color: var(--text-faint); }
.mk-date-box {
  width: 44px; flex-shrink: 0; text-align: center; border-radius: 8px; background: var(--bg-alt); padding: 4px 0;
  font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; font-weight: 700; line-height: 1.2;
}
.mk-date-box strong { display: block; font-size: 1rem; color: var(--text); }

.figure-row { display: flex; gap: 12px; flex-wrap: wrap; }
.figure { flex: 1; min-width: 120px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.figure .label { font-size: 0.74rem; color: var(--text-faint); }
.figure .value { font-size: 1.25rem; font-weight: 800; }
.change-up { color: var(--green); font-size: 0.76rem; font-weight: 700; }
.change-down { color: var(--red); font-size: 0.76rem; font-weight: 700; }
.change-flat { color: var(--text-faint); font-size: 0.76rem; }

.budget-bar { height: 12px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.budget-bar > span { display: block; height: 100%; background: var(--navy); border-radius: 100px; }
.budget-bar.warn > span { background: var(--orange); }
.budget-bar.over > span { background: var(--red); }
.warning-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700;
  color: var(--orange); background: var(--orange-tint); border-radius: 100px; padding: 2px 8px; white-space: nowrap;
}
.warning-badge.over { color: var(--red); background: var(--red-tint); }

/* ----- Graphiques SVG ----- */
.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { fill: var(--text-faint); font-size: 11px; font-family: inherit; }
.chart-value { fill: var(--text-dim); font-size: 10.5px; font-weight: 600; font-family: inherit; }
.chart-empty { color: var(--text-faint); font-size: 0.85rem; padding: 28px 0; text-align: center; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-dim); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ----- Calendrier de contenu ----- */
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h2 { font-size: 1.05rem; min-width: 170px; text-align: center; text-transform: capitalize; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.cal-head { padding: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-faint); background: var(--bg-alt); text-align: center; }
.cal-day { min-height: 112px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n + 1) { border-left: none; }
.cal-day.other { background: #fbfcfd; }
.cal-day.other .cal-num { color: #b6c0cc; }
.cal-day.today .cal-num { background: var(--navy); color: #fff; }
.cal-day.drop-over, .cal-slot.drop-over, .mk-col-body.drop-over { background: var(--navy-tint); }
.cal-num-row { display: flex; justify-content: space-between; align-items: center; }
.cal-num { font-size: 0.76rem; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); }
.cal-add { opacity: 0; font-size: 1rem; color: var(--text-faint); line-height: 1; padding: 0 4px; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-chip {
  display: flex; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 5px;
  font-size: 0.74rem; line-height: 1.25; background: var(--bg-alt); border-left: 3px solid var(--gray);
  color: var(--text); cursor: grab; min-width: 0;
}
.cal-chip:hover { background: #e3e8f0; }
.cal-chip .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cal-chip .h { color: var(--text-faint); font-size: 0.68rem; flex-shrink: 0; }
.cal-chip.dragging { opacity: 0.4; }
.cal-more { font-size: 0.7rem; color: var(--text-faint); padding-left: 4px; }
.st-idea { border-left-color: var(--gray) !important; }
.st-scripting { border-left-color: var(--navy) !important; }
.st-production { border-left-color: var(--brand-purple) !important; }
.st-approval { border-left-color: var(--orange) !important; }
.st-approved { border-left-color: var(--green) !important; }
.st-scheduled { border-left-color: #0d9488 !important; }
.st-published { border-left-color: var(--green) !important; background: var(--green-tint) !important; }
.st-cancelled { border-left-color: var(--border-strong) !important; text-decoration: line-through; color: var(--text-faint) !important; }
.st-overdue { border-left-color: var(--red) !important; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.74rem; color: var(--text-dim); margin-top: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; border-left: 3px solid; background: var(--bg-alt); }

.cal-week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.cal-week .cal-head.today { color: var(--navy); background: var(--navy-tint); }
.cal-hour { font-size: 0.7rem; color: var(--text-faint); text-align: right; padding: 4px 6px; border-top: 1px solid var(--border); }
.cal-slot { border-top: 1px solid var(--border); border-left: 1px solid var(--border); min-height: 44px; padding: 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-unscheduled { margin-top: 16px; }

.mk-board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.mk-col { flex: 1 0 200px; min-width: 200px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 230px); }
.mk-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: 0.85rem; font-weight: 700; }
.mk-col-head .count { margin-left: auto; font-size: 0.7rem; color: var(--text-faint); background: var(--white); border-radius: 100px; padding: 1px 8px; }
.mk-col-head i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mk-col-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 40px; flex: 1; border-radius: 8px; }
.mk-card {
  display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; cursor: grab; position: relative; color: var(--text);
}
.mk-card:hover { border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.mk-card.dragging { opacity: 0.4; }
.mk-card-title { font-size: 0.86rem; font-weight: 600; line-height: 1.35; margin: 6px 0 8px; }
.mk-card-top { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.mk-card-foot { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--text-faint); }
.mk-card-foot .sp { margin-left: auto; }
.mk-card-foot svg { width: 13px; height: 13px; vertical-align: -2px; }
.mk-card-prio { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; }
.mk-card-prio.high { background: var(--red); }
.mk-card-prio.medium { background: var(--orange); }
.mk-card-prio.low { background: var(--gray); }

/* ----- Pages de détail ----- */
.mk-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mk-detail > div > .card + .card { margin-top: 20px; }
.mk-side .card { padding: 20px; }
.mk-side .card + .card { margin-top: 16px; }
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-list .k { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 2px; }
.info-list .v { font-size: 0.9rem; }
.prose { white-space: pre-wrap; word-break: break-word; font-size: 0.92rem; line-height: 1.6; }
.prose-empty { color: var(--text-faint); font-size: 0.86rem; font-style: italic; }

.status-steps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.status-steps span {
  flex: 1; min-width: 70px; text-align: center; font-size: 0.7rem; font-weight: 700; padding: 6px 4px;
  background: var(--bg-alt); color: var(--text-faint); border-radius: 4px;
}
.status-steps span.done { background: var(--navy-tint); color: var(--navy); }
.status-steps span.current { background: var(--navy); color: #fff; }
.status-steps.cancelled span { opacity: 0.5; }

.char-counters { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.74rem; color: var(--text-faint); margin-top: 4px; }
.char-counters .over { color: var(--red); font-weight: 700; }
.platform-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-checks label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: 0.84rem;
  border: 1px solid var(--border-strong); border-radius: 100px; padding: 5px 12px; cursor: pointer; color: var(--text);
}
.platform-checks input { width: auto; }
.platform-checks label:has(input:checked) { border-color: var(--navy); background: var(--navy-tint); color: var(--navy); }

.approval-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.approval-box.pending { border-color: var(--orange); background: var(--orange-tint); }
.approval-box.ok { border-color: var(--green); background: var(--green-tint); }
.approval-box.changes { border-color: var(--red); background: var(--red-tint); }

.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perf-grid label { font-size: 0.74rem; }
.perf-grid input { padding: 7px 9px; }

/* ----- Fil : commentaires, pièces jointes, historique ----- */
.thread-comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.thread-comment:last-of-type { border-bottom: none; }
.thread-comment .body { flex: 1; min-width: 0; }
.thread-comment .who { font-size: 0.8rem; font-weight: 700; }
.thread-comment .when { font-size: 0.72rem; color: var(--text-faint); font-weight: 400; margin-left: 6px; }
.thread-comment .txt { font-size: 0.88rem; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.thread-comment .txt .mention { color: var(--navy); font-weight: 600; }
.thread-comment form { margin-left: auto; }
.thread-comment .del { border: none; background: none; color: var(--text-faint); font-size: 0.74rem; padding: 0; }
.thread-comment .del:hover { color: var(--red); }
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }
.attach-item svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.attach-item a.name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-item .size { font-size: 0.74rem; color: var(--text-faint); }
.attach-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attach-forms form { display: flex; gap: 6px; }
.attach-forms input[type="file"] { font-size: 0.8rem; padding: 6px; }
.activity-list { list-style: none; font-size: 0.8rem; color: var(--text-dim); }
.activity-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.activity-list li:last-child { border-bottom: none; }
.activity-list time { color: var(--text-faint); font-size: 0.72rem; display: block; }

.checklist-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.88rem; }
.checklist-item input[type="checkbox"] { width: auto; }
.checklist-item.done span { text-decoration: line-through; color: var(--text-faint); }
.checklist-item form { display: inline; }
.checklist-item .del { margin-left: auto; border: none; background: none; color: var(--text-faint); }

/* ----- Stratégie ----- */
.strategy-block + .strategy-block { margin-top: 20px; }
.strategy-block h2 { font-size: 1.02rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.strategy-block h2 .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--navy-tint); color: var(--navy);
  font-size: 0.76rem; display: inline-flex; align-items: center; justify-content: center;
}
.strategy-block h2 .edit { margin-left: auto; }
.tone-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tone-cols .do { border-left: 3px solid var(--green); padding-left: 12px; }
.tone-cols .dont { border-left: 3px solid var(--red); padding-left: 12px; }
.pillar-share { height: 10px; border-radius: 100px; overflow: hidden; display: flex; background: var(--bg-alt); margin: 4px 0 14px; }
.pillar-share span { display: block; height: 100%; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.roadmap-month { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; border-top: 3px solid var(--navy); font-size: 0.85rem; }
.roadmap-month h3 { font-size: 0.9rem; text-transform: capitalize; margin-bottom: 6px; }
.roadmap-month .k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; }
.inline-edit { display: none; margin-top: 12px; }
.inline-edit.open { display: block; }
.row-form { display: grid; gap: 8px; align-items: end; }
.row-form input, .row-form select, .row-form textarea { padding: 8px 10px; font-size: 0.85rem; }

/* ----- Ressources de marque ----- */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 120px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.78rem; }
.swatch .color { height: 64px; }
.swatch .lbl { padding: 6px 8px; }
.swatch .lbl strong { display: block; font-size: 0.8rem; }
.swatch button { border: none; background: none; color: var(--navy); font-size: 0.74rem; padding: 0; font-weight: 600; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.asset { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.asset .thumb { height: 120px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.asset .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.asset .thumb svg { width: 34px; height: 34px; color: var(--text-faint); }
.asset .info { padding: 8px 10px; font-size: 0.8rem; flex: 1; }
.asset .info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset .actions { display: flex; gap: 4px; padding: 0 8px 8px; flex-wrap: wrap; }
.asset .actions .btn { padding: 4px 8px; font-size: 0.72rem; }
.folder-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* ----- Rapports ----- */
.report-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.report-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.report-head .ph { width: 64px; height: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.report-head h2 { font-size: 1.3rem; }
.report-head p { color: var(--text-faint); font-size: 0.88rem; }
.share-box { display: flex; gap: 8px; align-items: center; }
.share-box input { flex: 1; font-size: 0.8rem; }

/* ----- Notifications ----- */
.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-top: 7px; flex-shrink: 0; }
.notif-item.read .dot { background: transparent; }
.notif-item.read .msg { color: var(--text-faint); }
.notif-item .msg { font-size: 0.9rem; flex: 1; }
.notif-item time { font-size: 0.74rem; color: var(--text-faint); white-space: nowrap; }

.profile-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.profile-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; border-top: 3px solid var(--navy); }
.profile-card:hover { border-color: var(--border-strong); }
.profile-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile-card .top img, .profile-card .top .ph { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.profile-card h3 { font-size: 1rem; }
.profile-card .meta { font-size: 0.8rem; color: var(--text-faint); }
.logo-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

@media (max-width: 1100px) {
  .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .mk-detail { grid-template-columns: 1fr; }
  /* Sur mobile, infos et approbation avant le fil de discussion. */
  .mk-detail > .mk-side { order: -1; }
  .mk-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mk-grid-2, .mk-grid-3, .tone-cols, .attach-forms { grid-template-columns: 1fr; }
  .topbar-profile { display: none; }
  .cal-day { min-height: 84px; }
  .cal-chip .h { display: none; }
}
@media (max-width: 700px) {
  .stats-grid-6 { grid-template-columns: 1fr 1fr; }
  .cal-month, .cal-week { min-width: 680px; }
  .cal-scroll { overflow-x: auto; }
  .mk-col { flex-basis: 82vw; width: 82vw; }
}

/* Types de champs absents de la règle de base d'admin.css */
:where(input[type="url"], input[type="search"], input[type="datetime-local"], input[type="time"], input[type="month"]) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}
.dot-gray { background: var(--gray); }
.dot-navy { background: var(--navy); }
.dot-purple { background: var(--brand-purple); }
.dot-orange { background: var(--orange); }
.dot-green { background: var(--green); }
.dot-teal { background: #0d9488; }
.dot-red { background: var(--red); }

.mk-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); opacity: 0; z-index: 500;
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 0.86rem; font-weight: 600;
  transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(15,23,42,0.25);
}
.mk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mk-toast.error { background: var(--red); }
tr.inline-edit.open { display: table-row; }
