.hupe-stories-wrapper {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.hupe-stories-filters {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f5f7f9;
    border-radius: 4px;
}

.hupe-stories-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.hupe-stories-filter-item {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.hupe-stories-filter-item input[type="text"] {
    padding: 6px 8px;
    border-radius: 3px;
    border: 1px solid #ccd2d7;
}

.hupe-story-intro,
.hupe-story-full {
    border: 1px solid #e0e4e8;
    border-radius: 3px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #ffffff;
}

.hupe-story-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}

.hupe-story-meta p {
    margin: 2px 0;
}

.hupe-story-stats {
    text-align: right;
}

.hupe-story-ranking,
.hupe-story-code,
.hupe-story-points {
    padding: 6px 10px;
    background: #f5f7f9;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 12px;
}

.hupe-story-round2 {
    padding: 8px 10px;
    background: #eef6ff;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 12px;
}

.hupe-story-round2 .hupe-round2-input {
    max-width: 90px;
    margin-left: auto;
}

.hupe-story-round2 .hupe-round2-save {
    width: 100%;
    border: 0;
}

.hupe-story-round2-summary {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.hupe-story-title {
    margin-top: 15px;
    margin-bottom: 18px;
}

.hupe-story-meta p:last-child {
    margin-bottom: 10px;
}

.hupe-story-body {
    margin-top: 6px;
}

.hupe-stories-wrapper .hupe-story-body p {
    margin: 0 0 12px !important;
}

.hupe-stories-wrapper .hupe-story-body p:last-child {
    margin-bottom: 0;
}

.hupe-stories-wrapper .hupe-story-body p:empty {
    display: none;
}

.hupe-story-body-intro {
    margin-top: 10px;
    margin-bottom: 10px;
}

.hupe-story-footer {
    margin-top: 10px;
}

.hupe-story-full-button,
.hupe-story-back-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.hupe-story-back {
    margin-top: 20px;
}

.hupe-label {
    margin-right: 4px;
}

@media (max-width: 600px) {
    .hupe-story-header {
        flex-direction: column;
        text-align: left;
    }

    .hupe-story-stats {
        text-align: left;
    }

    .hupe-story-round2 .hupe-round2-input {
        margin-left: 0;
    }

    .hupe-story-round2-summary {
        justify-content: flex-start;
    }
}
