.lists {
    padding: 0;
}

.category-section:last-child .lists-table tr:last-child td {
    border-bottom: none;
}

.category-header {
    padding: 14px 20px;
    background: #f4f6f8;
    border-top: 1px solid #e0e0e0;
}

.category-name {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.list-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.list-name a {
    color: #4a7ba7;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    overflow-wrap: anywhere;
    word-break: normal;

    flex: 1 1 auto;
    min-width: 0;    }

.list-name a:hover {
    text-decoration: underline;
}

.progress-cell {
    min-width: 200px;
}

.progress-stats {
    display: grid;
    grid-template-columns: 96px 48px 1fr; /* count | percent | (spacer) */
    align-items: center;
    column-gap: 12px;
    margin-bottom: 6px;
}

.progress-text {
    font-size: 12px;
    color: #333;
    font-variant-numeric: tabular-nums;   /* better alignment */
    white-space: nowrap;
}

.progress-percentage {
    font-size: 11px;
    color: #666;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: left;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a7ba7, #6a9bc7);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-bar.high {
    background: linear-gradient(90deg, #2d7a3e, #4caf50);
}

.progress-bar.medium {
    background: linear-gradient(90deg, #f57c00, #ff9800);
}

.progress-bar.low {
    background: linear-gradient(90deg, #c62828, #e53935);
}

.optional-text {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

.btn.track-list,
.btn.untrack-list {
    width: 90px;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn.track-list {
    color: #2d7a3e;
    border-color: #c8e6c9;
    background-color: #f1f8f4;
}

.btn.track-list:hover,
.btn.track-list:focus-visible {
    background-color: #e8f5e9;
    border-color: #2d7a3e;
    color: #1b5e20;
}

/* Untrack (intentionally quieter) */
.btn.untrack-list {
    color: #c62828;
    border-color: #f5c6cb;
    background-color: transparent;
}

.btn.untrack-list:hover,
.btn.untrack-list:focus-visible {
    background-color: #fdecea;
    border-color: #c62828;
    color: #b71c1c;
}

.data-table td:first-child {
    width: 40%;
}

.data-table td:nth-child(2) {
    width: 35%;
}

.data-table td:last-child {
    width: 25%;
}

.collection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.collection-status-avatar {
    width: 28px;
    height: 28px;
    background: #4a7ba7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.collection-status-text {
    font-size: 14px;
    color: #666;
}

.collection-status-text a {
    color: #4a7ba7;
    text-decoration: none;
    font-weight: 600;
}

.collection-status-text a:hover {
    text-decoration: underline;
}

.description-section {
    background: white;
    margin: 0 0 16px 0;
    padding: 0;
}

.description-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.description-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin: 0 0 16px 0;
}

.progress-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.progress-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.progress-percentage {
    font-size: 15px;
    color: #666;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2d7a3e, #4caf50);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-bar.high {
    background: linear-gradient(90deg, #2d7a3e, #4caf50);
}

.progress-bar.medium {
    background: linear-gradient(90deg, #f57c00, #ff9800);
}

.progress-bar.low {
    background: linear-gradient(90deg, #c62828, #e53935);
}

.items-section {
    padding: 0;
}

.series-group {
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.series-header {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.series-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.series-progress {
    font-size: 12.5px;
    color: #777;
    margin-left: 12px;
}

.series-icon {
    font-size: 18px;
}

.series-id {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.series-name {
    font-size: 15px;
    font-weight: 600;
    color: #4a7ba7;
    text-decoration: none;
}

.series-name:hover {
    text-decoration: underline;
}

.series-actions {
    display: flex;
    gap: 12px;
}

.remove-all-link {
    font-size: 13px;
    color: #d32f2f;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-all-link:hover {
    background: #ffebee;
    color: #d32f2f;
    text-decoration: none;
}

.remove-link {
    font-size: 13px;
    color: #d32f2f;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-link:hover {
    background: #ffebee;
    color: #d32f2f;
    text-decoration: none;
}

.all-editions-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    margin-left: 8px;
}
