.library-intro,
.library-catalog-container,
.text-viewer-shell .container {
    display: block;
}

.library-catalog {
    width: 100%;
}

.library-status {
    color: #c0c0c0;
}

.library-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.text-card {
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #111111;
    padding: 18px;
}

.text-card-title {
    margin: 0 0 8px;
    color: #ff4d4d;
    font-size: 1.4rem;
}

.text-card-meta {
    margin: 0 0 10px;
    color: #cccccc;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.text-summary {
    margin: 0 0 14px;
    text-transform: none;
    color: #dddddd;
}

.text-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.text-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ff3333;
    border-radius: 4px;
    color: #ff3333;
    text-decoration: none;
}

.text-link:hover {
    background-color: #ff3333;
    color: #080808;
}

.text-view,
.text-not-found {
    width: 100%;
}

.text-view {
    min-height: 0;
}

.text-not-found {
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #111111;
    padding: 18px;
}

.text-pages {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.text-page-image {
    width: 100%;
    display: block;
    height: auto;
    background-color: #ffffff;
}

.text-render-failure {
    padding: 14px 16px;
    border: 1px solid #333333;
    border-radius: 6px;
    background-color: #111111;
    color: #dddddd;
}

@media (max-width: 768px) {
    .text-card,
    .text-not-found {
        padding: 14px;
    }
}
