.view-fresh {
    width: 100%;
    margin-top: calc(-1 * var(--space-2) - 8px);
}

.view-fresh.active {
    margin-top: calc(-1 * var(--space-2) - 8px);
}

.fresh-feed-root {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fresh-floating-toolbar {
    position: sticky;
    top: var(--characters-toolbar-offset, 0px);
    z-index: 7;
    padding: 2px 0 6px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.fresh-page-title {
    padding: 2px 2px 0;
}

.fresh-page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.fresh-page-title h1 {
    margin: 0;
    text-align: left;
    color: #fff;
    font-size: clamp(1.32rem, 2.9vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.fresh-page-updated {
    margin: 0 0 1px auto;
    color: rgba(235, 239, 246, 0.68);
    font-size: 0.76rem;
    white-space: nowrap;
    line-height: 1.1;
}

.fresh-toolbar {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.fresh-window-switch {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.fresh-window-switch-btn {
    border: none;
    background: rgba(24, 27, 35, 0.9);
    color: rgba(230, 235, 242, 0.76);
    padding: 7px 10px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    cursor: pointer;
}

.fresh-window-switch-btn.active {
    background: #ff2d9a;
    color: #fff;
}

.fresh-toolbar label {
    font-size: 0.72rem;
    color: rgba(230, 234, 241, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    flex: 0 0 auto;
}

.fresh-toolbar-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 0 0 auto;
}

.fresh-sort-dropdown.admin-dropdown {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    width: 152px;
    min-width: 152px;
    flex: 0 0 152px;
}

.fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--brand-hot-pink) 34%, var(--border-subtle) 66%);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg-subtle) 84%, #1a1b23 16%),
        color-mix(in srgb, var(--bg-subtle) 94%, #0f1015 6%)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 7px 30px 7px 10px;
    line-height: 1.1;
    white-space: nowrap;
}

.fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn::after {
    border-top-color: rgba(235, 239, 246, 0.62);
    right: 11px;
    transform: translateY(-40%);
}

.fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn:focus,
.fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn:focus-visible,
.fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn:active {
    outline: none;
    border-color: color-mix(in srgb, var(--brand-hot-pink) 34%, var(--border-subtle) 66%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fresh-sort-dropdown .admin-dropdown-menu.fresh-sort-menu {
    min-width: 100%;
    left: 0;
    right: auto;
    border-radius: 10px;
    padding: 5px;
    z-index: 40;
}

.fresh-sort-dropdown .admin-dropdown-menu.fresh-sort-menu button {
    font-size: 0.77rem;
    font-weight: 600;
    padding: 7px 8px;
}

.fresh-refresh {
    border: none;
    border-radius: 10px;
    background: #ff2d9a;
    color: #fff;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.fresh-refresh:disabled {
    opacity: 0.62;
    cursor: default;
}

.fresh-refresh-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.fresh-refresh.is-loading .fresh-refresh-icon {
    animation: fresh-refresh-spin 0.9s linear infinite;
}

@keyframes fresh-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.fresh-stream {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fresh-stream-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
}

.fresh-stream-head h2 {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(248, 250, 252, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fresh-stream-head span {
    color: rgba(237, 240, 246, 0.56);
    font-size: 0.72rem;
}

.fresh-stream-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fresh-lazy-sentinel {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fresh-lazy-status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(248, 250, 252, 0.62);
    user-select: none;
}

.fresh-load-more-btn {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.92);
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.fresh-load-more-btn:disabled {
    opacity: 0.64;
    cursor: default;
}

.fresh-row {
    width: 100%;
    color: inherit;
    text-align: left;
    padding: 0;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    height: 126px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background-color 120ms ease, transform 120ms ease;
    position: relative;
}

.fresh-row::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0));
    pointer-events: none;
}

.fresh-row:last-child::after {
    display: none;
}

.fresh-row:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.fresh-row-avatar-wrap {
    position: relative;
    width: 118px;
    height: 100%;
    min-height: 126px;
    max-height: 126px;
    border-radius: 10px;
    overflow: hidden;
    background: #10131c;
    align-self: stretch;
}

.fresh-row-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fresh-row-published {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 1px 5px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.fresh-row-nsfw {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fresh-row-token {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 1px 5px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.fresh-row-main {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
    align-items: stretch;
}

.fresh-row-copy {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 3px;
    align-content: start;
    min-height: 0;
    overflow: hidden;
}

.fresh-row-head {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.fresh-row-age-mobile {
    display: none;
}

.fresh-row-title {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fresh-row-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fresh-row-author-label {
    color: #ff2d9a;
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.fresh-row-author-name {
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.fresh-row-blurb {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.79rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 0;
    background: transparent;
    font-style: italic;
}

.fresh-row-blurb img {
    display: none;
}

.fresh-row-blurb a {
    color: inherit;
    text-decoration: underline;
}

.fresh-row-blurb * {
    pointer-events: none;
}

.fresh-row-tagsbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.fresh-tag {
    border: none;
    border-radius: 999px;
    padding: 1px 5px;
    font-size: 0.62rem;
    color: rgba(247, 249, 252, 0.9);
    background: rgba(148, 163, 184, 0.11);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fresh-tag-muted {
    color: rgba(234, 239, 245, 0.58);
    background: rgba(148, 163, 184, 0.12);
}

.fresh-tag-more {
    color: rgba(248, 250, 252, 0.92);
    background: rgba(248, 250, 252, 0.2);
}

.fresh-row-rail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 5px;
    width: 82px;
    min-width: 0;
}

.fresh-row-age {
    color: #f9a8d4;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-align: right;
}

.fresh-score-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 72px;
    min-height: 52px;
    padding: 1px 2px;
    border-radius: var(--radius-sm, 6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fresh-score-label {
    display: none;
    color: rgba(248, 250, 252, 0.82);
    font-size: 0.47rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.fresh-score-badge-na {
    background: rgba(71, 85, 105, 0.62);
}

.fresh-score-badge-low {
    background: rgba(71, 85, 105, 0.45);
}

.fresh-score-badge-mid {
    background: rgba(30, 58, 138, 0.42);
}

.fresh-score-badge-top {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.5) 0%, rgba(146, 64, 14, 0.55) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(245, 158, 11, 0.2);
}

.fresh-score-main {
    color: #f8fafc;
    font-size: calc(1rem + 5.5pt);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.fresh-score-niche {
    color: rgba(248, 250, 252, 0.9);
    font-size: calc(0.58rem - 0.5pt);
    font-weight: 500;
    line-height: 1.05;
    opacity: 0.85;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
}

.fresh-score-niche-mark {
    width: 4px;
    height: 4px;
    display: inline-block;
    background: #f59e0b;
    opacity: 0.95;
    transform: rotate(45deg);
    border-radius: 1px;
    margin-left: 1px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.fresh-msg-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.fresh-msg-stat span {
    color: rgba(234, 239, 246, 0.62);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.fresh-msg-stat strong {
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.fresh-error {
    padding: 8px 10px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.26);
    border-radius: 8px;
    font-size: 0.78rem;
}

.fresh-empty {
    padding: 12px 4px;
    text-align: left;
    color: rgba(236, 240, 246, 0.62);
    font-size: 0.76rem;
}

@media (max-width: 900px) {
    .fresh-row {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 8px;
        height: 122px;
    }

    .fresh-row-avatar-wrap {
        width: 108px;
        min-height: 122px;
        max-height: 122px;
    }

    .fresh-row-main {
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: 8px;
    }

    .fresh-row-rail {
        width: 90px;
    }

    .fresh-row-title {
        font-size: 0.88rem;
    }

    .fresh-row-blurb {
        font-size: 0.74rem;
    }

    .fresh-score-main {
        font-size: calc(0.86rem + 2pt);
    }
}

@media (max-width: 768px) {
    .view-fresh {
        margin-top: calc(-1 * var(--space-2) - 3px);
    }

    .view-fresh.active {
        margin-top: calc(-1 * var(--space-2) - 3px);
    }

    .fresh-feed-root {
        gap: 6px;
    }

    .fresh-floating-toolbar {
        top: 0;
        margin-top: 0;
        padding: 2px 0 6px 0;
    }

    .fresh-page-title h1 {
        font-size: 1.12rem;
    }

    .fresh-page-updated {
        font-size: 0.67rem;
    }

    .fresh-toolbar {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .fresh-window-switch {
        gap: 3px;
    }

    .fresh-window-switch-btn {
        padding: 6px 8px;
        font-size: 0.68rem;
    }

    .fresh-toolbar-actions {
        gap: 6px;
    }

    .fresh-toolbar label {
        display: none;
    }

    .fresh-sort-dropdown.admin-dropdown {
        width: 124px;
        min-width: 124px;
        flex: 0 0 124px;
    }

    .fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn {
        padding: 6px 24px 6px 8px;
        font-size: 0.74rem;
    }

    .fresh-refresh {
        width: 30px;
        height: 30px;
    }

    .fresh-refresh-icon {
        width: 15px;
        height: 15px;
    }

    .fresh-row {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        height: auto;
        min-height: 138px;
    }

    .fresh-row-avatar-wrap {
        width: 84px;
        height: 100%;
        min-height: 138px;
        max-height: 168px;
        align-self: stretch;
    }

    .fresh-row-main {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 6px 8px;
        align-items: start;
    }

    .fresh-row-copy {
        display: contents;
    }

    .fresh-row-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 6px;
        min-width: 0;
        grid-column: 1 / -1;
    }

    .fresh-row-age-mobile {
        display: inline-flex;
        align-items: center;
        color: #f9a8d4;
        font-size: 0.76rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        white-space: nowrap;
        line-height: 1.1;
    }

    .fresh-row-title {
        font-size: 0.82rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fresh-row-meta {
        gap: 5px;
        grid-column: 1 / -1;
    }

    .fresh-row-author-label {
        font-size: 0.48rem;
    }

    .fresh-row-author-name {
        font-size: 0.66rem;
    }

    .fresh-row-blurb {
        font-size: 0.7rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        grid-column: 1 / -1;
    }

    .fresh-row-tagsbar {
        flex-wrap: wrap;
        overflow: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 0;
        grid-column: 1;
        grid-row: 4;
        align-self: start;
        align-content: flex-start;
        max-height: 40px;
    }

    .fresh-row-tagsbar::-webkit-scrollbar {
        display: none;
    }

    .fresh-tag {
        max-width: none;
        flex: 0 0 auto;
    }

    .fresh-row-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 0;
        width: 100%;
        min-width: 0;
        grid-column: 2;
        grid-row: 4;
        align-self: stretch;
    }

    .fresh-row-rail .fresh-msg-stat {
        grid-column: 1;
        grid-row: 1;
    }

    .fresh-row-rail .fresh-score-badge {
        grid-column: 2;
        grid-row: 1;
    }

    .fresh-row-age {
        display: none;
    }

    .fresh-score-badge {
        flex-direction: column;
        gap: 1px;
        border-radius: 6px;
        padding: 3px 3px;
        width: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: 1 / 1;
        align-self: stretch;
    }

    .fresh-score-label {
        display: none;
    }

    .fresh-score-main {
        font-size: calc(0.76rem + 1.5pt);
    }

    .fresh-score-niche {
        font-size: calc(0.58rem - 1pt);
    }

    .fresh-msg-stat {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        border-radius: 6px;
        background: rgba(32, 35, 43, 0.75);
        padding: 4px 4px;
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        align-self: stretch;
    }

    .fresh-msg-stat span {
        font-size: 0.47rem;
    }

    .fresh-msg-stat strong {
        font-size: 0.75rem;
        line-height: 1;
    }

}

@media (max-width: 520px) {
    .fresh-row {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .fresh-row-avatar-wrap {
        width: 74px;
        min-height: 128px;
        max-height: 156px;
    }

    .fresh-row-published,
    .fresh-row-token {
        font-size: 0.52rem;
        padding: 1px 4px;
    }
}

@media (max-width: 380px) {
    .fresh-toolbar {
        gap: 6px;
    }

    .fresh-window-switch-btn {
        padding: 5px 7px;
        font-size: 0.64rem;
    }

    .fresh-toolbar-actions {
        gap: 5px;
    }

    .fresh-sort-dropdown.admin-dropdown {
        width: 116px;
        min-width: 116px;
        flex-basis: 116px;
    }

    .fresh-sort-dropdown .admin-dropdown-btn.fresh-sort-btn {
        padding: 5px 24px 5px 7px;
        font-size: 0.71rem;
    }

    .fresh-refresh {
        width: 28px;
        height: 28px;
    }

    .fresh-refresh-icon {
        width: 14px;
        height: 14px;
    }
}
