.pbs-page {
    --c-bg: #f4f6f8;
    --c-card: #ffffff;
    --c-border: #e3e7eb;
    --c-text: #1f2937;
    --c-text-muted: #8a93a1;
    --c-primary: #2c3e50;
    --c-accent: #2980b9;
    --c-accent-hover: #1abc9c;
    --c-error-text: #c0392b;
    --c-error-bg: #fadbd8;
    --radius: 10px;

    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--c-text);
}

.pbs-page * {
    box-sizing: border-box;
}

.pbs-title {
    margin: 0;
    color: var(--c-primary);
    font-size: 1.8em;
}

.pbs-error {
    color: var(--c-error-text);
    background: var(--c-error-bg);
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--c-error-text);
}

.pbs-stats {
    font-size: 0.85em;
    color: var(--c-text-muted);
}

.pbs-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pbs-file-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-card);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pbs-file-list li:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.pbs-file-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.pbs-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pbs-file-name {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.pbs-file-name:hover {
    color: var(--c-accent-hover);
    text-decoration: underline;
}

.pbs-file-size {
    font-size: 0.75em;
    color: var(--c-text-muted);
    white-space: nowrap;
}

.pbs-legend {
    font-size: 0.72em;
    color: #b4bcc6;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
}

.pbs-legend strong {
    color: #b4bcc6;
    font-weight: 600;
}

.pbs-divider {
    margin: 0;
    border: 0;
    border-top: 2px dashed var(--c-border);
}

.pbs-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pbs-section-title {
    color: var(--c-text-muted);
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pbs-archive-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pbs-archive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--c-card);
    color: var(--c-primary);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    font-weight: 600;
    transition: all 0.2s;
}

.pbs-archive-btn:hover {
    background: var(--c-border);
}

.pbs-archive-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    pointer-events: none;
}
