.login-container {
    max-width: 420px;
    margin-top: 10vh;
}

.error-msg {
    color: var(--pico-del-color);
    margin-top: 0.5rem;
}

.api-key-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.api-key-row input {
    flex: 1;
}

.api-key-row button {
    width: auto;
    white-space: nowrap;
}

.button-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.button-row button {
    width: auto;
}

#key-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.status-ok {
    color: var(--pico-ins-color);
}

.status-empty {
    color: var(--pico-del-color);
}

/* File browser */
.date-group {
    margin-bottom: 1.5rem;
}

.date-group h4 {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding-bottom: 0.25rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.file-info {
    flex: 1;
}

.file-info small {
    color: var(--pico-muted-color);
}

.file-actions button {
    margin: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* Progress */
#progress-section progress {
    margin: 0.5rem 0;
}

#result-text {
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
}

/* Dialog */
#dialog-content {
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
}

nav ul#nav-links {
    gap: 0.25rem;
}
