.download-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
}

.download-modal[hidden] { display: none; }

.download-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.download-modal__panel {
    position: relative;
    width: min(480px, 92vw);
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.download-modal__close {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 4px 8px;
    z-index: 1;
}
.download-modal__close:hover { color: var(--color-text); }

.download-modal__header {
    padding: var(--space-lg) var(--space-lg) 0 var(--space-lg);
}

.download-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.download-modal__subtitle {
    margin: var(--space-xs) 0 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.download-modal__options {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.download-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}

.download-option:hover,
.download-option:focus-visible {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-bg);
}

.download-option__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-surface);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.download-option__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-option__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.download-option__desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}