/* Read-only platform skins: a local, honest approximation of each network.
   Cards are inert previews — no widgets, no engagement counts, no network calls. */
.platform-skins { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.platform-skins[data-skin-count="1"] { grid-template-columns: minmax(0, 520px); }
.platform-skins[data-skin-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-compare { background: #fff; border: 1px solid #e0e6e1; border-radius: 12px; padding: 18px; }
.platform-compare-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.platform-compare-head h2 { font-size: 15px; margin: 0; }
.platform-compare-head .muted { font-size: 11px; }
.platform-compare-note { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: #77857c; }
.publication-flow-wide.platform-compare-stage { width: min(100%, 1240px); max-width: 1240px; }

.platform-skin { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e2e8e4; border-radius: 8px; overflow: hidden; }
.skin-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #eef1ef; }
.skin-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #7d8f86; color: #fff; font-size: 14px; font-weight: 650; }
.skin-identity { min-width: 0; flex: 1; display: grid; }
.skin-identity strong { font-size: 13px; font-weight: 620; overflow-wrap: anywhere; }
.skin-handle { font-size: 11px; color: #8a978f; overflow-wrap: anywhere; }
.skin-badge { flex-shrink: 0; font-size: 10px; letter-spacing: .6px; color: #68766f; background: #f5f8f5; border: 1px solid #e2e8e4; border-radius: 5px; padding: 3px 6px; }
.skin-media { display: grid; gap: 2px; background: #f1f4f2; grid-template-columns: minmax(0, 1fr); }
.skin-media-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skin-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.skin-media-set img { aspect-ratio: 1 / 1; }
.skin-media-empty { margin: 0; padding: 30px 14px; background: #f4f7f4; border-bottom: 1px solid #eef1ef; color: #66765d; font-size: 12px; text-align: center; }
.skin-carousel { background: #f1f4f2; }
.skin-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.skin-carousel-track::-webkit-scrollbar { display: none; }
.skin-carousel-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: start; }
.skin-carousel-track:focus-visible { outline: 3px solid #c36532; outline-offset: -3px; }
.skin-carousel-bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 10px; }
.skin-carousel-button { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #dbe3dd; border-radius: 50%; background: #fff; color: #3f5549; font-size: 15px; line-height: 1; }
.skin-carousel-button:disabled { opacity: .4; cursor: not-allowed; }
.skin-carousel-pos { min-width: 46px; font-size: 11px; color: #66765d; text-align: center; }
.skin-text { padding: 13px 14px; font-size: 14px; line-height: 1.62; overflow-wrap: anywhere; max-height: 330px; overflow-y: auto; }
.skin-text:focus-visible { outline: 3px solid #c36532; outline-offset: -3px; }
.skin-text > :last-child { margin-bottom: 0; }
.skin-text p { margin: 0 0 10px; }
.skin-text strong { font-weight: 680; }
.skin-text em { font-style: italic; }
.skin-text u { text-decoration: underline; }
.skin-text s { text-decoration: line-through; }
.skin-text blockquote { margin: 10px 0; padding: 2px 0 2px 13px; border-left: 3px solid #b9ccc0; color: #4d6355; }
.skin-text code { background: #f0f3f0; padding: 1px 4px; border-radius: 3px; font-size: 13px; }
.skin-text a { color: #17674c; text-decoration: underline; }
.skin-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 10px 13px; border-top: 1px solid #eef1ef; }
.skin-foot-inline { margin-top: 0; padding: 8px 13px; border-top: 0; }
.skin-actions { display: inline-flex; align-items: center; gap: 16px; color: #8a978f; }
.skin-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skin-time { font-size: 11px; color: #8a978f; }
.skin-caption-author { font-weight: 650; margin-right: 6px; }

.skin-telegram { background: #f7fcfe; border-color: #d9ecf5; }
.skin-telegram .skin-avatar { background: #2aabee; }
.skin-telegram .skin-text { background: #fff; }
.skin-vk .skin-avatar { background: #4680c2; }
.skin-instagram .skin-avatar { background: #d6336c; }

/* Adaptation step: one read-only skin beside the single active rich editor. */
.variant-split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.variant-split .platform-skin { max-width: 520px; }
/* The editor comes first when it is open; the skin stays visible beside it. */
.variant-split .variant-fields { order: -1; }

@media (min-width: 1200px) {
  .variant-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: start; }
}
@media (max-width: 1080px) {
  .platform-skins, .platform-skins[data-skin-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .platform-skins, .platform-skins[data-skin-count="1"], .platform-skins[data-skin-count="2"], .platform-skins[data-skin-count="3"] { grid-template-columns: minmax(0, 1fr); }
  .platform-compare { padding: 14px; }
}
