/* North Bound Scheduler: what the kit (styles.css) does not have — platform previews, profile grids,
   the post editor, media picker, week strip. Mockups use the networks' own light/dark look, not the app theme. */

/* ---------------- shared mockup parts ---------------- */
.pv { --pv-text: #0f1419; --pv-muted: #65676b; --pv-line: #e4e6eb; --pv-link: #00376b; background: #fff; color: var(--pv-text);
  font: 400 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; border-radius: 12px; overflow: hidden;
  border: 1px solid #dbdbdb; width: 100%; max-width: 380px; position: relative; text-align: left; letter-spacing: normal; text-transform: none; }
.pv b { font-weight: 600; }
.pv-g { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pv-av { border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; color: #fff; font-weight: 700; flex: none; }
.pv-av img { width: 100%; height: 100%; object-fit: cover; }
.pv-media { position: relative; background: #f1f1f1; overflow: hidden; }
.pv-media > img, .pv-media > video, .pv-slide > img, .pv-slide > video, .pv-full > img, .pv-full > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #8e8e8e; font-size: 13px; background: repeating-linear-gradient(45deg, #f4f4f4 0 10px, #eee 10px 20px); }
.pv-empty .pv-g { width: 34px; height: 34px; }
.pv-tag { color: var(--pv-link); }
.pv-ph { color: #8e8e8e; }
.pv-more { background: none; border: 0; padding: 0; color: var(--pv-muted); font: inherit; cursor: pointer; margin-left: 2px; }
.pv-carousel { position: relative; background: #f1f1f1; overflow: hidden; }
.pv-carousel.dark { background: #000; }
.pv-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; height: 100%; }
.pv-slide .pv-empty { position: absolute; }
.pv-count { position: absolute; top: 12px; right: 12px; background: rgba(18, 18, 18, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pv-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.pv-dots i, .ig-dotsrow i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.pv-dots i.on { background: #fff; }
.ig-dotsrow { flex: 1; display: flex; justify-content: center; gap: 4px; }
.ig-dotsrow i { background: #c7c7c7; }
.ig-dotsrow i.on { background: #0095f6; }
.pv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #262626; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; }
.pv-arrow .pv-g { width: 18px; height: 18px; }
.pv-arrow.l { left: 8px; } .pv-arrow.l .pv-g { transform: rotate(90deg); }
.pv-arrow.r { right: 8px; } .pv-arrow.r .pv-g { transform: rotate(-90deg); }
.pv-carousel:hover .pv-arrow, .pv-arrow:focus-visible { opacity: 1; }
.pv-arrow[hidden] { display: none; }

/* ---------------- Instagram ---------------- */
.ig { border-radius: 10px; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ig-head .grow { min-width: 0; line-height: 1.2; }
.ig-head b { font-size: 14px; }
.ig-sub { font-size: 12px; color: var(--pv-text); }
.ig-dots { width: 20px; height: 20px; }
.ig-ring { padding: 2px; border-radius: 50%; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); display: inline-grid; }
.ig-ring .pv-av { border: 2px solid #fff; }
.ig-ring.big { padding: 3px; }
.ig-actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; }
.ig-actions .grow { flex: 1; }
.ig-likes { padding: 0 12px; font-weight: 600; font-size: 14px; }
.ig-cap { padding: 4px 12px 0; white-space: pre-wrap; word-break: break-word; }
.ig-cta { margin: 8px 12px 0; padding: 9px 12px; background: #efefef; border-radius: 8px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ig-cta .rot { transform: rotate(-90deg); width: 18px; height: 18px; }
.ig-time { padding: 6px 12px 12px; font-size: 11px; color: var(--pv-muted); text-transform: uppercase; letter-spacing: .02em; }

/* ---------------- full-screen (Reels, Stories, TikTok) ---------------- */
.pv-phone { width: 300px; max-width: 100%; padding: 10px; border-radius: 42px; background: #111; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55), inset 0 0 0 2px #2b2b2b; position: relative; margin: 0 auto; }
.pv-phone .pv { border: 0; border-radius: 32px; max-width: none; }
.pv-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #000; z-index: 6; }
.pv.reel, .pv.story { aspect-ratio: 9 / 16; background: #000; color: #fff; --pv-link: #fff; border: 0; }
.pv.reel .pv-tag, .pv.story .pv-tag { font-weight: 600; }
.pv-full { position: absolute; inset: 0; }
.pv-full .pv-empty, .pv.reel .pv-empty { background: #1c1c1c; color: #9a9a9a; }
.pv.reel > .pv-carousel { position: absolute; inset: 0; aspect-ratio: auto !important; }
.reel-top, .tt-top { position: absolute; top: 38px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,.5); z-index: 2; }
.reel-rail, .tt-rail { position: absolute; right: 10px; bottom: 84px; display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.reel-rail > div, .tt-rail > div { display: grid; justify-items: center; gap: 2px; }
.reel-rail small, .tt-rail small { font-size: 11px; font-weight: 600; }
.reel-rail .pv-g { width: 26px; height: 26px; }
.reel-disc { border: 2px solid #fff; border-radius: 7px; overflow: hidden; display: inline-flex; }
.reel-disc .pv-av { border-radius: 4px; }
.reel-bottom, .tt-bottom { position: absolute; left: 0; right: 60px; bottom: 0; padding: 50px 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.55)); z-index: 1; display: grid; gap: 6px; }
.reel-bottom .row { display: flex; align-items: center; gap: 8px; }
.reel-follow { border: 1px solid rgba(255,255,255,.8); border-radius: 8px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.reel-cap, .tt-cap { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.reel-cap .pv-more, .tt-cap .pv-more { color: rgba(255,255,255,.75); }
.reel-audio, .tt-audio { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.reel-audio .pv-g, .tt-audio .pv-g { width: 14px; height: 14px; }
.story-bars { position: absolute; top: 30px; left: 10px; right: 10px; display: flex; gap: 3px; z-index: 3; }
.story-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.story-bars i.half::after { content: ""; position: absolute; inset: 0; width: 45%; background: #fff; }
.story-head { position: absolute; top: 40px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; z-index: 3; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.story-head .grow { flex: 1; }
.story-head .pv-g { width: 22px; height: 22px; }
.story-sub { font-size: 11px; display: flex; align-items: center; gap: 2px; opacity: .9; }
.story-foot { position: absolute; left: 10px; right: 10px; bottom: 16px; display: flex; align-items: center; gap: 12px; z-index: 3; }
.story-reply { flex: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 9px 14px; font-size: 13px; color: rgba(255,255,255,.9); }
.story-emo { font-size: 20px; }
.story-link { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); background: #fff; color: #000; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; z-index: 3; }

/* ---------------- TikTok ---------------- */
.tt { font-family: "TikTok Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.tt-top { justify-content: center; gap: 18px; font-size: 16px; }
.tt-top span { opacity: .7; }
.tt-top b { border-bottom: 2px solid #fff; padding-bottom: 3px; }
.tt-top .pv-g { position: absolute; right: 16px; width: 22px; height: 22px; }
.tt-rail { bottom: 70px; gap: 14px; }
.tt-rail .pv-g { width: 30px; height: 30px; stroke-width: 0; }
.tt-avwrap { position: relative; margin-bottom: 8px; }
.tt-avwrap .pv-av { border: 1px solid #fff; }
.tt-plus { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fe2c55; display: grid; place-items: center; }
.tt-plus .pv-g { width: 12px; height: 12px; stroke-width: 3; }
.tt-disc { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #222 30%, #444 31%, #111 70%); display: grid; place-items: center; animation: tt-spin 5s linear infinite; }
.tt-disc .pv-av { border-radius: 50%; }
@keyframes tt-spin { to { transform: rotate(360deg); } }
[data-motion="off"] .tt-disc { animation: none; }
.tt-bottom { bottom: 50px; padding-bottom: 10px; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.tt-bottom > b { font-size: 15px; }
.tt-title { font-size: 14px; }
.tt-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: #000; display: flex; justify-content: space-around; align-items: center; font-size: 10px; z-index: 3; }
.tt-nav span { display: grid; justify-items: center; gap: 1px; opacity: .85; }
.tt-nav .pv-g { width: 20px; height: 20px; }
.tt-new { width: 40px; height: 26px; border-radius: 8px; background: #fff; color: #000; display: grid !important; place-items: center; box-shadow: -3px 0 0 #25f4ee, 3px 0 0 #fe2c55; opacity: 1 !important; }
.tt-private { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); border-radius: 999px; padding: 5px 12px; font-size: 12px; display: flex; gap: 6px; align-items: center; z-index: 3; white-space: nowrap; }
.tt-private .pv-g { width: 14px; height: 14px; }
.pv.reel .pv-carousel .pv-dots { bottom: 140px; }
.pv.reel .pv-carousel .pv-count { top: 70px; }

/* ---------------- Facebook ---------------- */
.fb { --pv-link: #1a6ed8; --pv-text: #050505; border-radius: 10px; font-family: "Segoe UI", Helvetica, Arial, sans-serif; }
.fb-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.fb-head .grow { line-height: 1.25; }
.fb-head b { font-size: 15px; }
.fb-head .pv-g { width: 20px; height: 20px; color: #65676b; }
.fb-sub { font-size: 12.5px; color: #65676b; display: flex; align-items: center; gap: 2px; }
.fb-globe { width: 12px !important; height: 12px !important; }
.fb-cap { padding: 0 12px 10px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.fb-cap .pv-more { color: #65676b; font-weight: 600; }
.fb-album { display: grid; gap: 2px; aspect-ratio: 1 / 1; background: #fff; }
.fb-album.n2 { grid-template-columns: 1fr 1fr; }
.fb-album.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
.fb-album.n3 .fb-cell:first-child { grid-column: 1 / -1; }
.fb-album.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fb-cell { position: relative; overflow: hidden; background: #f0f2f5; min-height: 0; }
.fb-cell > img, .fb-cell > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-plus { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.fb-link { background: #f0f2f5; padding: 10px 12px; display: grid; gap: 2px; position: relative; padding-right: 100px; }
.fb-link small { color: #65676b; font-size: 12px; }
.fb-linkbtn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: #e4e6eb; padding: 7px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.fb-counts { display: flex; justify-content: space-between; padding: 10px 12px; color: #65676b; font-size: 14px; }
.fb-actions { display: flex; border-top: 1px solid #ced0d4; margin: 0 12px; padding: 4px 0; }
.fb-actions span { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 0; color: #65676b; font-weight: 600; font-size: 14px; }
.fb-actions .pv-g { width: 20px; height: 20px; }
.fb-reel .reel-follow { background: #1877f2; border-color: #1877f2; }
.fb-story .story-bars i.half::after { background: #fff; }

/* ---------------- LinkedIn ---------------- */
.li { --pv-link: #0a66c2; border-radius: 10px; }
.li-head { display: flex; gap: 8px; padding: 12px 14px 8px; align-items: flex-start; }
.li-head .pv-av { border-radius: 4px; }
.li-head .grow { line-height: 1.3; }
.li-sub { font-size: 12px; color: #666; display: flex; align-items: center; gap: 2px; }
.li-follow { color: #0a66c2; font-weight: 600; font-size: 14px; }
.li-cap { padding: 0 14px 10px; white-space: pre-wrap; word-break: break-word; }
.li-cap .pv-more { color: #666; }
.li-link { background: #eef3f8; padding: 12px 14px; display: grid; gap: 2px; }
.li-link small { color: #666; }
.li-counts { padding: 8px 14px; font-size: 12px; color: #666; border-bottom: 1px solid #e8e8e8; margin: 0 0 2px; }
.li-actions { display: flex; padding: 4px 8px; }
.li-actions span { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; color: #666; font-weight: 600; }
.li-actions .pv-g { width: 20px; height: 20px; }

/* ---------------- Website ---------------- */
.web { border-radius: 10px; }
.web-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #f1f3f4; border-bottom: 1px solid #e5e7eb; }
.web-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; }
.web-bar span { margin-left: 8px; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12px; color: #555; flex: 1; }
.web-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.web-body small { color: #777; font-size: 12px; }
.web-body h3 { font: 700 20px/1.25 Georgia, "Times New Roman", serif; margin: 0; }
.web-body p { margin: 0; color: #444; font-size: 14px; }
.web-btn { justify-self: start; background: #111; color: #fff; border-radius: 6px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.web-og { border-top: 1px dashed #e5e7eb; padding: 12px 16px 16px; display: grid; gap: 6px; }
.web-og > small { color: #777; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.web-og-card { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #f7f8fa; }
.web-og-img { width: 96px; flex: none; aspect-ratio: 1.2 / 1; overflow: hidden; }
.web-og-img img, .web-og-img video { width: 100%; height: 100%; object-fit: cover; }
.web-og-card > div:last-child { padding: 8px 10px; display: grid; align-content: center; gap: 2px; min-width: 0; }
.web-og-card small { color: #777; font-size: 11px; }

/* ---------------- profile mockups ---------------- */
.pf { background: #fff; color: #0f1419; font: 400 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; border-radius: 28px; overflow: hidden; }
.pf b { font-weight: 600; }
.pf .pv-g { width: 22px; height: 22px; }
.pf-igbar, .pf-ttbar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; font-size: 16px; }
.pf-igbar .pv-g:first-child { width: 14px; height: 14px; }
.pf-ttbar { justify-content: space-between; }
.pf-row { display: flex; gap: 16px; align-items: center; padding: 8px 14px; }
.pf-row .grow { flex: 1; min-width: 0; }
.pf-stats { display: flex; gap: 14px; margin-top: 6px; }
.pf-stats > div { display: grid; }
.pf-stats b { font-size: 15px; }
.pf-stats small { color: #444; }
.pf-bio { padding: 0 14px; margin: 2px 0; white-space: pre-wrap; }
.pf-bio.center { text-align: center; }
.pf-link { padding: 0 14px; margin: 0; color: #00376b; font-weight: 600; }
.pf-btns { display: flex; gap: 6px; padding: 10px 14px; }
.pf-btn { flex: 1; background: #efefef; border-radius: 8px; padding: 7px 0; text-align: center; font-weight: 600; }
.pf-btn.blue { background: #0095f6; color: #fff; }
.pf-btn.red { background: #fe2c55; color: #fff; padding: 9px 26px; border-radius: 4px; }
.pf-btn.sq { flex: none; width: 34px; display: grid; place-items: center; }
.pf-btn.sq .pv-g { width: 16px; height: 16px; }
.pf-hl { display: flex; gap: 12px; padding: 4px 14px 10px; overflow-x: auto; }
.pf-hlb { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 4px; cursor: pointer; color: inherit; }
.pf-hlb > span { width: 58px; height: 58px; border-radius: 50%; border: 1px solid #dbdbdb; padding: 2px; overflow: hidden; display: block; }
.pf-hlb img, .pf-hlb video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-tabs { display: flex; border-top: 1px solid #efefef; }
.pf-tabs span { flex: 1; display: grid; place-items: center; padding: 10px 0; color: #8e8e8e; }
.pf-tabs span.on { color: #000; box-shadow: inset 0 -1px 0 #000; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pf-tile { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: #f1f1f1; cursor: pointer; overflow: hidden; display: block; }
.pf-tile img, .pf-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-tile.planned { outline: 2px dashed rgba(253, 109, 18, .9); outline-offset: -2px; }
.pf-tile:focus-visible { outline: 3px solid #FD6D12; outline-offset: -3px; }
.pf-none { position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; }
.pf-ico { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.pf-ico .pv-g { width: 18px; height: 18px; }
.pf-views { position: absolute; left: 6px; bottom: 6px; color: #fff; display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.pf-views .pv-g { width: 12px; height: 12px; stroke-width: 0; }
.pf-when { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(201, 76, 8, .92); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-grid.tt .pf-when { bottom: 26px; }
.pf-emptyline { text-align: center; color: #8e8e8e; padding: 24px 12px; margin: 0; }
.pf-tt { background: #fff; }
.pf-center { display: grid; justify-items: center; gap: 8px; padding: 10px 14px 14px; }
.pf-handle { font-size: 16px; }
.pf-ttstats { display: flex; gap: 22px; text-align: center; }
.pf-ttstats > div { display: grid; }
.pf-ttstats small { color: #777; }
.pf-center .row { display: flex; gap: 6px; }
.pf-fb { border-radius: 12px; border: 1px solid #dbdbdb; }
.pf-cover { height: 110px; background: linear-gradient(135deg, #e7e9ee, #cfd4dc); overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-fbrow { display: flex; gap: 12px; align-items: flex-end; padding: 0 14px; margin-top: -36px; }
.pf-fbrow .pv-av { border: 4px solid #fff; }
.pf-fbrow > div { display: grid; padding-bottom: 6px; }
.pf-fbrow b { font-size: 20px; }
.pf-fbrow small { color: #65676b; }
.pf-fbtabs { display: flex; gap: 16px; padding: 0 14px; border-top: 1px solid #e4e6eb; color: #65676b; font-weight: 600; }
.pf-fbtabs span { padding: 12px 0; }
.pf-fbtabs span.on { color: #1877f2; box-shadow: inset 0 -3px 0 #1877f2; }
.pf-phone { width: 340px; max-width: 100%; padding: 10px; border-radius: 40px; background: #1f2430; box-shadow: var(--shadow-lg); flex: none; }
[data-theme="dark"] .pf-phone { background: #0b0d12; box-shadow: inset 0 0 0 1px #2a2f3a; }
.pf-phone .pf { max-height: 680px; overflow-y: auto; scrollbar-width: thin; }

/* ---------------- feed preview page ---------------- */
.fp-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.fp-filters .select { width: auto; min-width: 180px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.fp-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 7px 14px; font: 600 var(--fs-sm) var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.fp-chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.fp-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.fp-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.fp-side { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: var(--sp-3); justify-items: center; }
.fp-group { display: grid; gap: var(--sp-3); }
.fp-group + .fp-group { margin-top: var(--sp-6); }
.fp-ghead { display: flex; align-items: center; gap: var(--sp-2); }
.fp-ghead h2 { font-size: var(--fs-md); margin: 0; }
.fp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); align-items: start; }
.fp-card { display: grid; gap: var(--sp-2); justify-items: center; }
.fp-card > .pv, .fp-card > .pv-phone { max-width: 340px; }
.fp-card-foot { display: flex; align-items: center; gap: var(--sp-2); width: 100%; max-width: 340px; }
.fp-card-foot .grow { flex: 1; min-width: 0; }
.fp-ttl { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-mono); }
.plat-badge { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--fs-xs) var(--font-body); border-radius: 6px; padding: 2px 7px; color: #fff; }

/* ---------------- post editor ---------------- */
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-6); align-items: start; }
.pe-left { display: grid; gap: var(--sp-4); min-width: 0; }
.pe-right { position: sticky; top: 0; display: grid; gap: var(--sp-3); justify-items: center; }
.pe-sec { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4); display: grid; gap: var(--sp-3); background: var(--surface); }
.pe-sec > h3 { margin: 0; font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }
.pe-sec > h3 .icon { color: var(--primary); }
.pe-sec > h3 .right { margin-left: auto; }
.pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.pe-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pe-plats { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-plat { border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 600 var(--fs-sm) var(--font-body); color: var(--text); min-height: 40px; }
.pe-plat .dot { width: 10px; height: 10px; border-radius: 50%; }
.pe-plat.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary-ink); }
.pe-plat[disabled] { opacity: .55; cursor: default; }
.pe-types { display: flex; flex-wrap: wrap; gap: 6px; }
.media-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.media-tile { width: 92px; height: 92px; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-2); border: 1px solid var(--border); flex: none; cursor: grab; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-tile .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.media-tile .x .icon { width: 14px; height: 14px; }
.media-tile .n { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.media-tile.dragging { opacity: .4; }
.media-tile.over { outline: 2px solid var(--primary); }
.media-add { width: 92px; height: 92px; border-radius: var(--radius); border: 1.5px dashed var(--border-strong); background: var(--surface-2); color: var(--text-2); display: grid; place-content: center; justify-items: center; gap: 4px; cursor: pointer; font: 600 var(--fs-xs) var(--font-body); }
.media-add:hover { border-color: var(--primary); color: var(--primary-ink); }
.pe-checks { display: grid; gap: 6px; width: 100%; max-width: 380px; }
.pe-check { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); padding: 8px 10px; border-radius: var(--radius); }
.pe-check.error { background: var(--danger-bg); color: var(--danger); }
.pe-check.warning { background: var(--warning-bg); color: var(--warning); }
.pe-check.ok { background: var(--success-bg); color: var(--success); }
.pe-check .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.pe-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pe-count { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.pe-count.over { color: var(--danger); font-weight: 700; }
.pe-brief { background: var(--primary-50); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.pe-brief pre { white-space: pre-wrap; font: var(--fs-sm)/1.5 var(--font-body); margin: 0; background: var(--surface); border-radius: var(--radius); padding: var(--sp-3); border: 1px solid var(--border); }
.pe-tt { display: grid; gap: var(--sp-3); }
.pe-tt .who { display: flex; align-items: center; gap: var(--sp-2); }
.pe-tt .consent { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.pe-comment { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); background: var(--surface-2); }
.pe-comment p { margin: 4px 0 0; white-space: pre-wrap; }
.modal-xl .pe { min-height: 60vh; }

/* ---------------- media library ---------------- */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.ml-item { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; padding: 0; color: inherit; position: relative; }
.ml-item .pic { aspect-ratio: 1; background: var(--surface-2); position: relative; }
.ml-item .pic img, .ml-item .pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-item .meta { padding: 8px 10px; display: grid; gap: 2px; }
.ml-item .meta b { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-item .badge-vid { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.65); color: #fff; border-radius: 6px; font-size: 11px; padding: 1px 6px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.ml-item .badge-vid .icon { width: 12px; height: 12px; }
.ml-item.on { outline: 3px solid var(--primary); outline-offset: -3px; }
.ml-item .tick { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.ml-drop.over { outline: 2px dashed var(--primary); outline-offset: 4px; border-radius: var(--radius-lg); }

/* ---------------- overview ---------------- */
.ov-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-3); }
.ov-day { display: grid; gap: var(--sp-2); align-content: start; min-width: 0; }
.ov-dh { text-align: center; padding: 6px 0; border-radius: var(--radius); }
.ov-dh b { display: block; font-family: var(--font-display); }
.ov-dh small { color: var(--muted); }
.ov-dh.today { background: var(--primary-50); color: var(--primary-ink); }
.ov-dh.today small { color: inherit; }
.ov-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; padding: 0; color: inherit; display: grid; transition: box-shadow .15s, transform .15s; }
.ov-card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-1px); }
.ov-card .pic { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.ov-card .pic img, .ov-card .pic video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ov-card .tags { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; }
.ov-card .tg { background: rgba(255,255,255,.92); color: #222; font: 700 10.5px var(--font-body); border-radius: 6px; padding: 2px 6px; }
.ov-card .tg.nb { background: var(--primary); color: var(--on-primary); }
.ov-card .body { padding: 8px 10px 10px; display: grid; gap: 4px; }
.ov-card .body b { font-size: var(--fs-sm); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-card .bn { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); }
.ov-card .bn i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ov-empty { border: 1.5px dashed var(--border); border-radius: var(--radius-lg); min-height: 110px; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-xs); background: none; cursor: pointer; }
.ov-empty:hover { border-color: var(--primary); color: var(--primary-ink); }
.ov-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.ov-row { display: flex; gap: var(--sp-3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; width: 100%; }
.ov-row:last-child { border-bottom: 0; }
.ov-row .th { width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.ov-row .th img, .ov-row .th video { width: 100%; height: 100%; object-fit: cover; }
.ov-row .grow { flex: 1; min-width: 0; }
.ov-row b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
.ov-conn { display: grid; gap: var(--sp-2); }
.ov-conn .row { display: flex; align-items: center; gap: var(--sp-2); }

/* ---------------- board cards and calendar items ---------------- */
.pc { display: grid; gap: 8px; }
.pc-pic { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; display: grid; place-items: center; color: var(--muted); }
.pc-pic img, .pc-pic video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pc-pic .n { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.pc .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.cal-item .pl { font-weight: 800; margin-right: 4px; }
.cal-pic { display: flex; align-items: center; gap: 6px; }
.cal-pic img, .cal-pic video { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; flex: none; }

/* connections */
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-4); }
.cx-brand { display: grid; gap: var(--sp-3); }
.cx-line { display: flex; align-items: center; gap: var(--sp-2); padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.cx-line .grow { flex: 1; min-width: 0; }
.cx-line .grow b { display: block; font-size: var(--fs-sm); }
.cx-line .grow span { font-size: var(--fs-xs); color: var(--muted); }

/* login: the mascots parade on the brand panel */
.login-parade { display: grid; grid-template-columns: repeat(4, 72px); gap: 8px 14px; margin-top: var(--sp-4); }
.login-mascot { width: 72px; height: 72px; background-repeat: no-repeat; background-size: auto 100%; background-position: 0 0; }
@media (min-width: 1200px) { .login-parade { grid-template-columns: repeat(8, 64px); gap: 8px; } .login-mascot { width: 64px; height: 64px; } }

@media (max-width: 1180px) {
  .pe { grid-template-columns: minmax(0, 1fr); }
  .pe-right { position: static; }
  .fp-layout { grid-template-columns: minmax(0, 1fr); }
  .fp-side { position: static; }
}
@media (max-width: 860px) {
  .ov-week { grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .ov-day { scroll-snap-align: start; }
  .pe-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-chips { margin-left: 0; }
}
@media (max-width: 600px) {
  .pe-grid, .pe-grid.three { grid-template-columns: minmax(0, 1fr); }
  .fp-cards { grid-template-columns: minmax(0, 1fr); }
  .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-filters .select { min-width: 0; flex: 1; }
}

/* themed selects in toolbars keep a sensible width */
.page-actions .sel, .page-actions > .select { width: 230px; min-width: 0; }
.fp-filters .sel, .fp-filters > .select { width: 230px; flex: none; }
.ap-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-3); }
.ap-tools .sel, .ap-tools > .select { width: 240px; }
.cal-head .sel, .cal-head > .select { width: 200px; flex: none; }
.cal-head .grow { flex: 1; }
.cal-head { flex-wrap: wrap; gap: var(--sp-2); }
.cal.week .cal-day { min-height: 320px; }
.cal-item { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item .cal-pic { overflow: hidden; }
.cal-item .cal-pic > span { overflow: hidden; text-overflow: ellipsis; }
.cal.week .cal-item { white-space: normal; }
@media (max-width: 860px) {
  .page-actions .sel, .page-actions > .select, .fp-filters .sel, .fp-filters > .select, .ap-tools .sel, .cal-head .sel { width: 100%; flex: 1 1 100%; }
}
.tt .pv-carousel.dark .pv-slide > img { object-fit: contain; }
.fp-card-foot { flex-wrap: wrap; }

/* phones: grid columns may shrink below their content; the sync chip shows its icon only */
.grid > *, .grid-3 > *, .grid-2 > * { min-width: 0; }
.ov-row .badge { flex: none; }
.sync-chip { flex: none; white-space: nowrap; }
@media (max-width: 600px) { .sync-chip span { display: none; } .sync-chip { padding: 0 8px; } }

/* Reports */
.rp-filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.rp-filters .select { width: auto; min-width: 200px; }
.rp-dates { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rp-dates .input { width: 160px; }
.rp-filters .fp-chips { margin-left: auto; }
.rp-status { gap: 6px; color: var(--muted); }
.rp-profiles { display: grid; gap: 2px; }
.rp-prof { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rp-prof:last-child { border-bottom: 0; }
.rp-prof .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rp-prof .grow { min-width: 0; }
.rp-up { color: var(--success); font-weight: 600; } .rp-down { color: var(--danger); font-weight: 600; }
.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.rp-table th, .rp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rp-table th { text-align: left; font-size: var(--fs-xs, 12px); color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--surface-2); }
.rp-table .right { text-align: right; } .rp-table .nowrap { white-space: nowrap; }
.rp-table td.right { font-variant-numeric: tabular-nums; }
.rp-post { display: flex; gap: 12px; align-items: center; min-width: 260px; max-width: 420px; }
.rp-post b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-post .grow { min-width: 0; }
.rp-th { width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.rp-th img { width: 100%; height: 100%; object-fit: cover; }
.rp-print-cover { display: none; }
@media (max-width: 860px) { .rp-filters .fp-chips { margin-left: 0; } .rp-filters .select { min-width: 0; width: 100%; } }

@media print {
  html.rp-printing .page-head, html.rp-printing .sidebar, html.rp-printing .topbar, html.rp-printing .bottom-nav, html.rp-printing .page-actions,
  html.rp-printing .rp-filters-card, html.rp-printing .toasts, html.rp-printing .mascot, html.rp-printing [class*="mascot"], html.rp-printing .footer, html.rp-printing .sync-chip { display: none !important; }
  html.rp-printing .main, html.rp-printing .view { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  html.rp-printing body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.rp-printing *, html.rp-printing *::before, html.rp-printing *::after { animation: none !important; transition: none !important; }
  html.rp-printing .chart .bar, html.rp-printing .chart .pt, html.rp-printing .reveal, html.rp-printing .kpi { transform: none !important; opacity: 1 !important; }
  html.rp-printing .card { box-shadow: none !important; break-inside: avoid; }
  html.rp-printing .rp-print-cover { display: flex; gap: 20px; align-items: center; padding: 0 0 16px; border-bottom: 2px solid #F26B1D; margin-bottom: 16px; }
  html.rp-printing .rp-print-cover img { height: 48px; }
  html.rp-printing .rp-print-cover h1 { font-size: 22px; margin: 0; } html.rp-printing .rp-print-cover p { margin: 4px 0 0; color: #555; }
  html.rp-printing .rp-table-wrap { overflow: visible; }
  html.rp-printing .rp-post { max-width: 260px; min-width: 0; }
  @page { size: A4 landscape; margin: 12mm; }
}
.rp-filters .sel, .rp-filters > .select { width: 230px; flex: none; }
@media (max-width: 600px) { .rp-filters .sel, .rp-filters > .select, .rp-dates .input { width: 100%; flex: 1 1 100%; } }
