/* Modal lat — przycisk ARCHIWUM na dolnym pasku */
.archiwum-year-picker {
    position: fixed;
    z-index: 10050;
    min-width: 112px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(77, 163, 255, 0.55);
    background: linear-gradient(180deg, rgba(13, 35, 68, 0.98), rgba(8, 22, 44, 0.98));
    box-shadow:
        0 -8px 28px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(77, 163, 255, 0.25);
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.archiwum-year-picker.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
}

.archiwum-year-picker__title {
    padding: 4px 8px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(185, 214, 255, 0.85);
    text-align: center;
    border-bottom: 1px solid rgba(77, 163, 255, 0.22);
    margin-bottom: 6px;
}

.archiwum-year-picker__list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archiwum-year-picker__btn {
    appearance: none;
    border: 1px solid rgba(77, 163, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #e9f3ff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.archiwum-year-picker__btn:hover {
    background: rgba(42, 111, 184, 0.55);
    border-color: rgba(77, 163, 255, 0.75);
}

.archiwum-year-picker__btn--active {
    background: #2a6fb8;
    border-color: #4da3ff;
    color: #fff;
}

#tabs .tab-btn.tab-btn--archiwum-open {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

#topbar .archiwum-toolbar {
    align-items: center;
    gap: 12px;
}

#topbar .archiwum-topbar-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 14px;
    margin-right: 4px;
    border-radius: 10px;
    border: 1px solid rgba(77, 163, 255, 0.65);
    background: rgba(42, 111, 184, 0.35);
    color: #e9f3ff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: var(--text-shadow);
    white-space: nowrap;
}

#topbar .archiwum-topbar-year[hidden] {
    display: none !important;
}
