/* Mockup canvases. Sizes are the real phone's points; export multiplies them. */
.mk {
  --sys-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  position: relative; font-family: var(--sys-font); -webkit-font-smoothing: antialiased;
  overflow: hidden; text-align: left; letter-spacing: 0; line-height: 1.3;
}
.mk svg { display: block; fill: currentColor; flex: none; }
.mk-chat { width: 390px; height: 844px; display: flex; flex-direction: column; }

/* status bar */
.mk-status { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; font-weight: 600; font-size: 17px; }
.mk-sys { display: flex; align-items: center; gap: 5px; }
.mk-clock { display: flex; align-items: center; gap: 4px; letter-spacing: -.2px; }
.mk.light { --sb-knock: #fff; } .mk.dark { --sb-knock: #000; }
.mk-focus { margin-left: 1px; }
.mk-loc svg { width: 11px; height: 11px; }
.mk-net { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.mk-carrier { font-size: 15px; font-weight: 600; margin-right: 1px; }

/* header */
.mk-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 8px 8px; position: relative; z-index: 2; }
.mk-back { display: flex; align-items: center; gap: 4px; font-size: 17px; min-width: 70px; }
.mk-badge { font-weight: 400; font-size: 15px; border-radius: 12px; padding: 1px 8px; }
.mk-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mk-title b { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mk-title small { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mk-actions { display: flex; align-items: center; gap: 22px; min-width: 70px; justify-content: flex-end; }
.mk-ava, .mk-ava-sm, .mk-ava-sq { flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; background-size: cover; background-position: center; border-radius: 50%; }
.mk-ava { width: 38px; height: 38px; font-size: 16px; }
.mk-ava-sm { width: 30px; height: 30px; font-size: 13px; align-self: flex-end; }
.mk-ava-gap { width: 30px; flex: none; }
.mk-ava-sq { width: 40px; height: 40px; border-radius: 5px; font-size: 16px; }

/* body */
.mk-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.mk-scroll { flex: none; }
.mk-scroll { display: flex; flex-direction: column; padding: 8px 10px 10px; gap: 3px; }
.mk-row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.mk-row.me { justify-content: flex-end; }
.mk-row.tail { margin-bottom: 5px; }
.mk-bubble { position: relative; max-width: 290px; padding: 6px 10px 6px 11px; font-size: 16.5px; line-height: 1.32; overflow-wrap: anywhere; }
.mk-text { white-space: normal; }
.mk-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px -2px -4px 10px; font-size: 11.5px; line-height: 1; white-space: nowrap; }
.mk-meta i { font-style: normal; margin-right: 3px; }
.mk-tick svg { width: 16px; height: 11px; }
.mk-sender { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.mk-sys-line { align-self: center; margin: 6px 0 8px; font-size: 13px; text-align: center; }
.mk-pic { display: block; width: 240px; max-height: 300px; object-fit: cover; border-radius: 12px; }
.mk-photo-empty { height: 180px; background: linear-gradient(135deg, #c7ccd4, #9aa3b0); }
.mk-bubble.has-pic { padding: 3px; }
.mk-bubble.has-pic .mk-text { display: block; padding: 5px 7px 2px; }
.mk-bubble.has-pic .mk-meta { margin: 0 6px 4px 10px; }

/* footer */
.mk-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 7px 12px 34px; }
.mk-input { flex: 1; min-height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 16px; }
.mk-home { position: absolute; left: 50%; bottom: 8px; width: 136px; height: 5px; border-radius: 3px; transform: translateX(-50%); z-index: 3; }

.mk-mark { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; align-items: baseline; gap: 3px; padding: 6px 10px; border-radius: 8px; background: #fff; color: #555; font: 500 11px/1 var(--sys-font); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mk-mark b { font-size: 13px; font-weight: 700; color: #111; }
.mk-post .mk-mark { top: auto; bottom: 56px; }

/* ---------- Telegram ---------- */
.mk-telegram.light { color: #000; background: #f7f7f7; }
.mk-telegram.dark { color: #fff; background: #1c1c1d; }
.mk-telegram .mk-head { border-bottom: .5px solid rgba(0,0,0,.14); }
.mk-telegram.dark .mk-head { border-color: rgba(255,255,255,.08); }
.mk-telegram .mk-back { color: #037ee5; }
.mk-telegram.dark .mk-back { color: #3e88f7; }
.mk-telegram .mk-badge { background: #037ee5; color: #fff; }
.mk-telegram .mk-title small { color: #8e8e93; }
.mk-telegram .mk-title small.is-live { color: #037ee5; }
.mk-telegram .mk-bubble { border-radius: 17px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.mk-telegram.light .them .mk-bubble { background: #fff; }
.mk-telegram.light .me .mk-bubble { background: #e1fec6; }
.mk-telegram.dark .them .mk-bubble { background: #262628; }
.mk-telegram.dark .me .mk-bubble { background: #2f6ea5; }
.mk-telegram .them.tail .mk-bubble { border-bottom-left-radius: 5px; }
.mk-telegram .me.tail .mk-bubble { border-bottom-right-radius: 5px; }
.mk-telegram .them .mk-meta { color: #a1aab3; }
.mk-telegram.light .me .mk-meta { color: #3fb04a; }
.mk-telegram.dark .them .mk-meta { color: #8d8e93; }
.mk-telegram.dark .me .mk-meta { color: rgba(255,255,255,.62); }
.mk-telegram .mk-sys-line span { display: inline-block; padding: 3px 9px; border-radius: 11px; background: rgba(0,0,0,.22); color: #fff; font-weight: 500; }
.mk-telegram .mk-foot { border-top: .5px solid rgba(0,0,0,.14); color: #858e99; }
.mk-telegram.dark .mk-foot { border-color: rgba(255,255,255,.08); color: #8d8e93; }
.mk-telegram .mk-input { border: .5px solid #d6d6d6; background: #fff; color: #9a9a9f; }
.mk-telegram.dark .mk-input { background: #060606; border-color: #333; color: #6d6d72; }
.mk-telegram.light .mk-home { background: #000; } .mk-telegram.dark .mk-home { background: #fff; }

/* ---------- WhatsApp ---------- */
.mk-whatsapp.light { color: #111b21; background: #f6f5f3; }
.mk-whatsapp.dark { color: #e9edef; background: #1f2c33; }
.mk-whatsapp .mk-head { gap: 8px; border-bottom: .5px solid rgba(0,0,0,.12); }
.mk-whatsapp .mk-back { min-width: 0; color: #007aff; }
.mk-whatsapp .mk-ava { width: 36px; height: 36px; }
.mk-whatsapp .mk-title { align-items: flex-start; text-align: left; }
.mk-whatsapp .mk-title small { color: #667781; font-size: 12.5px; }
.mk-whatsapp.dark .mk-title small { color: #8696a0; }
.mk-whatsapp .mk-actions { min-width: 0; color: #007aff; }
.mk-whatsapp .mk-bubble { border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); padding: 6px 9px 7px; font-size: 16px; }
.mk-whatsapp.light .them .mk-bubble { background: #fff; }
.mk-whatsapp.light .me .mk-bubble { background: #dcf8c6; }
.mk-whatsapp.dark .them .mk-bubble { background: #202c33; }
.mk-whatsapp.dark .me .mk-bubble { background: #005c4b; }
.mk-whatsapp .them.tail .mk-bubble { border-top-left-radius: 0; }
.mk-whatsapp .me.tail .mk-bubble { border-top-right-radius: 0; }
.mk-whatsapp .mk-row.tail { margin-bottom: 0; margin-top: 6px; }
.mk-whatsapp .mk-meta { color: #667781; font-size: 11px; }
.mk-whatsapp.dark .mk-meta { color: rgba(233,237,239,.6); }
.mk-whatsapp .mk-meta.st-read { color: #667781; }
.mk-whatsapp .st-read .mk-tick { color: #34b7f1; }
.mk-whatsapp .mk-sys-line { padding: 5px 12px; border-radius: 8px; background: #fff; color: #54656f; font-size: 12.5px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.mk-whatsapp.dark .mk-sys-line { background: #182229; color: #8696a0; }
.mk-whatsapp .mk-foot { color: #007aff; border-top: .5px solid rgba(0,0,0,.12); }
.mk-whatsapp .mk-input { background: #fff; border: .5px solid #d1d1d6; }
.mk-whatsapp.dark .mk-input { background: #2a3942; border-color: #2a3942; }
.mk-whatsapp.light .mk-home { background: #000; } .mk-whatsapp.dark .mk-home { background: #fff; }

/* ---------- iMessage ---------- */
.mk-imessage.light { color: #000; background: #f5f5f7; }
.mk-imessage.dark { color: #fff; background: #1c1c1e; }
.mk-imessage .mk-head { align-items: flex-start; padding-bottom: 6px; border-bottom: .5px solid rgba(0,0,0,.12); }
.mk-imessage.dark .mk-head { border-color: rgba(255,255,255,.1); }
.mk-imessage .mk-back { color: #007aff; padding-top: 14px; }
.mk-imessage .mk-badge { background: #007aff; color: #fff; font-size: 14px; padding: 1px 7px; }
.mk-imessage .mk-ava { width: 52px; height: 52px; font-size: 21px; }
.mk-imessage .mk-title small { margin-top: 4px; font-size: 11.5px; color: inherit; }
.mk-imessage .mk-title small i { font-style: normal; color: #8e8e93; }
.mk-imessage .mk-actions { color: #007aff; padding-top: 18px; }
.mk-imessage .mk-scroll { padding: 8px 14px 10px; gap: 2px; }
.mk-imessage .mk-row.tail { margin-bottom: 8px; }
.mk-imessage .mk-stack { display: flex; flex-direction: column; gap: 2px; }
.mk-imessage .me .mk-stack { align-items: flex-end; }
.mk-imessage .mk-bubble { border-radius: 18px; padding: 7px 12px; font-size: 17px; max-width: 270px; }
.mk-imessage .me .mk-bubble { background: #0b84fe; color: #fff; }
.mk-imessage.light .them .mk-bubble { background: #e9e9eb; color: #000; }
.mk-imessage.dark .them .mk-bubble { background: #262628; color: #fff; }
.mk-imessage .tail .mk-bubble:last-child::before, .mk-imessage .tail .mk-bubble:last-child::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.mk-imessage .me.tail .mk-bubble:last-child::before { right: -7px; width: 20px; background: #0b84fe; border-bottom-left-radius: 16px 14px; }
.mk-imessage .me.tail .mk-bubble:last-child::after { right: -26px; width: 26px; border-bottom-left-radius: 10px; }
.mk-imessage .them.tail .mk-bubble:last-child::before { left: -7px; width: 20px; border-bottom-right-radius: 16px 14px; }
.mk-imessage .them.tail .mk-bubble:last-child::after { left: -26px; width: 26px; border-bottom-right-radius: 10px; }
.mk-imessage.light .them.tail .mk-bubble:last-child::before { background: #e9e9eb; }
.mk-imessage.dark .them.tail .mk-bubble:last-child::before { background: #262628; }
.mk-imessage.light .tail .mk-bubble:last-child::after { background: #fff; }
.mk-imessage.dark .tail .mk-bubble:last-child::after { background: #000; }
.mk-imessage .mk-sender { color: #8e8e93; font-size: 11.5px; font-weight: 400; margin: 6px 0 1px 50px; }

.mk-imessage .mk-sys-line { color: #8e8e93; font-size: 11.5px; margin: 8px 0 10px; }
.mk-imessage .mk-receipt { align-self: flex-end; margin: -5px 2px 8px; font-size: 11.5px; color: #8e8e93; }
.mk-imessage .mk-receipt b { font-weight: 600; }
.mk-imessage .mk-foot { color: #8e8e93; gap: 10px; }
.mk-imessage .mk-input { border: 1px solid #c7c7cc; background: transparent; color: #c0c0c4; padding-right: 8px; }
.mk-imessage.dark .mk-input { border-color: #3a3a3c; color: #5a5a5e; }
.mk-imessage.light .mk-home { background: #000; } .mk-imessage.dark .mk-home { background: #fff; }

/* ---------- WeChat ---------- */
.mk-wechat.light { color: #111; background: #ededed; }
.mk-wechat.dark { color: #d5d5d5; background: #111; }
.mk-wechat .mk-head { border-bottom: .5px solid rgba(0,0,0,.1); }
.mk-wechat.dark .mk-head { border-color: rgba(255,255,255,.06); }
.mk-wechat .mk-back { min-width: 60px; }
.mk-wechat .mk-actions { min-width: 60px; }
.mk-wechat .mk-title b { font-size: 17px; font-weight: 500; }
.mk-wechat .mk-scroll { padding: 10px 12px 14px; gap: 16px; }
.mk-wechat .mk-row { align-items: flex-start; gap: 10px; }
.mk-wechat .mk-row.me { flex-direction: row-reverse; justify-content: flex-start; }
.mk-wechat .mk-stack { display: flex; flex-direction: column; gap: 4px; max-width: 260px; }
.mk-wechat .me .mk-stack { align-items: flex-end; }
.mk-wechat .mk-bubble { border-radius: 5px; padding: 9px 12px; font-size: 16.5px; line-height: 1.38; max-width: 260px; }
.mk-wechat .mk-bubble::before { content: ""; position: absolute; top: 13px; border: 6px solid transparent; }
.mk-wechat.light .them .mk-bubble { background: #fff; } .mk-wechat.light .them .mk-bubble::before { left: -11px; border-right-color: #fff; }
.mk-wechat.light .me .mk-bubble { background: #95ec69; } .mk-wechat.light .me .mk-bubble::before { right: -11px; border-left-color: #95ec69; }
.mk-wechat.dark .them .mk-bubble { background: #2c2c2c; } .mk-wechat.dark .them .mk-bubble::before { left: -11px; border-right-color: #2c2c2c; }
.mk-wechat.dark .me .mk-bubble { background: #3eb575; color: #0b0b0b; } .mk-wechat.dark .me .mk-bubble::before { right: -11px; border-left-color: #3eb575; }
.mk-wechat .mk-sender { font-size: 12px; font-weight: 400; color: #888; margin-bottom: 0; }
.mk-wechat .mk-sys-line { color: #9e9e9e; font-size: 13px; margin: 2px 0 0; }
.mk-wechat .mk-pic { width: 160px; border-radius: 5px; }
.mk-wechat .mk-foot { background: #f7f7f7; border-top: .5px solid rgba(0,0,0,.08); color: #191919; gap: 10px; }
.mk-wechat.dark .mk-foot { background: #1e1e1e; border-color: transparent; color: #d0d0d0; }
.mk-wechat .mk-input { border-radius: 5px; background: #fff; min-height: 40px; }
.mk-wechat.dark .mk-input { background: #2c2c2c; }
.mk-wechat.light .mk-home { background: #000; } .mk-wechat.dark .mk-home { background: #fff; }

/* ---------- 短信 (Android Messages) ---------- */
.mk-sms.light { color: #1f1f1f; background: #fff; }
.mk-sms.dark { color: #e3e3e3; background: #131314; }
.mk-sms .mk-status { height: 34px; padding: 4px 15px 0 16px; font-size: 14px; font-weight: 600; }
.mk-sms .mk-status .mk-clock { letter-spacing: 0; }
.mk-sms .mk-sys { gap: 4px; }
.mk-sms .mk-batt-num { font-size: 12px; font-weight: 500; margin-right: 3px; }
.mk-sms .mk-carrier, .mk-sms .mk-net { font-size: 12px; }
.mk-sms .mk-head { gap: 13px; padding: 8px 12px 10px 6px; border-bottom: .5px solid rgba(0,0,0,.08); }
.mk-sms.dark .mk-head { border-color: rgba(255,255,255,.08); }
.mk-sms .mk-back { min-width: 0; gap: 0; color: #444746; }
.mk-sms.dark .mk-back { color: #c4c7c5; }
.mk-sms .mk-badge { background: #1a73e8; color: #fff; font-size: 13px; font-weight: 600; margin-left: 3px; }
.mk-sms .mk-ava { width: 36px; height: 36px; font-size: 15px; }
.mk-sms .mk-title { align-items: flex-start; text-align: left; }
.mk-sms .mk-title b { font-size: 17px; font-weight: 500; }
.mk-sms .mk-title small { font-size: 12.5px; color: #5f6368; margin-top: 1px; }
.mk-sms.dark .mk-title small { color: #9aa0a6; }
.mk-sms .mk-actions { min-width: 0; gap: 16px; color: #444746; }
.mk-sms .mk-actions svg { width: 21px; height: 21px; }
.mk-sms.dark .mk-actions { color: #c4c7c5; }
.mk-sms .mk-scroll { padding: 12px 12px 14px; gap: 3px; }
.mk-sms .mk-row { gap: 8px; }
.mk-sms .mk-row.tail { margin-bottom: 8px; }
.mk-sms .mk-ava-sm { width: 28px; height: 28px; font-size: 12px; }
.mk-sms .mk-ava-gap { width: 28px; }
.mk-sms .mk-bubble { border-radius: 19px; padding: 8px 12px 7px; font-size: 16px; line-height: 1.34; max-width: 280px; }
.mk-sms .me .mk-bubble { background: #d3e3fd; color: #041e49; }
.mk-sms.light .them .mk-bubble { background: #f1f3f4; color: #1f1f1f; }
.mk-sms.dark .me .mk-bubble { background: #004a77; color: #c2e7ff; }
.mk-sms.dark .them .mk-bubble { background: #303030; color: #e3e3e3; }
.mk-sms .them.tail .mk-bubble { border-bottom-left-radius: 5px; }
.mk-sms .me.tail .mk-bubble { border-bottom-right-radius: 5px; }
.mk-sms .mk-meta { font-size: 11px; margin: 6px -3px -2px 9px; }
.mk-sms .me .mk-meta { color: rgba(4,30,73,.72); }
.mk-sms.light .them .mk-meta { color: #5f6368; }
.mk-sms.dark .me .mk-meta { color: rgba(194,231,255,.8); }
.mk-sms.dark .them .mk-meta { color: #9aa0a6; }
.mk-sms .mk-sender { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.mk-sms .mk-sys-line { color: #5f6368; font-size: 12.5px; margin: 6px 0 6px; }
.mk-sms.dark .mk-sys-line { color: #9aa0a6; }
.mk-sms .mk-receipt { align-self: flex-end; margin: -4px 5px 8px 0; font-size: 11.5px; color: #5f6368; }
.mk-sms.dark .mk-receipt { color: #9aa0a6; }
.mk-sms .mk-pic { width: 220px; border-radius: 16px; }
.mk-sms .mk-foot { gap: 10px; padding: 8px 12px 26px; color: #444746; border-top: .5px solid rgba(0,0,0,.08); }
.mk-sms.dark .mk-foot { color: #c4c7c5; border-color: rgba(255,255,255,.08); }
.mk-sms .mk-foot > svg { width: 22px; height: 22px; }
.mk-sms .mk-input { background: #f1f3f4; border-radius: 24px; min-height: 46px; padding: 0 14px; color: #5f6368; font-size: 15px; }
.mk-sms.dark .mk-input { background: #2a2a2a; color: #9aa0a6; }
.mk-sms .mk-input svg { width: 22px; height: 22px; }
.mk-sms .mk-home { width: 108px; height: 4px; }
.mk-sms.light .mk-home { background: #1f1f1f; } .mk-sms.dark .mk-home { background: #e3e3e3; }

/* ---------- X post ---------- */
.mk-x { width: 598px; padding: 16px 16px 4px; }
.mk-x.light { background: #fff; color: #0f1419; --x-muted: #536471; --x-line: #eff3f4; }
.mk-x.dark { background: #000; color: #e7e9ea; --x-muted: #71767b; --x-line: #2f3336; }
.mk-x-head { display: flex; align-items: center; gap: 10px; }
.mk-x .mk-ava { width: 42px; height: 42px; font-size: 18px; }
.mk-x-who { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.mk-x-who b { display: flex; align-items: center; gap: 3px; font-weight: 700; }
.mk-x-who small { color: var(--x-muted); font-size: 15px; }
.mk-x-more { color: var(--x-muted); }
.mk-x-more svg { width: 18px; height: 18px; }
.mk-x-text { margin-top: 12px; font-size: 17px; line-height: 1.38; overflow-wrap: anywhere; }
.mk-x .mk-pic { width: 100%; max-height: 520px; margin-top: 12px; border-radius: 16px; border: 1px solid var(--x-line); }
.mk-x-when { margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--x-line); color: var(--x-muted); font-size: 15px; }
.mk-x-when b { color: inherit; font-weight: 700; }
.mk-x.light .mk-x-when b { color: #0f1419; } .mk-x.dark .mk-x-when b { color: #e7e9ea; }
.mk-x-stats { display: flex; justify-content: space-between; padding: 12px 4px; color: var(--x-muted); }
.mk-x-stats span { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.mk-x-stats em { font-style: normal; }
