/*
 * An X-like Home column for screenshots and promo art. Only the frame is
 * ours: the block, mute and History elements inside use the extension's
 * real classes and ../../styles.css, so images show what users get.
 *
 * .mk-window has a transform, so the extension's position:fixed History
 * button and panel are placed inside the window, not the image.
 */

.mk-light { --mk-bg: #FFFFFF; --mk-text: rgb(15, 20, 25); --mk-muted: rgb(83, 100, 113); --mk-line: rgb(239, 243, 244);
  --mk-chrome: #EEF1F4; --mk-chrome-line: #DDE2E6; --mk-url: #FFFFFF; --mk-chrome-text: #44505B; }
.mk-dim { --mk-bg: rgb(21, 32, 43); --mk-text: rgb(247, 249, 249); --mk-muted: rgb(139, 152, 165); --mk-line: rgb(56, 68, 77);
  --mk-chrome: rgb(30, 42, 54); --mk-chrome-line: rgb(48, 61, 73); --mk-url: rgb(21, 32, 43); --mk-chrome-text: rgb(176, 186, 196); }
.mk-black { --mk-bg: #000000; --mk-text: rgb(231, 233, 234); --mk-muted: rgb(113, 118, 123); --mk-line: rgb(47, 51, 54);
  --mk-chrome: #16181C; --mk-chrome-line: #2A2D31; --mk-url: #000000; --mk-chrome-text: #A9AFB5; }

.mk-window {
  position: absolute;
  overflow: hidden;
  transform: translateZ(0);
  border-radius: 14px;
  background: var(--mk-bg);
  box-shadow: 0 40px 80px -24px rgba(15, 20, 25, 0.35), 0 0 0 1px rgba(15, 20, 25, 0.08);
}
.t-ink .mk-window, .t-red .mk-window {
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mk-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 14px 0 16px;
  background: var(--mk-chrome);
  border-bottom: 1px solid var(--mk-chrome-line);
}
.mk-dots { display: flex; gap: 8px; }
.mk-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mk-dots i + i { background: #FEBC2E; }
.mk-dots i + i + i { background: #28C840; }
.mk-url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--mk-url);
  color: var(--mk-chrome-text);
  font: 400 13px/1 var(--text);
}
.mk-url svg { width: 12px; height: 12px; opacity: 0.7; }
.mk-ext { width: 20px; height: 20px; }

.mk-page { position: absolute; inset: 44px 0 0 0; display: flex; background: var(--mk-bg); }
.mk-col {
  flex-shrink: 0;
  width: 600px;
  height: 100%;
  border: solid var(--mk-line);
  border-width: 0 1px;
  background: var(--mk-bg);
}

.mk-tabs { display: flex; height: 53px; border-bottom: 1px solid var(--mk-line); }
.mk-tab {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  color: var(--mk-muted);
  font: 500 15px/20px var(--text);
}
.mk-tab.on { color: var(--mk-text); font-weight: 700; }
.mk-tab.on::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
}

.mk-post {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mk-line);
  background: var(--mk-bg);
}
.mk-av {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font: 700 15px/1 var(--text);
}
.mk-main { flex: 1; min-width: 0; }
.mk-head { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.mk-who { display: flex; gap: 4px; overflow: hidden; font: 15px/20px var(--text); white-space: nowrap; }
.mk-who b { color: var(--mk-text); font-weight: 700; }
.mk-who span { color: var(--mk-muted); }
.mk-tools { display: flex; align-items: center; }
.mk-caret { display: flex; color: var(--mk-muted); }
.mk-caret svg { width: 18.75px; height: 18.75px; fill: currentColor; }
.mk-text { margin-top: 2px; color: var(--mk-text); font: 400 15px/20px var(--text); text-wrap: pretty; }
.mk-media {
  height: 150px;
  margin-top: 12px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
}
.mk-acts {
  display: flex;
  justify-content: space-between;
  max-width: 425px;
  margin-top: 12px;
  color: var(--mk-muted);
  font: 400 13px/16px var(--text);
}
.mk-acts span { display: flex; align-items: center; gap: 4px; }
.mk-acts svg { width: 18.75px; height: 18.75px; }

/* A static stand-in for :hover, with the same rules as styles.css. */
html body .xnnoying-btn.mk-hover {
  color: var(--xnnoying-hue) !important;
  background-color: color-mix(in srgb, var(--xnnoying-hue) 10%, transparent) !important;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--xnnoying-hue) 10%, transparent) !important;
}

/* The History panel's height follows the image, not the window. */
html body .mk-window .xnnoying-history { max-height: var(--mk-panel-h, 520px) !important; }

/* Callouts: labels drawn over the image, never part of the UI. Sized
   to fit in the gap between two posts without touching their text. */
.mk-pill {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 12px 0 4px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font: 700 13px/1 var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(15, 20, 25, 0.5);
}
.t-ink .mk-pill { background: #fff; color: var(--ink); }
.mk-pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
}
.mk-pill i svg { width: 12px; height: 12px; }
.mk-ext svg { width: 100%; height: 100%; }

/* A magnified view of a post's buttons (XnMock.lens). */
.mk-lens {
  position: absolute;
  z-index: 5;
  padding: 22px 26px 16px;
  border-radius: 22px;
  background: var(--mk-bg);
  box-shadow: 0 24px 48px -12px rgba(15, 20, 25, 0.4), 0 0 0 1px var(--mk-line);
}
.mk-lens::after {
  content: "";
  position: absolute;
  bottom: -9px;
  right: var(--tip, 60px);
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: var(--mk-bg);
  box-shadow: 1px 1px 0 var(--mk-line);
}
.mk-lens-row { display: flex; align-items: center; justify-content: space-between; height: 20px; padding: 0 9px; }
.mk-lens-labels { position: relative; height: 16px; margin-top: 18px; font: 700 15px/1 var(--text); }
.mk-lens-labels span { position: absolute; width: 80px; margin-left: -40px; text-align: center; }
.mk-lens-free::after { display: none; }
.mk-lens-bare { padding-bottom: 22px; }
