/* Kanály › Marketing (js/modules/marketing.js): the posts of Instagram and Facebook as a grid of cards. The soft
   loading (bones, the fade, the quiet spinner) comes from css/mail.css. */
.mk-bar { align-items: center; min-height: 36px; }
.mk-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.mk-who__pic { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
.mk-who__name { font-weight: 600; color: var(--text-strong); }
.mk-who__handle, .mk-note { color: var(--text-muted); font-size: 13px; }
.mk-bar__side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mk-note--stale { color: var(--toast-warning, var(--text-muted)); }
.mk-reload { display: inline-grid; place-items: center; padding: 0; width: 34px; min-width: 34px; height: 34px; min-height: 34px; border-radius: 50%; }
.mk-reload svg { width: 15px; height: 15px; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mk-post { display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
a.mk-post:hover, a.mk-post:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text-strong) 22%, transparent); }
.mk-post__media { position: relative; aspect-ratio: 1 / 1; background: color-mix(in srgb, var(--text-strong) 6%, transparent); }
.mk-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-post__media--none { aspect-ratio: 5 / 1; }
.mk-post__media--ghost { background: linear-gradient(90deg, color-mix(in srgb, var(--text-strong) 5%, transparent) 25%, color-mix(in srgb, var(--text-strong) 11%, transparent) 50%, color-mix(in srgb, var(--text-strong) 5%, transparent) 75%);
  background-size: 200% 100%; animation: mail-shimmer 1.4s ease-in-out infinite; }
.mk-post__kind { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
  color: #fff; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); }
.mk-post__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 14px; flex: 1; }
.mail-ghost .mk-post__body { gap: 12px; }
.mk-post__text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-strong); white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.mk-post__text--none { color: var(--text-muted); }
.mk-post__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; font-size: 12.5px; color: var(--text-muted); }
.mk-stats { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-stat { display: inline-flex; align-items: center; gap: 5px; }
/* the icons are drawn as lines in the colour of the business; the numbers stay quiet */
.mk-stat svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mk-post__body { padding: 10px 12px; } .mk-post__text { -webkit-line-clamp: 3; line-clamp: 3; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .mk-post { transition: none; } .mk-post__media--ghost { animation: none; } a.mk-post:hover { transform: none; } }

/* The window of Metricool (js/shell/metricool.js): the layout of the window of Pošta, the cards of Marketing. */
.mc-win .chrome .tools { gap: 10px; }
.mc-period { width: auto; min-width: 92px; min-height: 36px; padding: 6px 28px 6px 10px; cursor: pointer; text-align: left; white-space: nowrap;
  background: var(--surface-1) no-repeat right 10px center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239d9da6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mc-period-wrap { position: relative; display: inline-flex; }
.mc-brand-pop.mc-period-pop { min-width: 100%; }
.mc-section { display: grid; gap: 12px; justify-items: start; }
.mc-section > .kpis { justify-self: stretch; }
.mc-section + .mc-section { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.mc-section__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mc-section__head h2 { margin: 0; font-size: 17px; color: var(--text-strong); }
.mc-plan { display: grid; gap: 10px; }
.mc-plan__row { display: grid; gap: 8px; padding: 14px 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); }
.mc-plan__when { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.mc-plan__text { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.mc-plan__nets { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-pill { padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); background: color-mix(in srgb, var(--text-strong) 8%, transparent); }
.mc-win .chrome .tools { margin-left: auto; }
/* the counts of the parts are plain numbers, not unread letters */
.mc-win .mail-count { background: color-mix(in srgb, var(--text-strong) 10%, transparent); color: var(--text-muted); }
/* a finger needs a larger target than a mouse */
@container win (max-width: 900px) { .mk-reload { width: 44px; min-width: 44px; height: 44px; min-height: 44px; } }
@media (max-width: 820px) { .mk-reload { width: 44px; min-width: 44px; height: 44px; min-height: 44px; } }
.mc-brand { max-width: 220px; }

/* the bar of Metricool as the bars of HRM and Pošta: the name takes the width of the side column, the search fills the
   row, the brand sits at the right end as a pill (with more brands the pill is the switch) */
.mc-win .chrome .brand { flex: none; width: 190px; min-width: 0; }
.mc-win .hrm-searchform { flex: 1 1 auto; }
.mc-user { padding-right: 8px; }
.mc-user__face { background: #bccb57; color: #2b2f12; }
.mc-brand { all: unset; box-sizing: border-box; max-width: 190px; padding: 0 22px 0 0; font: 600 13px/20px var(--font-sans, system-ui, sans-serif); color: var(--text-strong); cursor: pointer; text-overflow: ellipsis;
  background: no-repeat right 4px center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239d9da6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mc-brand { white-space: nowrap; overflow: hidden; display: inline-block; vertical-align: middle; }
.mc-brand:disabled { cursor: default; padding-right: 6px; background-image: none; opacity: 1; }
.mc-brand:focus-visible { outline: 2px solid var(--sys-blue); outline-offset: 2px; border-radius: 4px; }
/* the menu of the brands, always under the pill (14. 11. 2026) */
.mc-user { position: relative; }
.mc-brand-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px; max-width: 280px; max-height: 320px; overflow: auto; padding: 5px; border-radius: 11px; display: grid;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--line-strong, var(--line)); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.mc-brand-pop[hidden] { display: none; }
.mc-brand-pop__item { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 10px; border-radius: 7px; font: 400 13px/18px var(--font-sans, system-ui, sans-serif); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-brand-pop__item[aria-selected="true"] { font-weight: 600; }
.mc-brand-pop__item:hover, .mc-brand-pop__item:focus-visible { background: var(--sys-blue); color: #fff; }
@container win (max-width: 1100px) { .mc-user .mc-brand { max-width: 120px; } .mail-user.mc-user { padding: 5px 8px 5px 5px; } }
@media (max-width: 820px) { .mc-user .mc-brand { max-width: 120px; } .mail-user.mc-user { padding: 5px 8px 5px 5px; } }
@media (max-width: 820px) { .mc-win .hrm-searchform { flex: 1 1 100%; order: 3; } .mc-win .chrome .brand { flex: 1 1 0; width: auto; } .mc-brand { min-height: 34px; } }
