.preview-brief-card__timeline-group {
    gap: 12px;
}

.preview-brief-card__timeline-panel {
    width: 100%;
    padding: 38px 48px 32px;
    border-radius: 18px;
    background: #f2f4fc;
    box-sizing: border-box;
}

.preview-brief-card__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.preview-brief-card__timeline-item {
    --timeline-marker-background: #d9d9d9;
    --timeline-marker-background-opacity: 1;
    --timeline-marker-icon: #9699a0;
    --timeline-label: #c3c5ca;
    --timeline-line: #d9d9d9;
    --timeline-status-background: #d9d9d9;
    --timeline-status-color: #9699a0;
    position: relative;
    display: grid;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

.preview-brief-card__timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 15.5px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--timeline-line);
}

.preview-brief-card__timeline-item.is-active {
    --timeline-marker-background: #5271ff;
    --timeline-marker-icon: #ffffff;
    --timeline-label: #5271ff;
    --timeline-status-background: rgba(82, 113, 255, 0.1);
    --timeline-status-color: #5271ff;
}

.preview-brief-card__timeline-item.is-complete {
    --timeline-marker-background: #dce3ff;
    --timeline-marker-icon: #5271ff;
    --timeline-label: #667085;
    --timeline-line: #b8c5ff;
    --timeline-status-background: #e8edff;
    --timeline-status-color: #5271ff;
}

.preview-brief-card__timeline-item.is-neutral {
    --timeline-marker-background: #dce3ff;
    --timeline-marker-icon: #5271ff;
    --timeline-label: #5271ff;
    --timeline-line: #b8c5ff;
    --timeline-status-background: rgba(82, 113, 255, 0.1);
    --timeline-status-color: #5271ff;
}

.preview-brief-card__timeline-marker {
    --campaign-period-marker-background: var(--timeline-marker-background);
    --campaign-period-marker-background-opacity: var(--timeline-marker-background-opacity);
    --campaign-period-marker-icon: var(--timeline-marker-icon);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.preview-brief-card__timeline-content {
    display: grid;
    justify-items: center;
    min-width: 0;
    margin-top: 10px;
}

.preview-brief-card__timeline-label {
    color: var(--timeline-label);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
}

.preview-brief-card__timeline-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin-top: 5px;
    padding: 1px 11px;
    border-radius: 999px;
    background: var(--timeline-status-background);
    color: var(--timeline-status-color);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap;
    box-sizing: border-box;
}

.preview-brief-card__timeline-date {
    margin-top: 18px;
    color: #9699a0;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
}

.preview-brief-card__timeline-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 38px;
}

.preview-brief-card__timeline-contact-copy {
    color: #a3aed0;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.preview-brief-card__timeline-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 32px;
    padding: 6px 20px;
    border-radius: 6px;
    background: #5271ff;
    color: #ffda00;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.preview-brief-card__timeline-contact-button:hover {
    background: #4564ee;
    color: #ffda00;
    text-decoration: none;
}

.preview-brief-card__timeline-contact-button:focus-visible {
    outline: 2px solid #ffda00;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(82, 113, 255, 0.24);
}

@media (max-width: 768px) {
    .preview-brief-card__timeline-group > .preview-brief-card__label {
        font-size: 14px;
        line-height: 18px;
    }

    .preview-brief-card__timeline-panel {
        padding: 26px 22px 28px;
        border-radius: 12px;
    }

    .preview-brief-card__timeline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .preview-brief-card__timeline-item {
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: start;
        justify-items: stretch;
        gap: 12px;
        text-align: left;
    }

    .preview-brief-card__timeline-item:not(:last-child)::after {
        display: block;
        top: 32px;
        bottom: -28px;
        left: 15.5px;
        width: 1px;
        height: auto;
    }

    .preview-brief-card__timeline-content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: stretch;
        gap: 5px 10px;
        margin-top: 0;
        padding-top: 1px;
    }

    .preview-brief-card__timeline-label {
        align-self: center;
        line-height: 18px;
    }

    .preview-brief-card__timeline-status {
        align-self: center;
        margin-top: 0;
        font-size: 11px;
        line-height: 17px;
    }

    .preview-brief-card__timeline-date {
        grid-column: 1 / -1;
        margin-top: 0;
        line-height: 16px;
    }

    .preview-brief-card__timeline-contact {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin: 28px -22px -28px;
        padding: 18px 22px 20px;
        border-top: 1px solid rgba(150, 153, 160, 0.24);
    }

    .preview-brief-card__timeline-contact-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .preview-brief-card__timeline-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .preview-brief-card__timeline-item {
        gap: 10px;
    }

    .preview-brief-card__timeline-content {
        column-gap: 8px;
    }

    .preview-brief-card__timeline-label {
        font-size: 13px;
    }

    .preview-brief-card__timeline-status {
        padding-right: 9px;
        padding-left: 9px;
    }

    .preview-brief-card__timeline-contact {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }
}
