/* 文件加密盒 */

.crypto-tool .crypto-algo {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.crypto-key-switch,
.crypto-mode-switch,
.crypto-input-switch {
    margin-bottom: 16px;
}

.crypto-import-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.crypto-import-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.crypto-keep-empty {
    margin-left: auto;
    font-size: 0.85rem;
}

.crypto-stats {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

.crypto-errors {
    margin: 0 0 16px;
    padding: 12px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--danger);
    white-space: pre-wrap;
}

.crypto-export-bar {
    margin-top: 8px;
}

.crypto-file-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
}

.crypto-file-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.crypto-file-hint code {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
}

.crypto-file-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.crypto-file-list:empty { display: none; }

.crypto-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.crypto-file-item:last-child { border-bottom: none; }

.crypto-file-name {
    flex: 1;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crypto-file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--mono);
    flex-shrink: 0;
}

.crypto-file-remove {
    min-width: 28px;
    padding: 2px 8px;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .crypto-keep-empty { margin-left: 0; width: 100%; }
}

/* ── Filebox / Dropzone ── */
.dropzone {
    text-align: center;
    padding: 36px 20px;
    margin-bottom: 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}
.dropzone-icon { font-size: 2rem; margin: 0 0 8px; }
.dropzone-hint { font-size: 0.85rem; color: var(--text-muted); margin: 4px 0 0; }
.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.progress-wrap { margin: 16px 0; }
.progress-text { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-muted); font-family: var(--mono); }
