/* The illustrated product visuals inside each section's grey band. */

.card { background: #fff; border: 1px solid var(--n-200); border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--n-100); font-size: 12px; font-weight: 600; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--n-500); }

/* ── Publish: the same post as each network renders it, tagged with what changed ── */
.posts { display: flex; align-items: flex-start; gap: 20px; }
.post { position: relative; width: 312px; padding: 16px 14px 12px; font-size: 12.5px; line-height: 18px; color: var(--n-800); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -16px rgb(0 0 0 / .18); }
.post:nth-child(2) { margin-top: 40px; } .post:nth-child(3) { margin-top: 80px; } /* fanning out from the source */
.post p { margin-top: 8px; }
.post .lnk { color: #2563eb; }
.ver { position: absolute; top: -12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--n-200); background: #fff; font-size: 11px; font-weight: 500; color: var(--n-600); white-space: nowrap; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.ver .net { width: 14px; height: 14px; }
.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--n-100); }
.post > header { display: flex; align-items: center; gap: 10px; }
.by b { display: block; font-size: 13px; font-weight: 600; color: var(--n-900); }
.by small, .tw header small { font-size: 11px; color: var(--n-500); }
.link-card { margin: 10px -14px 0; border-block: 1px solid var(--n-100); background: var(--n-50); }
.link-card img { width: 100%; height: 132px; object-fit: cover; }
.link-card span { display: block; padding: 8px 14px; }
.link-card small { display: block; font-size: 11px; color: var(--n-500); }
.link-card b { font-weight: 600; color: var(--n-900); }
.post footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--n-600); white-space: nowrap; }
.post footer .muted { margin-left: auto; }
.faces { display: flex; }
.faces img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.faces img + img { margin-left: -6px; }
/* A thread: avatar column with a line joining each post to the next. */
.tw { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; }
.tw:last-child { padding-bottom: 0; }
.tw:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 38px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--n-200); }
.tw .av { width: 32px; height: 32px; }
.tw header { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.tw header b { font-weight: 600; color: var(--n-900); }
.tw p { margin-top: 2px; }
.counts { display: flex; gap: 22px; margin-top: 8px; font-size: 11px; color: var(--n-500); }
.counts span { display: inline-flex; align-items: center; gap: 4px; }
.counts svg { width: 13px; height: 13px; }

/* ── Publish essentials and preflight: two product cards side by side ── */
.duo { display: flex; align-items: center; gap: 24px; }
.duo .card { overflow: hidden; }
.h-net { display: inline-flex; align-items: center; gap: 8px; }
.h-net svg { width: 16px; height: 16px; }
.h-net svg:not(.net) { color: var(--n-500); }
/* Carousel with alt text and a first comment */
.carousel { width: 340px; }
.slides { display: flex; gap: 8px; padding: 14px 0 0 14px; -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.slides figure { position: relative; flex: none; width: 136px; height: 170px; margin: 0; border-radius: 8px; overflow: hidden; background: var(--n-100); }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slides .alt, .slides .idx { position: absolute; padding: 4px 5px; border-radius: 4px; background: rgb(0 0 0 / .55); color: #fff; font: 600 9px/1 var(--font-sans); letter-spacing: .04em; }
.slides .alt { left: 8px; bottom: 8px; }
.slides .idx { right: 8px; top: 8px; }
.carousel .cap { padding: 12px 14px 0; font-size: 12.5px; line-height: 18px; color: var(--n-800); }
.carousel .first { display: flex; align-items: center; gap: 8px; margin: 12px 14px 14px; padding: 8px 10px; border: 1px solid var(--n-100); border-radius: 8px; background: var(--n-50); font-size: 11.5px; line-height: 16px; color: var(--n-700); }
.carousel .first .av { width: 24px; height: 24px; }
.carousel .first b { font-weight: 600; color: var(--n-900); }
/* Time-slot queue that keeps local time across a clock change */
.queue { width: 340px; }
.queue ol { list-style: none; margin: 0; padding: 0; }
.queue li { display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--n-100); font-size: 12.5px; line-height: 16px; }
.queue li:first-child { border-top: 0; }
.queue time { font-size: 11px; color: var(--n-500); }
.queue .net { width: 18px; height: 18px; }
.queue b { display: block; font-weight: 600; color: var(--n-900); }
.queue small { display: block; font-size: 11px; color: var(--n-500); }
.queue .dst { grid-template-columns: 18px minmax(0, 1fr); margin: 6px 10px; padding: 8px 10px; border: 1px solid #fde68a; border-radius: 8px; background: #fffbeb; }
.queue .dst svg { width: 16px; height: 16px; color: #b45309; }
.queue .dst b { color: #92400e; }
.queue .dst small { color: #b45309; }
.queue .dst + li { border-top: 0; }
.queue .open { grid-template-columns: 64px minmax(0, 1fr); }
.queue .open span { padding: 7px 10px; border: 1px dashed var(--n-300); border-radius: 8px; font-size: 11.5px; color: var(--n-500); }
/* Editor that flags the characters past X's limit */
.editor { width: 360px; }
.editor p { padding: 14px; font-size: 13px; line-height: 20px; color: var(--n-800); }
.editor mark { padding: 1px 0; border-radius: 3px; background: #fee2e2; color: #b91c1c; }
.editor .count { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; font-size: 11.5px; }
.editor .count b { color: #dc2626; font-size: 12px; font-weight: 600; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--n-200); stroke-width: 3; }
.ring .over { stroke: #dc2626; }
.editor .fix { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--n-100); background: var(--n-50); font-size: 11.5px; line-height: 16px; color: var(--n-700); }
.editor .fix svg { width: 14px; height: 14px; flex: none; color: var(--publish); }
.editor .fix .btn-mini { margin-left: auto; flex: none; }
/* Crop preview and media checks */
.side-cards { display: grid; gap: 12px; width: 320px; }
.crop-img { position: relative; height: 128px; overflow: hidden; }
.crop-img img { width: 100%; height: 100%; object-fit: cover; }
.frame-45 { position: absolute; top: 10px; left: 50%; width: 86px; height: 108px; transform: translateX(-50%); border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 999px rgb(0 0 0 / .45); }
.side-cards .row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 16px; }
.side-cards .row + .row { border-top: 1px solid var(--n-100); }
.side-cards .row .net { width: 18px; height: 18px; }
.side-cards .row b { display: block; font-weight: 600; color: var(--n-900); }
.side-cards .row small { display: block; font-size: 11px; color: var(--n-500); }
.side-cards .row .chip { margin-left: auto; }

/* Chips that drift sideways: the crosspost rules. */
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pill-r { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--n-200); background: #fff; font-size: 12px; color: var(--n-700); white-space: nowrap; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.pill-r .net { width: 16px; height: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Analytics: channel funnel ── */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--n-200); border-radius: 10px; overflow: hidden; }
.kpis > div { padding: 10px 14px; border-right: 1px solid var(--n-200); }
.kpis > div:last-child { border-right: 0; }
.kpis > div.on { box-shadow: inset 0 -2px 0 var(--n-900); }
.kpis small { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--n-500); }
.kpis small i { width: 6px; height: 6px; border-radius: 50%; }
.kpis b { display: block; margin-top: 2px; font-size: 20px; line-height: 26px; font-weight: 600; }
.kpis em { font-style: normal; font-size: 10px; color: #16a34a; }
.funnel { width: 620px; }
.funnel .kpis { margin: 0; border: 0; border-bottom: 1px solid var(--n-100); border-radius: 12px 12px 0 0; }
.funnel svg { width: 100%; height: 180px; display: block; }
.funnel .rate { font: 500 10px/1 var(--font-sans); fill: var(--n-700); }
.table { width: 560px; font-size: 13px; }
.table .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--n-100); }
.table .row.head { border-top: 0; font-size: 11px; color: var(--n-500); text-transform: uppercase; letter-spacing: .04em; }
.table .row span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.bar { height: 6px; border-radius: 3px; background: var(--n-100); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--analytics); border-radius: 3px; }

/* ── Crosspost: source → rules → destinations ── */
.xp { width: 600px; display: grid; gap: 16px; justify-items: center; }
.xp-source { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.xp-source .net { width: 24px; height: 24px; }
.xp-list { width: 420px; }
.xp-list .row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--n-100); font-size: 13px; }
.xp-list .row:first-child { border-top: 0; }
.xp-list .row .chip { margin-left: auto; }
.xp-list .row .why { color: var(--n-500); font-size: 11px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--crosspost); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

@media (max-width: 767px) {
  .post, .duo .card, .funnel, .table, .xp, .xp-list { width: calc(100vw - 72px); }
  .post:nth-child(n+2) { display: none; } .link-card img { height: 96px; } .duo > :nth-child(2) { display: none; } .slides figure { width: 112px; height: 140px; }
  .table .row { grid-template-columns: 1.4fr 1fr 1fr; } .table .row > :last-child { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .post:nth-child(3) { display: none; } }
