.prelhe-home-v4 {
    --ph4-bg: #fff8fc;
    --ph4-card: #ffffff;
    --ph4-soft: #faf6fb;
    --ph4-text: #241c28;
    --ph4-muted: #7d7182;
    --ph4-border: #ece3ee;
    --ph4-primary: #9c3fce;
    --ph4-primary-dark: #7630a4;
    --ph4-pink: #ed378e;
    --ph4-pink-soft: #fde8f2;
    --ph4-purple-soft: #f2e9fb;
    --ph4-danger: #d72f55;
    --ph4-success: #16845b;
    --ph4-shadow: 0 16px 50px rgba(91, 50, 95, 0.08);
    width: min(100%, 760px);
    margin-inline: auto;
    padding: 8px 0 72px;
    color: var(--ph4-text);
}

.prelhe-home-v4 *,
.prelhe-home-v4 *::before,
.prelhe-home-v4 *::after {
    box-sizing: border-box;
}

.prelhe-home-v4 svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prelhe-home-v4 button,
.prelhe-home-v4 select,
.prelhe-home-v4 textarea {
    font: inherit;
}

.prelhe-home-v4 button,
.prelhe-home-v4 a,
.prelhe-home-v4 label {
    -webkit-tap-highlight-color: transparent;
}

.prelhe-home-v4 button {
    cursor: pointer;
}

.prelhe-home-v4 [hidden] {
    display: none !important;
}

.prelhe-home-v4 .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.prelhe-home-v4-body {
    overflow-x: hidden;
}

.ph4-feed-switcher {
    position: sticky;
    top: calc(var(--header-height) + 6px);
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 14px;
    padding: 5px;
    border: 1px solid rgba(232, 222, 235, 0.9);
    border-radius: 17px;
    background: rgba(255, 251, 254, 0.92);
    box-shadow: 0 9px 28px rgba(77, 43, 84, 0.08);
    backdrop-filter: blur(18px);
}

.ph4-feed-switcher a {
    min-width: 0;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 12px;
    color: #746779;
    font-size: 11px;
    font-weight: 780;
}

.ph4-feed-switcher a.active {
    background: linear-gradient(135deg, var(--ph4-purple-soft), var(--ph4-pink-soft));
    color: var(--ph4-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(145, 60, 184, 0.08);
}

.ph4-feed-switcher svg {
    width: 18px;
    height: 18px;
}

.ph4-feed-switcher strong {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ph4-primary-dark);
    font-size: 9px;
}

.ph4-alert {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}

.ph4-alert.success {
    border-color: #bee8d5;
    background: #edfaf4;
    color: var(--ph4-success);
}

.ph4-alert.error {
    border-color: #f3c2d0;
    background: #fff1f6;
    color: #ad2b4e;
}

.prelhe-home-v4 > .story-tray-section {
    width: 100%;
    margin: 0 0 14px;
    border: 1px solid var(--ph4-border);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--ph4-shadow);
}

.ph4-reels-section,
.ph4-content-section {
    margin-top: 14px;
}

.ph4-reels-section {
    padding: 16px 0 15px;
    border: 1px solid var(--ph4-border);
    border-radius: 20px;
    background: var(--ph4-card);
    box-shadow: var(--ph4-shadow);
}

.ph4-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ph4-section-heading {
    padding: 0 16px 13px;
}

.ph4-section-heading > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ph4-heading-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
}

.ph4-heading-icon.reel {
    background: linear-gradient(135deg, #fce5f1, #f0e6fb);
    color: #be328c;
}

.ph4-heading-icon svg {
    width: 19px;
    height: 19px;
}

.ph4-section-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.35px;
}

.ph4-section-heading p {
    margin: 2px 0 0;
    color: var(--ph4-muted);
    font-size: 10px;
}

.ph4-reel-heading-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ph4-reel-heading-actions button {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ph4-border);
    border-radius: 10px;
    background: #ffffff;
    color: #695d6e;
}

.ph4-reel-heading-actions button:disabled {
    opacity: 0.38;
    cursor: default;
}

.ph4-reel-heading-actions svg {
    width: 16px;
    height: 16px;
}

.ph4-reel-heading-actions > a {
    margin-left: 4px;
    color: var(--ph4-primary);
    font-size: 11px;
    font-weight: 800;
}

.ph4-reel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
}

.ph4-reel-track::-webkit-scrollbar {
    display: none;
}

.ph4-reel-card {
    position: relative;
    width: 150px;
    height: 248px;
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: 17px;
    background: #130f16;
    scroll-snap-align: start;
    box-shadow: 0 9px 24px rgba(30, 19, 34, 0.16);
}

.ph4-reel-card > a,
.ph4-reel-card video,
.ph4-reel-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ph4-reel-card video {
    display: block;
    background: #130f16;
    object-fit: cover;
}

.ph4-reel-shade {
    background:
        linear-gradient(180deg, rgba(8, 6, 9, 0.28), transparent 32%),
        linear-gradient(0deg, rgba(8, 5, 10, 0.9), transparent 52%);
    pointer-events: none;
}

.ph4-reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(20, 14, 23, 0.4);
    color: #ffffff;
    backdrop-filter: blur(8px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.ph4-reel-card.is-previewing .ph4-reel-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
}

.ph4-reel-play svg {
    width: 19px;
    height: 19px;
}

.ph4-reel-duration,
.ph4-reel-views {
    position: absolute;
    top: 9px;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(18, 13, 21, 0.58);
    color: #ffffff;
    font-size: 8px;
    font-style: normal;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.ph4-reel-duration {
    right: 8px;
}

.ph4-reel-views {
    left: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ph4-reel-views svg {
    width: 11px;
    height: 11px;
}

.ph4-reel-creator {
    position: absolute;
    right: 9px;
    bottom: 10px;
    left: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #ffffff;
}

.ph4-reel-creator img,
.ph4-reel-creator i {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: linear-gradient(135deg, #9c42d1, #ec3c91);
    color: #ffffff;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    object-fit: cover;
}

.ph4-reel-creator b {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph4-reels-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 16px;
    padding: 14px;
    border: 1px dashed #dfd2e2;
    border-radius: 14px;
    background: var(--ph4-soft);
    color: var(--ph4-muted);
    font-size: 11px;
}

.ph4-reels-empty a {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 10px;
    background: var(--ph4-purple-soft);
    color: var(--ph4-primary-dark);
    font-weight: 800;
}

.ph4-feed {
    display: grid;
    gap: 13px;
}

.ph4-feed-card {
    position: relative;
    border: 1px solid var(--ph4-border);
    border-radius: 20px;
    background: var(--ph4-card);
    box-shadow: var(--ph4-shadow);
}

.ph4-card-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    padding: 14px 15px 10px;
}

.ph4-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ph4-author > img,
.ph4-author > span:first-child {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #9843d3, #ed3c91);
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    object-fit: cover;
}

.ph4-author-copy {
    display: grid;
    min-width: 0;
}

.ph4-author-copy strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph4-author-copy small {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ph4-muted);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph4-author-copy small i {
    font-style: normal;
}

.ph4-card-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.ph4-following-label,
.ph4-type-label {
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.ph4-following-label {
    background: #eef8f4;
    color: #23775a;
}

.ph4-type-label {
    background: #f2edf4;
    color: #736777;
    text-transform: uppercase;
}

.ph4-type-label.video {
    background: #eeeafa;
    color: #6740b2;
}

.ph4-menu {
    position: relative;
}

.ph4-menu-toggle {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #756b79;
}

.ph4-menu-toggle:hover,
.ph4-menu-toggle[aria-expanded="true"] {
    background: #f5f0f6;
    color: var(--ph4-primary-dark);
}

.ph4-menu-panel {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 80;
    width: 190px;
    padding: 6px;
    border: 1px solid var(--ph4-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(40, 24, 45, 0.18);
}

.ph4-menu-panel form {
    margin: 0;
}

.ph4-menu-panel > a,
.ph4-menu-panel > button,
.ph4-menu-panel form > button {
    width: 100%;
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #433947;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.ph4-menu-panel > a:hover,
.ph4-menu-panel > button:hover,
.ph4-menu-panel form > button:hover {
    background: #f7f3f8;
}

.ph4-menu-panel .danger {
    color: var(--ph4-danger);
}

.ph4-menu-panel svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.ph4-card-copy {
    padding: 2px 15px 13px;
}

.ph4-card-copy h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -0.25px;
}

.ph4-card-copy p {
    margin: 0;
    color: #403645;
    font-size: 13px;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.ph4-image-grid {
    display: grid;
    gap: 2px;
    overflow: hidden;
    background: #161219;
}

.ph4-image-grid.count-1 {
    grid-template-columns: 1fr;
}

.ph4-image-grid.count-2,
.ph4-image-grid.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph4-image-grid.count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph4-image-grid.count-3 button:first-child {
    grid-row: span 2;
}

.ph4-image-grid button {
    min-height: 185px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #161219;
}

.ph4-image-grid img {
    width: 100%;
    height: 100%;
    max-height: 72vh;
    display: block;
    object-fit: cover;
    transition: transform 180ms ease;
}

.ph4-image-grid button:hover img {
    transform: scale(1.015);
}

.ph4-image-grid.count-1 img {
    min-height: 300px;
    object-fit: contain;
}

.ph4-video-wrap {
    position: relative;
    overflow: hidden;
    background: #0d0b0f;
}

.ph4-video-wrap video {
    width: 100%;
    max-height: min(72vh, 560px);
    display: block;
    aspect-ratio: 16 / 9;
    background: #0d0b0f;
    object-fit: contain;
}

.ph4-video-category,
.ph4-video-duration {
    position: absolute;
    top: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(16, 12, 18, 0.68);
    color: #ffffff;
    font-size: 9px;
    font-weight: 750;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.ph4-video-category {
    left: 10px;
}

.ph4-video-duration {
    right: 10px;
}

.ph4-card-footer {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px 10px;
}

.ph4-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.ph4-action {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #716676;
    font-size: 10px;
    font-weight: 720;
}

.ph4-action:hover {
    background: #f7f2f8;
    color: var(--ph4-primary-dark);
}

.ph4-action.active {
    background: var(--ph4-pink-soft);
    color: var(--ph4-pink);
}

.ph4-action.active svg {
    fill: currentColor;
}

.ph4-action.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.ph4-action svg {
    width: 19px;
    height: 19px;
}

.ph4-view-count {
    flex: 0 0 auto;
    color: #918696;
    font-size: 9px;
}

.ph4-empty-feed {
    display: grid;
    place-items: center;
    padding: 54px 24px;
    border: 1px solid var(--ph4-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--ph4-shadow);
    text-align: center;
}

.ph4-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ph4-purple-soft), var(--ph4-pink-soft));
    color: var(--ph4-primary);
}

.ph4-empty-icon svg {
    width: 26px;
    height: 26px;
}

.ph4-empty-feed h3 {
    margin: 15px 0 6px;
    font-size: 17px;
}

.ph4-empty-feed p {
    max-width: 350px;
    margin: 0;
    color: var(--ph4-muted);
    font-size: 11px;
    line-height: 1.6;
}

.ph4-empty-feed > a,
.ph4-empty-feed > button {
    margin-top: 16px;
    padding: 10px 15px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8f3ed1, #eb388e);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.ph4-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.ph4-pagination a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 0 13px;
    border: 1px solid var(--ph4-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ph4-primary-dark);
    font-size: 10px;
    font-weight: 800;
}

.ph4-pagination a:last-child {
    justify-self: end;
}

.ph4-pagination svg {
    width: 16px;
    height: 16px;
}

.ph4-pagination small {
    color: var(--ph4-muted);
    font-size: 9px;
}

.ph4-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.ph4-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(19, 12, 22, 0.52);
    backdrop-filter: blur(4px);
}

.ph4-sheet,
.ph4-composer,
.ph4-report-sheet {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: min(calc(100% - 36px), 560px);
    max-height: calc(100dvh - 36px);
    margin-inline: auto;
    overflow-y: auto;
    border: 1px solid rgba(237, 226, 239, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(31, 18, 36, 0.28);
}

.ph4-sheet {
    padding: 10px 15px 17px;
}

.ph4-sheet-handle {
    width: 43px;
    height: 5px;
    display: block;
    margin: 0 auto 9px;
    border-radius: 999px;
    background: #ddd3e0;
}

.ph4-sheet header,
.ph4-composer > header,
.ph4-report-sheet > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ph4-sheet header h2,
.ph4-composer > header h2,
.ph4-report-sheet > header h2 {
    margin: 0;
    font-size: 19px;
}

.ph4-sheet header p,
.ph4-report-sheet > header p {
    margin: 3px 0 0;
    color: var(--ph4-muted);
    font-size: 10px;
}

.ph4-sheet header > button,
.ph4-composer > header > button,
.ph4-report-sheet > header > button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4eff5;
    color: #564b5a;
}

.ph4-sheet header > button svg,
.ph4-composer > header > button svg,
.ph4-report-sheet > header > button svg {
    width: 18px;
    height: 18px;
}

.ph4-create-options {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.ph4-create-options > a,
.ph4-create-options > button {
    width: 100%;
    min-height: 65px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid var(--ph4-border);
    border-radius: 15px;
    background: #ffffff;
    color: var(--ph4-text);
    text-align: left;
}

.ph4-create-options > a:hover,
.ph4-create-options > button:hover {
    border-color: #d8c5dd;
    background: #fdfafd;
}

.ph4-create-options > * > span:first-child {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
}

.ph4-create-options .post {
    background: linear-gradient(135deg, #9345d1, #c942bb);
}

.ph4-create-options .reel {
    background: linear-gradient(135deg, #e73088, #fa5d6d);
}

.ph4-create-options .video {
    background: linear-gradient(135deg, #5546ce, #8d4add);
}

.ph4-create-options > * > span:nth-child(2) {
    display: grid;
    min-width: 0;
}

.ph4-create-options strong {
    font-size: 13px;
}

.ph4-create-options small {
    margin-top: 2px;
    color: var(--ph4-muted);
    font-size: 9px;
}

.ph4-create-options > * > svg {
    width: 17px;
    height: 17px;
    color: #95899a;
}

.ph4-composer > header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 58px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--ph4-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.ph4-composer > header > span {
    width: 38px;
}

.ph4-composer > form {
    padding: 15px;
}

.ph4-composer-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph4-composer-author > img,
.ph4-composer-author > span:first-child {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #9943d3, #ed3d91);
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    object-fit: cover;
}

.ph4-composer-author > span:last-child {
    display: grid;
}

.ph4-composer-author strong {
    font-size: 13px;
}

.ph4-composer-author small {
    margin-top: 2px;
    color: var(--ph4-muted);
    font-size: 10px;
}

.ph4-audience-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid #ead4e3;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff7fb, #f7f2ff);
    color: #70445e;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.ph4-composer-text {
    position: relative;
    display: block;
    margin-top: 13px;
}

.ph4-composer-text textarea {
    width: 100%;
    min-height: 165px;
    display: block;
    padding: 13px 13px 30px;
    resize: vertical;
    border: 1px solid var(--ph4-border);
    border-radius: 15px;
    outline: none;
    background: #fcf9fc;
    color: var(--ph4-text);
    font-size: 15px;
    line-height: 1.52;
}

.ph4-composer-text textarea:focus {
    border-color: #b76bd4;
    box-shadow: 0 0 0 3px rgba(152, 60, 194, 0.1);
}

.ph4-composer-text > small {
    position: absolute;
    right: 11px;
    bottom: 8px;
    color: #978b9a;
    font-size: 9px;
}

.ph4-field-error {
    margin: 7px 2px 0;
    color: var(--ph4-danger);
    font-size: 10px;
}

.ph4-upload-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.ph4-upload-preview img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.ph4-composer-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 11px;
}

.ph4-photo-picker,
.ph4-visibility-picker {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ph4-purple-soft), var(--ph4-pink-soft));
    color: var(--ph4-primary-dark);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.ph4-photo-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ph4-photo-picker svg,
.ph4-visibility-picker svg {
    width: 17px;
    height: 17px;
}

.ph4-visibility-picker select {
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
}

.ph4-publish-button {
    width: 100%;
    min-height: 45px;
    margin-top: 15px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #8e3dd1, #eb378e);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(169, 49, 157, 0.2);
    font-size: 12px;
    font-weight: 850;
}

.ph4-publish-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ph4-report-sheet {
    padding: 15px;
}

.ph4-report-sheet form {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.ph4-report-sheet form label {
    display: grid;
    gap: 6px;
}

.ph4-report-sheet form label > span {
    color: #544859;
    font-size: 10px;
    font-weight: 800;
}

.ph4-report-sheet form label small {
    color: var(--ph4-muted);
    font-weight: 500;
}

.ph4-report-sheet select,
.ph4-report-sheet textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--ph4-border);
    border-radius: 12px;
    outline: none;
    background: #fcf9fc;
    color: var(--ph4-text);
    font-size: 12px;
}

.ph4-report-sheet textarea {
    resize: vertical;
}

.ph4-report-sheet select:focus,
.ph4-report-sheet textarea:focus {
    border-color: #b66cd2;
    box-shadow: 0 0 0 3px rgba(152, 60, 194, 0.09);
}

.ph4-report-sheet form > button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--ph4-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
}

.ph4-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 6, 10, 0.95);
}

.ph4-lightbox > button {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ph4-lightbox img {
    max-width: 100%;
    max-height: 92dvh;
    display: block;
    object-fit: contain;
}

.ph4-toast {
    position: fixed;
    left: 50%;
    bottom: 86px;
    z-index: 12200;
    max-width: min(calc(100% - 28px), 420px);
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(35, 27, 39, 0.94);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(25, 17, 28, 0.2);
    font-size: 10px;
    font-weight: 750;
    text-align: center;
    backdrop-filter: blur(10px);
}

body.ph4-modal-open {
    overflow: hidden !important;
}

.prelhe-home-v4 :focus-visible {
    outline: 3px solid rgba(156, 63, 206, 0.28);
    outline-offset: 2px;
}

@media (max-width: 790px) {
    body.prelhe-home-v4-body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .prelhe-home-v4 {
        padding: 4px 10px 42px;
    }

    .mobile-navigation.prelhe-home-mobile-nav {
        min-height: 68px;
        height: auto;
        display: flex !important;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding:
            6px
            max(8px, env(safe-area-inset-right))
            calc(6px + env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .mobile-navigation.prelhe-home-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .prelhe-home-mobile-nav > a,
    .prelhe-home-mobile-nav > button,
    .prelhe-home-mobile-nav > form {
        width: 68px !important;
        min-width: 68px !important;
        flex: 0 0 68px !important;
        scroll-snap-align: center;
    }

    .prelhe-home-mobile-nav > form > button {
        width: 100% !important;
    }

    .prelhe-home-mobile-nav .prelhe-home-create-nav {
        position: relative;
        overflow: visible;
        color: var(--primary);
    }

    .prelhe-home-mobile-nav .prelhe-home-camera-nav {
        color: #b02e91;
    }

    .prelhe-home-mobile-nav .prelhe-home-camera-nav svg {
        width: 24px;
        height: 24px;
        padding: 2px;
        border-radius: 9px;
        background: linear-gradient(135deg, #f8e5f4, #f4eaff);
        box-shadow: inset 0 0 0 1px rgba(176, 46, 145, 0.08);
    }

    .prelhe-home-mobile-nav .prelhe-home-create-nav svg {
        width: 37px;
        height: 37px;
        padding: 8px;
        margin-top: -13px;
        border-radius: 13px;
        background: linear-gradient(135deg, #913ed2, #ed378f);
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(166, 47, 156, 0.3);
    }

    .prelhe-home-mobile-nav .prelhe-home-create-nav span {
        margin-top: -2px;
    }

    .ph4-feed-switcher {
        top: calc(var(--header-height) + 4px);
    }

    .ph4-reel-heading-actions button {
        display: none;
    }
}

@media (max-width: 560px) {
    .prelhe-home-v4 {
        padding-right: 0;
        padding-left: 0;
    }

    .ph4-feed-switcher,
    .ph4-alert,
    .ph4-pagination {
        margin-right: 12px;
        margin-left: 12px;
    }

    .ph4-feed-switcher a {
        min-height: 41px;
        padding: 0 7px;
    }

    .ph4-feed-switcher strong {
        display: none;
    }

    .prelhe-home-v4 > .story-tray-section,
    .ph4-reels-section,
    .ph4-feed-card,
    .ph4-empty-feed {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .prelhe-home-v4 > .story-tray-section {
        margin-bottom: 9px;
    }

    .ph4-reels-section {
        margin-top: 9px;
    }

    .ph4-section-heading {
        padding-right: 13px;
        padding-left: 13px;
    }

    .ph4-reel-track {
        padding-right: 13px;
        padding-left: 13px;
    }

    .ph4-reel-card {
        width: 132px;
        height: 220px;
        flex-basis: 132px;
        border-radius: 15px;
    }

    .ph4-content-section {
        margin-top: 11px;
    }

    .ph4-feed {
        gap: 9px;
    }

    .ph4-card-header {
        padding: 13px 12px 9px;
    }

    .ph4-card-copy {
        padding-right: 12px;
        padding-left: 12px;
    }

    .ph4-following-label {
        display: none;
    }

    .ph4-image-grid button {
        min-height: 155px;
    }

    .ph4-image-grid.count-1 img {
        min-height: 230px;
        max-height: 68vh;
    }

    .ph4-card-footer {
        padding-right: 8px;
        padding-left: 8px;
    }

    .ph4-action {
        padding-right: 7px;
        padding-left: 7px;
    }

    .ph4-view-count {
        display: none;
    }

    .ph4-sheet,
    .ph4-composer,
    .ph4-report-sheet {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 92dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .ph4-upload-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 370px) {
    .ph4-feed-switcher a {
        gap: 4px;
        font-size: 9px;
    }

    .ph4-feed-switcher svg {
        width: 16px;
        height: 16px;
    }

    .ph4-type-label {
        display: none;
    }

    .ph4-action span:not([data-home-count]) {
        display: none;
    }

    .ph4-composer-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .ph4-photo-picker,
    .ph4-visibility-picker {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ph4-reel-track {
        scroll-behavior: auto;
    }

    .ph4-reel-play,
    .ph4-image-grid img {
        transition: none;
    }
}


/* ==========================================================
   PRELHE_HOME_CREATOR_PROMOTION_V1
   Real paid Top Creator rail
   ========================================================== */

.ph4-promoted-creators {
    padding: 0 0 8px;
    border-bottom: 1px solid #f0e3eb;
    background: #fff;
}

.ph4-promoted-creators > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px 9px;
}

.ph4-promoted-creators > header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph4-promoted-creators > header strong {
    color: #432d3c;
    font-size: 16px;
    font-weight: 850;
}

.ph4-promoted-creators > header span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fbe7f4;
    color: #d62e8b;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ph4-promoted-creator-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 22px 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.ph4-promoted-creator-track::-webkit-scrollbar {
    display: none;
}

.ph4-promoted-creator {
    width: 52px;
    flex: 0 0 52px;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #4b3544;
    text-align: center;
    text-decoration: none;
}

.ph4-promoted-avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 3px;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #f52f94,
            #c643c6
        );
}

.ph4-promoted-avatar img,
.ph4-promoted-avatar i {
    width: 100%;
    height: 100%;
    border: 3px solid #fff;
    border-radius: 50%;
}

.ph4-promoted-avatar img {
    object-fit: cover;
}

.ph4-promoted-avatar i {
    display: grid;
    place-items: center;
    background: #fff2f9;
    color: #d72c8b;
    font-style: normal;
    font-size: 15px;
    font-weight: 900;
}

.ph4-promoted-creator > strong,
.ph4-promoted-creator > small {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph4-promoted-creator > strong {
    font-size: 11px;
    font-weight: 800;
}

.ph4-promoted-creator > small {
    color: #998391;
    font-size: 9px;
}

@media (max-width: 520px) {
    .ph4-promoted-creators > header {
        padding-inline: 20px;
    }

    .ph4-promoted-creator-track {
        padding-inline: 20px;
    }
}

/* PRELHE_HOME_PROMOTION_V2_EMPTY */
.ph4-promoted-empty {
    padding: 12px 14px;
    border: 1px dashed rgba(214, 151, 188, .55);
    border-radius: 16px;
    background: rgba(255, 250, 253, .78);
    color: #8b7181;
    font-size: 12px;
    line-height: 1.45;
}


/* ==========================================================
   PRELHE_HOME_ADMIN_FALLBACK_V1
   Real Admin/Super Admin free fallback
   ========================================================== */

.ph4-promoted-creators.is-admin-fallback {
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #fff 0%,
            #fffafd 100%
        );
}

.ph4-promoted-creators.is-admin-fallback
.ph4-promoted-creator-track {
    overflow-x: auto;
    scroll-behavior: auto;
    will-change: scroll-position;
}

.ph4-promoted-creators.is-admin-fallback
.ph4-promoted-avatar {
    position: relative;

    animation:
        prelheAdminAvatarFlash
        2.1s
        ease-in-out
        infinite;

    box-shadow:
        0 0 0 0
        rgba(232, 47, 146, .22);
}

.ph4-promoted-creators.is-admin-fallback
.ph4-promoted-creator:nth-child(2n)
.ph4-promoted-avatar {
    animation-delay: .35s;
}

.ph4-promoted-creators.is-admin-fallback
.ph4-promoted-creator:nth-child(3n)
.ph4-promoted-avatar {
    animation-delay: .7s;
}

.ph4-admin-flash-dot {
    position: absolute;
    right: 1px;
    bottom: 3px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ec2e91;

    box-shadow:
        0 0 0 3px
        rgba(236, 46, 145, .12);
}

.ph4-promoted-creators.is-admin-fallback
.ph4-promoted-creator > small {
    color: #d02c86;
    font-weight: 750;
}

.ph4-promoted-creators.is-admin-fallback
.ph4-promoted-creator[
    data-prelhe-slider-clone
] {
    pointer-events: none;
}

@keyframes prelheAdminAvatarFlash {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow:
            0 0 0 0
            rgba(232, 47, 146, .18);
    }

    50% {
        transform: scale(1.055);
        filter: brightness(1.08);
        box-shadow:
            0 0 0 8px
            rgba(232, 47, 146, 0);
    }
}

@media (
    prefers-reduced-motion: reduce
) {
    .ph4-promoted-creators.is-admin-fallback
    .ph4-promoted-avatar {
        animation: none;
    }
}

/* PRELHE_HOME_FEED_SWITCHER_V1 */
.ph4-feed-switcher {
    position: sticky;
    top: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ph4-feed-switch {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    opacity: .64;
}

.ph4-feed-switch.active {
    background: rgba(127, 127, 127, 0.12);
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    .ph4-feed-switcher {
        background: rgba(17, 17, 17, 0.94);
    }

    .ph4-feed-switch.active {
        background: rgba(255, 255, 255, 0.10);
    }
}
