/* marketing-v2.css — кабинет маркетолога (KSH-459): только то, чего нет в client-v2.css, lk-widgets.css, manager-v2.css, designer-v2.css и procurement-v2.css. Токены — lk-tokens.css. */
.mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-card { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.mk-card.is-over { box-shadow: inset 3px 0 0 var(--late, #94632A); }
.mk-card .cv-chead { justify-content: space-between; }
.mk-card .cv-chead > span { flex: none; }
.mk-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.mk-meta > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; min-width: 0; }
.mk-meta dt { font-size: 12px; color: var(--muted); }
.mk-meta dd { margin: 0; font-size: 14px; color: var(--text); text-align: left; overflow-wrap: anywhere; }
.mk-book { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); }
.mk-sel { flex: 0 1 220px; }
.mk-link { all: unset; cursor: pointer; display: block; }
.mk-link:hover { text-decoration: underline; }
.mk-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mk-chip { font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: inherit; cursor: pointer; }
.mk-chip.on { background: var(--text, #111); border-color: var(--text, #111); color: #fff; }
.mk-chip:disabled { cursor: default; opacity: .6; }
.mk-form { margin-top: 16px; }
.mk-form .cv-ta { width: 100%; box-sizing: border-box; }
.mk-thw { position: relative; display: inline-block; }
.mk-x { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.mk-pick { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.dz-th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-foot { border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 18px; }
/* медиатека */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.mk-m { position: relative; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: #fff; min-width: 0; }
.mk-m.on { border-color: var(--text, #111); box-shadow: 0 0 0 1px var(--text, #111); }
.mk-mph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.mk-mph img, .mk-mph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; }
.mk-flag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 500; }
.mk-ck { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .92); cursor: pointer; }
.mk-ck input { width: 17px; height: 17px; margin: 0; accent-color: var(--text, #111); cursor: pointer; }
.mk-mtx { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.mk-mtx .t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mtx .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-mrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; }
.mk-mrow a { text-decoration: none; }
.mk-tg { display: flex; gap: 8px; align-items: center; font-size: 13px; min-height: 28px; cursor: pointer; }
.mk-tg input { accent-color: var(--text, #111); }
.mk-deal { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px solid var(--hair); margin-top: 4px; }
.mk-deal .mk-sel { flex: none; width: 100%; box-sizing: border-box; font-size: 13px; padding: 7px 10px; }
.mk-warn { color: var(--late, #94632A); white-space: normal !important; }
.mk-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .78); cursor: zoom-out; }
.mk-lb img, .mk-lb video { max-width: 92vw; max-height: 88vh; border-radius: 12px; display: block; }
/* главная: свежие материалы */
.mk-fresh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mk-fr { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.mk-fr img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; background: var(--surface); }
.mk-fr .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-fr .t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-fr .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .mk-cards { grid-template-columns: minmax(0, 1fr); }
  .mk-fresh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .mk-sel { flex: 1 1 100%; }
  .mk-form label[style] { grid-column: 1 / -1 !important; }
}
