/* ==========================================================================
   PRIVATE EVENTS (2026-10-21) - /i/<token> invitation, /?page=invitaciones hub + wizard.
   Uses the --fx-* tokens from fluus-ux.css (dark/light follow the app); each invitation adds
   its own accent --pe-a / --pe-b / --pe-deep from its theme (private-events.js FX_PE_THEMES).
   ========================================================================== */
.fx-pe-page { --pe-a: #8b5cf6; --pe-b: #ec4899; --pe-deep: #1a1033; min-height: 100vh; min-height: 100dvh; background: var(--fx-bg); color: var(--fx-text); padding-bottom: calc(32px + var(--fx-safe-bottom)); }
.fx-pe-page.has-cta { padding-bottom: calc(110px + var(--fx-safe-bottom)); }
.fx-pe-font-serif .fx-pe-title, .fx-pe-font-serif .fx-pe-cover-title, .fx-pe-font-serif .fx-pe-card-title, .fx-pe-font-serif .fx-pe-message { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.fx-pe-font-rounded .fx-pe-title, .fx-pe-font-rounded .fx-pe-cover-title, .fx-pe-font-rounded .fx-pe-card-title { font-family: 'Fredoka', var(--fx-font); letter-spacing: 0.2px; }
.fx-pe-main { max-width: 640px; margin: 0 auto; padding: 0 var(--fx-gutter); position: relative; }

/* top bar (invite page: no app tab bar - the guest came from WhatsApp, keep it focused) */
.fx-pe-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 var(--fx-gutter); padding-top: var(--fx-safe-top);
    background: color-mix(in srgb, var(--fx-bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--fx-border) 60%, transparent); }
.fx-pe-top-brand { font-weight: 900; letter-spacing: 3px; font-size: 15px; color: var(--fx-text); text-decoration: none; }
.fx-pe-top-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fx-surface-raised); color: var(--fx-text); display: grid; place-items: center; cursor: pointer; }

/* hero: flyer contained on a blurred copy of itself, any aspect ratio */
.fx-pe-hero { max-width: 640px; margin: 0 auto; padding: 14px var(--fx-gutter) 0; }
.fx-pe-flyer { position: relative; overflow: hidden; border-radius: 22px; background: #0b0b12; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.65); }
.fx-pe-flyer-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(0.6) saturate(1.2); }
.fx-pe-flyer img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.fx-pe-flyer.is-small, .fx-pe-cover.is-small { max-height: none; aspect-ratio: 4 / 5; width: 100%; max-width: 280px; border-radius: 18px; }

/* generated cover (no flyer) */
.fx-pe-cover { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; color: #fff; display: grid; place-items: center; text-align: center;
    background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--pe-a) 70%, transparent) 0%, transparent 60%),
                radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--pe-b) 45%, transparent) 0%, transparent 70%), var(--pe-deep);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,0.65); }
.fx-pe-cover-orn { position: absolute; inset: 14px; border: 1.5px solid color-mix(in srgb, var(--pe-b) 55%, transparent); border-radius: 16px; pointer-events: none; }
.fx-pe-cover-orn::before, .fx-pe-cover-orn::after { content: '✦'; position: absolute; left: 50%; transform: translateX(-50%); color: var(--pe-b); font-size: 14px; background: var(--pe-deep); padding: 0 8px; }
.fx-pe-cover-orn::before { top: -10px; } .fx-pe-cover-orn::after { bottom: -10px; }
.fx-pe-cover-inner { position: relative; padding: 28px; max-width: 90%; }
.fx-pe-cover-emoji { font-size: clamp(44px, 12vw, 64px); margin-bottom: 8px; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35)); }
.fx-pe-cover-kicker { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; font-weight: 700; color: var(--pe-b); margin-bottom: 10px; }
.fx-pe-cover-title { font-size: clamp(30px, 8vw, 46px); font-weight: 700; line-height: 1.08; word-break: break-word; }
.fx-pe-cover.is-small .fx-pe-cover-title { font-size: 28px; }
.fx-pe-cover-date { margin-top: 14px; font-size: 15px; opacity: 0.9; letter-spacing: 0.5px; }

/* host bar */
.fx-pe-hostbar { margin: 16px 0 0; padding: 12px; border-radius: 18px; background: var(--fx-surface); border: 1px solid color-mix(in srgb, var(--pe-a) 45%, var(--fx-border)); }
.fx-pe-hostbar-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pe-a); margin: 0 2px 10px; }
.fx-pe-views { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--fx-text-muted); font-weight: 600; }
.fx-pe-hostbar-btns { display: flex; gap: 8px; }
.fx-pe-hbtn { flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); font: inherit; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; position: relative; }
.fx-pe-hbtn.is-main { background: var(--pe-a); border-color: transparent; color: var(--pe-on, #fff); }
.fx-pe-hbtn.is-icon { flex: 0 0 46px; }
.fx-pe-hbadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fx-success); color: #052e14; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.fx-pe-hbtn { min-width: 0; padding: 0 8px; white-space: nowrap; }
@media (max-width: 480px) { .fx-pe-hostbar-btns { flex-wrap: wrap; } .fx-pe-hbtn.is-main { flex: 1 1 100%; } }

.fx-pe-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; }
.fx-pe-banner div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fx-pe-banner.is-danger { background: var(--fx-danger-tint); color: var(--fx-danger); }
.fx-pe-banner.is-danger span { color: var(--fx-text); }

/* heading */
.fx-pe-head { text-align: center; margin: 22px 0 6px; }
.fx-pe-kind { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    background: color-mix(in srgb, var(--pe-a) 16%, transparent); color: var(--pe-a); }
[data-theme="light"] .fx-pe-kind { color: color-mix(in srgb, var(--pe-a) 80%, #000); }
.fx-pe-title { font-size: clamp(28px, 7vw, 40px); line-height: 1.12; font-weight: 700; margin: 12px 0 4px; word-break: break-word; }
.fx-pe-honorees { font-size: 18px; color: var(--fx-text-muted); margin: 0; }
.fx-pe-host { font-size: 14px; color: var(--fx-text-muted); margin: 8px 0 0; }

/* countdown / live */
.fx-pe-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 4px; }
.fx-pe-cd-box { text-align: center; padding: 12px 4px 10px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-cd-box b { display: block; font-size: clamp(24px, 7vw, 32px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--pe-a); }
[data-theme="light"] .fx-pe-cd-box b { color: color-mix(in srgb, var(--pe-a) 82%, #000); }
.fx-pe-cd-box span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fx-text-muted); margin-top: 6px; }
.fx-pe-live, .fx-pe-ended { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 4px; padding: 14px; border-radius: 16px; font-weight: 700; text-align: center; }
.fx-pe-live { background: var(--fx-success-tint); color: var(--fx-success); }
.fx-pe-ended { background: var(--fx-surface); color: var(--fx-text-muted); }
.fx-pe-live-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: fluus-pulse 1.6s infinite; }

.fx-pe-message { margin: 20px 4px 6px; padding: 0 0 0 16px; border-left: 3px solid var(--pe-a); font-size: 17px; line-height: 1.55; font-style: italic; color: var(--fx-text); white-space: pre-line; }

/* cards */
.fx-pe-card { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-card-title { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.fx-pe-sub { color: var(--fx-text-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.45; }
.fx-pe-info { display: flex; gap: 14px; align-items: flex-start; }
.fx-pe-card.fx-pe-info { padding: 16px; }
.fx-pe-info-ico { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--pe-a) 15%, transparent); color: var(--pe-a); }
.fx-pe-info-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-pe-info-body b { font-size: 16px; }
.fx-pe-info-body span { color: var(--fx-text-muted); font-size: 14px; }
.fx-pe-link { background: none; border: 0; padding: 6px 0 0; color: var(--fx-primary); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; align-self: flex-start; }
.fx-pe-map { margin-top: 14px; border-radius: 14px; overflow: hidden; height: 180px; border: 1px solid var(--fx-border); position: relative; background: var(--fx-surface-raised); }
.fx-pe-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.fx-pe-map.is-edit { margin-top: 6px; }
.fx-pe-map-clear { position: absolute; right: 8px; top: 8px; border: 0; border-radius: 999px; padding: 6px 10px; background: rgba(0,0,0,0.7); color: #fff; font: inherit; font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.fx-pe-row-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fx-pe-row-btns > * { flex: 1 1 140px; justify-content: center; }
.fx-pe-duo { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 520px) { .fx-pe-duo { grid-template-columns: 1fr 1fr; gap: 12px; } }
.fx-pe-mini { display: flex; flex-direction: column; gap: 4px; }
.fx-pe-mini-ico { font-size: 26px; }
.fx-pe-mini-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--fx-text-muted); font-weight: 700; }
.fx-pe-mini b { font-size: 16px; }
.fx-pe-gift p { margin: 0; white-space: pre-line; line-height: 1.45; word-break: break-word; }
.fx-pe-gift a { color: var(--fx-primary); }
.fx-pe-agenda { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.fx-pe-agenda li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 8px 0 8px; position: relative; }
.fx-pe-agenda li::before { content: ''; position: absolute; left: 70px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--pe-a); }
.fx-pe-agenda li:not(:last-child)::after { content: ''; position: absolute; left: 74px; top: 26px; bottom: -8px; width: 1px; background: var(--fx-border); }
.fx-pe-agenda time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pe-a); }
.fx-pe-agenda span { padding-left: 16px; }

/* RSVP */
.fx-pe-rsvp { text-align: center; border-color: color-mix(in srgb, var(--pe-a) 40%, var(--fx-border)); }
.fx-pe-rsvp-btns { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.fx-pe-rbtn { min-height: 64px; border-radius: 14px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); font: inherit; font-weight: 700; font-size: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 6px; }
.fx-pe-rbtn span { font-size: 20px; }
.fx-pe-rbtn.is-yes { background: linear-gradient(135deg, var(--pe-a), color-mix(in srgb, var(--pe-a) 60%, var(--pe-b))); color: var(--pe-on, #fff); border-color: transparent; box-shadow: 0 10px 24px -12px var(--pe-a); }
.fx-pe-rsvp-done { display: flex; align-items: center; gap: 14px; text-align: left; }
.fx-pe-rsvp-done b { display: block; font-size: 17px; }
.fx-pe-rsvp-done span { color: var(--fx-text-muted); font-size: 14px; }
.fx-pe-rsvp-ico { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--fx-surface-raised); }
.fx-pe-rsvp-done.is-yes .fx-pe-rsvp-ico { background: var(--fx-success-tint); }

/* going */
.fx-pe-going-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-pe-going-head .fx-pe-link { padding: 0; }
.fx-pe-avatars { display: flex; margin-top: 10px; padding-left: 8px; }
.fx-pe-av { width: 38px; height: 38px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--fx-surface); background: color-mix(in srgb, var(--pe-a) 70%, #222) center / cover; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.fx-pe-av.is-more { background: var(--fx-surface-raised); color: var(--fx-text); font-size: 12px; }
.fx-pe-going-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.fx-pe-going-list li { display: flex; gap: 6px; align-items: baseline; font-size: 14px; min-width: 0; }
.fx-pe-going-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pe-going-list small { color: var(--fx-text-muted); }

/* album */
.fx-pe-album-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.fx-pe-album-head .fx-pe-sub { margin-bottom: 10px; }
.fx-pe-upbtn { flex: 0 0 auto; white-space: nowrap; }
.fx-pe-progress { height: 4px; border-radius: 4px; background: var(--fx-surface-raised); overflow: hidden; margin-bottom: 10px; }
.fx-pe-progress span { display: block; height: 100%; background: var(--pe-a); transition: width 0.3s; }
.fx-pe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
@media (min-width: 560px) { .fx-pe-grid { grid-template-columns: repeat(4, 1fr); } }
.fx-pe-cell { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--fx-surface-raised); cursor: pointer; overflow: hidden; }
.fx-pe-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-pe-play { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; }
.fx-pe-album-empty { width: 100%; border: 1.5px dashed var(--fx-border); border-radius: 14px; background: transparent; color: var(--fx-text); font: inherit; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.fx-pe-album-empty span:first-child { font-size: 34px; }
.fx-pe-album-empty span:last-child { color: var(--fx-text-muted); font-size: 14px; }
.fx-pe-wide { width: 100%; margin-top: 12px; justify-content: center; }

.fx-pe-foot { text-align: center; margin: 34px 0 10px; color: var(--fx-text-muted); font-size: 13px; }
.fx-pe-foot p { margin: 0 0 8px; }
.fx-pe-foot-cta { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--fx-surface); border: 1px solid var(--fx-border); color: var(--fx-text); font-weight: 700; text-decoration: none; }

/* sticky RSVP call to action */
.fx-pe-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px var(--fx-gutter) calc(12px + var(--fx-safe-bottom));
    background: linear-gradient(to top, var(--fx-bg) 60%, transparent); display: flex; justify-content: center; }
.fx-pe-cta-btn { width: 100%; max-width: 600px; min-height: 54px; border: 0; border-radius: 16px; font: inherit; font-size: 17px; font-weight: 800; color: var(--pe-on, #fff); cursor: pointer;
    background: linear-gradient(135deg, var(--pe-a), color-mix(in srgb, var(--pe-a) 55%, var(--pe-b))); box-shadow: 0 14px 30px -14px var(--pe-a); }

/* sheets */
.fx-pe-sheet-wrap { position: fixed; inset: 0; z-index: 1200; background: var(--fx-scrim); display: flex; align-items: flex-end; justify-content: center; animation: fx-pe-fade 0.18s ease-out; }
.fx-pe-sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--fx-surface); color: var(--fx-text); border-radius: 22px 22px 0 0;
    padding: 6px 18px calc(20px + var(--fx-safe-bottom)); animation: fx-pe-up 0.24s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
.fx-pe-sheet.is-wide { max-width: 680px; }
@media (min-width: 700px) { .fx-pe-sheet-wrap { align-items: center; } .fx-pe-sheet { border-radius: 22px; } }
.fx-pe-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--fx-border); margin: 6px auto 4px; }
.fx-pe-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fx-pe-sheet-head h2 { font-size: 19px; margin: 0; }
@keyframes fx-pe-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-pe-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx-pe-sheet, .fx-pe-sheet-wrap { animation: none; } }

.fx-pe-menu { display: flex; flex-direction: column; gap: 6px; }
.fx-pe-menu > a, .fx-pe-menu > button { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised);
    color: var(--fx-text); font: inherit; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.fx-pe-menu span { display: flex; flex-direction: column; }
.fx-pe-menu small { color: var(--fx-text-muted); font-weight: 500; font-size: 13px; }
.fx-pe-menu .is-danger { color: var(--fx-danger); }

/* share sheet */
.fx-pe-linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--fx-surface-raised); border: 1px solid var(--fx-border); color: var(--fx-text-muted); }
.fx-pe-linkbox-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fx-text); font-weight: 600; font-size: 14px; }
.fx-pe-linkbox-copy { flex: 0 0 auto; min-height: 40px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--fx-primary-solid); color: #fff; font: inherit; font-weight: 700; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.fx-pe-wa { margin-top: 12px; min-height: 54px; border-radius: 14px; background: #25d366; color: #06301a; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.fx-pe-qr { margin-top: 16px; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--fx-border); }
.fx-pe-qr-code { flex: 0 0 auto; background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.fx-pe-qr-code img, .fx-pe-qr-code canvas { width: 104px !important; height: 104px !important; }
.fx-pe-qr p { margin: 4px 0 0; color: var(--fx-text-muted); font-size: 13px; }

/* guests sheet */
.fx-pe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fx-pe-stat { padding: 12px 6px; border-radius: 14px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fx-pe-stat b { font-size: 26px; line-height: 1; }
.fx-pe-stat span { font-size: 13px; font-weight: 700; }
.fx-pe-stat small { font-size: 11px; color: var(--fx-text-muted); }
.fx-pe-stat.is-yes b { color: var(--fx-success); } .fx-pe-stat.is-maybe b { color: var(--fx-warning); } .fx-pe-stat.is-no b { color: var(--fx-danger); }
.fx-pe-stat.is-on { border-color: var(--fx-primary); box-shadow: 0 0 0 2px var(--fx-primary-tint); }
.fx-pe-guest-tools { display: flex; gap: 8px; margin: 6px 0 10px; }
.fx-pe-guest-tools input { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); padding: 0 12px; font: inherit; }
.fx-pe-guests { list-style: none; margin: 0; padding: 0; }
.fx-pe-guests li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--fx-border); }
.fx-pe-gdot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--fx-text-muted); }
.fx-pe-guests li.is-yes .fx-pe-gdot { background: var(--fx-success); } .fx-pe-guests li.is-maybe .fx-pe-gdot { background: var(--fx-warning); } .fx-pe-guests li.is-no .fx-pe-gdot { background: var(--fx-danger); }
.fx-pe-gmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-pe-gmain small { color: var(--fx-text-muted); font-weight: 500; }
.fx-pe-gmain > span { color: var(--fx-text-muted); font-size: 13px; }
.fx-pe-gmain q { font-size: 14px; font-style: italic; color: var(--fx-text); margin-top: 2px; }
.fx-pe-empty-mini { text-align: center; padding: 26px 10px; display: flex; flex-direction: column; gap: 6px; color: var(--fx-text-muted); }
.fx-pe-empty-mini div { font-size: 34px; } .fx-pe-empty-mini b { color: var(--fx-text); }

/* forms */
.fx-pe-form { display: flex; flex-direction: column; gap: 16px; }
.fx-pe-field { display: flex; flex-direction: column; gap: 7px; }
.fx-pe-field > span { font-size: 14px; font-weight: 700; }
.fx-pe-field > span small, .fx-pe-field-row small { font-weight: 500; color: var(--fx-text-muted); }
.fx-pe-field-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.fx-pe-field-row > span { display: flex; flex-direction: column; gap: 2px; }
.fx-pe-field input[type="text"], .fx-pe-field input[type="url"], .fx-pe-field input[type="date"], .fx-pe-field input[type="time"], .fx-pe-field textarea, .fx-pe-linkin input, .fx-pe-agrow input {
    width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); padding: 10px 12px; font: inherit; font-size: 16px; box-sizing: border-box; }
.fx-pe-field textarea { resize: vertical; line-height: 1.45; }
.fx-pe-field input:focus, .fx-pe-field textarea:focus, .fx-pe-linkin input:focus, .fx-pe-agrow input:focus { outline: 2px solid var(--fx-focus); outline-offset: 1px; border-color: transparent; }
.fx-pe-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-pe-err { color: var(--fx-danger); font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.fx-pe-fine { color: var(--fx-text-muted); font-size: 12.5px; text-align: center; margin: 4px 0 0; line-height: 1.45; }
.fx-pe-submit { min-height: 52px; font-size: 16px; justify-content: center; }
.fx-pe-seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fx-pe-seg-btn { min-height: 70px; border-radius: 14px; border: 1.5px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); font: inherit; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.fx-pe-seg-emoji { font-size: 22px; }
.fx-pe-seg-btn.is-on { border-color: var(--fx-primary); background: var(--fx-primary-tint); }
.fx-pe-seg-btn.is-on.is-yes { border-color: var(--fx-success); background: var(--fx-success-tint); }
.fx-pe-seg-btn.is-on.is-no { border-color: var(--fx-danger); background: var(--fx-danger-tint); }
.fx-pe-stepper { display: inline-flex; align-items: center; border: 1px solid var(--fx-border); border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.fx-pe-stepper button { width: 46px; height: 46px; border: 0; background: var(--fx-surface-raised); color: var(--fx-text); font-size: 22px; cursor: pointer; }
.fx-pe-stepper button:disabled { opacity: 0.35; cursor: default; }
.fx-pe-stepper output { min-width: 40px; text-align: center; font-weight: 800; font-size: 18px; }
.fx-pe-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; min-height: 48px; }
.fx-pe-toggle-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fx-pe-toggle-text small { color: var(--fx-text-muted); font-size: 13px; }
.fx-pe-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fx-pe-switch { flex: 0 0 50px; height: 30px; border-radius: 15px; background: var(--fx-border); position: relative; transition: background 0.2s; }
.fx-pe-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.fx-pe-toggle input:checked + .fx-pe-switch { background: var(--fx-primary-solid); }
.fx-pe-toggle input:checked + .fx-pe-switch::after { transform: translateX(20px); }
.fx-pe-toggle input:focus-visible + .fx-pe-switch { outline: 2px solid var(--fx-focus); outline-offset: 2px; }
.fx-pe-group { padding: 6px 14px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-sub-opts { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 12px; border-top: 1px solid var(--fx-border); margin-top: 6px; padding-top: 14px; }
.fx-pe-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fx-pe-chips-lbl { font-size: 13px; color: var(--fx-text-muted); font-weight: 600; }
.fx-pe-chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.fx-pe-chip.is-on { border-color: var(--fx-primary); background: var(--fx-primary-tint); color: var(--fx-primary); font-weight: 700; }
.fx-pe-agrow { display: grid; grid-template-columns: 138px 1fr 40px; gap: 8px; align-items: center; }
.fx-pe-locbtns { display: flex; flex-direction: column; gap: 10px; }
.fx-pe-locbtns > .fx-btn { justify-content: center; min-height: 48px; }
.fx-pe-linkin { display: flex; gap: 8px; }
.fx-pe-linkin .fx-btn { flex: 0 0 auto; }

/* wizard chrome */
.fx-pe-wizard { padding-bottom: calc(100px + var(--fx-safe-bottom)); }
.fx-pe-wtop { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 56px; padding: 0 8px; padding-top: var(--fx-safe-top); background: var(--fx-bg); }
.fx-pe-wtop-title { text-align: center; font-weight: 800; font-size: 16px; }
.fx-pe-wtop-step { text-align: center; font-size: 13px; color: var(--fx-text-muted); font-weight: 700; }
.fx-pe-wprog { display: flex; gap: 4px; max-width: 640px; margin: 0 auto; padding: 0 var(--fx-gutter); }
.fx-pe-wprog span { flex: 1; height: 4px; border-radius: 4px; background: var(--fx-border); transition: background 0.25s; }
.fx-pe-wprog span.is-on { background: var(--fx-primary-solid); }
.fx-pe-wmain { padding-top: 8px; }
.fx-pe-wtitle { font-size: clamp(24px, 6vw, 30px); font-weight: 800; margin: 18px 0 8px; line-height: 1.15; }
.fx-pe-wfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; justify-content: center; align-items: center;
    padding: 12px var(--fx-gutter) calc(12px + var(--fx-safe-bottom)); background: var(--fx-bg); border-top: 1px solid var(--fx-border); }
.fx-pe-wfoot .fx-btn { min-height: 50px; justify-content: center; }
.fx-pe-wfoot .fx-btn-ghost { flex: 0 0 auto; }
.fx-pe-wnext { flex: 1; max-width: 420px; font-size: 16px; }
.fx-pe-wsave { padding: 0 6px; }
.fx-pe-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .fx-pe-kinds { grid-template-columns: repeat(3, 1fr); } }
.fx-pe-kindtile { min-height: 112px; border-radius: 18px; border: 1.5px solid var(--fx-border); color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px;
    background: radial-gradient(100% 90% at 50% 0%, color-mix(in srgb, var(--pe-a) 55%, transparent), transparent 70%), var(--pe-deep); transition: transform 0.12s; }
.fx-pe-kindtile:active { transform: scale(0.97); }
.fx-pe-kindtile.is-on { border-color: var(--pe-b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pe-a) 45%, transparent); }
.fx-pe-kindtile-emoji { font-size: 36px; }
.fx-pe-kindtile b { font-size: 15px; }
.fx-pe-wprev { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-wprev .fx-pe-flyer.is-small, .fx-pe-wprev .fx-pe-cover.is-small { max-width: 230px; }
.fx-pe-wprev-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fx-pe-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fx-pe-theme { border: 1.5px solid var(--fx-border); background: var(--fx-surface-raised); border-radius: 14px; padding: 8px 4px; color: var(--fx-text); font: inherit; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.fx-pe-theme-sw { width: 36px; height: 36px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.fx-pe-theme.is-on { border-color: var(--fx-primary); box-shadow: 0 0 0 2px var(--fx-primary-tint); }

/* hub */
.fx-pe-hub { padding-bottom: var(--fx-nav-clearance); }
.fx-pe-hhero { text-align: center; padding: 26px 18px 22px; border-radius: 24px; margin-top: 8px;
    background: radial-gradient(90% 70% at 50% 0%, rgba(139,92,246,0.35), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgba(236,72,153,0.22), transparent 70%), var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-hhero-art { display: flex; justify-content: center; gap: 10px; font-size: 30px; margin-bottom: 10px; }
.fx-pe-hhero-art span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--fx-surface-raised); transform: rotate(-6deg); }
.fx-pe-hhero-art span:nth-child(even) { transform: rotate(6deg) translateY(4px); }
.fx-pe-hhero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 6vw, 34px); margin: 8px 0 8px; line-height: 1.15; }
.fx-pe-hhero > p { color: var(--fx-text-muted); max-width: 52ch; margin: 0 auto 16px; line-height: 1.5; }
.fx-pe-hhero-cta { min-height: 52px; font-size: 16px; padding: 0 24px; }
.fx-pe-feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; text-align: left; }
@media (min-width: 600px) { .fx-pe-feats { grid-template-columns: 1fr 1fr; } }
.fx-pe-feats li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--fx-surface-raised); }
.fx-pe-feats li > svg { flex: 0 0 auto; color: var(--fx-primary); margin-top: 2px; }
.fx-pe-feats span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--fx-text-muted); }
.fx-pe-feats b { color: var(--fx-text); font-size: 14.5px; }
.fx-pe-hlist { display: flex; flex-direction: column; gap: 10px; }
.fx-pe-hcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-border); color: var(--fx-text); text-decoration: none; }
.fx-pe-hcard-img { flex: 0 0 64px; height: 80px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 30px;
    background: radial-gradient(100% 90% at 50% 0%, color-mix(in srgb, var(--pe-a) 60%, transparent), transparent 70%), var(--pe-deep); }
.fx-pe-hcard-img img { width: 100%; height: 100%; object-fit: cover; }
.fx-pe-hcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-pe-hcard-body b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pe-hcard-body > span { color: var(--fx-text-muted); font-size: 13px; }
.fx-pe-hcard-body small { color: var(--fx-text-muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 2px; }
.fx-pe-hcard-kind { font-size: 11px !important; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--pe-a) !important; display: flex; gap: 6px; align-items: center; }
.fx-pe-hcard-kind em { font-style: normal; padding: 1px 6px; border-radius: 6px; letter-spacing: 0.3px; }
.fx-pe-hcard-kind em.is-danger { background: var(--fx-danger-tint); color: var(--fx-danger); }
.fx-pe-hcard-kind em.is-muted { background: var(--fx-surface-raised); color: var(--fx-text-muted); }

/* home promo */
.fx-pe-promo { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; text-decoration: none; color: var(--fx-text);
    background: radial-gradient(80% 120% at 0% 0%, rgba(236,72,153,0.25), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(139,92,246,0.3), transparent 60%), var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-promo-emoji { flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--fx-surface-raised); }
.fx-pe-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fx-pe-promo-text b { font-size: 16px; }
.fx-pe-promo-text span { font-size: 13px; color: var(--fx-text-muted); line-height: 1.4; }

.fx-pe-confetti { position: fixed; inset: 0; z-index: 1400; pointer-events: none; }

/* ---------- private feed (album) ---------- */
.fx-pe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-pe-new { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pe-a); color: var(--pe-on, #fff); font: 800 11px/1.5 var(--fx-font); vertical-align: middle; letter-spacing: 0.3px; }
.fx-pe-dot { position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pe-a); box-shadow: 0 0 0 2px rgba(0,0,0,0.45); }
.fx-pe-cell-stats { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 6px 4px; font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.fx-pe-cell-stats span { display: inline-flex; align-items: center; gap: 2px; }
.fx-pe-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fx-primary-tint); color: var(--fx-text); font-size: 14px; line-height: 1.4; }
.fx-pe-note svg { flex: 0 0 auto; color: var(--fx-primary); margin-top: 1px; }

/* composer */
.fx-pe-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.fx-pe-pick-btn { min-height: 150px; border-radius: 18px; border: 1.5px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); font: inherit; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; }
.fx-pe-pick-btn small { color: var(--fx-text-muted); font-size: 12.5px; }
.fx-pe-pick-btn b { font-size: 16px; }
.fx-pe-pick-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-primary-tint); color: var(--fx-primary); margin-bottom: 4px; }
.fx-pe-pick-btn.is-main { border-color: var(--fx-primary); }
.fx-pe-pick-btn.is-main .fx-pe-pick-ico { background: var(--fx-primary-solid); color: #fff; }
.fx-pe-compose { display: flex; flex-direction: column; gap: 12px; }
.fx-pe-compose-one { border-radius: 16px; overflow: hidden; background: #000; max-height: 46vh; display: grid; place-items: center; }
.fx-pe-compose-one img, .fx-pe-compose-one video { max-width: 100%; max-height: 46vh; display: block; object-fit: contain; }
.fx-pe-compose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fx-pe-compose-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--fx-surface-raised); border: 0; padding: 0; }
.fx-pe-compose-cell img, .fx-pe-compose-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-pe-compose-cell.is-add { border: 1.5px dashed var(--fx-border); background: transparent; color: var(--fx-text-muted); font-size: 28px; cursor: pointer; }
.fx-pe-compose-x { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.65); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* full-screen vertical feed */
.fx-pe-feed { position: fixed; inset: 0; z-index: 1100; background: #000; color: #fff; }
.fx-pe-feed-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--fx-safe-top)) 10px 18px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent); pointer-events: none; }
.fx-pe-feed-top > * { pointer-events: auto; }
.fx-pe-feed-ib { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.fx-pe-feed-ib.is-post { background: var(--pe-a); color: var(--pe-on, #fff); }
.fx-pe-feed-title { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.fx-pe-feed-title b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pe-feed-title span { font-size: 11.5px; opacity: 0.8; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.fx-pe-feed-scroll { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.fx-pe-feed-scroll::-webkit-scrollbar { display: none; }
.fx-pe-post { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.fx-pe-post.is-loading { display: grid; place-items: center; }
.fx-pe-post-media { position: absolute; inset: 0; display: grid; place-items: center; }
.fx-pe-post-media img, .fx-pe-post-media video { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.fx-pe-mute { position: absolute; left: 14px; top: calc(70px + var(--fx-safe-top)); width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.5); display: grid; place-items: center; }
.fx-pe-burst { position: absolute; left: 50%; top: 50%; color: #ff3b6b; transform: translate(-50%, -50%) scale(0.4); animation: fx-pe-burst 0.8s ease-out forwards; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4)); pointer-events: none; }
@keyframes fx-pe-burst { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
.fx-pe-rail { position: absolute; right: 8px; bottom: calc(110px + var(--fx-safe-bottom)); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fx-pe-rail-btn { width: 52px; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: 700 12.5px/1.2 var(--fx-font);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); padding: 0; }
.fx-pe-rail-btn span { min-height: 15px; }
.fx-pe-rail-btn.is-liked { color: #ff3b6b; }
.fx-pe-rail-btn.is-liked span { color: #fff; }
.fx-pe-rail-rx { position: relative; }
.fx-pe-rx-stack { display: flex; min-height: 30px; align-items: center; }
.fx-pe-rx-stack > span + span { margin-left: -8px; }
.fx-pe-rx-stack img, .fx-pe-rx-empty img { display: block; }
.fx-pe-rx-empty { opacity: 0.85; filter: grayscale(0.5); display: block; }
.fx-pe-rail-btn.is-rx .fx-pe-rx-stack { filter: drop-shadow(0 0 6px var(--pe-a)); }
.fx-pe-tray { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(20,20,28,0.94); box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: fx-pe-fade 0.15s ease-out; }
.fx-pe-tray button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; transition: transform 0.12s; }
.fx-pe-tray button:hover, .fx-pe-tray button:focus-visible { transform: scale(1.18); }
.fx-pe-tray button.is-on { background: rgba(255,255,255,0.16); }
@media (max-width: 400px) { .fx-pe-tray button { width: 40px; height: 40px; } .fx-pe-tray button img { width: 30px; height: 30px; } }
.fx-pe-post-info { position: absolute; left: 0; right: 70px; bottom: 0; z-index: 2; padding: 40px 14px calc(22px + var(--fx-safe-bottom)); background: linear-gradient(to top, rgba(0,0,0,0.72), transparent); }
.fx-pe-post-by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.fx-pe-post-time { opacity: 0.75; font-size: 13px; }
.fx-pe-post-cap { margin: 8px 0 0; font-size: 15px; line-height: 1.4; white-space: pre-line; word-break: break-word; max-height: 30vh; overflow: auto; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.fx-pe-post-proc { margin: 6px 0 0; font-size: 12.5px; opacity: 0.8; }
.fx-pe-hostchip { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--pe-a); color: var(--pe-on, #fff); font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; vertical-align: middle; margin-left: 4px; }
.fx-pe-pav { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--pe-a) 70%, #222) center / cover; color: #fff; font-weight: 800; font-size: 14px; border: 2px solid rgba(255,255,255,0.85); }
.fx-pe-pav.is-sm { flex-basis: 32px; width: 32px; height: 32px; border: 0; font-size: 13px; }
@media (min-width: 700px) {
    .fx-pe-post-media img, .fx-pe-post-media video { max-width: 600px; }
    .fx-pe-rail { right: calc(50% - 360px); }
    .fx-pe-post-info { left: calc(50% - 300px); right: calc(50% - 240px); }
}

/* comments */
.fx-pe-comments { display: flex; flex-direction: column; gap: 14px; max-height: 52vh; overflow: auto; padding-bottom: 6px; }
.fx-pe-cmt { display: flex; gap: 10px; align-items: flex-start; }
.fx-pe-cmt-body { flex: 1; min-width: 0; }
.fx-pe-cmt-body b { font-size: 14px; }
.fx-pe-cmt-body small { color: var(--fx-text-muted); }
.fx-pe-cmt-body p { margin: 2px 0 0; font-size: 15px; line-height: 1.4; word-break: break-word; white-space: pre-line; }
.fx-pe-cmt-form { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fx-border); position: sticky; bottom: 0; background: var(--fx-surface); }
.fx-pe-cmt-form input { flex: 1; min-height: 46px; border-radius: 999px; border: 1px solid var(--fx-border); background: var(--fx-surface-raised); color: var(--fx-text); padding: 0 16px; font: inherit; font-size: 16px; }
.fx-pe-cmt-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--fx-primary-solid); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.fx-pe-cmt-send:disabled { opacity: 0.4; cursor: default; }
.fx-pe-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- hub explainer ---------- */
.fx-pe-howto-h { font-size: 20px; margin: 34px 0 0; }
.fx-pe-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: none; }
@media (min-width: 720px) { .fx-pe-steps { grid-template-columns: repeat(3, 1fr); } }
.fx-pe-steps li { position: relative; padding: 16px 16px 16px 70px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-border); min-height: 72px; }
.fx-pe-steps li b { display: block; font-size: 16px; margin-bottom: 4px; }
.fx-pe-steps li p { margin: 0; color: var(--fx-text-muted); font-size: 14px; line-height: 1.45; }
.fx-pe-step-e { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--fx-surface-raised); }
.fx-pe-step-n { position: absolute; left: 44px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--fx-primary-solid); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; z-index: 1; }
.fx-pe-sample { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: center; padding: 18px; border-radius: 20px; background: var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-phone { width: 210px; flex: 0 0 auto; padding: 8px; border-radius: 30px; background: #0b0b10; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6), inset 0 0 0 2px #2a2a33; }
.fx-pe-phone-screen { border-radius: 23px; overflow: hidden; background: #14141c; color: #fff; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.fx-pe-phone-screen .fx-pe-cover.is-small { max-width: none; border-radius: 14px; aspect-ratio: 4 / 4.2; }
.fx-pe-phone-screen .fx-pe-cover.is-small .fx-pe-cover-title { font-size: 22px; }
.fx-pe-phone-screen .fx-pe-cover-emoji { font-size: 32px; margin-bottom: 2px; }
.fx-pe-phone-screen .fx-pe-cover-kicker { font-size: 9px; margin-bottom: 4px; }
.fx-pe-phone-screen .fx-pe-cover-date { font-size: 10px; margin-top: 6px; }
.fx-pe-phone-screen .fx-pe-cover-inner { padding: 12px; }
.fx-pe-phone-title { text-align: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 15px; }
.fx-pe-phone-cd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.fx-pe-phone-cd span { text-align: center; padding: 5px 2px; border-radius: 8px; background: #1f1f2b; font-size: 8px; text-transform: uppercase; letter-spacing: 0.5px; color: #b4b5c6; }
.fx-pe-phone-cd b { display: block; font-size: 15px; color: var(--pe-a); font-family: var(--fx-font); }
.fx-pe-phone-rsvp { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4px; font-size: 9.5px; font-weight: 700; font-family: var(--fx-font); }
.fx-pe-phone-rsvp span { text-align: center; padding: 7px 2px; border-radius: 8px; background: #1f1f2b; }
.fx-pe-phone-rsvp .is-yes { background: var(--pe-a); color: var(--pe-on, #fff); }
.fx-pe-phone-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 8px; overflow: hidden; }
.fx-pe-phone-album span { aspect-ratio: 1; display: grid; place-items: center; font-size: 18px; }
.fx-pe-sample-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1 1 240px; max-width: 360px; }
.fx-pe-sample-notes li { display: flex; gap: 12px; align-items: flex-start; }
.fx-pe-sample-notes li > svg { flex: 0 0 auto; color: var(--fx-primary); margin-top: 2px; }
.fx-pe-sample-notes span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--fx-text-muted); line-height: 1.4; }
.fx-pe-sample-notes b { color: var(--fx-text); font-size: 15px; }
.fx-pe-faq { display: flex; flex-direction: column; gap: 8px; }
.fx-pe-faq details { border-radius: 14px; background: var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 15px; min-height: 48px; }
.fx-pe-faq summary::-webkit-details-marker { display: none; }
.fx-pe-faq summary svg { flex: 0 0 auto; color: var(--fx-text-muted); transition: transform 0.2s; }
.fx-pe-faq details[open] summary svg { transform: rotate(180deg); }
.fx-pe-faq details p { margin: 0; padding: 0 16px 16px; color: var(--fx-text-muted); font-size: 14.5px; line-height: 1.5; }
.fx-pe-faq summary:focus-visible { outline: 2px solid var(--fx-focus); outline-offset: -2px; border-radius: 14px; }
.fx-pe-endcta { text-align: center; margin: 30px 0 10px; }

/* Perfil row */
.fx-pe-prow { display: flex; align-items: center; gap: 12px; margin: 4px 16px 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--fx-text);
    background: radial-gradient(80% 140% at 0% 0%, rgba(236,72,153,0.18), transparent 60%), var(--fx-surface); border: 1px solid var(--fx-border); }
.fx-pe-prow-ic { flex: 0 0 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--fx-surface-raised); }
.fx-pe-prow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-pe-prow-t b { font-size: 15px; }
.fx-pe-prow-t small { font-size: 12.5px; color: var(--fx-text-muted); line-height: 1.35; }
.fx-pe-prow-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--fx-primary-solid); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.fx-pe-prow-go { font-size: 22px; color: var(--fx-text-muted); }
.fx-pe-trust { display: block; margin: 14px auto 0; max-width: 34ch; font-size: 13px; line-height: 1.45; color: var(--fx-text-muted); text-align: center; }
.fx-pe-trust svg { vertical-align: -2px; }
.fx-pe-howto-gap { height: 18px; border-bottom: 1px solid var(--fx-border); margin-bottom: 8px; }
.fx-pe-prow-ic, .fx-pe-promo-emoji { color: var(--fx-primary); }
