/* Editorial listing demo in unified Studio Card */
.mk-demo {
  --mk-ink: #172034;
  --mk-blue: #235ae9;
  --mk-ease: cubic-bezier(.22,.61,.36,1);
  position: relative;
  width: 100%;
  max-width: 390px;
  min-width: 0;
  box-sizing: border-box;
  margin-inline: auto;
  padding: 24px 18px 20px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 48px -18px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  font: 400 12px/1.4 Arial, sans-serif;
  color: var(--mk-ink);
}
.mk-demo * { box-sizing: border-box; }
.mk-demo :is(p, h4) { margin: 0; font: inherit; letter-spacing: normal; }
.mk-browser {
  position: relative;
  width: min(100%, 326px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.12);
}
.mk-chrome {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  position: relative;
}
.mk-dots {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 5px;
}
.mk-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mk-address {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.mk-address svg { width: 9px; height: 9px; stroke: #16a34a; }
.mk-address span { position: absolute; opacity: 0; transition: opacity .2s; }
.mk-demo[data-platform="etsy"] .mk-address-etsy,
.mk-demo[data-platform="ebay"] .mk-address-ebay,
.mk-demo[data-platform="amazon"] .mk-address-amazon {
  position: static;
  opacity: 1;
}
.mk-port { height: 446px; overflow: hidden; }
.mk-rail {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translateX(0);
  transition: transform .5s var(--mk-ease);
}
.mk-demo[data-platform="ebay"] .mk-rail { transform: translateX(-33.333333%); }
.mk-demo[data-platform="amazon"] .mk-rail { transform: translateX(-66.666667%); }
.mk-market {
  --mk-accent: #222;
  position: relative;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
.mk-ebay { --mk-accent: #3665f3; }
.mk-amazon { --mk-accent: #ffd814; }
.mk-mast {
  position: relative;
  z-index: 2;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e7e8eb;
  background: #fff;
}
.mk-mast img { display: block; width: 55px; height: 26px; object-fit: contain; }
.mk-mast > span { font-size: 10.5px; font-weight: 600; color: #626b77; }
.mk-amazon .mk-mast { background: #131e29; border-color: #131e29; }
.mk-amazon .mk-mast img { filter: brightness(0) invert(1); width: 66px; }
.mk-amazon .mk-mast > span { color: #dce4ec; }
.mk-body { position: relative; height: 393px; }
.mk-editor, .mk-live {
  position: absolute;
  inset: 0;
  transition: opacity .21s ease, transform .38s var(--mk-ease);
}
.mk-editor { opacity: 1; transform: translateY(0); }
.mk-editor-top { padding: 16px 16px 0; }
.mk-editor-top small { display: block; color: #797f88; font-size: 9px; margin-bottom: 4px; }
.mk-demo .mk-editor-top h4 { font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.035em; color: #0f172a; }
.mk-photo {
  position: absolute;
  z-index: 1;
  top: 72px;
  left: 16px;
  width: calc(100% - 32px);
  height: 143px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4ece1;
  transition: top .5s var(--mk-ease), height .5s var(--mk-ease), border-radius .5s;
}
.mk-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1);
  transition: transform .5s var(--mk-ease), opacity .5s;
}
.mk-photo-label {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: #15803d;
  font-size: 8.5px;
  font-weight: 700;
  opacity: 1;
  transition: opacity .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mk-fields {
  position: absolute;
  top: 226px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 9px;
}
.mk-field-label { font-size: 9.5px; line-height: 1.3; color: #64748b; font-weight: 600; margin-bottom: 3px; }
.mk-input {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d5d9df;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.mk-value {
  display: block;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  color: #0f172a;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .5s linear;
}
.mk-field-price .mk-input { width: 93px; }
.mk-field-price .mk-value { font-size: 11.5px; font-weight: 700; color: #235ae9; }
.mk-publish {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mk-accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  transition: transform .15s, box-shadow .3s;
}
.mk-amazon .mk-publish { color: #172034; border-radius: 8px; }
.mk-cursor {
  position: absolute;
  z-index: 5;
  right: 4px;
  bottom: 4px;
  width: 24px;
  height: 28px;
  color: #172034;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  opacity: 0;
  transform: translate(18px, 16px);
  transition: opacity .2s, transform .5s var(--mk-ease);
}
.mk-cursor svg { width: 100%; height: 100%; }
.mk-live { opacity: 0; transform: translateY(14px); pointer-events: none; }
.mk-store {
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #626b77;
  font-size: 10px;
}
.mk-store b { color: #0f172a; font-size: 11.5px; font-weight: 700; }
.mk-store svg { width: 15px; height: 15px; }
.mk-live-copy { position: absolute; left: 16px; right: 16px; top: 262px; }
.mk-stars { color: #ea580c; font-size: 10px; line-height: 1.3; margin-bottom: 6px; font-weight: 700; }
.mk-stars span { color: #64748b; font-size: 9.5px; font-weight: 500; }
.mk-demo .mk-live-copy h4 { font: 600 15px/1.3 Georgia, serif; letter-spacing: -.02em; margin-bottom: 6px; color: #0f172a; }
.mk-ebay .mk-live-copy h4, .mk-amazon .mk-live-copy h4 { font: 700 13px/1.3 Arial, sans-serif; }
.mk-live-price { display: flex; align-items: baseline; gap: 7px; }
.mk-live-price b { font-size: 16px; font-weight: 800; color: #0f172a; letter-spacing: -.035em; }
.mk-live-price small { color: #64748b; font-size: 9px; font-weight: 600; }
.mk-live-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}
.mk-live-status svg { width: 13px; height: 13px; }
.mk-market[data-stage="details"] .mk-value,
.mk-market[data-stage="publish"] .mk-value,
.mk-market[data-stage="live"] .mk-value { clip-path: inset(0); }
.mk-market[data-stage="publish"] .mk-cursor { opacity: 1; transform: translate(-9px, -12px); }
.mk-market[data-stage="publish"] .mk-publish { transform: scale(.98); box-shadow: 0 0 0 4px rgba(35, 90, 233, 0.15); }
.mk-market[data-stage="live"] .mk-editor { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.mk-market[data-stage="live"] .mk-live { opacity: 1; transform: translateY(0); }
.mk-market[data-stage="live"] .mk-photo { top: 45px; height: 204px; border-radius: 8px; }
.mk-market[data-stage="live"] .mk-photo > img { transform: scale(1.025); }
.mk-market[data-stage="live"] .mk-photo-label { opacity: 0; }
.mk-progress-track { height: 2px; background: #e2e8f0; }
.mk-progress { height: 100%; background: #235ae9; transform: scaleX(0); transform-origin: left; }
.mk-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px auto 0;
}
.mk-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 86px;
  height: 33px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  opacity: .75;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: opacity .3s, background .3s, border-color .3s, transform .2s;
}
.mk-channel img { width: 44px; height: 21px; object-fit: contain; }
.mk-channel svg { width: 12px; height: 12px; color: #16a34a; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s var(--mk-ease); }
.mk-demo[data-platform="etsy"] .mk-channel-etsy,
.mk-demo[data-platform="ebay"] .mk-channel-ebay,
.mk-demo[data-platform="amazon"] .mk-channel-amazon {
  opacity: 1;
  background: #ffffff;
  border-color: #235ae9;
  box-shadow: 0 3px 10px rgba(35, 90, 233, 0.15);
}
.mk-channel[data-done="true"] { opacity: 1; }
.mk-channel[data-done="true"] svg { opacity: 1; transform: scale(1); }
.mk-caption {
  text-align: center;
  color: #5c6b8a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 13px !important;
}
@media (max-width: 600px) {
  .mk-demo { padding: 18px 14px 16px; border-radius: 22px; }
  .mk-browser { max-width: 290px; }
  .mk-channels { gap: 7px; margin-top: 15px; }
  .mk-channel { width: 76px; }
  .mk-port { height: 446px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-demo * { transition: none !important; animation: none !important; }
  .mk-progress { transform: scaleX(1); }
  .mk-channel { opacity: 1; }
}
