.left-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    width: calc(25% - 8px);
    justify-content: space-between;
}

#left-container {
    background-color: var(--color-bg-block);
    width: 100%;
    border-radius: 16px;
    padding: 16px 16px;
    border: 1px solid var(--color-border-primary);
    height: 100%;
    overflow: hidden;
}

#left-container .preview-mode {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    gap: 12px;
}

#left-container .preview-mode .news-view-toggles {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 4px;
}

#left-container .preview-mode .news-view-toggles .view-btn {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 250ms;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--color-text-primary);
}

#left-container .preview-mode .news-view-toggles .view-btn.active {
    background-color: var(--color-button-accent);
    color: var(--color-text-button-accent);
}

#left-container .preview-mode .news-view-toggles .view-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    /*pointer-events: none;*/
}

#left-container .preview-mode .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--color-text-primary);
    width: 100%;
    height: 40px;
}

#left-container .preview-mode .title h3 {
    font-weight: 500;
    font-size: 16px;
    flex: 1;
}



#left-container .preview-mode .news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: calc(100% - 150px); /* Adjusted for new elements */
    flex: 1;
    width: calc(100%);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 16px;
    color: var(--color-text-primary);
}

#left-container .preview-mode .news-list .news-item {
    display: flex;
    /*flex-direction: column;*/
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

#left-container .preview-mode .news-item .line {
    display: flex;
    justify-content: space-between;
    height: 15px;
    font-size: 12px;
    font-weight: 400;
    gap: 20px;
    width: 100%;
}

#left-container .preview-mode .news-item .line .source {
    color: var(--color-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#left-container .preview-mode .news-item .line .date {
    color: var(--color-text-tertiary);
}

#left-container .preview-mode .news-item .main-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: var(--color-text-primary);
    max-width: calc(100% - 73px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    cursor: pointer;
    transition: 400ms;
}

#left-container .preview-mode .news-item .main-text:hover {
    color: var(--color-text-secondary);
}

#left-container .preview-mode .news-item .read-full {
    border: none;
    outline: none;
    background: none;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    width: 57px;
}

#left-container .preview-mode .news-item .read-full p {
    position: relative;
}

#left-container .preview-mode .news-item .read-full p::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 280ms ease;
}



#left-container .preview-mode .news-item .read-full p:hover::after {
    transform: scaleX(1);
}


body.cb-light #left-container .preview-mode .news-item .read-full img,
body.light #left-container .preview-mode .news-item .read-full img {
    filter: invert(1);
}

body.cb-light #left-container .preview-mode .news-item .read-full:hover img,
body.light #left-container .preview-mode .news-item .read-full:hover img {
    filter: invert(27%) sepia(98%) saturate(4000%) hue-rotate(205deg) brightness(80%) contrast(101%);
}


#left-container .news-mode {
    display: none
}

#left-container .preview-mode .news-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

#left-container .preview-mode .news-filters .label {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-primary);
}

#left-container .preview-mode .news-filters .variants-container {
    display: flex;
    background-color: var(--color-button-secondary);
    border-radius: 8px;
    padding: 2px;
    height: 28px; /* Slightly taller to accommodate 24px buttons with padding/border if needed, or exact match requested */
}

#left-container .preview-mode .news-filters .variants-container .variant {
    flex: 1;
    height: 24px;
    border-radius: 6px; /* Slightly smaller radius for inner buttons */
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 200ms;
}

#left-container .preview-mode .news-filters .variants-container .variant.active {
    background-color: var(--color-icon-toggle-active);
    color: var(--color-text-cta);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

#left-container .preview-mode .news-filters .variants-container .variant:hover:not(.active) {
    opacity: 0.9;
}

#left-container.news-open .preview-mode {
    display: none
}

#left-container.news-open .news-mode {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    color: var(--color-text-primary);
}

#left-container .news-mode .title-block {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#left-container .news-mode .title-block .img-wrapper {
    position: absolute;
    left: 4px;
    width: 32px;
    height: 32px;
    background: var(--color-button-secondary);
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: 250ms;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.cb-light #left-container .news-mode .title-block .img-wrapper img,
body.light #left-container .news-mode .title-block .img-wrapper img {
    filter: invert(1);
}

#left-container .news-mode .title-block .img-wrapper:hover {
    border: 1px solid var(--color-border-hover);
}

#left-container .news-mode .title h3 {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-primary);
}

#left-container .news-mode .header-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

#left-container .news-mode .header-block .line {
    display: flex;
    justify-content: space-between;
    height: 15px;
    align-items: center;
}

#left-container .news-mode .header-block .line p {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    text-transform: uppercase;
    opacity: 0.5;
}

#left-container .news-mode .header-block .title {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

#left-container .news-mode .header-block .author-wrapper {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    opacity: 0.5;
}

#left-container .news-mode .description {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -1%;
    opacity: 0.8;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    overflow: hidden;
}

#left-container .news-mode .read-full {
    width: 100%;
    height: 40px;
    background-color: var(--color-button-accent);
    border-radius: 8px;
    color: var(--color-text-button-accent);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 250ms;
    cursor: pointer;
}

#left-container .news-mode .read-full:hover {
    background-color: var(--color-button-accent-hover);
}