/* Per-page hero preview mock: Homepage (hph-) */

/* ─── homepage (hph-) ──────────────────────────────────────────────────── */


/* ── Background: remove decorative rectangles, keep gradient only ──────── */

.b-main .custom-main-container {
    background: linear-gradient(180deg, #59B5F9 0%, #1C5DE3 100%);
}


/* ── Layout: widen right column for the animation (desktop only) ─────── */

@media (min-width: 1100px) {
    .b-main .custom-main-container .b-main-bottom {
        width: 56%;
    }

    .b-main .custom-main-container .b-main-content {
        width: 44%;
    }

    .b-main .custom-main-container .b-main-title {
        font-size: 38px;
        margin: 1rem 0;
    }

    .b-main .custom-main-container .b-main-left p {
        font-size: 14px;
        line-height: 1.55;
    }

}

@media (min-width: 1126px) {
    .b-main .custom-main-container .b-main-btns {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .b-main .custom-main-container .b-main-btns .purple-btn,
    .b-main .custom-main-container .b-main-btns .btn {
        width: auto;
        min-width: 0;
        padding: 0 16px;
    }
}

@media (min-width: 1126px) and (max-width: 1275px) {
    .b-main .custom-main-container .b-main-btns .purple-btn,
    .b-main .custom-main-container .b-main-btns .btn {
        padding: 0 12px;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1125px) {
    .b-main .custom-main-container .b-main-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .b-main .custom-main-container .b-main-btns .purple-btn,
    .b-main .custom-main-container .b-main-btns .btn {
        width: 100%;
        min-width: 0;
        padding: 0 12px;
        font-size: 14px;
    }

    .b-main .custom-main-container .b-main-btns > a:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .b-main .custom-main-container .b-main-bottom,
    .b-main .custom-main-container .b-main-content {
        width: 50%;
    }

    .b-main .custom-main-container .b-main-title {
        font-size: 32px;
        margin: 1rem 0;
    }

    .b-main .custom-main-container .b-main-left p {
        font-size: 14px;
        line-height: 1.55;
    }
}

@media (max-width: 767px) {
    .b-main .custom-main-container .b-main-bottom,
    .b-main .custom-main-container .b-main-content {
        width: 100%;
    }

    .b-main .custom-main-container .b-main-title {
        font-size: 32px;
        margin: 1.25rem 0;
    }

    .b-main .custom-main-container .b-main-left p {
        font-size: 15px;
        line-height: 1.55;
    }

    .b-main .custom-main-container .b-main-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .b-main .custom-main-container .b-main-btns .purple-btn,
    .b-main .custom-main-container .b-main-btns .btn {
        width: 100%;
        min-width: 0;
        padding: 0 14px;
        font-size: 14px;
    }

    .b-main .custom-main-container .b-main-btns > a:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .b-main .custom-main-container {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .b-main .custom-main-container .b-main-title {
        font-size: 26px;
    }

    .b-main .custom-main-container .b-main-btns {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .b-main .custom-main-container .b-main-btns .purple-btn,
    .b-main .custom-main-container .b-main-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .b-main .custom-main-container .b-main-btns > a:nth-child(3) {
        grid-column: auto;
    }
}


/* ── Root ─────────────────────────────────────────────────────────────── */

.hph {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: inherit;
    font-size: 13px;
    color: #3a4564;
    background: #fff;
    line-height: 1.4;
    -webkit-user-select: none;
    user-select: none;
}


/* ── Chrome bar ───────────────────────────────────────────────────────── */

.hph-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    flex-shrink: 0;
    background: #fafcff;
    border-bottom: 1px solid #eef2fb;
}

.hph-bar__dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.hph-bar__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.hph-bar__dots span:nth-child(1) { background: #fca5a5; }
.hph-bar__dots span:nth-child(2) { background: #fde68a; }
.hph-bar__dots span:nth-child(3) { background: #a7f3d0; }

.hph-bar__url {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #e6eefb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9aa6c4;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hph-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.hph-bar__ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    flex-shrink: 0;
}

.hph-bar__avs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hph-bar__avs .av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fafcff;
    margin-left: -6px;
}

.hph-bar__avs .av:first-child {
    margin-left: 0;
}

.hph-bar__status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e6eefb;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.hph-bar__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: hphStatusDot 2s ease-in-out infinite;
}

@keyframes hphStatusDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.hph-bar__status-texts {
    position: relative;
    height: 16px;
    width: 140px;
    overflow: hidden;
}

.hph-bar__stext {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    color: #3a4564;
    white-space: nowrap;
    opacity: 0;
}


/* ── Body layout ──────────────────────────────────────────────────────── */

.hph-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}


/* ── Left rail ────────────────────────────────────────────────────────── */

.hph-rail {
    width: 130px;
    flex-shrink: 0;
    border-right: 1px solid #eef2fb;
    background: #fafcff;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
}

.hph-rail__project {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid #eef2fb;
    margin-bottom: 4px;
}

.hph-rail__pdot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hph-rail__pname {
    font-size: 11px;
    font-weight: 700;
    color: #000929;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hph-rail__sep {
    display: none; /* project section already has border-bottom */
}

.hph-rail__stage {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: 11.5px;
    font-weight: 500;
    color: #6b7596;
    cursor: default;
}

.hph-rail__sdot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.hph-rail__sname {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hph-rail__label {
    padding: 10px 12px 4px;
    margin-top: 4px;
    border-top: 1px solid #eef2fb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b3bdd6;
}


/* ── Main stage ───────────────────────────────────────────────────────── */

.hph-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 360px;
}


/* ── Scenes (base) ────────────────────────────────────────────────────── */

.hph-scene {
    position: absolute;
    inset: 0;
    padding: 14px 18px;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* Scene header */
.hph-scene__hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 11px;
    border-bottom: 1px solid #f0f4fb;
    flex-shrink: 0;
}

.hph-scene__hdr-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.hph-scene__ico {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hph-scene__ico--ai     { background: #0961DB; }
.hph-scene__ico--purple { background: #7c3aed; }
.hph-scene__ico--blue   { background: #3b82f6; }
.hph-scene__ico--green  { background: #22c55e; }
.hph-scene__ico--amber  { background: #f59e0b; }
.hph-scene__ico--indigo { background: #6366f1; }

.hph-scene__title {
    font-size: 13px;
    font-weight: 700;
    color: #000929;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status tags */
.hph-tag {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hph-tag--ai     { background: #e0f2fe; color: #0284c7; }
.hph-tag--purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.hph-tag--blue   { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }
.hph-tag--green  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.hph-tag--amber  { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.hph-tag--indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }


/* ── Scene 1: AI prompt + shimmer skeleton ────────────────────────────── */

.hph-prompt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px;
    background: linear-gradient(135deg, #f0f7ff, #e8f3ff);
    border: 1px solid #c7def9;
    border-radius: 10px;
    flex-shrink: 0;
}

.hph-prompt__ico {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #0961DB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hph-prompt__text {
    font-size: 12px;
    color: #3a4564;
    line-height: 1.45;
}

.hph-ai-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    font-size: 11px;
    font-weight: 700;
    color: #0961DB;
    align-self: flex-start;
    flex-shrink: 0;
}

.hph-typing {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
}

.hph-typing span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0961DB;
    animation: hphTyping 1.2s ease-in-out infinite;
}

.hph-typing span:nth-child(2) { animation-delay: 0.2s; }
.hph-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hphTyping {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
}

.hph-shimmer {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.hph-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.78) 50%, transparent 100%);
    animation: hphShimmerSweep 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hphShimmerSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hph-shimmer__row {
    height: 11px;
    border-radius: 4px;
    background: #eef3fb;
    flex-shrink: 0;
}

.hph-wc {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 9px;
    border-top: 1px solid #f0f4fb;
    flex-shrink: 0;
}

.hph-wc__label {
    font-size: 11px;
    font-weight: 600;
    color: #0961DB;
    flex-shrink: 0;
}

.hph-wc__bar {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: #eef3fb;
    overflow: hidden;
}

.hph-wc__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #59B5F9, #0961DB);
}

.hph-wc__target {
    font-size: 11px;
    color: #9aa6c4;
    font-weight: 600;
    flex-shrink: 0;
}


/* ── Scene 2: Style guide score + check rows ──────────────────────────── */

.hph-score-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 1;
}

.hph-score-ring {
    flex-shrink: 0;
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hph-score-ring__svg {
    width: 90px;
    height: 90px;
    transform: rotate(-90deg);
}

.hph-score-ring__track {
    stroke: #eef3fb;
    stroke-width: 5;
    fill: none;
}

.hph-score-ring__fill {
    fill: none;
    stroke: #7c3aed;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 150.796;
    stroke-dashoffset: 150.796;
}

.hph-score-ring__lbl {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hph-score-ring__num {
    font-size: 17px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
}

.hph-score-ring__sub {
    font-size: 10px;
    font-weight: 600;
    color: #9aa6c4;
    line-height: 1.3;
    margin-top: 2px;
}

.hph-checks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hph-check {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #3a4564;
}

.hph-check svg { flex-shrink: 0; }

.hph-check span:not([class]) { flex: 1; }

.hph-check--ok   { background: #f0fdf4; }
.hph-check--warn { background: #fffbeb; }

.hph-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.hph-badge--ok   { background: #dcfce7; color: #15803d; }
.hph-badge--warn { background: #fef3c7; color: #d97706; }

.hph-check__fix {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.hph-check__fix::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.60) 50%, transparent 80%);
    animation: hphShimmerBtn 3.1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hphShimmerBtn {
    0%      { transform: translateX(-150%) skewX(-15deg); }
    19.35%  { transform: translateX(300%)  skewX(-15deg); }
    100%    { transform: translateX(300%)  skewX(-15deg); }
}


/* ── Scene 3: Live presence bar ───────────────────────────────────────── */

.hph-presence {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    flex-shrink: 0;
}

.hph-presence__label {
    font-size: 10.5px;
    font-weight: 600;
    color: #9aa6c4;
    white-space: nowrap;
    flex-shrink: 0;
}

.hph-presence__users {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hph-presence__user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 3px;
    border-radius: 999px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.hph-presence__user--david { background: #eff6ff; border-color: #bfdbfe; }
.hph-presence__user--sarah { background: #f0fdf4; border-color: #bbf7d0; }
.hph-presence__user--emma  { background: #faf5ff; border-color: #e9d5ff; }

.hph-presence__av {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hph-presence__name {
    font-size: 10.5px;
    font-weight: 600;
    color: #3a4564;
    white-space: nowrap;
}

.hph-presence__typing-lbl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #7c3aed;
}


/* ── Scene 3: Comment thread ──────────────────────────────────────────── */

.hph-thread {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.hph-comment--compact {
    padding: 9px 11px;
    margin-top: 0;
}

.hph-comment--live {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.hph-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    margin-left: 2px;
    animation: hphStatusDot 1.5s ease-in-out infinite;
}

.hph-caret {
    display: inline-block;
    width: 1.5px;
    height: 0.85em;
    background: #3b82f6;
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: hphCaretBlink 1s step-end infinite;
}

@keyframes hphCaretBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}


/* ── Scene 3: Diff view + reviewer comment ────────────────────────────── */

.hph-diff {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f4fb;
    font-size: 12px;
    line-height: 1.5;
    flex-shrink: 0;
}

.hph-diff__line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 10px;
    background: #fafcff;
}

.hph-diff__line + .hph-diff__line {
    border-top: 1px solid #f0f4fb;
}

.hph-diff__line--del { background: #fef2f2; }
.hph-diff__line--ins { background: #f0fdf4; }

.hph-diff__mark {
    flex-shrink: 0;
    width: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    line-height: 1.45;
}

.hph-diff__line--del .hph-diff__mark { color: #dc2626; }
.hph-diff__line--ins .hph-diff__mark { color: #16a34a; }
.hph-diff__line--ctx .hph-diff__mark { color: #c3cde6; }

.hph-diff__text { flex: 1; }

.hph-diff__line--del .hph-diff__text { color: #b91c1c; text-decoration: line-through; }
.hph-diff__line--ins .hph-diff__text { color: #15803d; }
.hph-diff__line--ctx .hph-diff__text { color: #6b7596; }

.hph-comment {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #f6faff;
    border-radius: 10px;
    border: 1px solid #e1ebfb;
    flex-shrink: 0;
}

.hph-comment__av {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e1ebfb;
}

.hph-comment__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hph-comment__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hph-comment__name {
    font-size: 12px;
    font-weight: 700;
    color: #000929;
}

.hph-comment__role {
    font-size: 11px;
    font-weight: 500;
    color: #9aa6c4;
}

.hph-comment__msg {
    font-size: 12px;
    color: #3a4564;
    margin: 0;
    line-height: 1.4;
}

.hph-approve {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    cursor: default;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.hph-approve--shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
    animation: hphShimmerBtn 3.1s ease-in-out infinite;
    pointer-events: none;
}


/* ── Scene 4: Published card + workflow summary ───────────────────────── */

.hph-pub-card {
    padding: 14px;
    background: linear-gradient(180deg, #f6faff, #eef4ff);
    border: 1px solid #e1ebfb;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex-shrink: 0;
}

.hph-pub-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #9aa6c4;
    font-weight: 500;
}

.hph-sep { color: #d1d9ef; }

.hph-item-move {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hph-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6eefb;
    font-size: 12px;
    font-weight: 600;
    color: #3a4564;
    white-space: nowrap;
}

.hph-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hph-pill--from { opacity: 0.55; }

.hph-pill--to {
    color: #000929;
    border-color: #bbf7d0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
    animation: hphPillPulse 3.2s ease-in-out infinite;
}

@keyframes hphPillPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
    50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.04); }
}

.hph-move-arrow {
    flex-shrink: 0;
    color: #9aa6c4;
    line-height: 0;
    animation: hphMoveArrow 2.4s ease-in-out infinite;
}

@keyframes hphMoveArrow {
    0%, 100% { transform: translateX(0);   opacity: 0.55; }
    50%       { transform: translateX(3px); opacity: 1;   }
}

.hph-progress-bar {
    height: 7px;
    border-radius: 999px;
    background: #eef3fb;
    overflow: hidden;
}

.hph-progress-bar__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #59B5F9, #0961DB);
}

.hph-pub-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hph-pub-footer__label {
    font-size: 11.5px;
    font-weight: 600;
    color: #6b7596;
}

.hph-pub-footer__pct {
    font-size: 11.5px;
    font-weight: 700;
    color: #0961DB;
}

.hph-team {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 11px;
    border-top: 1px solid #f0f4fb;
    flex-shrink: 0;
}

.hph-team__label {
    font-size: 11.5px;
    color: #9aa6c4;
    font-weight: 500;
}

.hph-team__avs {
    display: flex;
    align-items: center;
}

.hph-team__avs .av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -5px;
}

.hph-team__avs .av:first-child { margin-left: 0; }

.hph-team__badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: #dcfce7;
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    margin-left: 2px;
}


/* ── Scene 5: Content Calendar ────────────────────────────────────────── */

.hph-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    flex-shrink: 0;
}

.hph-cal__hdr {
    text-align: center;
    font-size: 9.5px;
    font-weight: 700;
    color: #b3bdd6;
    padding-bottom: 2px;
}

.hph-cal__cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    border-radius: 6px;
    background: #fafcff;
    border: 1px solid #f0f4fb;
    font-size: 11px;
    font-weight: 600;
    color: #6b7596;
}

.hph-cal__cell--today {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: #0961DB;
    font-weight: 800;
}

.hph-cal__dot {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.hph-cal__dot--pulse {
    animation: hphStatusDot 1.6s ease-in-out infinite;
}

.hph-cal-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.hph-cal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fafcff;
    border: 1px solid #f0f4fb;
}

.hph-cal-item__date {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 700;
    color: #9aa6c4;
    width: 38px;
}

.hph-cal-item__type {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.hph-cal-item__title {
    flex: 1;
    min-width: 0;
    font-size: 11.5px;
    font-weight: 500;
    color: #3a4564;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ── Scene 6: Content Templates ───────────────────────────────────────── */

.hph-tmpl {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.hph-tmpl__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hph-tmpl__field--row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.hph-tmpl__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7596;
}

.hph-tmpl__label-inline {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #6b7596;
}

.hph-tmpl__limit,
.hph-tmpl__count {
    font-size: 10px;
    font-weight: 600;
    color: #b3bdd6;
}

.hph-tmpl__req {
    font-size: 10px;
    font-weight: 700;
    color: #d97706;
}

.hph-tmpl__input {
    height: 22px;
    border-radius: 7px;
    background: #fafcff;
    border: 1px solid #e6eefb;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.hph-tmpl__filled {
    height: 6px;
    border-radius: 999px;
    background: #dbe6fb;
}

.hph-tmpl__lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border-radius: 8px;
    background: #fafcff;
    border: 1px solid #f0f4fb;
}

.hph-tmpl__line {
    height: 7px;
    border-radius: 4px;
    background: #eef3fb;
}

.hph-tmpl__progress {
    height: 5px;
    border-radius: 999px;
    background: #eef3fb;
    overflow: hidden;
}

.hph-tmpl__progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #818cf8, #4f46e5);
}

.hph-tmpl__select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e6eefb;
    font-size: 11.5px;
    font-weight: 600;
    color: #3a4564;
}

.hph-tmpl__select-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}


/* ───────────────────────────────────────────────────────────────────────
   Synchronized 30 s loop  (6 scenes × 5 s each)
   Scene delays:  s1=0s  s2=5s  s3=10s  s4=15s  s5=20s  s6=25s
   ─────────────────────────────────────────────────────────────────────── */

/* Scene crossfade — subtle translateY for depth (5s window = 16.667% of 30s) */
@keyframes hphSceneShow {
    0%      { opacity: 0; transform: translateY(5px); }
    1.5%    { opacity: 1; transform: translateY(0); }
    15%     { opacity: 1; transform: translateY(0); }
    16.67%  { opacity: 0; transform: translateY(-5px); }
    100%    { opacity: 0; transform: translateY(-5px); }
}

.hph-scene--1 { animation: hphSceneShow 30s ease infinite 0s; }
.hph-scene--2 { animation: hphSceneShow 30s ease infinite 5s; }
.hph-scene--3 { animation: hphSceneShow 30s ease infinite 10s; }
.hph-scene--4 { animation: hphSceneShow 30s ease infinite 15s; }
.hph-scene--5 { animation: hphSceneShow 30s ease infinite 20s; }
.hph-scene--6 { animation: hphSceneShow 30s ease infinite 25s; }

/* Status bar text crossfade (same timing, opacity-only inside overflow:hidden) */
@keyframes hphStatusShow {
    0%      { opacity: 0; }
    1.5%    { opacity: 1; }
    15%     { opacity: 1; }
    16.67%  { opacity: 0; }
    100%    { opacity: 0; }
}

.hph-bar__stext--1 { animation: hphStatusShow 30s ease infinite 0s; }
.hph-bar__stext--2 { animation: hphStatusShow 30s ease infinite 5s; }
.hph-bar__stext--3 { animation: hphStatusShow 30s ease infinite 10s; }
.hph-bar__stext--4 { animation: hphStatusShow 30s ease infinite 15s; }
.hph-bar__stext--5 { animation: hphStatusShow 30s ease infinite 20s; }
.hph-bar__stext--6 { animation: hphStatusShow 30s ease infinite 25s; }

/* Rail stage active highlight — box-shadow inset indicator */
@keyframes hphRailActive {
    0%      { background: #eef4ff; color: #000929; box-shadow: inset 2px 0 0 #0961DB; }
    15%     { background: #eef4ff; color: #000929; box-shadow: inset 2px 0 0 #0961DB; }
    16.67%  { background: transparent; color: #6b7596; box-shadow: inset 2px 0 0 transparent; }
    100%    { background: transparent; color: #6b7596; box-shadow: inset 2px 0 0 transparent; }
}

.hph-rail__stage--1 { animation: hphRailActive 30s ease infinite 0s; }
.hph-rail__stage--2 { animation: hphRailActive 30s ease infinite 5s; }
.hph-rail__stage--3 { animation: hphRailActive 30s ease infinite 10s; }
.hph-rail__stage--4 { animation: hphRailActive 30s ease infinite 15s; }
.hph-rail__stage--5 { animation: hphRailActive 30s ease infinite 20s; }
.hph-rail__stage--6 { animation: hphRailActive 30s ease infinite 25s; }

/* Score ring — fills during scene 2 window (16.67%–33.33% of the 30s loop) */
@keyframes hphRingFill {
    0%      { stroke-dashoffset: 150.796; }   /* before scene 2 */
    16.67%  { stroke-dashoffset: 150.796; }   /* scene 2 starts at 5s */
    18%     { stroke-dashoffset: 150.796; }   /* brief pause while scene fades in */
    31%     { stroke-dashoffset: 6.032; }     /* 96% filled (circumference × 0.04) */
    33.2%   { stroke-dashoffset: 6.032; }     /* hold */
    33.33%  { stroke-dashoffset: 150.796; }   /* instant reset — scene 2 hidden */
    100%    { stroke-dashoffset: 150.796; }
}

.hph-score-ring__fill {
    animation: hphRingFill 30s ease infinite 0s;
}

/* Workflow progress bar — fills during scene 4 window (50%–66.67% of loop) */
@keyframes hphProgressFill {
    0%      { width: 0%; }
    50%     { width: 0%; }   /* scene 4 starts at 15s */
    52%     { width: 0%; }   /* pause while scene fades in */
    64%     { width: 100%; }
    66.5%   { width: 100%; } /* hold */
    66.67%  { width: 0%; }   /* reset — scene 4 hidden */
    100%    { width: 0%; }
}

.hph-progress-bar__fill {
    animation: hphProgressFill 30s ease infinite 0s;
}

/* Template progress — fills during scene 6 window (83.33%–100% of loop) */
@keyframes hphTmplFill {
    0%      { width: 0%; }
    83.33%  { width: 0%; }   /* scene 6 starts at 25s */
    85%     { width: 0%; }   /* pause while scene fades in */
    97%     { width: 83%; }
    99.9%   { width: 83%; }  /* hold */
    100%    { width: 0%; }
}

.hph-tmpl__progress-fill {
    animation: hphTmplFill 30s ease infinite 0s;
}


/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .hph-rail { width: 110px; }
    .hph-rail__sname { font-size: 10.5px; }
    .hph-bar__status { display: none; }
}

@media (max-width: 1100px) {
    .hph-rail { width: 96px; }
    .hph-rail__sname { font-size: 9.5px; }
    .hph-bar__status { display: none; }
    .hph-bar { padding: 0 10px; }
    .hph-scene { padding: 12px 14px; gap: 9px; }
    .hph-scene__title { font-size: 12px; }
}

@media (max-width: 991px) {
    .hph { font-size: 12px; }
    .hph-stage { min-height: 300px; }
    .hph-score-ring { width: 72px; height: 72px; }
    .hph-score-ring__svg { width: 72px; height: 72px; }
    .hph-score-ring__num { font-size: 14px; }
    .hph-presence__name { display: none; }
    .hph-presence__typing-lbl { font-size: 9.5px; }
}

@media (max-width: 767px) {
    .hph-rail { display: none; }
    .hph-bar__status { display: none; }
    .hph-bar__url { display: none; }
    .hph-bar { height: 36px; padding: 0 10px; gap: 6px; }
    .hph-bar__ai-badge { font-size: 10px; padding: 3px 8px; }
    .hph-bar__avs .av { width: 20px; height: 20px; }
    .hph-stage { min-height: 280px; }
    .hph-scene { padding: 10px 12px; gap: 8px; }
    .hph-scene__hdr { padding-bottom: 8px; }
    .hph-scene__title { font-size: 11.5px; }
    .hph-scene__ico { width: 20px; height: 20px; }
    .hph-tag { font-size: 10px; padding: 2px 8px; }
    .hph-score-block { gap: 10px; }
    .hph-score-ring { width: 64px; height: 64px; }
    .hph-score-ring__svg { width: 64px; height: 64px; }
    .hph-check { font-size: 11px; padding: 5px 8px; }
    .hph-diff { font-size: 11px; }
    .hph-comment__av { width: 26px; height: 26px; }
    .hph-comment--compact { padding: 7px 9px; }
    .hph-presence { padding: 6px 9px; gap: 6px; }
    .hph-presence__user { padding: 2px 6px 2px 2px; }
    .hph-cal__cell { height: 22px; font-size: 10px; }
    .hph-cal-item { padding: 5px 8px; gap: 6px; }
    .hph-cal-item__date { width: 34px; font-size: 10px; }
    .hph-cal-item__title { font-size: 10.5px; }
    .hph-tmpl { gap: 8px; }
    .hph-tmpl__label { font-size: 10px; }
    .hph-pub-card { padding: 10px; gap: 8px; }
    .hph-pill { font-size: 11px; padding: 4px 10px; }
}

@media (max-width: 480px) {
    .hph { font-size: 11px; }
    .hph-bar { height: 32px; }
    .hph-bar__dots span { width: 7px; height: 7px; }
    .hph-bar__ai-badge { display: none; }
    .hph-stage { min-height: 240px; }
    .hph-scene { padding: 8px 10px; gap: 6px; }
    .hph-scene__title { font-size: 10.5px; }
    .hph-prompt { padding: 8px; gap: 7px; }
    .hph-prompt__text { font-size: 10.5px; }
    .hph-score-ring { width: 56px; height: 56px; }
    .hph-score-ring__svg { width: 56px; height: 56px; }
    .hph-score-ring__num { font-size: 12px; }
    .hph-checks { gap: 5px; }
    .hph-check { font-size: 10px; gap: 4px; }
    .hph-badge { font-size: 9px; padding: 1px 6px; }
    .hph-presence__label { display: none; }
    .hph-presence__user--emma { display: none; }
    .hph-diff__line { padding: 5px 8px; }
    .hph-comment__msg { font-size: 10.5px; }
    .hph-cal-items { gap: 4px; }
    .hph-cal-item__type { display: none; }
    .hph-item-move { flex-wrap: wrap; gap: 4px; }
    .hph-team__avs .av { width: 20px; height: 20px; }
}


/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .hph-scene--1,
    .hph-scene--2,
    .hph-scene--3,
    .hph-scene--4,
    .hph-scene--5,
    .hph-scene--6,
    .hph-bar__stext--1,
    .hph-bar__stext--2,
    .hph-bar__stext--3,
    .hph-bar__stext--4,
    .hph-bar__stext--5,
    .hph-bar__stext--6,
    .hph-rail__stage--1,
    .hph-rail__stage--2,
    .hph-rail__stage--3,
    .hph-rail__stage--4,
    .hph-rail__stage--5,
    .hph-rail__stage--6,
    .hph-score-ring__fill,
    .hph-progress-bar__fill,
    .hph-tmpl__progress-fill,
    .hph-cal__dot--pulse,
    .hph-typing span,
    .hph-shimmer::after,
    .hph-check__fix::after,
    .hph-approve--shimmer::after,
    .hph-move-arrow,
    .hph-pill--to,
    .hph-bar__status-dot,
    .hph-live-dot,
    .hph-caret {
        animation: none !important;
        transition: none !important;
    }

    /* Static fallback: show scene 1 */
    .hph-scene--1 { opacity: 1; transform: none; }

    /* Rail: stage 1 active */
    .hph-rail__stage--1 {
        background: #eef4ff;
        color: #000929;
        box-shadow: inset 2px 0 0 #0961DB;
    }

    /* Status bar: first text */
    .hph-bar__stext--1 { opacity: 1; }

    /* Ring: show 96% filled */
    .hph-score-ring__fill { stroke-dashoffset: 6.032; }

    /* Progress: static at 71% */
    .hph-progress-bar__fill { width: 71%; }

    /* Template progress: static at 83% */
    .hph-tmpl__progress-fill { width: 83%; }

    /* "To" pill without animation */
    .hph-pill--to { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
}
